# RAG-powered AI voice customer support agent with Supabase: n8n workflow

> Started by another system calling it, and works across Google Docs and Supabase. It hands the judgement calls to a language model.

Source: https://millionrounds.com/workflow/rag-powered-ai-voice-customer-support-agent-with-supabase (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)

# RAG-powered AI voice customer support agent with Supabase

Started by another system calling it, and works across Google Docs and Supabase. It hands the judgement calls to a language model. 12 steps: a working afternoon to understand properly.

Medium Calls a model

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Frag-powered-ai-voice-customer-support-agent-with-supabase)

**12 steps** Medium: a working afternoon

**0** Branches: places the flow splits

**0** Loops or waits

**2** Services it connects to

## The flow

Starts it 3 Model 2 Logic 2 Service 5

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

- 1 **Webhook** Webhook *Starts it*
- 2 **When clicking ‘Execute workflow’** Manual trigger *Starts it*
- 3 **Google Vertex Chat Model** Lm Chat Google Vertex *Model*
- 4 **Embend User Message** Http Request *Service*
- 5 **Content for the Training** Google Docs *Service*
- 6 **Basic LLM Chain** Chain Llm *Model*
- 7 **Search Embeddings** Http Request *Service*
- 8 **Splitting into Chunks** Code *Logic*
- 9 **Respond to Webhook** Respond To Webhook *Starts it*
- 10 **Aggregate** Aggregate *Logic*
- 11 **Embedding Uploaded document** Http Request *Service*
- 12 **Save the embedding in DB** Supabase *Service*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 12
- **Size:** Medium: a working afternoon
- **Connects to:** Google Docs, Supabase
- **Model:** A language model, family not declared

## Questions

What does it need to run?

An n8n account, plus your own Google Docs and Supabase accounts, and a key for a language model. 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 a language model. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 12 steps is enough that you should read each one before running it.

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 12 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%2Frag-powered-ai-voice-customer-support-agent-with-supabase)
- **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 Docs](https://millionrounds.com/workflows?service=Google+Docs#library)[Supabase](https://millionrounds.com/workflows?service=Supabase#library)

## Workflows like it

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

- [**AI WhatsApp Support Agent: GPT-4o + Persistent Memory (Supabase)** 12 steps · calls a model · Slack, Supabase](https://millionrounds.com/workflow/ai-whatsapp-support-agent-gpt-4o-persistent-memory-supabase)
- [**Generate FAQs with OpenAI and Supabase** 12 steps · Supabase](https://millionrounds.com/workflow/generate-faqs-with-openai-and-supabase)
- [**Answer Telegram support questions with Google Docs and Claude** 11 steps · calls a model · Google Docs, Google Sheets](https://millionrounds.com/workflow/answer-telegram-support-questions-with-google-docs-and-claud)
- [**Automate customer support with WhatsApp AI** 13 steps · calls a model · Google Docs, Google Sheets](https://millionrounds.com/workflow/automate-customer-support-with-whatsapp-ai)
- [**Customer support WhatsApp bot with Google Docs and Gemini** 13 steps · calls a model · Google Docs, Google Sheets](https://millionrounds.com/workflow/customer-support-whatsapp-bot-with-google-docs-and-gemini-2)
- [**Customer support WhatsApp bot with Google Docs and Gemini** 13 steps · calls a model · Google Docs, Google Sheets](https://millionrounds.com/workflow/customer-support-whatsapp-bot-with-google-docs-and-gemini)
