# WhatsApp support bot with Google Drive RAG and OpenAI: n8n workflow

> Started by an incoming WhatsApp message, and works across Google Drive, Supabase vectors and WhatsApp.

Source: https://millionrounds.com/workflow/whatsapp-support-bot-with-google-drive-rag-and-openai (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)

# WhatsApp support bot with Google Drive RAG and OpenAI

Started by an incoming WhatsApp message, and works across Google Drive, Supabase vectors and WhatsApp. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 21 steps, 1 branch: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fwhatsapp-support-bot-with-google-drive-rag-and-openai)

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

**1** Branch: places the flow splits

**0** Loops or waits

**3** Services it connects to

## The flow

Starts it 2 Model 11 Logic 4 Service 4

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

- 1 **Google Drive Trigger** Google Drive trigger *Starts it*
- 2 **Embeddings OpenAI** Embeddings Open Ai *Model*
- 3 **Character Text Splitter** Text Splitter Character Text Splitter *Model*
- 4 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 5 **Embeddings OpenAI1** Embeddings Open Ai *Model*
- 6 **Reranker Cohere** Reranker Cohere *Model*
- 7 **WhatsApp Trigger** Whats App trigger *Starts it*
- 8 **Simple Memory** Memory Buffer Window *Model*
- 9 **Edit Fields** Set *Logic*
- 10 **Supabase Vector Store** Vector Store Supabase *Model*
- 11 **Default Data Loader** Document Default Data Loader *Model*
- 12 **AI Agent** Agent *Model*
- 13 **Kknowledge_base** Vector Store Supabase *Model*
- 14 **Switch** Switch *Logic*
- 15 **Download file** Google Drive *Service*
- 16 **Send message** Whats App *Service*
- 17 **Merge** Merge *Logic*
- 18 **HTTP Request** Http Request *Service*
- 19 **Edit Fields1** Set *Logic*
- 20 **HTTP Request1** Http Request *Service*
- 21 **Translate a recording** Open Ai *Model*

## How it's built

- **Starts on:** An incoming WhatsApp message
- **Steps:** 21, with 1 branch
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Drive, Supabase vectors, WhatsApp
- **Model:** 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 Google Drive, Supabase vectors and WhatsApp accounts, and a key for OpenAI. 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 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 21 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 21 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%2Fwhatsapp-support-bot-with-google-drive-rag-and-openai)
- **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 Drive](https://millionrounds.com/workflows?service=Google+Drive#library)[Supabase vectors](https://millionrounds.com/workflows?service=Supabase+vectors#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.

- [**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)
- [**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)
- [**AI WhatsApp support with Gemini and Twilio** 22 steps · calls a model · Airtable, Google Drive](https://millionrounds.com/workflow/ai-whatsapp-support-with-gemini-and-twilio)
- [**Handle WhatsApp support and Cal.com bookings with Gemini** 22 steps · calls a model · Google Docs, Google Sheets](https://millionrounds.com/workflow/handle-whatsapp-support-and-cal-com-bookings-with-gemini)
- [**Smart email assistant: automate customer support with Supabase** 20 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/smart-email-assistant-automate-customer-support-with-supabas)
- [**Auto-reply to FAQs on WhatsApp with Postgres** 22 steps · Postgres, WhatsApp](https://millionrounds.com/workflow/auto-reply-to-faqs-on-whatsapp-with-postgres)
