# AI WhatsApp support with Gemini and Twilio: n8n workflow

> Started by an event in a connected app, and works across Airtable, Google Drive, Supabase, Supabase vectors and one other.

Source: https://millionrounds.com/workflow/ai-whatsapp-support-with-gemini-and-twilio (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)

# AI WhatsApp support with Gemini and Twilio

Started by an event in a connected app, and works across Airtable, Google Drive, Supabase, Supabase vectors and one other. It puts Gemini and OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 22 steps, 1 branch, 1 loop or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: Gemini, OpenAI Retrieval

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

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

**1** Branch: places the flow splits

**1** Loop or waits

**5** Services it connects to

## The flow

Starts it 3 Model 10 Logic 4 Service 5

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

- 1 **Google Drive Trigger** Google Drive trigger *Starts it*
- 2 **Google Drive Trigger1** Google Drive trigger *Starts it*
- 3 **Recursive Character Text Splitter** Text Splitter Recursive Character Text Splitter *Model*
- 4 **Embeddings OpenAI** Embeddings Open Ai *Model*
- 5 **Think** Tool Think *Model*
- 6 **Calculator** Tool Calculator *Model*
- 7 **conversation buffer** Memory Buffer Window *Model*
- 8 **Twilio (whatsapp) Trigger** Twilio trigger *Starts it*
- 9 **Airtable CRM** Airtable Tool *Service*
- 10 **Google Gemini (the brain)** Lm Chat Google Gemini *Model*
- 11 **Set the fields for mapping** Set *Logic*
- 12 **Default Data Loader** Document Default Data Loader *Model*
- 13 **Supabase Vector Store** Vector Store Supabase *Model*
- 14 **Knowledgebase** Vector Store Supabase *Model*
- 15 **Whatsapp Support Agent** Agent *Model*
- 16 **human in the loop** Http Request *Service*
- 17 **Deletes old records** Supabase *Service*
- 18 **Send an SMS/MMS/WhatsApp message** Twilio *Service*
- 19 **2hour Filter** Filter *Logic*
- 20 **Loop Over Items** Split In Batches *Logic*
- 21 **Validate text input** If *Logic*
- 22 **Download file** Google Drive *Service*

## How it's built

- **Starts on:** An event in a connected app
- **Steps:** 22, with 1 branch, 1 loop or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Airtable, Google Drive, Supabase, Supabase vectors, Twilio
- **Model:** Gemini, OpenAI
- **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 Airtable, Google Drive, Supabase, Supabase vectors and Twilio accounts, and a key for Gemini and OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

Does it use AI?

Yes. It calls Gemini and OpenAI. 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%2Fai-whatsapp-support-with-gemini-and-twilio)
- **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.

[Airtable](https://millionrounds.com/workflows?service=Airtable#library)[Google Drive](https://millionrounds.com/workflows?service=Google+Drive#library)[Supabase](https://millionrounds.com/workflows?service=Supabase#library)[Supabase vectors](https://millionrounds.com/workflows?service=Supabase+vectors#library)[Twilio](https://millionrounds.com/workflows?service=Twilio#library)

## Workflows like it

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

- [**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)
- [**Automated Slack IT helpdesk with OpenAI and Supabase** 21 steps · calls a model · Slack, Supabase vectors](https://millionrounds.com/workflow/automated-slack-it-helpdesk-with-openai-and-supabase)
- [**Create a WhatsApp customer support bot with OpenAI** 23 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/create-a-whatsapp-customer-support-bot-with-openai)
- [**Run a customer support RAG chatbot with OpenAI** 21 steps · calls a model · Google Drive, Telegram](https://millionrounds.com/workflow/run-a-customer-support-rag-chatbot-with-openai)
- [**WhatsApp support bot with Google Drive RAG and OpenAI** 21 steps · calls a model · Google Drive, Supabase vectors](https://millionrounds.com/workflow/whatsapp-support-bot-with-google-drive-rag-and-openai)
