Skip to main content

RAG-powered AI voice customer support agent (Supabase + Gemini + ElevenLabs)

Workflow preview

Workflow preview
100%
RAG-powered AI voice customer support agent (Supabase + Gemini + ElevenLabs) preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Execution video: Youtube Link I built an AI voice triggered RAG assistant where ElevenLabs’ conversational model acts as the front end and n8n ha...

Best for

  • Support Chatbot automation workflows
  • Multimodal AI automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.aggregate, @n8n/n8n-nodes-langchain.chainllm, n8n-nodes-base.httprequest, n8n-nodes-base.webhook, n8n-nodes-base.respondtowebhook, n8n-nodes-base.googledocs, n8n-nodes-base.code, n8n-nodes-base.supabase

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by iamvaar.

Original n8n.io source

1.1 Workflow description

Title
RAG-powered AI voice customer support agent (Supabase + Gemini + ElevenLabs)
Workflow name
RAG-powered AI voice customer support agent (Supabase + Gemini + ElevenLabs)

Execution video: Youtube Link

I built an AI voice-triggered RAG assistant where ElevenLabs’ conversational model acts as the front end and n8n handles the brain....here’s the real breakdown of what’s happening in that workflow:

  1. Webhook (/inf)

    • Gets hit by ElevenLabs once the user finishes talking.
    • Payload includes user_question.
  2. Embed User Message (Together API - BAAI/bge-large-en-v1.5)

    • Turns the spoken question into a dense vector embedding.
    • This embedding is the query representation for semantic search.
  3. Search Embeddings (Supabase RPC)

    • Calls matchembeddings1 to find the top 5 most relevant context chunks from your stored knowledge base.
  4. Aggregate

    • Merges all retrieved chunk values into one block of text so the LLM gets full context at once.
  5. Basic LLM Chain (LangChain node)

    • Prompt forces the model to only answer from the retrieved context and to sound human-like without saying “based on the context”....
    • Uses Google Vertex Gemini 2.5 Flash as the actual model.
  6. Respond to Webhook

    • Sends the generated answer back instantly to the webhook call, so ElevenLabs can speak it back.

You essentially have: Voice → Text → Embedding → Vector Search → Context Injection → LLM → Response → Voice

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Aggregate

Type / Role
n8n-nodes-base.aggregate - aggregate
Config choices
Version 1

Block 2 - Basic LLM Chain

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.7

Block 3 - Search Embeddings

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 4 - Embend User Message

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 5 - Webhook

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 6 - Respond to Webhook

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.4

Block 7 - Content for the Training

Type / Role
n8n-nodes-base.googleDocs - googleDocs
Config choices
Version 2

Block 8 - Splitting into Chunks

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 9 - Embedding Uploaded document

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 10 - Save the embedding in DB

Type / Role
n8n-nodes-base.supabase - supabase
Config choices
Version 1

Block 11 - When clicking ‘Execute workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 12 - Google Vertex Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleVertex - lmChatGoogleVertex
Config choices
Version 1

Block 13 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow RAG-powered AI voice customer support agent (Supabase + Gemini + ElevenLabs)
Complexity intermediate
Nodes 14
Categories Support Chatbot, Multimodal AI
Author iamvaar
Published 08 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7188/7188.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does RAG-powered AI voice customer support agent (Supabase + Gemini + ElevenLabs) do?

Execution video: Youtube Link I built an AI voice triggered RAG assistant where ElevenLabs’ conversational model acts as the front end and n8n ha...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Support Chatbot, Multimodal AI use case.