8
n8n 中文网amn8n.com

使用 Google Gemini 发送 Cal.com 和 Calendly 预订的 WhatsApp 通知

中级

这是一个Personal Productivity, Multimodal AI领域的自动化工作流,包含 8 个节点。主要使用 WhatsApp, Aggregate, CalTrigger, Agent, CalendlyTrigger 等节点。 使用 Google Gemini 发送 Cal.com 和 Calendly 预订的 WhatsApp 通知

前置要求
  • Google Gemini API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "ff55114c658318ca8eb8b8cbfacb99a99b0beaeffb5308d281d6bd90f49edeb9",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "a68e6e70-f71f-41ff-8ac3-d1906cdd67d2",
      "name": "Google Gemini 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        368,
        304
      ],
      "parameters": {
        "options": {}
      },
      "credentials": {
        "googlePalmApi": {
          "id": "PChbLEAhmRPP7vE1",
          "name": "CashMate google api"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "b3138023-015d-4ef1-8283-a8ca5ee4ec36",
      "name": "简单记忆",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        512,
        320
      ],
      "parameters": {
        "sessionKey": "heello",
        "sessionIdType": "customKey"
      },
      "typeVersion": 1.3
    },
    {
      "id": "25656038-1452-4ec9-b915-36ca81ca77fc",
      "name": "Cal.com 事件",
      "type": "n8n-nodes-base.calTrigger",
      "position": [
        -80,
        192
      ],
      "webhookId": "f253b766-4a3f-4e77-af3e-a149cc072937",
      "parameters": {
        "events": [
          "BOOKING_RESCHEDULED",
          "BOOKING_CREATED",
          "BOOKING_CANCELLED",
          "MEETING_ENDED"
        ],
        "options": {}
      },
      "credentials": {
        "calApi": {
          "id": "irFkmg2aW6irQP7E",
          "name": "Cal account"
        }
      },
      "typeVersion": 2
    },
    {
      "id": "e70b9230-97e9-418d-bdfe-5603bdf50945",
      "name": "Calendly 事件",
      "type": "n8n-nodes-base.calendlyTrigger",
      "position": [
        -80,
        0
      ],
      "webhookId": "ab054f51-87a1-4371-9b4e-d3f5beb0cc1d",
      "parameters": {
        "events": [
          "invitee.created",
          "invitee.canceled"
        ],
        "authentication": "oAuth2"
      },
      "credentials": {
        "calendlyOAuth2Api": {
          "id": "dA6XU5hyJu6Cx30R",
          "name": "Calendly account"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "13ab2534-452a-48b1-b7a8-71a1353bb804",
      "name": "合并数据",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        144,
        96
      ],
      "parameters": {
        "options": {},
        "aggregate": "aggregateAllItemData"
      },
      "typeVersion": 1
    },
    {
      "id": "2c340a24-4777-4892-a0f1-d07f477954d4",
      "name": "消息生成器",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        368,
        96
      ],
      "parameters": {
        "text": "={{ $json.data.toJsonString() }}",
        "options": {
          "systemMessage": "You are an automation that listens to booking events from Cal.com or Calendly and sends an instant WhatsApp message to the meeting host.\n\nThe output must be ONLY the WhatsApp message body — no explanations, no labels, no markdown instructions.\n\nRules:\n\nUse WhatsApp markdown formatting for readability:\n\nBold: text\n\nItalic: text (optional)\n\nUse line breaks generously to separate sections.\n\nAlways put date and time on separate lines.\n\nNo duplicate fields. If data is missing, skip that line entirely.\n\nIf event_link is identical to location, show it only once (under Location).\n\nUse emojis sparingly:\n\n🔔 for New Booking\n\n🔄 for Rescheduled\n\n❌ for Cancelled\n\n✅ for Meeting Ended\n\n📄 for event links\n\n🗒️ for notes\n\nKeep spacing clean — one blank line between main sections (guest info, date/time, location, notes, link).\n\nIf multiple guests, show in the format:\nName (email), Name2 (email2)\n\nAlways end with:\n— Your Scheduling Assistant\n\nBooking Created:\nHello {{owner_name}},\n\n🔔 New Booking Alert!\n\nGuest(s): {{#each guests}}{{this.name}} ({{this.email}}){{#unless @last}}, {{/unless}}{{/each}}\nEvent: {{event_name}}\nDate:\n{{date}}\nTime:\n{{time}} ({{timezone}})\n\n{{#if location}}Location:\n{{location}}{{/if}}\n\n{{#if guest_notes}}🗒️ Notes:\n{{guest_notes}}{{/if}}\n\n{{#if event_link}}\n{{#unless (eq event_link location)}}\n📄 View Details:\n{{event_link}}\n{{/unless}}\n{{/if}}\n\n— Your Scheduling Assistant\n\nBooking Rescheduled:\nHello {{owner_name}},\n\n🔄 Booking Rescheduled!\n\nGuest(s): {{#each guests}}{{this.name}} ({{this.email}}){{#unless @last}}, {{/unless}}{{/each}}\nEvent: {{event_name}}\nOld Date:\n{{old_date}}\nOld Time:\n{{old_time}} ({{old_timezone}})\nNew Date:\n{{new_date}}\nNew Time:\n{{new_time}} ({{new_timezone}})\n\n{{#if location}}Location:\n{{location}}{{/if}}\n\n{{#if guest_notes}}🗒️ Notes:\n{{guest_notes}}{{/if}}\n{{#if reschedule_reason}}(Reschedule Reason: {{reschedule_reason}}){{/if}}\n\n{{#if event_link}}\n{{#unless (eq event_link location)}}\n📄 View Details:\n{{event_link}}\n{{/unless}}\n{{/if}}\n\n— Your Scheduling Assistant\n\nBooking Cancelled:\nHello {{owner_name}},\n\n❌ Booking Cancelled!\n\nGuest(s): {{#each guests}}{{this.name}} ({{this.email}}){{#unless @last}}, {{/unless}}{{/each}}\nEvent: {{event_name}}\nOriginal Date:\n{{date}}\nOriginal Time:\n{{time}} ({{timezone}})\n\n{{#if location}}Location:\n{{location}}{{/if}}\n\n{{#if guest_notes}}🗒️ Notes:\n{{guest_notes}}{{/if}}\n\n{{#if event_link}}\n{{#unless (eq event_link location)}}\n📄 View Details:\n{{event_link}}\n{{/unless}}\n{{/if}}\n\n— Your Scheduling Assistant\n\nMeeting Ended:\nHello {{owner_name}},\n\n✅ Meeting Ended\n\nGuest(s): {{#each guests}}{{this.name}} ({{this.email}}){{#unless @last}}, {{/unless}}{{/each}}\nEvent: {{event_name}}\nDate:\n{{date}}\nTime:\n{{time}} ({{timezone}})\n\n{{#if location}}Location:\n{{location}}{{/if}}\n\n{{#if event_link}}\n{{#unless (eq event_link location)}}\n📄 View Details:\n{{event_link}}\n{{/unless}}\n{{/if}}\n\n— Your Scheduling Assistant"
        },
        "promptType": "define"
      },
      "typeVersion": 2.2
    },
    {
      "id": "9df30eeb-afdd-4ed7-8ef5-792ac47a9a0e",
      "name": "WhatsApp 通知",
      "type": "n8n-nodes-base.whatsApp",
      "position": [
        720,
        96
      ],
      "webhookId": "11c3992f-8721-4ceb-9b99-818111c1df5d",
      "parameters": {
        "textBody": "={{ $json.output }}",
        "operation": "send",
        "phoneNumberId": "661627073710535",
        "additionalFields": {},
        "recipientPhoneNumber": "mobile number"
      },
      "credentials": {
        "whatsAppApi": {
          "id": "TFzLdM5kbfgeAOQ6",
          "name": "cashmate production creds"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "71bf0b28-f188-4d4b-b282-03d78c4a77eb",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -768,
        -128
      ],
      "parameters": {
        "width": 1808,
        "height": 672,
        "content": "## 📅 日历预订通知到 WhatsApp"
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "Merge Data": {
      "main": [
        [
          {
            "node": "Message Generator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "Message Generator",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Cal.com Events ": {
      "main": [
        [
          {
            "node": "Merge Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Calendly Events": {
      "main": [
        [
          {
            "node": "Merge Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Message Generator": {
      "main": [
        [
          {
            "node": "WhatsApp Notification",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Message Generator",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 个人效率, 多模态 AI

需要付费吗?

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

工作流信息
难度等级
中级
节点数量8
分类2
节点类型8
难度说明

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

作者
Roshan Ramani

Roshan Ramani

@rawsun007

I love building smart n8n automations that actually work reliably. My focus is on making everyday tasks like email, social media, and CRM workflows simpler using AI. I've shared templates in the n8n community, including a WhatsApp Expense Tracker that people really enjoy. What keeps me excited is constantly trying new things - testing fresh nodes, playing with AI tools like LangChain, and discovering creative ways to connect systems!

外部链接
在 n8n.io 查看

分享此工作流