# Complete business WhatsApp AI-powered RAG chatbot with OpenAI: n8n workflow

> Started by another system calling it, and works across Google Drive, Qdrant and WhatsApp. It puts OpenAI behind a retrieval step, so answers are drawn from...

Source: https://millionrounds.com/workflow/complete-business-whatsapp-ai-powered-rag-chatbot-with-opena (Millionrounds; every figure on the page links to its filing or article)

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

# Complete business WhatsApp AI-powered RAG chatbot with OpenAI

Started by another system calling it, and works across Google Drive, Qdrant and WhatsApp. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 22 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%2Fcomplete-business-whatsapp-ai-powered-rag-chatbot-with-opena)

**22 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 4 Model 11 Logic 1 Service 6

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

- 1 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 2 **When clicking ‘Test workflow’** Manual trigger *Starts it*
- 3 **Embeddings OpenAI** Embeddings Open Ai *Model*
- 4 **Token Splitter** Text Splitter Token Splitter *Model*
- 5 **Verify** Webhook *Starts it*
- 6 **Respond** Webhook *Starts it*
- 7 **Window Buffer Memory** Memory Buffer Window *Model*
- 8 **OpenAI Chat Model1** Lm Chat Open Ai *Model*
- 9 **Embeddings OpenAI2** Embeddings Open Ai *Model*
- 10 **AI Agent** Agent *Model*
- 11 **Create collection** Http Request *Service*
- 12 **Refresh collection** Http Request *Service*
- 13 **Qdrant Vector Store** Vector Store Qdrant *Model*
- 14 **Default Data Loader** Document Default Data Loader *Model*
- 15 **Respond to Webhook** Respond To Webhook *Starts it*
- 16 **is Message?** If *Logic*
- 17 **RAG** Tool Vector Store *Model*
- 18 **Retrive Qdrant Vector Store** Vector Store Qdrant *Model*
- 19 **Send** Whats App *Service*
- 20 **Get folder** Google Drive *Service*
- 21 **Only message** Whats App *Service*
- 22 **Download Files** Google Drive *Service*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 22, with 1 branch
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Drive, Qdrant, 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, Qdrant 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 another system calling it.

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 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%2Fcomplete-business-whatsapp-ai-powered-rag-chatbot-with-opena)
- **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)[Qdrant](https://millionrounds.com/workflows?service=Qdrant#library)[WhatsApp](https://millionrounds.com/workflows?service=WhatsApp#library)

## Workflows like it

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

- [**AI agent - RAG Telegram chatbot n8n with OpenAI** 22 steps · calls a model · Google Drive, Supabase vectors](https://millionrounds.com/workflow/ai-agent-rag-telegram-chatbot-n8n-with-openai)
- [**Generate AI camera moves with Seedance** 22 steps · calls a model · ClickUp, Google Drive](https://millionrounds.com/workflow/generate-ai-camera-moves-with-seedance)
- [**Generate contextual recommendations from Slack with Pinecone** 22 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/generate-contextual-recommendations-from-slack-with-pinecone)
- [**Send daily birthday greetings with Gmail and WhatsApp** 22 steps · calls a model · Gmail, Slack](https://millionrounds.com/workflow/send-daily-birthday-greetings-with-gmail-and-whatsapp)
- [**Build a multimodal WhatsApp assistant with OpenAI and Gemini** 23 steps · calls a model · WhatsApp](https://millionrounds.com/workflow/build-a-multimodal-whatsapp-assistant-with-openai-and-gemini)
- [**Omni-Sentinel AI: autonomous enterprise auditor & ROI engine** 23 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/omni-sentinel-ai-autonomous-enterprise-auditor-and-roi-engin)
