Skip to main content

Handle WhatsApp support and Cal.com bookings with Gemini and Google Docs

Workflow preview

Workflow preview
100%
Handle WhatsApp support and Cal.com bookings with Gemini and Google Docs preview
Open on n8n.io

1. Workflow Overview

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 schedu...

Best for

  • Support Chatbot automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.if, n8n-nodes-base.whatsapptrigger, n8n-nodes-base.whatsapp, n8n-nodes-base.googledocs, @n8n/n8n-nodes-langchain.lmchatgooglegemini

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Ravi Patel.

Original n8n.io source

1.1 Workflow description

Title
Handle WhatsApp support and Cal.com bookings with Gemini and Google Docs
Workflow name
Handle WhatsApp support and Cal.com bookings with Gemini and Google Docs

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.

How it works

  1. Triggers when a new WhatsApp message is received and normalizes the sender, message text, and timestamp.
  2. If the message is outside the 24-hour WhatsApp reply window, sends an approved WhatsApp template to reopen the conversation.
  3. Fetches company knowledge from a Google Docs document and compiles it into a concise context block.
  4. Uses Google Gemini to extract booking intent plus name, email, date, time, timezone, and notes from the WhatsApp message, then normalizes the date/time into an ISO start timestamp.
  5. If a complete booking request is detected, calls the Cal.com API to create a booking; otherwise, prepares a fallback reply asking for missing details or sharing a Cal.com booking link.
  6. If no booking is created, uses Google Gemini (with short-term conversation memory) to generate a concise support reply grounded in the Google Docs context.
  7. Sends the final response back via WhatsApp and appends the message, response, intent, and timestamp to Google Sheets.

Setup

  1. Connect WhatsApp Cloud API in n8n, set your WhatsApp Business Phone Number ID, and configure the trigger webhook in Meta to receive message events.
  2. Add Google Docs OAuth credentials and replace the Google Docs document URL/ID used for the company knowledge source.
  3. Add Google Gemini credentials (or configure the Google Gemini nodes) for both the booking extractor and support agent.
  4. Configure Cal.com by setting your Cal API key, Cal event type ID, and the fallback booking link values (Cal username and event slug).
  5. Add Google Sheets OAuth credentials and replace the spreadsheet ID and sheet name where conversation logs are appended.

Requirements

  • This workflow requires an n8n instance with WhatsApp Cloud API, Google Docs, Google Sheets, Google Gemini, and Cal.com API access configured.
  • You must provide an approved WhatsApp reopen template for conversations outside the 24‐hour window, a single Google Doc that acts as the company knowledge base, and at least one properly configured Cal.com event type (with valid event type ID, timezone, and attendee fields) for bookings.

Customization

  • You can swap the Google Doc used for knowledge, tune the Gemini prompts for both support and booking extraction, and adjust booking validation logic (required fields, time normalization, timezone rules) to match your process.
  • It also supports customizing WhatsApp message copy, Cal.com event type details, and the Google Sheets schema so you can log extra metadata like intent, booking status, or escalation flags

Additional info

The workflow is structured into clear stages: WhatsApp intake and 24‐hour gate, knowledge loading from Google Docs, AI-based intent and booking extraction, booking request validation, Cal.com booking or fallback link, AI support response, and logging to Sheets. Each stage is annotated with sticky notes inside the workflow canvas so you can quickly understand and modify behavior without digging through every node.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Sticky Note8

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Sticky Note9

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Extract Booking Details

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 12 - Booking Information Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.7

Block 13 - Parse Booking Data

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 14 - Normalize Date and Time

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 15 - Check Booking Feasibility

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 16 - Handle Booking Failure

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 17 - When WhatsApp Message Received

Type / Role
n8n-nodes-base.whatsAppTrigger - whatsAppTrigger
Config choices
Version 1

Block 18 - Normalize Message Input

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 19 - Check 24h Message Window

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 20 - Send WhatsApp Reopen Message

Type / Role
n8n-nodes-base.whatsApp - whatsApp
Config choices
Version 1

Block 21 - Retrieve Company Knowledge

Type / Role
n8n-nodes-base.googleDocs - googleDocs
Config choices
Version 2

Block 22 - Build AI Context

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 23 - Google Chat Model (Booking)

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 24 - Store Simple Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Showing the first 24 of 32 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Handle WhatsApp support and Cal.com bookings with Gemini and Google Docs
Complexity advanced
Nodes 32
Categories Support Chatbot, AI Chatbot
Author Ravi Patel
Published 03 Jun 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/16087/16087.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Handle WhatsApp support and Cal.com bookings with Gemini and Google Docs do?

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 schedu...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Support Chatbot, AI Chatbot use case.