8
n8n 中文网amn8n.com

WhatsApp自动化修复

高级

这是一个Support, AI领域的自动化工作流,包含 22 个节点。主要使用 If, Set, Gmail, WhatsApp, Agent 等节点,结合人工智能技术实现智能自动化。 WhatsApp AI客服机器人,使用GPT-4o-mini和Gmail提醒

前置要求
  • Google 账号和 Gmail API 凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "eLe4P1EPCbnvZP1w",
  "meta": {
    "instanceId": "ab1720870fab17b6404efbb01504e7256f1d0cefdf84b7d41d963a944f625347",
    "templateCredsSetupCompleted": true
  },
  "name": "WhatsApp 自动化修复",
  "tags": [],
  "nodes": [
    {
      "id": "976144b1-2f68-46b8-b384-18444d312c8c",
      "name": "AI 代理",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1800,
        160
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "2f2ff112-50b7-4cbd-977c-a300b1f2927a",
      "name": "输入提交",
      "type": "n8n-nodes-base.whatsAppTrigger",
      "position": [
        900,
        180
      ],
      "webhookId": "ac2714e9-391b-4985-8dcd-f1278055c630",
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "2aacbbb7-d5f5-4ac2-8cb4-53871281b006",
      "name": "路标",
      "type": "n8n-nodes-base.if",
      "position": [
        1180,
        180
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "f657ff33-d305-48fa-8918-402e47dfc313",
      "name": "是文本消息吗?",
      "type": "n8n-nodes-base.if",
      "position": [
        1500,
        440
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "117363c3-d1d7-4b28-99c7-9d82907883ea",
      "name": "备用文本",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        1480,
        760
      ],
      "webhookId": "757c31b2-f5bd-4bf6-9ac0-c70b556083c7",
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "f9e14861-22e1-48cb-98a7-57c72dd3387e",
      "name": "OpenAI 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1760,
        560
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "ac72ac2b-c677-436a-a859-49ff82ad7704",
      "name": "简单记忆",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        1980,
        560
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "cf3d77d2-65a5-43ca-970e-c7ca185d7472",
      "name": "无操作,不执行任何操作",
      "type": "n8n-nodes-base.noOp",
      "position": [
        2560,
        760
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "4bf7b083-f5de-4b4d-b5e7-e279c119d2fb",
      "name": "Gmail 输出设置",
      "type": "n8n-nodes-base.set",
      "position": [
        2580,
        160
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "0730da65-1887-41a7-94bf-93afd8e1beeb",
      "name": "发送 Gmail 通知",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2240,
        760
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "17d106a1-c4d5-4c49-bfd8-c9021161a94e",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        820,
        -20
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "6aadac5e-5b90-485e-9f9c-86605e5b29a3",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1080,
        -20
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "3eea91d7-41de-4249-b728-41e9970c72bb",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1380,
        -20
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "a23493ca-afd9-4eef-8730-9da834a3fb83",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1680,
        -20
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "fb726309-178c-4c6a-bed5-2e6e4242e1f0",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1380,
        620
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "dd1df860-554a-4670-942f-2226e2b890d6",
      "name": "便签5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2160,
        -20
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "f25829ac-0218-47c0-bb28-8e1bdc58f1ec",
      "name": "### 需要帮助?",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2480,
        -20
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "e4d5f2b1-0192-4631-bfed-1bf72c321dec",
      "name": "## 试试看!",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1680,
        360
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "df60bbea-da37-4183-9d53-a5128391862b",
      "name": "GET 模型",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1920,
        360
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "f66e9ac5-d173-40be-80ff-dfe824334189",
      "name": "## 1. 创建新的自定义 OpenAI 凭据",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2160,
        360
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "673e0ae9-d824-4919-94a5-9a817e5b218f",
      "name": "便签10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2480,
        360
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "d48222ff-b29a-4961-9808-68e497f872b8",
      "name": "WhatsApp 回复发送器",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        2280,
        160
      ],
      "webhookId": "472d40c3-4523-4f1e-b6a6-3b208cd2ecf8",
      "parameters": {},
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "155c1f87-f41f-41f3-9f44-9f0ff7afda23",
  "connections": {
    "AI Agent": {
      "main": [
        [
          {
            "node": "WhatsApp Reply Sender",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Signpost": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          },
          {
            "node": "Is Text Message?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fallback Text": {
      "main": [
        [
          {
            "node": "Send Gmail Notifications",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Gmail Output Set": {
      "main": [
        [
          {
            "node": "Send Gmail Notifications",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is Text Message?": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Fallback Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Input Submissions": {
      "main": [
        [
          {
            "node": "Signpost",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "WhatsApp Reply Sender": {
      "main": [
        [
          {
            "node": "Gmail Output Set",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Gmail Notifications": {
      "main": [
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 客户支持, 人工智能

需要付费吗?

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

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

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

外部链接
在 n8n.io 查看

分享此工作流