高级销售AI代理

高级

这是一个Sales、AI领域的自动化工作流,包含 58 个节点。主要使用 If、Set、Switch、Webhook、Airtable 等节点,结合人工智能技术实现智能自动化。 AI销售代理:WhatsApp、FB、IG、OpenAI、Airtable、Supabase自动预约

前置要求
  • HTTP Webhook 端点(n8n 会自动生成)
  • Airtable API Key
  • 可能需要目标 API 的认证凭证
  • OpenAI API Key
  • Facebook Graph API 凭证
  • PostgreSQL 数据库连接信息
  • Supabase URL 和 API Key

分类

工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "x1h3jkRytSerUGhu",
  "meta": {
    "instanceId": "5beb610c1ddaf0be11e46fd8edaf0e265560c93f1638f8638d6a8a7adf44f57e"
  },
  "name": "高级销售 AI 代理",
  "tags": [
    {
      "id": "yyl2ODGPNBCXNLhN",
      "name": "Completed",
      "createdAt": "2025-04-28T23:47:07.492Z",
      "updatedAt": "2025-04-28T23:47:07.492Z"
    }
  ],
  "nodes": [
    {
      "id": "9addca79-498b-44cc-8b7b-da5689c443d4",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2800,
        800
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "655b1e6f-88cb-4417-8ed6-41b8e7f39c20",
      "name": "无操作,不执行任何操作",
      "type": "n8n-nodes-base.noOp",
      "position": [
        2540,
        800
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "3147df28-dcbb-4570-8a0a-5fe72832718d",
      "name": "分支",
      "type": "n8n-nodes-base.switch",
      "position": [
        3940,
        700
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "2514349d-d847-4396-b634-c2ef777588d5",
      "name": "Facebook 触发器",
      "type": "n8n-nodes-base.webhook",
      "position": [
        1180,
        840
      ],
      "webhookId": "b7e461f0-9a0d-4e27-9e86-f74a3e684e3a",
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "60321484-988a-4190-9282-ea7dd1b39c26",
      "name": "编辑字段 - facebook",
      "type": "n8n-nodes-base.set",
      "position": [
        1640,
        920
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "65a6d0de-14d9-4dd9-9efc-1ad6d7b79cd4",
      "name": "响应 Webhook - facebook 帖子",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        1440,
        720
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "25d0ee32-1dcd-4a6f-9119-d23561c110e8",
      "name": "响应 Webhook - facebook 获取",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        1420,
        900
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "6fab5fc8-e30e-476b-b45f-f03d7b1a7195",
      "name": "Instagram 触发器",
      "type": "n8n-nodes-base.webhook",
      "position": [
        1120,
        1360
      ],
      "webhookId": "cc6546da-6f16-4546-ada3-e2c83b208997",
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "f07daa8f-4392-478c-b56f-ce230241d87d",
      "name": "响应 Webhook - instagram 获取",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        1380,
        1460
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "dfceb449-89ae-4c58-884d-b77d21c09020",
      "name": "响应 Webhook - instagram 帖子",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        1380,
        1260
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "4c137f1e-1bbc-48f2-900e-24be7096372c",
      "name": "编辑字段 - instagram",
      "type": "n8n-nodes-base.set",
      "position": [
        1840,
        1260
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "f6bd4f71-f5f5-4ad1-a3b3-4b0de83767a1",
      "name": "如果不是回声 - facebook",
      "type": "n8n-nodes-base.if",
      "position": [
        1640,
        720
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "40df05f1-eea9-42ad-8ff4-6cfe1d4b8e1a",
      "name": "如果不是回声 - instagram",
      "type": "n8n-nodes-base.if",
      "position": [
        1600,
        1260
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "c6bd22d4-293b-49d8-94a2-da2851a0fbde",
      "name": "OpenAI 嵌入",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        2880,
        1440
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "e32746ce-7593-4ae5-9fc6-1834bf7116cf",
      "name": "OpenAI 聊天模型1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        3080,
        1240
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "068daa60-de05-4106-b408-d904898f44a0",
      "name": "演示 Supabase",
      "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase",
      "position": [
        2780,
        1240
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "8088cc8d-cb56-43b5-ac20-fddfe6721a0c",
      "name": "日历代理",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        2640,
        1040
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "fd7cc952-a433-4c6f-865c-1fe0406daf34",
      "name": "CRM Agent",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        2760,
        1040
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "90152733-4a5d-4c39-b274-838b86c7214b",
      "name": "Postgres 聊天记忆",
      "type": "@n8n/n8n-nodes-langchain.memoryPostgresChat",
      "position": [
        2520,
        1040
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "f82219d3-e81e-4735-8fec-428e24e306cb",
      "name": "sales_technique_knowledge",
      "type": "@n8n/n8n-nodes-langchain.toolVectorStore",
      "position": [
        2880,
        1040
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "31301f2b-8fa4-46f8-be5c-98d2013123cf",
      "name": "处理消息类型",
      "type": "n8n-nodes-base.switch",
      "position": [
        1640,
        360
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "7429d3a0-1da8-45ca-8886-7bf6c335f28b",
      "name": "回复用户1",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        1860,
        220
      ],
      "webhookId": "0e86d9ab-6130-44f5-a7f1-4930bfcad48b",
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "e3144cd3-dcaa-4fcf-9760-f8f8b12f5351",
      "name": "编辑字段 - 聊天1",
      "type": "n8n-nodes-base.set",
      "position": [
        2160,
        380
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "e51934e6-ba7b-455e-86b9-f2dfbf2283a6",
      "name": "回复用户",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        4160,
        360
      ],
      "webhookId": "3b2ca5bf-7b1d-4012-b68e-ef06653a3c18",
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "d64c1897-7e0b-45a0-bdbc-515b7ade019c",
      "name": "WhatsApp",
      "type": "n8n-nodes-base.whatsAppTrigger",
      "position": [
        1200,
        360
      ],
      "webhookId": "aaf6d81e-dbdd-47e2-a2d4-c496ff92933b",
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "ae61d0df-d990-48a7-89bf-77bc23dbe0a8",
      "name": "WhatsApp Business Cloud",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        1860,
        360
      ],
      "webhookId": "5cbf4730-3963-45f9-8457-6f41e648d4fe",
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "7d426761-cc8e-40dc-8379-c68c587a5535",
      "name": "HTTP 请求",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2160,
        540
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "2a9389b2-06d0-4c0c-9258-fa00108221fb",
      "name": "OpenAI",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        2160,
        760
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "fe272020-8965-4141-8424-bfcd60a2879c",
      "name": "编辑字段 - 聊天2",
      "type": "n8n-nodes-base.set",
      "position": [
        2160,
        980
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "1d11a556-6fef-4aa7-9647-235df6bb0adb",
      "name": "OpenAI 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        2600,
        1280
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "244019eb-6458-412d-8723-7cf80dda66e0",
      "name": "Airtable",
      "type": "n8n-nodes-base.airtable",
      "position": [
        1920,
        1900
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "c3cc2f61-c783-4012-ac86-de0b5509f5bf",
      "name": "编辑字段 - 表单",
      "type": "n8n-nodes-base.set",
      "position": [
        2360,
        1900
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "e8fd649e-196e-43c9-a6b1-380bb0edab28",
      "name": "Airtable 表单已提交",
      "type": "n8n-nodes-base.webhook",
      "position": [
        1700,
        1900
      ],
      "webhookId": "743228b1-915f-4628-a74a-ac277d227051",
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "159c829d-5793-46bf-a946-bde7dfcdd573",
      "name": "销售代理演示 - typing_on",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        1860,
        720
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "8cf6f3a6-24e5-4d15-a04f-26a4ea03b863",
      "name": "Facebook Graph API - 销售代理演示",
      "type": "n8n-nodes-base.facebookGraphApi",
      "position": [
        4160,
        560
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "289d92fe-2b53-4e15-81ed-73adaaa0df02",
      "name": "Instagram Graph API - smb.sales.agent.demo",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        4160,
        760
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "25076437-3d9b-454c-83a7-bd318710c093",
      "name": "AI Agent1",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2720,
        -100
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "d0a454bf-f377-472e-a6b2-63c058d4cebf",
      "name": "Embeddings OpenAI1",
      "type": "@n8n/n8n-nodes-langchain.embeddingsOpenAi",
      "position": [
        2520,
        340
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "158c32ff-3aa8-4878-92f5-3577d02da43f",
      "name": "OpenAI 聊天模型2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        2960,
        360
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "8b71ff29-e758-40bf-8bbc-2c72ec8b77f7",
      "name": "演示 Supabase1",
      "type": "@n8n/n8n-nodes-langchain.vectorStoreSupabase",
      "position": [
        2660,
        360
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "d827e73a-7069-4b4b-a97c-8d73481905c4",
      "name": "Postgres 聊天记忆1",
      "type": "@n8n/n8n-nodes-langchain.memoryPostgresChat",
      "position": [
        2640,
        160
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "c0aaf0c6-a29c-4b5d-a91a-caa24447b68c",
      "name": "sales_technique_knowledge1",
      "type": "@n8n/n8n-nodes-langchain.toolVectorStore",
      "position": [
        2760,
        160
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "6405d310-4cb7-4c55-8484-7f45ca40d45a",
      "name": "OpenAI Chat Model3",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        2520,
        160
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "cdf2597f-934c-47d3-b843-22d531fe4f61",
      "name": "Calendar Agent1",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        3060,
        160
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "f8897f1a-3b3b-412d-81af-2002fc023703",
      "name": "当收到聊天消息时",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        1600,
        1440
      ],
      "webhookId": "c959ad76-d935-437f-8380-4776b1bcf52a",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "7606244f-a59f-48d6-9ca0-8fa2cf7d83bf",
      "name": "编辑字段 - 聊天",
      "type": "n8n-nodes-base.set",
      "position": [
        1840,
        1460
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "fefa88ca-dd9d-4061-a76a-aeb2155dedf0",
      "name": "输出 - 聊天",
      "type": "n8n-nodes-base.set",
      "position": [
        4160,
        960
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "1cfdc044-870f-464a-8431-0408f4fe7409",
      "name": "WhatsApp Business Cloud2",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        2580,
        1900
      ],
      "webhookId": "efdf335a-e120-488f-bfd0-bae49c454b6c",
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "f0ab4ccf-c9df-45c1-8d22-647d9c143ba9",
      "name": "获取潜在客户",
      "type": "n8n-nodes-base.airtable",
      "onError": "continueRegularOutput",
      "position": [
        1420,
        360
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "6b942af3-b796-4860-953d-f7d2aef4b201",
      "name": "创建联系人",
      "type": "n8n-nodes-base.airtable",
      "position": [
        2140,
        1900
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "a7c9dd71-db24-405a-9193-e9b37d05f915",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2400,
        -180
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "4a15e4c3-6523-432e-ab43-aecdc396f3cd",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        820,
        160
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "6becd7d1-b79a-4307-8d35-3d18ef6f76c8",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        820,
        640
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "40c195f1-43f5-488d-a4b0-db3fc78b1955",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        820,
        1160
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "8747a173-9ab7-46f5-bd0b-aae2c3ad9358",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2400,
        540
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "f01553e6-3aca-4d23-8b40-c8114b988fa1",
      "name": "便利贴5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1480,
        1740
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "3575bafb-4ea5-4b82-b18a-a01d2f7cbb29",
      "name": "便签 6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3720,
        100
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "1638cf86-cb3f-49c6-a917-37c6b0f9407a",
      "name": "便签 7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2100,
        220
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {
    "WhatsApp": [
      {
        "json": {
          "field": "messages",
          "contacts": [
            {
              "wa_id": "5511943305954",
              "profile": {
                "name": "Ben"
              }
            }
          ],
          "messages": [
            {
              "id": "wamid.HBgNNTUxMTk0MzMwNTk1NBUCABIYFDNBMzZCMzEzRkE3NEE5QTY4QkY2AA==",
              "from": "5511943305954",
              "type": "audio",
              "audio": {
                "id": "1035082928515514",
                "voice": true,
                "sha256": "cvEinUroWyJwJnXdrmNKh58AEenizXyZckc+MR5LDVc=",
                "mime_type": "audio/ogg; codecs=opus"
              },
              "timestamp": "1743505155"
            }
          ],
          "metadata": {
            "phone_number_id": "278982118641623",
            "display_phone_number": "5511911957545"
          },
          "messaging_product": "whatsapp"
        }
      }
    ],
    "Airtable Form Submitted": [
      {
        "json": {
          "body": {},
          "query": {
            "tableId": "tblx4RCYHWg0QDPhk",
            "recordId": "recEOSF2sMmS7Zl3G"
          },
          "params": {},
          "headers": {
            "host": "n8n.benai.agency",
            "accept": "*/*",
            "x-real-ip": "54.163.57.194",
            "user-agent": "Mozilla/5.0 (compatible; AirtableScripting; +https://airtable.com/developers/scripting;)",
            "accept-encoding": "gzip,deflate",
            "x-forwarded-for": "54.163.57.194",
            "x-forwarded-host": "n8n.benai.agency",
            "x-forwarded-port": "443",
            "x-airtable-source": "appmZHna96JsKNeJL/wflTdWRuMMUw4eaTR",
            "x-forwarded-proto": "https",
            "x-forwarded-server": "4f7a0fd81c9f"
          },
          "webhookUrl": "https://n8n.benai.agency/webhook/sales-lead-form",
          "executionMode": "production"
        }
      }
    ]
  },
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "bddbe12d-a6dd-497b-846b-8216603ab80e",
  "connections": {
    "OpenAI": {
      "main": [
        [
          {
            "node": "Edit Fields - chat2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch": {
      "main": [
        [
          {
            "node": "Reply To  User",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Facebook Graph API - Sales Agent Demo",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Instagram Graph API - smb.sales.agent.demo",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Output - chat",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Airtable": {
      "main": [
        [
          {
            "node": "Create Contact",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Lead": {
      "main": [
        [
          {
            "node": "Handle Message Types",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "WhatsApp": {
      "main": [
        [
          {
            "node": "Get Lead",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "CRM Agent": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "OpenAI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Demo Supabase": {
      "ai_vectorStore": [
        [
          {
            "node": "sales_technique_knowledge",
            "type": "ai_vectorStore",
            "index": 0
          }
        ]
      ]
    },
    "Calendar Agent": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Create Contact": {
      "main": [
        [
          {
            "node": "Edit Fields - form",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Demo Supabase1": {
      "ai_vectorStore": [
        [
          {
            "node": "sales_technique_knowledge1",
            "type": "ai_vectorStore",
            "index": 0
          }
        ]
      ]
    },
    "Calendar Agent1": {
      "ai_tool": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Facebook Trigger": {
      "main": [
        [
          {
            "node": "Respond to Webhook - facebook post",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Respond to Webhook - facebook get",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI": {
      "ai_embedding": [
        [
          {
            "node": "Demo Supabase",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Instagram Trigger": {
      "main": [
        [
          {
            "node": "Respond to Webhook - instagram post",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Respond to Webhook - instagram get",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields - chat": {
      "main": [
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields - form": {
      "main": [
        [
          {
            "node": "WhatsApp Business Cloud2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings OpenAI1": {
      "ai_embedding": [
        [
          {
            "node": "Demo Supabase1",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "sales_technique_knowledge",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "sales_technique_knowledge1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model3": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields - chat1": {
      "main": [
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields - chat2": {
      "main": [
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Handle Message Types": {
      "main": [
        [
          {
            "node": "Edit Fields - chat1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "WhatsApp Business Cloud",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Reply To User1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Postgres Chat Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Postgres Chat Memory1": {
      "ai_memory": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields - facebook": {
      "main": [
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Airtable Form Submitted": {
      "main": [
        [
          {
            "node": "Airtable",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields - instagram": {
      "main": [
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "WhatsApp Business Cloud": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "No Operation, do nothing": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If is not echo - facebook": {
      "main": [
        [
          {
            "node": "Edit Fields - facebook",
            "type": "main",
            "index": 0
          },
          {
            "node": "Sales Agent Demo - typing_on",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "sales_technique_knowledge": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "If is not echo - instagram": {
      "main": [
        [
          {
            "node": "Edit Fields - instagram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "Edit Fields - chat",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "sales_technique_knowledge1": {
      "ai_tool": [
        [
          {
            "node": "AI Agent1",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Respond to Webhook - facebook post": {
      "main": [
        [
          {
            "node": "If is not echo - facebook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Respond to Webhook - instagram post": {
      "main": [
        [
          {
            "node": "If is not echo - instagram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

这是一个高级难度的工作流,适用于Sales、AI等场景。适合高级用户,包含 16+ 个节点的复杂工作流

需要付费吗?

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

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

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

作者
Sam Yassine

Sam Yassine

@samyassine

AI Automation Expert | n8n Wizard | Workflow Simplifier I turn complex processes into powerful automations using n8n. Whether you're scaling your business or saving hours of manual work, I've got plug-and-play templates that bring AI and automation together—fast, smart, and easy. Let’s make your systems work for you.

外部链接
在 n8n.io 上查看 →

分享此工作流