语音和音频聊天机器人
高级
这是一个Support Chatbot、AI Chatbot领域的自动化工作流,包含 18 个节点。主要使用 Code、Switch、WhatsApp、Aggregate、HttpRequest 等节点。 WhatsApp和Google Gemini:突出多模态能力的关键技术
前置要求
- •可能需要目标 API 的认证凭证
- •Google Sheets API 凭证
- •Google Gemini API Key
使用的节点 (18 个)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "{{CREDENTIAL_ID}}",
"meta": {
"instanceId": "23ae6e26b6c29172a4aac9b4149bfa956471932012bf9fd6ff44c5409db4d9b6"
},
"name": "语音和音频聊天机器人",
"tags": [],
"nodes": [
{
"id": "9428edaa-24a2-4137-b078-9359c6db6dbf",
"name": "WhatsApp触发器",
"type": "n8n-nodes-base.whatsAppTrigger",
"position": [
-496,
304
],
"webhookId": "{{WEBHOOK_ID}}",
"parameters": {},
"typeVersion": 1
},
{
"id": "10cd7dd7-a14a-4b92-a5c7-91bb2c76bd79",
"name": "转录录音",
"type": "@n8n/n8n-nodes-langchain.googleGemini",
"position": [
400,
96
],
"parameters": {},
"typeVersion": 1
},
{
"id": "782dc37a-9f7c-4638-abf1-7131ad795fb3",
"name": "AI Agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
912,
240
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "c911b184-08c1-4418-aba3-daea79cdc006",
"name": "Google Gemini聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"position": [
848,
464
],
"parameters": {},
"typeVersion": 1
},
{
"id": "dcdef524-8dea-4fa5-bfe2-2e116808f5ac",
"name": "简单记忆",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
976,
464
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "6d212773-4ca4-4a29-8bfd-317019bb2b2a",
"name": "在 Google Sheets 中追加或更新行",
"type": "n8n-nodes-base.googleSheetsTool",
"position": [
1104,
464
],
"parameters": {},
"typeVersion": 4.7
},
{
"id": "d005c2b9-1978-4fdf-9f9e-f7cc2cf68f36",
"name": "聚合",
"type": "n8n-nodes-base.aggregate",
"position": [
624,
240
],
"parameters": {},
"typeVersion": 1
},
{
"id": "a7ef40f2-136d-4973-a743-2337d8ca5827",
"name": "发送消息",
"type": "n8n-nodes-base.whatsApp",
"position": [
1536,
240
],
"webhookId": "{{WEBHOOK_ID}}",
"parameters": {},
"typeVersion": 1
},
{
"id": "b6276da2-9a32-4166-af8a-44025f6d1b0e",
"name": "发送消息1",
"type": "n8n-nodes-base.whatsApp",
"position": [
-48,
576
],
"webhookId": "{{WEBHOOK_ID}}",
"parameters": {},
"typeVersion": 1
},
{
"id": "ac011f6f-f983-49f7-886b-125e25e6f769",
"name": "分析图片",
"type": "@n8n/n8n-nodes-langchain.googleGemini",
"position": [
400,
384
],
"parameters": {},
"typeVersion": 1
},
{
"id": "56c2e243-dcda-494e-b148-2c60c93a60bd",
"name": "音频接收器1",
"type": "n8n-nodes-base.httpRequest",
"position": [
-48,
96
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "33036a79-dde3-4615-b1e2-37cb2d27c1c1",
"name": "音频接收器2",
"type": "n8n-nodes-base.httpRequest",
"position": [
176,
96
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "c0993db9-5c5c-46c6-8790-832e9cc7b08e",
"name": "图像接收器1",
"type": "n8n-nodes-base.httpRequest",
"position": [
-48,
384
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "39256523-5f18-40f4-99bc-83b28442c0e7",
"name": "图像接收器2",
"type": "n8n-nodes-base.httpRequest",
"position": [
176,
384
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "452e3b0e-42d4-47bb-96a9-8a0873317d3c",
"name": "在 Google Docs 中获取文档",
"type": "n8n-nodes-base.googleDocsTool",
"position": [
1248,
464
],
"parameters": {},
"typeVersion": 2
},
{
"id": "cb8fcc38-a2cb-48e8-94dc-a217ee1dc2ef",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1344,
-32
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "9f296d30-c60e-4ee2-9584-a00fe9447024",
"name": "清理响应",
"type": "n8n-nodes-base.code",
"position": [
1312,
240
],
"parameters": {},
"typeVersion": 2
},
{
"id": "aee1a710-4304-486c-8866-76b001a5bebf",
"name": "切换(基于类型路由传入消息)",
"type": "n8n-nodes-base.switch",
"position": [
-272,
272
],
"parameters": {},
"typeVersion": 3.2
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "f18a82e3-3e16-450d-a330-0b21c2c6af05",
"connections": {
"AI Agent": {
"main": [
[
{
"node": "clean response",
"type": "main",
"index": 0
}
]
]
},
"Aggregate": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"Analyze image": {
"main": [
[
{
"node": "Aggregate",
"type": "main",
"index": 0
}
]
]
},
"Simple Memory": {
"ai_memory": [
[
{
"node": "AI Agent",
"type": "ai_memory",
"index": 0
}
]
]
},
"clean response": {
"main": [
[
{
"node": "Send message",
"type": "main",
"index": 0
}
]
]
},
"audio receiver1": {
"main": [
[
{
"node": "audio receiver 2",
"type": "main",
"index": 0
}
]
]
},
"image receiver2": {
"main": [
[
{
"node": "Analyze image",
"type": "main",
"index": 0
}
]
]
},
"WhatsApp Trigger": {
"main": [
[
{
"node": "Switch(route incoming messages based on type)",
"type": "main",
"index": 0
}
]
]
},
"audio receiver 2": {
"main": [
[
{
"node": "Transcribe a recording",
"type": "main",
"index": 0
}
]
]
},
"image receiver 1": {
"main": [
[
{
"node": "image receiver2",
"type": "main",
"index": 0
}
]
]
},
"Transcribe a recording": {
"main": [
[
{
"node": "Aggregate",
"type": "main",
"index": 0
}
]
]
},
"Google Gemini Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Get a document in Google Docs": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Switch(route incoming messages based on type)": {
"main": [
[
{
"node": "Aggregate",
"type": "main",
"index": 0
}
],
[
{
"node": "audio receiver1",
"type": "main",
"index": 0
}
],
[
{
"node": "image receiver 1",
"type": "main",
"index": 0
}
],
[
{
"node": "Send message1",
"type": "main",
"index": 0
}
]
]
},
"Append or update row in sheet in Google Sheets": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
这是一个高级难度的工作流,适用于Support Chatbot、AI Chatbot等场景。适合高级用户,包含 16+ 个节点的复杂工作流
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
使用AI和意图路由处理WhatsApp客户咨询
使用AI和意图路由处理WhatsApp客户咨询
Code
Switch
Whats App
+6
20 节点Hemanth Arety
Support Chatbot
高级多代理AI个人助手(250+任务能力,WhatsApp + GPT)
高级多代理AI个人助手(250+任务能力,WhatsApp + GPT)
Set
Switch
Whats App
+26
213 节点Electrabot
Personal Productivity
构建带记忆、Google套件和多AI研究成像的WhatsApp助手
构建带记忆、Google套件和多AI研究成像的WhatsApp助手
If
Set
Code
+27
71 节点Iniyavan JC
AI Chatbot
AI 社交媒体自动回复插件(Instagram、Facebook 和 WhatsApp)
基于 Llama 3.2 的 AI 社交媒体消息自动回复系统(Instagram、Facebook、WhatsApp)
Code
Switch
Webhook
+7
12 节点Oneclick AI Squad
Support Chatbot
酒店前台 WhatsApp 接待系统
集成 WhatsApp、Gemini 模型切换、Redis 和 Google Sheets 的酒店前台系统
Code
Redis
Whats App
+8
18 节点Akshay
Support Chatbot
ESPOLBot日历|常见问题
基于Telegram、MongoDB和Gemini AI的大学常见问题与日历助手
Set
Code
Html
+14
91 节点Club de Inteligencia Artificial Politécnico CIAP
Support Chatbot
工作流信息
难度等级
高级
节点数量18
分类2
节点类型13
作者
Tharwat Mohamed
@tharwatelsayedI'm a system engineer , who's facinated by ai and automation , I like building systems and agents
外部链接
在 n8n.io 上查看 →
分享此工作流