8
n8n 中文网amn8n.com

WhatsApp助手AI代理小型企业

中级

这是一个Support, AI, IT Ops领域的自动化工作流,包含 13 个节点。主要使用 If, WhatsApp, Agent, WhatsAppTrigger, LmChatGroq 等节点,结合人工智能技术实现智能自动化。 基于Groq大语言模型和对话记忆的WhatsApp自动回复

前置要求
  • AI 服务 API Key(如 OpenAI、Anthropic 等)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "e1kaHRmj9xd4n9Wa",
  "meta": {
    "instanceId": "796f06105ee37f33ca7e711ecf113eed8aaab36fd48871cd0a2584212b26747e",
    "templateCredsSetupCompleted": true
  },
  "name": "WhatsApp 助手 AI 代理小型企业",
  "tags": [],
  "nodes": [
    {
      "id": "ed6f6f8b-6009-4c2e-89ad-29016149cc07",
      "name": "AI 代理",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        180,
        -80
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "f02335c3-c09e-4408-a409-7cf905d32521",
      "name": "Groq聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatGroq",
      "position": [
        160,
        120
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "9fb63d68-c966-42a6-a948-d78bbc6d7d51",
      "name": "简单记忆",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        360,
        120
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "fe7973ff-3f7f-4406-b4f7-067a14440475",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -700,
        -260
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "3d6c3777-a36f-4123-a0fe-efdab2f39208",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -360,
        -260
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "28d6cc5c-1842-4db3-8a1f-1ad96c67a797",
      "name": "便签 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        -260
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "4144e721-23d5-42f7-83a2-30cc17439b6f",
      "name": "便签 3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        100,
        -260
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "d62c10eb-e957-470d-ac18-649700cd9287",
      "name": "便签 4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        100,
        100
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "508bcd49-0f70-41c0-9d65-48a4a24bd7ea",
      "name": "便签 5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        320,
        100
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "bcd60f25-2b14-43a7-947f-ecb69006421c",
      "name": "便签6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        520,
        -260
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "9ebe709e-261a-44ec-8b25-8ef35d84cf2d",
      "name": "输出",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        640,
        -80
      ],
      "webhookId": "472d40c3-4523-4f1e-b6a6-3b208cd2ecf8",
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "aa449ae1-8498-48c1-b810-d190c6e84041",
      "name": "输入提交",
      "type": "n8n-nodes-base.whatsAppTrigger",
      "position": [
        -280,
        -60
      ],
      "webhookId": "ac2714e9-391b-4985-8dcd-f1278055c630",
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "18fd38c2-ca44-4fe0-99cc-5b2212dd42e2",
      "name": "路标",
      "type": "n8n-nodes-base.if",
      "position": [
        -60,
        -60
      ],
      "parameters": {},
      "typeVersion": 2.2
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "0aa1beab-f36d-4c7a-a197-e8654fab222f",
  "connections": {
    "AI Agent": {
      "main": [
        [
          {
            "node": "Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Signpost": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Groq Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Input Submissions": {
      "main": [
        [
          {
            "node": "Signpost",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 客户支持, 人工智能, IT 运维

需要付费吗?

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

工作流信息
难度等级
中级
节点数量13
分类3
节点类型7
难度说明

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

外部链接
在 n8n.io 查看

分享此工作流