8
n8n 中文网amn8n.com

自动入站销售跟进

中级

这是一个Lead Nurturing, AI RAG, Multimodal AI领域的自动化工作流,包含 12 个节点。主要使用 Gmail, FormTrigger, Agent, LmChatOpenAi, EmbeddingsOpenAi 等节点。 使用 GPT-5、Pinecone 和 Tavily 研究实现个性化销售自动跟进

前置要求
  • Google 账号和 Gmail API 凭证
  • OpenAI API Key
  • Pinecone API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "JRk4BidOsJmNYCz3",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "自动入站销售跟进",
  "tags": [],
  "nodes": [
    {
      "id": "5c469742-7089-4322-9d7f-363d89bc8e84",
      "name": "表单提交时",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -144,
        0
      ],
      "parameters": {
        "options": {},
        "formTitle": "Business Inquiry",
        "formFields": {
          "values": [
            {
              "fieldLabel": "First Name",
              "requiredField": true
            },
            {
              "fieldLabel": "Last Name",
              "requiredField": true
            },
            {
              "fieldLabel": "Business URL",
              "requiredField": true
            },
            {
              "fieldType": "email",
              "fieldLabel": "Email",
              "requiredField": true
            },
            {
              "fieldType": "number",
              "fieldLabel": "Phone Number (Optional)"
            },
            {
              "fieldLabel": "How can we help you?"
            }
          ]
        },
        "formDescription": "Thank you for your inquiry, we'll get back to you soon!"
      },
      "typeVersion": 2.2
    },
    {
      "id": "530607dd-d303-41a3-94f3-a4c89e4c6a66",
      "name": "OpenAI 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        80,
        304
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-5",
          "cachedResultName": "gpt-5"
        },
        "options": {}
      },
      "typeVersion": 1.2
    },
    {
      "id": "648633b1-b8c2-437f-9384-ce9e9e170675",
      "name": "简单记忆",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        272,
        304
      ],
      "parameters": {
        "sessionKey": "={{ $workflow.id }}",
        "sessionIdType": "customKey"
      },
      "typeVersion": 1.3
    },
    {
      "id": "36bf640f-df08-4abd-b7a1-592ef2fff1d2",
      "name": "多表:您可以连接多个表以实现有组织的数据结构",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        688,
        288
      ],
      "parameters": {
        "jsonSchemaExample": "{\n\t\"Subject Line\": \"Hello from Purple Unicorn Marketing\",\n\t\"Body\": \"Hey Jake, this is bob from Purpler Unicorn Marketing. Thank you for your inquiry, booking a meeting with me here: www.calendly.com/book-now\"\n}"
      },
      "typeVersion": 1.3
    },
    {
      "id": "1c4e1648-934d-49cc-b645-beb11522ddfe",
      "name": "Gmail",
      "type": "n8n-nodes-base.gmail",
      "position": [
        912,
        0
      ],
      "parameters": {
        "sendTo": "<<<LEAD_EMAIL_PLACEHOLDER>>>",
        "message": "={{ $json.output.Body }}",
        "options": {},
        "subject": "={{ $json.output['Subject Line'] }}",
        "emailType": "text"
      },
      "typeVersion": 2.1
    },
    {
      "id": "6b471a24-6145-47f3-aa19-88aaf1120b63",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -240,
        -128
      ],
      "parameters": {
        "width": 260,
        "height": 640,
        "content": "表单提交触发器"
      },
      "typeVersion": 1
    },
    {
      "id": "77a38bef-3f32-48f9-9339-b7071fd1fa03",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        32,
        -128
      ],
      "parameters": {
        "color": 5,
        "width": 768,
        "height": 640,
        "content": "GPT-5 入站销售代表潜在客户研究与邮件撰写智能体"
      },
      "typeVersion": 1
    },
    {
      "id": "972490fa-d89c-448b-bc99-62308159833a",
      "name": "GPT-5 研究与文案撰写",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        224,
        0
      ],
      "parameters": {
        "text": "=First Name: {{ $json['First Name'] }}\nLast Name: {{ $json['Last Name'] }}\nBusiness URL: {{ $json['Business URL'] }}\nEmail: {{ $json.Email }}\nPhone Number: {{ $json['Phone Number (Optional)'] }}\nHow Can We Help:{{ $json['How can we help you?'] }}",
        "options": {
          "systemMessage": "You are an effective inbound lead email agent. Your role is to research on the lead's business information and lead's problem statement to craft a personalized email to be sent to the leads with the goal of booking a meeting at www.calendly.com/book-now. Use a friendly tone which is welcoming and easy to read, clear call to action. \n\n#Tool\nUse the Tavily tool to carry out online research that will help your email to the lead.\nUse Pinecone Vector tool to refer to best brand guidelines and outbound practices\n\n##Output\nOutput the email subject line and body in separated JSON Object forma. \n"
        },
        "promptType": "define",
        "hasOutputParser": true
      },
      "typeVersion": 2
    },
    {
      "id": "b288c417-12e7-4c66-82c1-5a9bdb5a10b3",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        816,
        -128
      ],
      "parameters": {
        "color": 4,
        "width": 320,
        "height": 640,
        "content": "发送邮件节点"
      },
      "typeVersion": 1
    },
    {
      "id": "905eaacd-4e12-44c3-81dc-6af2e784dd6a",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1328,
        -128
      ],
      "parameters": {
        "color": 2,
        "width": 1072,
        "height": 1776,
        "content": "📧 使用 GPT-5、Pinecone 和 Tavily 研究的自动个性化销售跟进"
      },
      "typeVersion": 1
    },
    {
      "id": "6d481c50-b1d6-409e-8878-bb53cee8e86c",
      "name": "Pinecone 向量存储",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePinecone",
      "position": [
        400,
        240
      ],
      "parameters": {
        "mode": "retrieve-as-tool",
        "options": {},
        "pineconeIndex": {
          "__rl": true,
          "mode": "list",
          "value": "<<<PINECONE_INDEX>>>",
          "cachedResultName": "<<<PINECONE_INDEX_NAME>>>"
        },
        "toolDescription": "Use this tool to refer to writing style, latest product updates."
      },
      "typeVersion": 1.3
    },
    {
      "id": "ef01e62f-b18b-4dad-9222-a229eb1b913a",
      "name": "Embeddings OpenAI",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        480,
        384
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 1.2
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "connections": {
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "GPT-5 Research & Copywriting",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI": {
      "ai_embedding": [
        [
          {
            "node": "Pinecone Vector Store",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "GPT-5 Research & Copywriting",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "GPT-5 Research & Copywriting",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pinecone Vector Store": {
      "ai_tool": [
        [
          {
            "node": "GPT-5 Research & Copywriting",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "GPT-5 Research & Copywriting",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "GPT-5 Research & Copywriting": {
      "main": [
        [
          {
            "node": "Gmail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

中级 - 客户培育, AI RAG 检索增强, 多模态 AI

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
中级
节点数量12
分类3
节点类型9
难度说明

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

作者
Automate With Marc

Automate With Marc

@marconi

Automating Start-Up and Business processes. Helping non-techies understand and leverage Agentic AI with easy to understand step-by-step tutorials. Check out my educational content: https://www.youtube.com/@Automatewithmarc

外部链接
在 n8n.io 查看

分享此工作流