AI Telegram 和 WhatsApp Business 代理
高级
这是一个AI领域的自动化工作流,包含 21 个节点。主要使用 If, Set, Code, OpenAi, Webhook 等节点,结合人工智能技术实现智能自动化。 AI 驱动的 Telegram 和 WhatsApp Business 代理工作流
前置要求
- •OpenAI API Key
- •HTTP Webhook 端点(n8n 会自动生成)
- •Telegram Bot Token
- •可能需要目标 API 的认证凭证
- •Google Sheets API 凭证
使用的节点 (21)
分类
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"name": "AI Telegram 和 WhatsApp Business 代理",
"tags": [
{
"id": "telegram",
"name": "Telegram",
"createdAt": "2025-01-01T00:00:00.000Z",
"updatedAt": "2025-01-01T00:00:00.000Z"
},
{
"id": "whatsapp",
"name": "WhatsApp",
"createdAt": "2025-01-01T00:00:00.000Z",
"updatedAt": "2025-01-01T00:00:00.000Z"
},
{
"id": "ai-agent",
"name": "AI Agent",
"createdAt": "2025-01-01T00:00:00.000Z",
"updatedAt": "2025-01-01T00:00:00.000Z"
},
{
"id": "customer-service",
"name": "Customer Service",
"createdAt": "2025-01-01T00:00:00.000Z",
"updatedAt": "2025-01-01T00:00:00.000Z"
}
],
"nodes": [
{
"id": "intro_sticky",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-240,
180
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "telegram_trigger",
"name": "Telegram 机器人",
"type": "n8n-nodes-base.telegramTrigger",
"position": [
160,
280
],
"webhookId": "telegram-ai-agent",
"parameters": {},
"typeVersion": 1.1
},
{
"id": "whatsapp_webhook",
"name": "WhatsApp Webhook",
"type": "n8n-nodes-base.webhook",
"position": [
160,
420
],
"webhookId": "whatsapp-ai-webhook",
"parameters": {},
"typeVersion": 2
},
{
"id": "normalize_message",
"name": "规范化消息数据",
"type": "n8n-nodes-base.set",
"position": [
460,
350
],
"parameters": {},
"typeVersion": 3.4
},
{
"id": "processing_sticky",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
440,
20
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "get_customer_data",
"name": "获取客户历史",
"type": "n8n-nodes-base.googleSheets",
"position": [
760,
350
],
"parameters": {},
"typeVersion": 4.4
},
{
"id": "build_context",
"name": "构建 AI 上下文",
"type": "n8n-nodes-base.code",
"position": [
1060,
350
],
"parameters": {},
"typeVersion": 2
},
{
"id": "intelligence_sticky",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
740,
40
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "ai_assistant",
"name": "AI 业务助手",
"type": "n8n-nodes-base.openAi",
"position": [
1360,
350
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "ai_sticky",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
1340,
-20
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "process_response",
"name": "处理 AI 响应",
"type": "n8n-nodes-base.code",
"position": [
1660,
350
],
"parameters": {},
"typeVersion": 2
},
{
"id": "platform_router",
"name": "平台路由器",
"type": "n8n-nodes-base.if",
"position": [
1960,
350
],
"parameters": {},
"typeVersion": 2
},
{
"id": "send_telegram",
"name": "发送 Telegram 消息",
"type": "n8n-nodes-base.telegram",
"position": [
2260,
280
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "send_whatsapp",
"name": "发送 WhatsApp 消息",
"type": "n8n-nodes-base.httpRequest",
"position": [
2260,
420
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "delivery_sticky",
"name": "便签4",
"type": "n8n-nodes-base.stickyNote",
"position": [
2240,
60
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "log_conversation",
"name": "记录对话",
"type": "n8n-nodes-base.googleSheets",
"position": [
2560,
350
],
"parameters": {},
"typeVersion": 4.4
},
{
"id": "update_customer",
"name": "更新客户记录",
"type": "n8n-nodes-base.googleSheets",
"position": [
2860,
350
],
"parameters": {},
"typeVersion": 4.4
},
{
"id": "check_escalation",
"name": "检查升级",
"type": "n8n-nodes-base.if",
"position": [
2560,
200
],
"parameters": {},
"typeVersion": 2
},
{
"id": "notify_team",
"name": "通知支持团队",
"type": "n8n-nodes-base.httpRequest",
"position": [
2860,
200
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "analytics_sticky",
"name": "便签5",
"type": "n8n-nodes-base.stickyNote",
"position": [
2540,
480
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "webhook_response",
"name": "Webhook 响应",
"type": "n8n-nodes-base.respondToWebhook",
"position": [
3160,
420
],
"parameters": {},
"typeVersion": 1.1
}
],
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"updatedAt": "2025-01-01T00:00:00.000Z",
"versionId": "1",
"staticData": null,
"connections": {
"ai_assistant": {
"main": [
[
{
"node": "process_response",
"type": "main",
"index": 0
}
]
]
},
"build_context": {
"main": [
[
{
"node": "ai_assistant",
"type": "main",
"index": 0
}
]
]
},
"send_telegram": {
"main": [
[
{
"node": "log_conversation",
"type": "main",
"index": 0
}
]
]
},
"send_whatsapp": {
"main": [
[
{
"node": "log_conversation",
"type": "main",
"index": 0
}
]
]
},
"platform_router": {
"main": [
[
{
"node": "send_telegram",
"type": "main",
"index": 0
}
],
[
{
"node": "send_whatsapp",
"type": "main",
"index": 0
}
]
]
},
"update_customer": {
"main": [
[
{
"node": "webhook_response",
"type": "main",
"index": 0
}
]
]
},
"check_escalation": {
"main": [
[
{
"node": "notify_team",
"type": "main",
"index": 0
}
],
[]
]
},
"log_conversation": {
"main": [
[
{
"node": "update_customer",
"type": "main",
"index": 0
}
]
]
},
"process_response": {
"main": [
[
{
"node": "platform_router",
"type": "main",
"index": 0
},
{
"node": "check_escalation",
"type": "main",
"index": 0
}
]
]
},
"telegram_trigger": {
"main": [
[
{
"node": "normalize_message",
"type": "main",
"index": 0
}
]
]
},
"whatsapp_webhook": {
"main": [
[
{
"node": "normalize_message",
"type": "main",
"index": 0
}
]
]
},
"get_customer_data": {
"main": [
[
{
"node": "build_context",
"type": "main",
"index": 0
}
]
]
},
"normalize_message": {
"main": [
[
{
"node": "get_customer_data",
"type": "main",
"index": 0
}
]
]
}
},
"triggerCount": 2
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 人工智能
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
📊 WhatsApp和Telegram的AI令牌追踪器 - 将AI使用情况保存到Google表格
📊 WhatsApp和Telegram的AI令牌追踪器 - 将AI使用情况保存到Google表格
If
Set
Code
+15
37 节点Amanda Benks
财务
[模板] AI宠物店 v8
🐶 AI宠物店助手 - 集成GPT-4o、Google日历和WhatsApp/Instagram/Facebook
If
N8n
Set
+38
244 节点Amanda Benks
销售
WhatsApp群组摘要器 - 使用Evolution API
💬 每日WhatsApp群组摘要 - 集成GPT-4o、Google表格和Evolution API
If
Set
Code
+9
22 节点Amanda Benks
人工智能
AI 客户支持代理多通道
🤖 AI 客户支持代理 - 永不休息,不再错过任何客户!
If
Set
Notion
+7
19 节点Amanda Benks
人工智能
AI 代理餐厅 [模板]
🤖 WhatsApp、Instagram 和 Messenger 的 AI 餐厅助手
If
N8n
Set
+37
239 节点Amanda Benks
其他
🌍 AI WhatsApp翻译器 + 语音转录器与HubSpot集成
基于OpenAI Whisper和GPT-4的多语言WhatsApp翻译器,集成HubSpot
If
N8n
Set
+18
107 节点Amanda Benks
其他
工作流信息
难度等级
高级
节点数量21
分类1
节点类型11
作者
Amanda Benks
@amandaHi loves! I've been making workflows for n8n for two years, and I hope you like my flows <3
外部链接
在 n8n.io 查看 →
分享此工作流