适用于CRM集成企业的完整客户支持WhatsApp AI机器人
高级
这是一个Support Chatbot, AI Chatbot领域的自动化工作流,包含 26 个节点。主要使用 Set, Switch, Webhook, Agent, HttpRequestTool 等节点。 构建集成LangChain、OpenAI和CRM的WhatsApp客户支持机器人
前置要求
- •HTTP Webhook 端点(n8n 会自动生成)
- •可能需要目标 API 的认证凭证
- •OpenAI API Key
使用的节点 (26)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "9jAyoi6py4r2DQkS",
"meta": {
"instanceId": "ea2b41532677d34614d95d13d7d2ccb694657be482144baf71e7140df3b2a853"
},
"name": "适用于 CRM 集成企业的完整客户支持 WhatsApp AI 机器人",
"tags": [],
"nodes": [
{
"id": "18dcdb01-7416-4a81-bfcb-b5d8abd9faca",
"name": "条件分支",
"type": "n8n-nodes-base.switch",
"position": [
624,
416
],
"parameters": {},
"typeVersion": 3.2
},
{
"id": "623e9a7b-3778-494f-a919-781feab402af",
"name": "订单系统提示",
"type": "n8n-nodes-base.set",
"position": [
1168,
480
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "f6a27fb1-9291-4687-9625-8c9bea2375a1",
"name": "AI Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
2112,
480
],
"parameters": {},
"typeVersion": 2.1
},
{
"id": "8847a24d-1266-41fa-9dd1-8e6547716958",
"name": "OpenAI 聊天模型1",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
1600,
816
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "8fb14eb4-075d-45b4-a8b8-526f9d4651b8",
"name": "OpenAI 聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
48,
768
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "c637dc10-ea64-4abd-83da-d9d7b67ec09a",
"name": "结构化输出解析器",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
320,
784
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "662494b2-6e08-4e7c-8b8d-1caa3ef50490",
"name": "OpenAI聊天模型2",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
304,
992
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "b96229cd-3fb9-4a7c-8ec9-5e2e36b75a59",
"name": "分支机构系统提示",
"type": "n8n-nodes-base.set",
"position": [
1168,
160
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "ef93f4fd-7e51-46fc-95a6-ab773df04579",
"name": "菜单系统提示",
"type": "n8n-nodes-base.set",
"position": [
1168,
320
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "11cd0c4c-4fe8-4da6-bc8e-f550dcd953c3",
"name": "投诉系统提示",
"type": "n8n-nodes-base.set",
"position": [
1168,
656
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "d4fa3686-d1e3-497f-9d0d-bfe791673dbd",
"name": "crm_搜索_工具",
"type": "n8n-nodes-base.httpRequestTool",
"position": [
2384,
880
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "2bba142d-e8c5-46ca-b233-51db289b6d5d",
"name": "保存_crm_记录_工具",
"type": "n8n-nodes-base.httpRequestTool",
"position": [
2272,
1056
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "f1b6aeec-f44d-46f7-b03b-35b21035a4ae",
"name": "获取_忠诚度积分_工具",
"type": "n8n-nodes-base.httpRequestTool",
"position": [
2576,
896
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "37799578-729f-44f4-8297-649b9bb01f01",
"name": "项目_搜索_工具",
"type": "n8n-nodes-base.httpRequestTool",
"position": [
1952,
1088
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "91a47de2-80d5-4b09-9743-4a4e654776d4",
"name": "分支机构_搜索_工具",
"type": "n8n-nodes-base.httpRequestTool",
"position": [
2112,
1008
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "a71fb812-f415-4fc1-ba82-87e35a2fdf71",
"name": "类别_搜索_工具",
"type": "n8n-nodes-base.httpRequestTool",
"position": [
1856,
928
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "9d30bfe0-001e-4445-976e-0df5a8254ac2",
"name": "Webhook:接收 WhatsApp 消息",
"type": "n8n-nodes-base.webhook",
"position": [
-176,
480
],
"webhookId": "d51e6907-51df-47b8-81d6-0858de5fde03",
"parameters": {},
"typeVersion": 2.1
},
{
"id": "189e3ce1-fec1-4d94-be73-da703118b87e",
"name": "AI Agent 路由器:分类消息",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
144,
480
],
"parameters": {},
"retryOnFail": true,
"typeVersion": 2.2
},
{
"id": "3f65f56d-2d6d-4741-a490-51c0ac854efc",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
0,
0
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "f6a9d542-08a5-4c19-a1f3-6a906d10371e",
"name": "简单内存-2",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
1680,
960
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "a1dd1634-3a8e-4fe8-b588-0a2a34c862b7",
"name": "简单记忆",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
192,
768
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "4ca9e41c-956c-4f2d-9dd7-8ab358b2fe0f",
"name": "便签 1",
"type": "n8n-nodes-base.stickyNote",
"position": [
592,
0
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "a980ff51-7244-4ae3-bf8d-8cb7e328a5cf",
"name": "便签 2",
"type": "n8n-nodes-base.stickyNote",
"position": [
1536,
0
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "8ae8e48b-169b-4108-a1dc-91846d6b67a3",
"name": "发送 WhatsApp 问候语",
"type": "n8n-nodes-evolution-api.evolutionApi",
"position": [
1168,
848
],
"parameters": {},
"notesInFlow": false,
"retryOnFail": true,
"typeVersion": 1
},
{
"id": "464cada5-8d21-4d1a-ac0b-ef5abe8fdbff",
"name": "向用户的 WhatsApp 发送答案",
"type": "n8n-nodes-evolution-api.evolutionApi",
"position": [
2736,
480
],
"parameters": {},
"typeVersion": 1
},
{
"id": "373b5088-b9cf-4bf5-b570-d2cb854a5f24",
"name": "便签 3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-848,
144
],
"parameters": {
"content": ""
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "2afd05a4-c941-4b22-883c-c55f250c73c9",
"connections": {
"Switch": {
"main": [
[
{
"node": "Branches System Prompt",
"type": "main",
"index": 0
}
],
[
{
"node": "Menu System Prompt",
"type": "main",
"index": 0
}
],
[
{
"node": "Orders System Prompt",
"type": "main",
"index": 0
}
],
[
{
"node": "Orders System Prompt",
"type": "main",
"index": 0
}
],
[
{
"node": "Complaints System Prompt",
"type": "main",
"index": 0
}
],
[
{
"node": "Send WhatsApp Greeting",
"type": "main",
"index": 0
}
]
]
},
"AI Agent": {
"main": [
[
{
"node": "Send Answer to User's WhatsApp",
"type": "main",
"index": 0
}
]
]
},
"Simple Memory": {
"ai_memory": [
[
{
"node": "AI Agent Router: Classify msg",
"type": "ai_memory",
"index": 0
}
]
]
},
"Simple Memory-2": {
"ai_memory": [
[
{
"node": "AI Agent",
"type": "ai_memory",
"index": 0
}
]
]
},
"crm_search_tool": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent Router: Classify msg",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"items_search_tool": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Menu System Prompt": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model1": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"OpenAI Chat Model2": {
"ai_languageModel": [
[
{
"node": "Structured Output Parser",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Orders System Prompt": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"branches_search_tool": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"save_crm_record_tool": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Branches System Prompt": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"categories_search_tool": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"get_loyalty_points_tool": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Complaints System Prompt": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"Structured Output Parser": {
"ai_outputParser": [
[
{
"node": "AI Agent Router: Classify msg",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"AI Agent Router: Classify msg": {
"main": [
[
{
"node": "Switch",
"type": "main",
"index": 0
}
]
]
},
"Webhook: Receive WhatsApp message": {
"main": [
[
{
"node": "AI Agent Router: Classify msg",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 客服机器人, AI 聊天机器人
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
AI驱动的Facebook页面支持聊天机器人:自动回复与智能客户处理
使用GPT-4.1的Facebook Messenger聊天机器人,支持人工升级
If
Set
Wait
+11
32 节点SpaGreen Creative
客服机器人
沙龙预约
基于AI的沙龙预订,集成GPT、Google日历和邮件确认
Set
Gmail
Switch
+9
20 节点Aziz B
AI 聊天机器人
🚀 面向Shopify品牌的AI驱动WhatsApp客户支持
面向Shopify品牌的AI驱动WhatsApp客户支持(LLM智能体)
Set
Slack
Switch
+11
30 节点Ruthwik
杂项
基于Google Gemini、Notion和Telegram的统一业务编排器(CEO专用)
基于Google Gemini、Notion和Telegram的统一业务编排器(CEO专用)
Set
Notion
Switch
+18
93 节点YungCEO
AI 聊天机器人
WhatsApp/Telegram WooCommerce订单支持
通过Telegram和Gmail使用Gemini和GPT自动化WooCommerce客户支持
Set
Gmail
Merge
+10
25 节点AppStoneLab Technologies LLP
客服机器人
J.A.R.V.I.S.
在Telegram上使用OpenAI、SERP和向量存储构建全面的多模态助手
If
Set
Code
+16
48 节点FabioInTech
客服机器人
工作流信息
难度等级
高级
节点数量26
分类2
节点类型10
作者
Ahmed Saadawi
@ahmedsaadawiCRM consultant and automation expert with 15+ years of experience building AI-powered, no-code workflows for sales, support, and operations. Open to collaboration or custom solutions — let’s connect!
外部链接
在 n8n.io 查看 →
分享此工作流