# Handle healthcare appointments on WhatsApp with Gemini: n8n workflow

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

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

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

# Handle healthcare appointments on WhatsApp with Gemini

Started by an incoming WhatsApp message, and works across Google Calendar, Google Sheets, Redis and WhatsApp. It puts Gemini behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 24 steps, 3 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-healthcare-appointments-on-whatsapp-with-gemini)

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

**3** Branches: places the flow splits

**0** Loops or waits

**4** Services it connects to

## The flow

Starts it 2 Model 6 Logic 5 Service 11

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

- 1 **Postgres Chat Memory** Memory Postgres Chat *Model*
- 2 **Secondary LLM** Lm Chat Google Gemini *Model*
- 3 **Primary LLM** Lm Chat Google Gemini *Model*
- 4 **WhatsApp Trigger** Whats App trigger *Starts it*
- 5 **Get availability in a calendar in Google Calendar** Google Calendar Tool *Service*
- 6 **Create an event in Google Calendar** Google Calendar Tool *Service*
- 7 **Delete an event in Google Calendar** Google Calendar Tool *Service*
- 8 **Update an event in Google Calendar** Google Calendar Tool *Service*
- 9 **Get row(s) in sheet in Google Sheets** Google Sheets Tool *Service*
- 10 **Get Day From Date** Tool Code *Model*
- 11 **Escalate to Human** Tool Workflow *Model*
- 12 **When Executed by Another Workflow** Execute Workflow trigger *Starts it*
- 13 **AI Agent** Agent *Model*
- 14 **Handle Message Updates** If *Logic*
- 15 **Crypto1** Crypto *Service*
- 16 **Send message** Whats App *Service*
- 17 **Verify the name** Code *Logic*
- 18 **Create A Link** Code *Logic*
- 19 **Crypto** Crypto *Service*
- 20 **Redis** Redis *Service*
- 21 **Get if the escalation Exists** Redis *Service*
- 22 **Send template** Whats App *Service*
- 23 **Route according to escalation status** If *Logic*
- 24 **Switch** Switch *Logic*

## How it's built

- **Starts on:** An incoming WhatsApp message
- **Steps:** 24, with 3 branches
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Calendar, Google Sheets, Redis, 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 Calendar, Google Sheets, Redis 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 24 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 24 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-healthcare-appointments-on-whatsapp-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 Calendar](https://millionrounds.com/workflows?service=Google+Calendar#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[Redis](https://millionrounds.com/workflows?service=Redis#library)[WhatsApp](https://millionrounds.com/workflows?service=WhatsApp#library)

## Workflows like it

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

- [**AI Timesheet Generator with Gmail and Calendar** 24 steps · calls a model · GitHub, Gmail](https://millionrounds.com/workflow/ai-timesheet-generator-with-gmail-and-calendar)
- [**Agent personnel with OpenAI and Gmail** 24 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/agent-personnel-with-openai-and-gmail)
- [**Automate tenant rent collection with Sheets and Gmail** 24 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/automate-tenant-rent-collection-with-sheets-and-gmail)
- [**Deploy a Google Gemini AI assistant on WhatsApp with Gmail** 24 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/deploy-a-google-gemini-ai-assistant-on-whatsapp-with-gmail)
- [**Send rent reminders and weekly AI summaries with OpenAI** 24 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/send-rent-reminders-and-weekly-ai-summaries-with-openai)
- [**Summarize Zoom meetings and create tasks with Claude** 24 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/summarize-zoom-meetings-and-create-tasks-with-claude)
