# Handle WhatsApp support and Cal.com bookings with Gemini: n8n workflow

> Started by an incoming WhatsApp message, and works across Google Docs, Google Sheets and WhatsApp.

Source: https://millionrounds.com/workflow/handle-whatsapp-support-and-cal-com-bookings-with-gemini (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Customer support](https://millionrounds.com/workflows?category=Customer+support#library)

# Handle WhatsApp support and Cal.com bookings with Gemini

Started by an incoming WhatsApp message, and works across Google Docs, Google Sheets and WhatsApp. It puts Gemini behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 22 steps, 2 branches: large, and worth reading before you trust it with anything live.

Large Calls a model: Gemini Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fhandle-whatsapp-support-and-cal-com-bookings-with-gemini)

**22 steps** Large: read it before trusting it with anything live

**2** Branches: places the flow splits

**0** Loops or waits

**3** Services it connects to

## The flow

Starts it 1 Model 5 Logic 11 Service 5

The steps in the order they run, from what starts it.

- 1 **When WhatsApp Message Received** Whats App trigger *Starts it*
- 2 **Google Chat Model (Booking)** Lm Chat Google Gemini *Model*
- 3 **Store Simple Memory** Memory Buffer Window *Model*
- 4 **Google Chat Model (Support)** Lm Chat Google Gemini *Model*
- 5 **Normalize Message Input** Code *Logic*
- 6 **Booking Information Agent** Agent *Model*
- 7 **General Support Agent** Agent *Model*
- 8 **Check 24h Message Window** If *Logic*
- 9 **Parse Booking Data** Code *Logic*
- 10 **Compose WhatsApp Response** Code *Logic*
- 11 **Fetch Current Date & Time** Date Time *Logic*
- 12 **Retrieve Company Knowledge** Google Docs *Service*
- 13 **Send WhatsApp Reopen Message** Whats App *Service*
- 14 **Normalize Date and Time** Code *Logic*
- 15 **Send WhatsApp Response** Whats App *Service*
- 16 **Append Log to Google Sheets** Google Sheets *Service*
- 17 **Build AI Context** Code *Logic*
- 18 **Extract Booking Details** Code *Logic*
- 19 **Check Booking Feasibility** If *Logic*
- 20 **Prepare AI Booking Prompt** Code *Logic*
- 21 **Post Cal Booking** Http Request *Service*
- 22 **Handle Booking Failure** Code *Logic*

## How it's built

- **Starts on:** An incoming WhatsApp message
- **Steps:** 22, with 2 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Docs, Google Sheets, WhatsApp
- **Model:** Gemini
- **Retrieval:** Answers are drawn from documents you supply, not from the model alone

## Questions

What does it need to run?

An n8n account, plus your own Google Docs, Google Sheets and WhatsApp accounts, and a key for Gemini. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an incoming WhatsApp message.

Does it use AI?

Yes. It calls Gemini. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 22 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 22 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fhandle-whatsapp-support-and-cal-com-bookings-with-gemini)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Google Docs](https://millionrounds.com/workflows?service=Google+Docs#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[WhatsApp](https://millionrounds.com/workflows?service=WhatsApp#library)

## Workflows like it

Also customer support, with the same services where possible, closest in size first.

- [**Route WhatsApp customer support with Gemini and Google Sheets** 22 steps · calls a model · Google Calendar, Google Sheets](https://millionrounds.com/workflow/route-whatsapp-customer-support-with-gemini-and-google-sheet)
- [**Auto-reply to FAQs on WhatsApp with Postgres** 22 steps · Postgres, WhatsApp](https://millionrounds.com/workflow/auto-reply-to-faqs-on-whatsapp-with-postgres)
- [**Power WhatsApp Business chat support with OpenAI and Qdrant** 22 steps · Google Drive, WhatsApp](https://millionrounds.com/workflow/power-whatsapp-business-chat-support-with-openai-and-qdrant)
- [**AI email support system: Gmail, Gemini, GPT-4, Slack & Google** 23 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/ai-email-support-system-gmail-gemini-gpt-4-slack-and-google)
- [**Automate multi-channel customer support with Gmail** 21 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/automate-multi-channel-customer-support-with-gmail)
- [**Automate support QA reviews with Intercom and OpenAI** 21 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/automate-support-qa-reviews-with-intercom-and-openai)
