8
n8n 中文网amn8n.com

AI 客户支持代理多通道

高级

这是一个AI领域的自动化工作流,包含 19 个节点。主要使用 If, Set, Notion, OpenAi, Webhook 等节点,结合人工智能技术实现智能自动化。 🤖 AI 客户支持代理 - 永不休息,不再错过任何客户!

前置要求
  • Notion API Key
  • OpenAI API Key
  • HTTP Webhook 端点(n8n 会自动生成)
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "name": "AI 客户支持代理多通道",
  "tags": [
    {
      "id": "ai-agent",
      "name": "AI Agent",
      "createdAt": "2025-01-01T00:00:00.000Z",
      "updatedAt": "2025-01-01T00:00:00.000Z"
    },
    {
      "id": "customer-support",
      "name": "Customer Support",
      "createdAt": "2025-01-01T00:00:00.000Z",
      "updatedAt": "2025-01-01T00:00:00.000Z"
    },
    {
      "id": "automation",
      "name": "Automation",
      "createdAt": "2025-01-01T00:00:00.000Z",
      "updatedAt": "2025-01-01T00:00:00.000Z"
    }
  ],
  "nodes": [
    {
      "id": "sticky_note_intro",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -200,
        200
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "whatsapp_webhook",
      "name": "WhatsApp Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        200,
        300
      ],
      "webhookId": "whatsapp-support-webhook",
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "telegram_webhook",
      "name": "Telegram Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        200,
        450
      ],
      "webhookId": "telegram-support-webhook",
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "email_trigger",
      "name": "邮件触发器",
      "type": "n8n-nodes-base.emailReadImap",
      "position": [
        200,
        600
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "normalize_data",
      "name": "标准化消息数据",
      "type": "n8n-nodes-base.set",
      "position": [
        500,
        450
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "get_conversation_history",
      "name": "获取对话历史",
      "type": "n8n-nodes-base.notion",
      "position": [
        800,
        450
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "sticky_memory",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        780,
        200
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "openai_agent",
      "name": "OpenAI 支持代理",
      "type": "n8n-nodes-base.openAi",
      "position": [
        1100,
        450
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "sticky_ai",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1080,
        80
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "check_escalation",
      "name": "检查是否需要升级处理",
      "type": "n8n-nodes-base.if",
      "position": [
        1400,
        450
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "format_response",
      "name": "格式化 AI 响应",
      "type": "n8n-nodes-base.set",
      "position": [
        1700,
        350
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "send_whatsapp_response",
      "name": "发送 WhatsApp 回复",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2000,
        200
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "send_telegram_response",
      "name": "发送 Telegram 响应",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2000,
        350
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "send_email_response",
      "name": "发送邮件回复",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        2000,
        500
      ],
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "save_conversation",
      "name": "保存对话记录",
      "type": "n8n-nodes-base.notion",
      "position": [
        2300,
        450
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "notify_human_agents",
      "name": "通知人工客服",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1700,
        600
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "sticky_escalation",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1620,
        720
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "sticky_analytics",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2280,
        200
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "webhook_response",
      "name": "Webhook响应",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        2600,
        450
      ],
      "parameters": {},
      "typeVersion": 1.1
    }
  ],
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "updatedAt": "2025-01-01T00:00:00.000Z",
  "versionId": "1",
  "staticData": null,
  "connections": {
    "openai_agent": {
      "main": [
        [
          {
            "node": "check_escalation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "email_trigger": {
      "main": [
        [
          {
            "node": "normalize_data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "normalize_data": {
      "main": [
        [
          {
            "node": "get_conversation_history",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "format_response": {
      "main": [
        [
          {
            "node": "send_whatsapp_response",
            "type": "main",
            "index": 0
          },
          {
            "node": "send_telegram_response",
            "type": "main",
            "index": 0
          },
          {
            "node": "send_email_response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "check_escalation": {
      "main": [
        [
          {
            "node": "format_response",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "format_response",
            "type": "main",
            "index": 0
          },
          {
            "node": "notify_human_agents",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "telegram_webhook": {
      "main": [
        [
          {
            "node": "normalize_data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "whatsapp_webhook": {
      "main": [
        [
          {
            "node": "normalize_data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "save_conversation": {
      "main": [
        [
          {
            "node": "webhook_response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "send_email_response": {
      "main": [
        [
          {
            "node": "save_conversation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "send_telegram_response": {
      "main": [
        [
          {
            "node": "save_conversation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "send_whatsapp_response": {
      "main": [
        [
          {
            "node": "save_conversation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "get_conversation_history": {
      "main": [
        [
          {
            "node": "openai_agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "triggerCount": 3
}
常见问题

如何使用这个工作流?

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

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

高级 - 人工智能

需要付费吗?

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

工作流信息
难度等级
高级
节点数量19
分类1
节点类型10
难度说明

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

作者
Amanda Benks

Amanda Benks

@amanda

Hi loves! I've been making workflows for n8n for two years, and I hope you like my flows <3

外部链接
在 n8n.io 查看

分享此工作流