8
n8n 中文网amn8n.com

WhatsApp AI日历机器人 v1 数据库代理

高级

这是一个Support Chatbot, AI Chatbot领域的自动化工作流,包含 19 个节点。主要使用 If, Set, Switch, WhatsApp, Agent 等节点。 WhatsApp预约安排,集成Google日历和Gemini AI

前置要求
  • Google Gemini API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "AjkfI1cEMPxUO5gC",
  "name": "WA-Bot-AI-Calendar-v1-db-agent",
  "nodes": [
    {
      "id": "20ffb9cd-d278-4241-97d3-6f9c0fe321bc",
      "name": "AI 代理",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        780,
        -20
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "c52262f5-ce9e-41e4-a7b6-e91093e4ac03",
      "name": "Google Gemini 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        780,
        -200
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "2e44f41d-c3ec-4b8e-b12c-5ae712d3dbdc",
      "name": "简单记忆",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        940,
        -200
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "4a744a97-f35e-49af-9f72-18d53eb55a0c",
      "name": "Get Calendar Event",
      "type": "n8n-nodes-base.googleCalendarTool",
      "position": [
        780,
        180
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "8ea9f5ff-0470-41f4-af0d-5d68a9754c5b",
      "name": "创建日历事件",
      "type": "n8n-nodes-base.googleCalendarTool",
      "position": [
        980,
        180
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "da450386-4155-4f7f-99b2-ebebebe322b2",
      "name": "Update Calendar Event",
      "type": "n8n-nodes-base.googleCalendarTool",
      "position": [
        1180,
        180
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "2ef794e0-d47f-4072-98ca-665cbda2fbe7",
      "name": "删除日历事件",
      "type": "n8n-nodes-base.googleCalendarTool",
      "position": [
        1380,
        180
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "6de6ecee-b794-45c7-8453-d155b8d805ae",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        200,
        -240
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "4610d75d-a1bd-4be5-b865-395b730495ff",
      "name": "Is start?",
      "type": "n8n-nodes-base.if",
      "position": [
        260,
        -20
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "707f0cd5-ebd2-40d1-a185-147c2d590700",
      "name": "初始化",
      "type": "n8n-nodes-base.set",
      "position": [
        40,
        -20
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "885b5dc0-db76-4a5e-a76b-ec46cce7ce16",
      "name": "定义类型",
      "type": "n8n-nodes-base.switch",
      "position": [
        500,
        -20
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "052eb429-cd1a-458b-be5f-65a871d159f8",
      "name": "Variables",
      "type": "n8n-nodes-base.set",
      "position": [
        -180,
        -20
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "fabff670-bbcd-4cae-8d67-5b6d0986e3cd",
      "name": "Welcome message",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        260,
        -220
      ],
      "webhookId": "97b1bb78-fe29-456b-8ee8-0cffe5514542",
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "71b66a49-d91a-4561-94bf-a2dc215a4c60",
      "name": "Send Answer",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        1160,
        -20
      ],
      "webhookId": "97b1bb78-fe29-456b-8ee8-0cffe5514542",
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "fe637db8-ad05-4b6f-ba96-88a36804c424",
      "name": "WhatsApp 触发器",
      "type": "n8n-nodes-base.whatsAppTrigger",
      "position": [
        -400,
        -20
      ],
      "webhookId": "bfa438ae-596c-41a3-aec4-ae7c4eab877a",
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "7464d0d7-052e-49bc-818f-379e0bf29eed",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -980,
        -240
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "ef02ad73-3532-48bb-b862-59fab53dede7",
      "name": "当收到聊天消息时",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -400,
        -220
      ],
      "webhookId": "15a08e91-f260-4896-b0e2-18ff07486d4d",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "b17acb88-ae7e-4f23-9382-4af7f07d3a67",
      "name": "编辑字段",
      "type": "n8n-nodes-base.set",
      "position": [
        -180,
        -220
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "67bbebc6-4657-4d2e-99be-257af2ee3483",
      "name": "当由另一个工作流执行时",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        -400,
        180
      ],
      "parameters": {},
      "typeVersion": 1.1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "a4df6d28-9b8a-4d38-a770-c5024fef46aa",
  "connections": {
    "AI Agent": {
      "main": [
        [
          {
            "node": "Send Answer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is start?": {
      "main": [
        [
          {
            "node": "Welcome message",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Define Type",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Variables": {
      "main": [
        [
          {
            "node": "Initialization",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Define Type": {
      "main": [
        [],
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Initialization",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Initialization": {
      "main": [
        [
          {
            "node": "Is start?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Welcome message": {
      "main": [
        []
      ]
    },
    "WhatsApp Trigger": {
      "main": [
        [
          {
            "node": "Variables",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Calendar Event": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Create Calendar Event": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Delete Calendar Event": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Update Calendar Event": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When Executed by Another Workflow": {
      "main": [
        [
          {
            "node": "Initialization",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 客服机器人, AI 聊天机器人

需要付费吗?

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

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

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

作者
Andrew

Andrew

@boanse

Analyst-Developer

外部链接
在 n8n.io 查看

分享此工作流