Handle WhatsApp support and Cal.com bookings with Gemini and Google Docs
Needs changesWhat this workflow does
This AI workflow has 22 nodes and runs on WhatsApp events (messages). Along the way it connects WhatsApp Business Cloud, Google Docs, Google Gemini Chat Model and Google Sheets. It also calls api.cal.com over HTTP.
How it runs
Trigger: On WhatsApp events (messages).
- Normalize Message Input (Code): runs custom JavaScript code
- Check 24h Message Window (If): checks a condition and branches into true / false
- Retrieve Company Knowledge (Google Docs): get
- Send WhatsApp Reopen Message (WhatsApp Business Cloud): uses WhatsApp Business Cloud
- Build AI Context (Code): runs custom JavaScript code
- Extract Booking Details (Code): runs custom JavaScript code
- Prepare AI Booking Prompt (Code): runs custom JavaScript code
- Booking Information Agent (AI Agent): runs an AI agent, with model: Google Chat Model (Booking)
- General Support Agent (AI Agent): runs an AI agent, with model: Google Chat Model (Support); memory: Store Simple Memory
- Parse Booking Data (Code): runs custom JavaScript code
…plus 8 more steps. See the full node list below.
Services it uses
HTTP calls to: api.cal.com
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in Booking Information Agent (v1.7), General Support Agent (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Booking Information Agent (v1.7), General Support Agent (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (11)
- Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - If
n8n-nodes-base.if - WhatsApp Trigger
n8n-nodes-base.whatsAppTrigger - WhatsApp Business Cloud
n8n-nodes-base.whatsApp - Google Docs
n8n-nodes-base.googleDocs - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - HTTP Request
n8n-nodes-base.httpRequest - Date & Time
n8n-nodes-base.dateTime - Google Sheets
n8n-nodes-base.googleSheets
From the author
Quick overview This workflow answers WhatsApp support messages using Google Gemini with company context from Google Docs, and automatically creates Cal.com bookings when users provide enough scheduling details, then logs each conversation to Google Sheets.…