Build a RAG document chatbot with Supabase vector search and OpenRouter
Ready for 3.0What this workflow does
This AI workflow has 10 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects OpenRouter Chat Model, Supabase Vector Store, Google Drive and Embeddings Google Gemini.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- RAG Document Assistant (AI Agent): runs an AI agent, with model: OpenRouter LLM; 1 tool (Supabase Vector Retriever)
- Return AI Response (Respond to Webhook): sends the response back to the webhook caller
- Google Drive: download
- Supabase Vector Store: stores documents in the Supabase vector store, with embeddings: Gemini Embedding Model; document loader: Document Loader
Services it uses
Other Google Gemini + Google Drive templates (272) · Other Google Drive + OpenRouter templates (76) · Other Google Drive + Supabase templates (67)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (9)
- Webhook
n8n-nodes-base.webhook - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - Supabase Vector Store
@n8n/n8n-nodes-langchain.vectorStoreSupabase - Respond to Webhook
n8n-nodes-base.respondToWebhook - Google Drive
n8n-nodes-base.googleDrive - Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - Embeddings Google Gemini
@n8n/n8n-nodes-langchain.embeddingsGoogleGemini - Recursive Character Text Splitter
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter
From the author
What this workflow does This workflow builds a Retrieval-Augmented Generation (RAG) document chat assistant inside n8n using Supabase Vector Store and AI models. The workflow allows users to upload documents, convert them into embeddings, store them inside…