# Voice AI chatbot with OpenAI and RAG: n8n workflow template

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

Source: https://millionrounds.com/workflow/voice-ai-chatbot-with-openai-and-rag (Millionrounds; every figure on the page links to its filing or article)

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

# Voice AI chatbot with OpenAI and RAG

Started by another system calling it, and works across 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. 27 steps, 2 loops or waits: 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%2Fvoice-ai-chatbot-with-openai-and-rag)

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

**0** Branches: places the flow splits

**2** Loops or waits

**2** Services it connects to

## The flow

Starts it 4 Model 17 Logic 2 Service 4

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

- 1 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 2 **Window Buffer Memory** Memory Buffer Window *Model*
- 3 **Calculator** Tool Calculator *Model*
- 4 **Embeddings OpenAI** Embeddings Open Ai *Model*
- 5 **OpenAI Chat Model1** Lm Chat Open Ai *Model*
- 6 **Webhook** Webhook *Starts it*
- 7 **OpenAI Chat Model2** Lm Chat Open Ai *Model*
- 8 **When clicking ‘Test workflow’** Manual trigger *Starts it*
- 9 **Embeddings OpenAI1** Embeddings Open Ai *Model*
- 10 **Recursive Character Text Splitter** Text Splitter Recursive Character Text Splitter *Model*
- 11 **Voicebot AI Agent** Agent *Model*
- 12 **Qdrant Vector Store** Vector Store Qdrant *Model*
- 13 **RAG** Tool Vector Store *Model*
- 14 **Generate text (STT)** Open Ai *Model*
- 15 **Guardrails** Guardrails *Model*
- 16 **Create collection** Http Request *Service*
- 17 **Clear collection** Http Request *Service*
- 18 **Insert file** Vector Store Qdrant *Model*
- 19 **Default Data Loader1** Document Default Data Loader *Model*
- 20 **Generate audio (TTS)** Open Ai *Model*
- 21 **Default response (TTS)** Open Ai *Model*
- 22 **Search files** Google Drive *Service*
- 23 **Wait 5 sec.** Wait *Logic*
- 24 **Respond to Webhook** Respond To Webhook *Starts it*
- 25 **Respond default to Webhook** Respond To Webhook *Starts it*
- 26 **Loop Over Items** Split In Batches *Logic*
- 27 **Get files** Google Drive *Service*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 27, 2 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** 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 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 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 27 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 27 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%2Fvoice-ai-chatbot-with-openai-and-rag)
- **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)

## Workflows like it

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

- [**Build a dual-stage RAG chat assistant with Google Drive** 27 steps · calls a model · Google Drive, Pinecone](https://millionrounds.com/workflow/build-a-dual-stage-rag-chat-assistant-with-google-drive)
- [**Place products on AI generated backgrounds with Google Imagen** 27 steps · calls a model · Google Drive](https://millionrounds.com/workflow/place-products-on-ai-generated-backgrounds-with-google-image)
- [**Vision RAG and image embeddings with Cohere Command-A** 27 steps · calls a model · Qdrant](https://millionrounds.com/workflow/vision-rag-and-image-embeddings-with-cohere-command-a)
- [**Generate LinkedIn carousel images from text with Mistral** 26 steps · calls a model · Google Drive, S3](https://millionrounds.com/workflow/generate-linkedin-carousel-images-from-text-with-mistral)
- [**AI inbox assistant with OpenAI and Gmail** 25 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/ai-inbox-assistant-with-openai-and-gmail)
- [**Automating WhatsApp replies with Go High Level and Redis** 25 steps · calls a model · Google Drive, Redis](https://millionrounds.com/workflow/automating-whatsapp-replies-with-go-high-level-and-redis)
