8
n8n 中文网amn8n.com

自动化多平台销售代理

高级

这是一个Sales, AI领域的自动化工作流,包含 83 个节点。主要使用 If, Set, Switch, Webhook, Postgres 等节点,结合人工智能技术实现智能自动化。 使用 RAG、CRM 和支付处理的多平台销售代理

前置要求
  • HTTP Webhook 端点(n8n 会自动生成)
  • PostgreSQL 数据库连接信息
  • Stripe API Key
  • 可能需要目标 API 的认证凭证
  • OpenAI API Key
  • Facebook Graph API 凭证
  • Google Gemini API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "28099d2544433ae0f39c65315a4d4c531947fcb0f060a94d6047d7be5df31063"
  },
  "nodes": [
    {
      "id": "fc1c7eb2-f966-4780-8bc6-b6ba22e2a924",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        3220,
        700
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "fc3c4d99-5891-4f11-b5d6-d1f1ee5cd303",
      "name": "无操作,不执行任何操作",
      "type": "n8n-nodes-base.noOp",
      "position": [
        2800,
        680
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "1594475a-b111-4d64-86ad-7cdde127dae1",
      "name": "日历助手",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        3260,
        920
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "099a27aa-b6d1-4e7d-846a-b7b997e50c2a",
      "name": "CRM Agent",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        3380,
        920
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "df8f0ce9-a9e4-4457-9836-f884a97fa819",
      "name": "Postgres聊天记忆",
      "type": "@n8n/n8n-nodes-langchain.memoryPostgresChat",
      "position": [
        3140,
        920
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "fd5ed307-4d18-4e4e-ab2f-8ec7f2726eb6",
      "name": "处理消息类型",
      "type": "n8n-nodes-base.switch",
      "position": [
        1700,
        680
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "8016b3f6-b288-4d55-b3a1-03edd2171a56",
      "name": "回复用户1",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        1920,
        880
      ],
      "webhookId": "0e86d9ab-6130-44f5-a7f1-4930bfcad48b",
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "8fd8ef0f-7e1e-44f7-9d9d-b574ecd03d9b",
      "name": "编辑字段 - 聊天1",
      "type": "n8n-nodes-base.set",
      "position": [
        2580,
        480
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "d2008bd2-b8d1-41eb-88a4-3e234df59790",
      "name": "回复用户",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        4220,
        580
      ],
      "webhookId": "3b2ca5bf-7b1d-4012-b68e-ef06653a3c18",
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "1fc97a0e-fc10-414a-9b07-0361fa7fbe82",
      "name": "WhatsApp",
      "type": "n8n-nodes-base.whatsAppTrigger",
      "position": [
        1260,
        680
      ],
      "webhookId": "aaf6d81e-dbdd-47e2-a2d4-c496ff92933b",
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "c00e2d94-5884-45ab-ab42-14b059ba67d4",
      "name": "WhatsApp Business Cloud",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        1920,
        680
      ],
      "webhookId": "5cbf4730-3963-45f9-8457-6f41e648d4fe",
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "64c1465e-60a5-42d7-9693-5f5ebce1a2a2",
      "name": "HTTP 请求",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2140,
        680
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "c3960605-94fb-42e4-b600-da1d00b72db0",
      "name": "OpenAI",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        2360,
        680
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "181f6ff9-04c6-4614-9d92-f2f95c843ac1",
      "name": "编辑字段 - 聊天2",
      "type": "n8n-nodes-base.set",
      "position": [
        2580,
        680
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "da170c50-289d-49de-bd66-3014a0864eaa",
      "name": "输出 - 聊天",
      "type": "n8n-nodes-base.set",
      "position": [
        4220,
        1160
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "7a047681-55a4-46bb-b24d-6f75df3e8499",
      "name": "Postgres PGVector Store",
      "type": "@n8n/n8n-nodes-langchain.vectorStorePGVector",
      "position": [
        3320,
        1300
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "403e783d-a3ae-4dd3-8ed6-6de60490f9f2",
      "name": "获取潜在客户",
      "type": "n8n-nodes-base.postgres",
      "position": [
        1480,
        680
      ],
      "parameters": {},
      "typeVersion": 2.6
    },
    {
      "id": "9a3d1aa6-77a4-4903-aeca-c91c7a1c2c93",
      "name": "当收到聊天消息时",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        2340,
        1700
      ],
      "webhookId": "0e63503d-ab21-4a3d-8d29-19c5d94c24d4",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "62c3803a-a4fe-44dc-95c6-e2ef44a52f66",
      "name": "Google Gemini 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        3020,
        920
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "052eb8f1-74ed-46b0-9777-d8b901d295ab",
      "name": "Google Gemini聊天模型1",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        3120,
        1240
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "c4735285-ee35-4a38-9638-1422599cbe71",
      "name": "嵌入 Google Gemini1",
      "type": "@n8n/n8n-nodes-langchain.embeddingsGoogleGemini",
      "position": [
        3340,
        1440
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "0fd7d9e7-97f8-454f-93ec-0f2fd16f9616",
      "name": "便签说明4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1140,
        440
      ],
      "parameters": {
        "content": "Emelia 触发器"
      },
      "typeVersion": 1
    },
    {
      "id": "0500f16c-6b06-42a7-b6bb-ff7fb01bcde0",
      "name": "简单记忆",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        180,
        1680
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "86b1e536-f5e8-4296-8238-9d23b760305a",
      "name": "创建费用",
      "type": "n8n-nodes-base.stripeTool",
      "position": [
        300,
        1680
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "a2bb895a-61fc-404b-9efa-9ef1cfdc6909",
      "name": "创建折扣券",
      "type": "n8n-nodes-base.stripeTool",
      "position": [
        420,
        1680
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "5924b845-9f4f-4a08-909c-b7871b505457",
      "name": "获取客户卡片",
      "type": "n8n-nodes-base.stripeTool",
      "position": [
        540,
        1680
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "4348c965-a204-4f96-9e37-cc9d8505d795",
      "name": "获取客户",
      "type": "n8n-nodes-base.stripeTool",
      "position": [
        660,
        1680
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "9b2727f5-372a-4e72-bdc9-d704b0cf525d",
      "name": "创建客户",
      "type": "n8n-nodes-base.stripeTool",
      "position": [
        780,
        1680
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "0d6c31e2-e77e-4426-8bfb-98efbc5dfc27",
      "name": "更新客户",
      "type": "n8n-nodes-base.stripeTool",
      "position": [
        900,
        1680
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "59d12b07-a90b-44d0-8df6-3795e68dc43b",
      "name": "删除客户",
      "type": "n8n-nodes-base.stripeTool",
      "position": [
        1020,
        1680
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "6082562f-04e1-4203-a237-6e892d51f77c",
      "name": "Google Gemini聊天模型4",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        60,
        1680
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "b9c5fdca-adcc-42aa-9a77-922cc7131ab1",
      "name": "响应1",
      "type": "n8n-nodes-base.set",
      "position": [
        900,
        1280
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "732f64b4-8fb5-4490-8670-f6d9a1f35ed6",
      "name": "重试2",
      "type": "n8n-nodes-base.set",
      "position": [
        920,
        1480
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "d9eef59c-6d02-490c-ac01-6aca37b35a7f",
      "name": "Billing Agent",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        3500,
        920
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "bfbf29cd-2fc4-436e-baeb-1aa74c8475e1",
      "name": "Billing Agent1",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        460,
        1460
      ],
      "parameters": {},
      "typeVersion": 1.9
    },
    {
      "id": "ba688bbd-4b96-4d4f-83c4-ec032e52e09e",
      "name": "technical_and_sales_knowledge",
      "type": "@n8n/n8n-nodes-langchain.toolVectorStore",
      "position": [
        3020,
        1080
      ],
      "parameters": {},
      "typeVersion": 1,
      "alwaysOutputData": true
    },
    {
      "id": "752270b8-c6f2-48b8-a7e0-e0fefb849aff",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        1260
      ],
      "parameters": {
        "content": "Emelia 触发器"
      },
      "typeVersion": 1
    },
    {
      "id": "56557012-e746-4a12-b109-e2e278a6a76e",
      "name": "便签说明5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "content": "Emelia 触发器"
      },
      "typeVersion": 1
    },
    {
      "id": "ddf2121e-3d3d-49b1-84a0-18a3e32f5fd6",
      "name": "Facebook触发器",
      "type": "n8n-nodes-base.webhook",
      "position": [
        1460,
        1220
      ],
      "webhookId": "b7e461f0-9a0d-4e27-9e86-f74a3e684e3a",
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "e163aed9-7345-4759-9793-befac35ec3d4",
      "name": "编辑字段 - facebook",
      "type": "n8n-nodes-base.set",
      "position": [
        2120,
        1220
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "a8fc15d6-98d7-4ce6-9a5f-e20f8daa8746",
      "name": "响应Webhook - facebook帖子",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        1680,
        1120
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "b1c56265-23cd-46f6-846e-18563017c5c7",
      "name": "响应Webhook - facebook获取",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        1680,
        1320
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "7396d841-8a00-4be8-b734-dbe8f3619eb9",
      "name": "Instagram触发器",
      "type": "n8n-nodes-base.webhook",
      "position": [
        1780,
        1580
      ],
      "webhookId": "cc6546da-6f16-4546-ada3-e2c83b208997",
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "1d5adb5a-17d1-49ca-b83d-c808d5c8d14a",
      "name": "响应Webhook - instagram获取",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        2000,
        1680
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "f5103d0f-0c4c-4d74-bc3c-fd3abbb6a7c1",
      "name": "响应Webhook - instagram帖子",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        2000,
        1480
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "acb6125b-e342-4d72-b09b-5479756c6030",
      "name": "编辑字段 - instagram",
      "type": "n8n-nodes-base.set",
      "position": [
        2440,
        1480
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "d2de4df9-416f-4c9f-8104-3f8287fc236c",
      "name": "如果不是回显 - facebook",
      "type": "n8n-nodes-base.if",
      "position": [
        1900,
        1120
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "6d10c7be-6c36-4c0c-a802-9756ac1d3e70",
      "name": "如果不是回显 - instagram",
      "type": "n8n-nodes-base.if",
      "position": [
        2220,
        1480
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "346ce220-4d11-4e9c-93e7-548a1d0c155f",
      "name": "销售助手演示 - 正在输入",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        2120,
        1020
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "3f42b084-25ec-473c-8106-932cf2e7d9a6",
      "name": "编辑字段 - 聊天",
      "type": "n8n-nodes-base.set",
      "position": [
        2540,
        1700
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "6a6107ac-f35d-4c81-b28a-1a81672a55fb",
      "name": "Facebook Graph API - 销售助手演示",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        4220,
        760
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "331b9eac-c0ab-4935-83b6-5a703d0dddd0",
      "name": "Instagram Graph API - 中小企业销售助手演示",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        4220,
        940
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "4acbb570-65a3-4973-a106-c06151cd039b",
      "name": "开关1",
      "type": "n8n-nodes-base.switch",
      "position": [
        3780,
        840
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "dffc3f73-3c04-4c7a-b976-57d71533fcbd",
      "name": "发送第一条消息",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        3220,
        160
      ],
      "webhookId": "89b0633a-88c4-4fe8-82f4-4e3ae20a075a",
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "bdb62be6-5385-4d78-a4ce-be539bb22d29",
      "name": "个性化第一条消息",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2880,
        60
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "45b92ce3-0e74-4b29-86de-4264e3378118",
      "name": "Gemini",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        2920,
        280
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "50bb8e6c-caf6-4d1f-aac1-95969b5cfff9",
      "name": "联系表单",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        2460,
        160
      ],
      "webhookId": "a34f7372-b42d-4176-ac9b-2518d85c125d",
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "e35aa634-5fc8-476c-938c-16dcee3bf78f",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2400,
        0
      ],
      "parameters": {
        "content": "Emelia 触发器"
      },
      "typeVersion": 1
    },
    {
      "id": "03ff50c6-dc0c-438f-be24-0caa3479ecc3",
      "name": "响应",
      "type": "n8n-nodes-base.set",
      "position": [
        2160,
        20
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "565eca10-2203-4124-adcd-de9e88106ab7",
      "name": "重试",
      "type": "n8n-nodes-base.set",
      "position": [
        2000,
        120
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "e4d6dfc1-064f-413d-96f7-a69e61629e7a",
      "name": "当被其他工作流执行时",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        1240,
        60
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "c453f5bc-c271-4848-bacc-642e861880fb",
      "name": "窗口缓冲记忆",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        1360,
        280
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "00256e82-9f75-4bf5-b398-ff6fa777e355",
      "name": "成功",
      "type": "n8n-nodes-base.set",
      "position": [
        4140,
        60
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "ea7c1010-8de9-46da-a9f9-75d0dbd25d0a",
      "name": "创建带参与者的活动",
      "type": "n8n-nodes-base.googleCalendarTool",
      "position": [
        3660,
        280
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "9ea7a1d6-a78d-4299-930c-2e8428861f55",
      "name": "创建事件",
      "type": "n8n-nodes-base.googleCalendarTool",
      "position": [
        3780,
        280
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "019a38f2-4447-4b31-8fc5-41cf0ca90a29",
      "name": "获取活动",
      "type": "n8n-nodes-base.googleCalendarTool",
      "position": [
        3900,
        280
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "c3352115-f872-46a8-a880-bd45d9e082b9",
      "name": "删除活动",
      "type": "n8n-nodes-base.googleCalendarTool",
      "position": [
        4020,
        280
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "d6c48e3b-7e3f-4924-a41d-e772e3e1b208",
      "name": "更新活动",
      "type": "n8n-nodes-base.googleCalendarTool",
      "position": [
        4140,
        280
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "c78ead66-8c1c-4003-82dd-4e3ba42dd04a",
      "name": "重试1",
      "type": "n8n-nodes-base.set",
      "position": [
        4260,
        220
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "e0473a31-8f1e-462c-9b15-6f84a5db76a3",
      "name": "Calendar Agent1",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "onError": "continueErrorOutput",
      "position": [
        3680,
        60
      ],
      "parameters": {},
      "typeVersion": 1.6
    },
    {
      "id": "705c27dc-47d9-4401-bd11-b2a68a8af8e5",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3460,
        0
      ],
      "parameters": {
        "content": "Emelia 触发器"
      },
      "typeVersion": 1
    },
    {
      "id": "fc98cf69-c168-4ae0-8d1d-66f250414f6b",
      "name": "Google Gemini聊天模型2",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1240,
        280
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "9117f2b8-000a-4cf5-8c4b-18a8d46094b3",
      "name": "创建商机",
      "type": "n8n-nodes-base.postgresTool",
      "position": [
        1480,
        280
      ],
      "parameters": {},
      "typeVersion": 2.6
    },
    {
      "id": "4ba86ac5-dec6-40ae-9eb3-02f7d1644849",
      "name": "列出记录",
      "type": "n8n-nodes-base.postgresTool",
      "position": [
        1600,
        280
      ],
      "parameters": {},
      "typeVersion": 2.6
    },
    {
      "id": "bc13a69b-9825-44eb-80f3-972b5b29a2b3",
      "name": "更新联系人",
      "type": "n8n-nodes-base.postgresTool",
      "position": [
        1720,
        280
      ],
      "parameters": {},
      "typeVersion": 2.6
    },
    {
      "id": "e0b84bcb-b5b5-4c1e-9600-d22b1aa77046",
      "name": "删除联系人",
      "type": "n8n-nodes-base.postgresTool",
      "position": [
        1960,
        280
      ],
      "parameters": {},
      "typeVersion": 2.6
    },
    {
      "id": "f398eeee-61bd-40bb-96a9-0fb580797199",
      "name": "删除商机",
      "type": "n8n-nodes-base.postgresTool",
      "position": [
        2080,
        280
      ],
      "parameters": {},
      "typeVersion": 2.6
    },
    {
      "id": "10a4a520-2e13-4579-b1dd-66c2b5434315",
      "name": "更新商机",
      "type": "n8n-nodes-base.postgresTool",
      "position": [
        2200,
        280
      ],
      "parameters": {},
      "typeVersion": 2.6
    },
    {
      "id": "b8342a8f-1d0d-4d77-a537-6f29e033139c",
      "name": "Google Gemini 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        3540,
        280
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "c7a34e7e-09a2-45ef-ba7b-6929625d5604",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1140,
        0
      ],
      "parameters": {
        "content": "Emelia 触发器"
      },
      "typeVersion": 1
    },
    {
      "id": "91fdb189-8e68-458d-9f1f-eb8537964211",
      "name": "创建联系人",
      "type": "n8n-nodes-base.postgresTool",
      "position": [
        1840,
        280
      ],
      "parameters": {},
      "typeVersion": 2.6
    },
    {
      "id": "b5971e41-2122-4a06-a51d-1d5e392f1a51",
      "name": "CRM Agent2",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "onError": "continueErrorOutput",
      "position": [
        1500,
        60
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "6c53a122-d748-418e-bc25-886fbfdc3ce8",
      "name": "创建联系人1",
      "type": "n8n-nodes-base.postgres",
      "position": [
        2660,
        160
      ],
      "parameters": {},
      "typeVersion": 2.6
    }
  ],
  "pinData": {
    "When Executed by Another Workflow": [
      {
        "query": "Create or update contact for Ben with email Ben@Ben.com and record interest in Ceramic Coating for appearance enhancement."
      }
    ]
  },
  "connections": {
    "45b92ce3-0e74-4b29-86de-4264e3378118": {
      "ai_languageModel": [
        [
          {
            "node": "bdb62be6-5385-4d78-a4ce-be539bb22d29",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "c3960605-94fb-42e4-b600-da1d00b72db0": {
      "main": [
        [
          {
            "node": "181f6ff9-04c6-4614-9d92-f2f95c843ac1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "4acbb570-65a3-4973-a106-c06151cd039b": {
      "main": [
        [
          {
            "node": "d2008bd2-b8d1-41eb-88a4-3e234df59790",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "6a6107ac-f35d-4c81-b28a-1a81672a55fb",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "331b9eac-c0ab-4935-83b6-5a703d0dddd0",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "da170c50-289d-49de-bd66-3014a0864eaa",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "fc1c7eb2-f966-4780-8bc6-b6ba22e2a924": {
      "main": [
        [
          {
            "node": "4acbb570-65a3-4973-a106-c06151cd039b",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "403e783d-a3ae-4dd3-8ed6-6de60490f9f2": {
      "main": [
        [
          {
            "node": "fd5ed307-4d18-4e4e-ab2f-8ec7f2726eb6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "1fc97a0e-fc10-414a-9b07-0361fa7fbe82": {
      "main": [
        [
          {
            "node": "403e783d-a3ae-4dd3-8ed6-6de60490f9f2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "099a27aa-b6d1-4e7d-846a-b7b997e50c2a": {
      "ai_tool": [
        [
          {
            "node": "fc1c7eb2-f966-4780-8bc6-b6ba22e2a924",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "b5971e41-2122-4a06-a51d-1d5e392f1a51": {
      "main": [
        [
          {
            "node": "03ff50c6-dc0c-438f-be24-0caa3479ecc3",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "565eca10-2203-4124-adcd-de9e88106ab7",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "019a38f2-4447-4b31-8fc5-41cf0ca90a29": {
      "ai_tool": [
        [
          {
            "node": "e0473a31-8f1e-462c-9b15-6f84a5db76a3",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "50bb8e6c-caf6-4d1f-aac1-95969b5cfff9": {
      "main": [
        [
          {
            "node": "6c53a122-d748-418e-bc25-886fbfdc3ce8",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "9ea7a1d6-a78d-4299-930c-2e8428861f55": {
      "ai_tool": [
        [
          {
            "node": "e0473a31-8f1e-462c-9b15-6f84a5db76a3",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "c3352115-f872-46a8-a880-bd45d9e082b9": {
      "ai_tool": [
        [
          {
            "node": "e0473a31-8f1e-462c-9b15-6f84a5db76a3",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "4348c965-a204-4f96-9e37-cc9d8505d795": {
      "ai_tool": [
        [
          {
            "node": "bfbf29cd-2fc4-436e-baeb-1aa74c8475e1",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "64c1465e-60a5-42d7-9693-5f5ebce1a2a2": {
      "main": [
        [
          {
            "node": "c3960605-94fb-42e4-b600-da1d00b72db0",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "4ba86ac5-dec6-40ae-9eb3-02f7d1644849": {
      "ai_tool": [
        [
          {
            "node": "b5971e41-2122-4a06-a51d-1d5e392f1a51",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "d6c48e3b-7e3f-4924-a41d-e772e3e1b208": {
      "ai_tool": [
        [
          {
            "node": "e0473a31-8f1e-462c-9b15-6f84a5db76a3",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "d9eef59c-6d02-490c-ac01-6aca37b35a7f": {
      "ai_tool": [
        [
          {
            "node": "fc1c7eb2-f966-4780-8bc6-b6ba22e2a924",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "86b1e536-f5e8-4296-8238-9d23b760305a": {
      "ai_tool": [
        [
          {
            "node": "bfbf29cd-2fc4-436e-baeb-1aa74c8475e1",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "0500f16c-6b06-42a7-b6bb-ff7fb01bcde0": {
      "ai_memory": [
        [
          {
            "node": "bfbf29cd-2fc4-436e-baeb-1aa74c8475e1",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "bfbf29cd-2fc4-436e-baeb-1aa74c8475e1": {
      "main": [
        [
          {
            "node": "b9c5fdca-adcc-42aa-9a77-922cc7131ab1",
            "type": "main",
            "index": 0
          },
          {
            "node": "732f64b4-8fb5-4490-8670-f6d9a1f35ed6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "1594475a-b111-4d64-86ad-7cdde127dae1": {
      "ai_tool": [
        [
          {
            "node": "fc1c7eb2-f966-4780-8bc6-b6ba22e2a924",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "91fdb189-8e68-458d-9f1f-eb8537964211": {
      "ai_tool": [
        [
          {
            "node": "b5971e41-2122-4a06-a51d-1d5e392f1a51",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "e0b84bcb-b5b5-4c1e-9600-d22b1aa77046": {
      "ai_tool": [
        [
          {
            "node": "b5971e41-2122-4a06-a51d-1d5e392f1a51",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "bc13a69b-9825-44eb-80f3-972b5b29a2b3": {
      "ai_tool": [
        [
          {
            "node": "b5971e41-2122-4a06-a51d-1d5e392f1a51",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "e0473a31-8f1e-462c-9b15-6f84a5db76a3": {
      "main": [
        [
          {
            "node": "00256e82-9f75-4bf5-b398-ff6fa777e355",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "c78ead66-8c1c-4003-82dd-4e3ba42dd04a",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "6c53a122-d748-418e-bc25-886fbfdc3ce8": {
      "main": [
        [
          {
            "node": "bdb62be6-5385-4d78-a4ce-be539bb22d29",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "9b2727f5-372a-4e72-bdc9-d704b0cf525d": {
      "ai_tool": [
        [
          {
            "node": "bfbf29cd-2fc4-436e-baeb-1aa74c8475e1",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "59d12b07-a90b-44d0-8df6-3795e68dc43b": {
      "ai_tool": [
        [
          {
            "node": "bfbf29cd-2fc4-436e-baeb-1aa74c8475e1",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "0d6c31e2-e77e-4426-8bfb-98efbc5dfc27": {
      "ai_tool": [
        [
          {
            "node": "bfbf29cd-2fc4-436e-baeb-1aa74c8475e1",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "ddf2121e-3d3d-49b1-84a0-18a3e32f5fd6": {
      "main": [
        [
          {
            "node": "a8fc15d6-98d7-4ce6-9a5f-e20f8daa8746",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "b1c56265-23cd-46f6-846e-18563017c5c7",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "5924b845-9f4f-4a08-909c-b7871b505457": {
      "ai_tool": [
        [
          {
            "node": "bfbf29cd-2fc4-436e-baeb-1aa74c8475e1",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "7396d841-8a00-4be8-b734-dbe8f3619eb9": {
      "main": [
        [
          {
            "node": "f5103d0f-0c4c-4d74-bc3c-fd3abbb6a7c1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "1d5adb5a-17d1-49ca-b83d-c808d5c8d14a",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "9117f2b8-000a-4cf5-8c4b-18a8d46094b3": {
      "ai_tool": [
        [
          {
            "node": "b5971e41-2122-4a06-a51d-1d5e392f1a51",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "f398eeee-61bd-40bb-96a9-0fb580797199": {
      "ai_tool": [
        [
          {
            "node": "b5971e41-2122-4a06-a51d-1d5e392f1a51",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "3f42b084-25ec-473c-8106-932cf2e7d9a6": {
      "main": [
        [
          {
            "node": "fc3c4d99-5891-4f11-b5d6-d1f1ee5cd303",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "10a4a520-2e13-4579-b1dd-66c2b5434315": {
      "ai_tool": [
        [
          {
            "node": "b5971e41-2122-4a06-a51d-1d5e392f1a51",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "8fd8ef0f-7e1e-44f7-9d9d-b574ecd03d9b": {
      "main": [
        [
          {
            "node": "fc3c4d99-5891-4f11-b5d6-d1f1ee5cd303",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "181f6ff9-04c6-4614-9d92-f2f95c843ac1": {
      "main": [
        [
          {
            "node": "fc3c4d99-5891-4f11-b5d6-d1f1ee5cd303",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "fd5ed307-4d18-4e4e-ab2f-8ec7f2726eb6": {
      "main": [
        [
          {
            "node": "8fd8ef0f-7e1e-44f7-9d9d-b574ecd03d9b",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "c00e2d94-5884-45ab-ab42-14b059ba67d4",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "8016b3f6-b288-4d55-b3a1-03edd2171a56",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "df8f0ce9-a9e4-4457-9836-f884a97fa819": {
      "ai_memory": [
        [
          {
            "node": "fc1c7eb2-f966-4780-8bc6-b6ba22e2a924",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "c453f5bc-c271-4848-bacc-642e861880fb": {
      "ai_memory": [
        [
          {
            "node": "b5971e41-2122-4a06-a51d-1d5e392f1a51",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "a2bb895a-61fc-404b-9efa-9ef1cfdc6909": {
      "ai_tool": [
        [
          {
            "node": "bfbf29cd-2fc4-436e-baeb-1aa74c8475e1",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "e163aed9-7345-4759-9793-befac35ec3d4": {
      "main": [
        [
          {
            "node": "fc3c4d99-5891-4f11-b5d6-d1f1ee5cd303",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "acb6125b-e342-4d72-b09b-5479756c6030": {
      "main": [
        [
          {
            "node": "fc3c4d99-5891-4f11-b5d6-d1f1ee5cd303",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "7a047681-55a4-46bb-b24d-6f75df3e8499": {
      "ai_vectorStore": [
        [
          {
            "node": "ba688bbd-4b96-4d4f-83c4-ec032e52e09e",
            "type": "ai_vectorStore",
            "index": 0
          }
        ]
      ]
    },
    "c00e2d94-5884-45ab-ab42-14b059ba67d4": {
      "main": [
        [
          {
            "node": "64c1465e-60a5-42d7-9693-5f5ebce1a2a2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "62c3803a-a4fe-44dc-95c6-e2ef44a52f66": {
      "ai_languageModel": [
        [
          {
            "node": "fc1c7eb2-f966-4780-8bc6-b6ba22e2a924",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "fc3c4d99-5891-4f11-b5d6-d1f1ee5cd303": {
      "main": [
        [
          {
            "node": "fc1c7eb2-f966-4780-8bc6-b6ba22e2a924",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "c4735285-ee35-4a38-9638-1422599cbe71": {
      "ai_embedding": [
        [
          {
            "node": "7a047681-55a4-46bb-b24d-6f75df3e8499",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "052eb8f1-74ed-46b0-9777-d8b901d295ab": {
      "ai_languageModel": [
        [
          {
            "node": "ba688bbd-4b96-4d4f-83c4-ec032e52e09e",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "fc98cf69-c168-4ae0-8d1d-66f250414f6b": {
      "ai_languageModel": [
        [
          {
            "node": "b5971e41-2122-4a06-a51d-1d5e392f1a51",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "b8342a8f-1d0d-4d77-a537-6f29e033139c": {
      "ai_languageModel": [
        [
          {
            "node": "e0473a31-8f1e-462c-9b15-6f84a5db76a3",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "6082562f-04e1-4203-a237-6e892d51f77c": {
      "ai_languageModel": [
        [
          {
            "node": "bfbf29cd-2fc4-436e-baeb-1aa74c8475e1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "d2de4df9-416f-4c9f-8104-3f8287fc236c": {
      "main": [
        [
          {
            "node": "e163aed9-7345-4759-9793-befac35ec3d4",
            "type": "main",
            "index": 0
          },
          {
            "node": "346ce220-4d11-4e9c-93e7-548a1d0c155f",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "ea7c1010-8de9-46da-a9f9-75d0dbd25d0a": {
      "ai_tool": [
        [
          {
            "node": "e0473a31-8f1e-462c-9b15-6f84a5db76a3",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "6d10c7be-6c36-4c0c-a802-9756ac1d3e70": {
      "main": [
        [
          {
            "node": "acb6125b-e342-4d72-b09b-5479756c6030",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "bdb62be6-5385-4d78-a4ce-be539bb22d29": {
      "main": [
        [
          {
            "node": "dffc3f73-3c04-4c7a-b976-57d71533fcbd",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "9a3d1aa6-77a4-4903-aeca-c91c7a1c2c93": {
      "main": [
        [
          {
            "node": "3f42b084-25ec-473c-8106-932cf2e7d9a6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "346ce220-4d11-4e9c-93e7-548a1d0c155f": {
      "main": [
        [
          {
            "node": "fc3c4d99-5891-4f11-b5d6-d1f1ee5cd303",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "ba688bbd-4b96-4d4f-83c4-ec032e52e09e": {
      "ai_tool": [
        [
          {
            "node": "fc1c7eb2-f966-4780-8bc6-b6ba22e2a924",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "e4d6dfc1-064f-413d-96f7-a69e61629e7a": {
      "main": [
        [
          {
            "node": "b5971e41-2122-4a06-a51d-1d5e392f1a51",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "a8fc15d6-98d7-4ce6-9a5f-e20f8daa8746": {
      "main": [
        [
          {
            "node": "d2de4df9-416f-4c9f-8104-3f8287fc236c",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "f5103d0f-0c4c-4d74-bc3c-fd3abbb6a7c1": {
      "main": [
        [
          {
            "node": "6d10c7be-6c36-4c0c-a802-9756ac1d3e70",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 销售, 人工智能

需要付费吗?

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

工作流信息
难度等级
高级
节点数量83
分类2
节点类型27
难度说明

适合高级用户,包含 16+ 个节点的复杂工作流

作者
Electrabot

Electrabot

@vansh404

AI Automation Agency Based In Canada

外部链接
在 n8n.io 查看

分享此工作流

分类

分类: 34