# Run a WhatsApp customer support chatbot with OpenWA and OpenAI: n8n workflow

> Started by an event in a connected app, and works across Gmail, Google Drive and Qdrant. It puts OpenAI behind a retrieval step, so answers are drawn from...

Source: https://millionrounds.com/workflow/run-a-whatsapp-customer-support-chatbot-with-openwa-and-open (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)

# Run a WhatsApp customer support chatbot with OpenWA and OpenAI

Started by an event in a connected app, and works across Gmail, Google Drive and Qdrant. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 26 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%2Frun-a-whatsapp-customer-support-chatbot-with-openwa-and-open)

**26 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 12 Logic 3 Service 9

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

- 1 **OpenWA Trigger** Open Wa trigger *Starts it*
- 2 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 3 **Window Buffer Memory** Memory Buffer Window *Model*
- 4 **OpenAI Chat Model1** Lm Chat Open Ai *Model*
- 5 **Embeddings OpenAI2** Embeddings Open Ai *Model*
- 6 **Calculator** Tool Calculator *Model*
- 7 **get_human_support** Gmail Tool *Service*
- 8 **When clicking ‘Test workflow’** Manual trigger *Starts it*
- 9 **Embeddings OpenAI** Embeddings Open Ai *Model*
- 10 **Token Splitter** Text Splitter Token Splitter *Model*
- 11 **Switch** Switch *Logic*
- 12 **Customer Support Agent** Agent *Model*
- 13 **rag_search** Tool Vector Store *Model*
- 14 **Retrive Qdrant Vector Store** Vector Store Qdrant *Model*
- 15 **Create collection** Http Request *Service*
- 16 **Refresh collection** Http Request *Service*
- 17 **Qdrant Vector Store** Vector Store Qdrant *Model*
- 18 **Default Data Loader** Document Default Data Loader *Model*
- 19 **Edit Fields1** Set *Logic*
- 20 **Send Text1** Open Wa *Service*
- 21 **Normalize** Code *Logic*
- 22 **Get folder** Google Drive *Service*
- 23 **DebugHelper** Debug Helper *Service*
- 24 **Send Text** Open Wa *Service*
- 25 **Download Files** Google Drive *Service*
- 26 **DebugHelper1** Debug Helper *Service*

## How it's built

- **Starts on:** An event in a connected app
- **Steps:** 26, with 1 branch
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Gmail, Google Drive, Qdrant
- **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 Gmail, Google Drive and Qdrant accounts, and a key for 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 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 26 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 26 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%2Frun-a-whatsapp-customer-support-chatbot-with-openwa-and-open)
- **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.

[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[Google Drive](https://millionrounds.com/workflows?service=Google+Drive#library)[Qdrant](https://millionrounds.com/workflows?service=Qdrant#library)

## Workflows like it

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

- [**Email sorting & drafting for customer support with Gemini** 26 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/email-sorting-and-drafting-for-customer-support-with-gemini)
- [**Answer Slack knowledge questions with Notion and Google Drive** 25 steps · calls a model · Google Drive, Notion](https://millionrounds.com/workflow/answer-slack-knowledge-questions-with-notion-and-google-driv)
- [**Automate customer support with Slack and CRM** 27 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/automate-customer-support-with-slack-and-crm)
- [**Turn emails into AI-enhanced tasks in Notion (multi-user support)** 25 steps · calls a model · Airtable, Gmail](https://millionrounds.com/workflow/turn-emails-into-ai-enhanced-tasks-in-notion-multi-user-supp)
- [**Automate Airbnb guest support with OpenAI and Google Drive** 24 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/automate-airbnb-guest-support-with-openai-and-google-drive)
- [**SEO FAQ generator for websites with Google Sheets** 24 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/seo-faq-generator-for-websites-with-google-sheets)
