Supabase insertion & upsertion & retrieval
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
What this workflow does
This AI workflow has 16 nodes and runs when a chat message arrives. Along the way it connects Google Drive, OpenAI Chat Model, Supabase Vector Store and Embeddings OpenAI and 1 more.
How it runs
Trigger: When a chat message arrives.
- Question and Answer Chain: answers questions over your documents (RAG), with model: OpenAI Chat Model; retriever: Vector Store Retriever
- Customize Response (Edit Fields (Set)): sets 1 field: output
- Placeholder (File/Content to Upsert) (Edit Fields (Set)): sets or maps fields
- Update Documents (Supabase Vector Store): uses the Supabase vector store, with embeddings: Embeddings OpenAI
- Google Drive: download
- Insert Documents (Supabase Vector Store): stores documents in the Supabase vector store, with embeddings: Embeddings OpenAI; document loader: Default Data Loader
- Retrieve Rows from Table (Supabase): get many
Services it uses
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 (11)
- Google Drive
n8n-nodes-base.googleDrive - Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - Question and Answer Chain
@n8n/n8n-nodes-langchain.chainRetrievalQa - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Vector Store Retriever
@n8n/n8n-nodes-langchain.retrieverVectorStore - Recursive Character Text Splitter
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter - Edit Fields (Set)
n8n-nodes-base.set - Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - Supabase Vector Store
@n8n/n8n-nodes-langchain.vectorStoreSupabase - Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi - Supabase
n8n-nodes-base.supabase
From the author
This is a demo workflow to showcase how to use Supabase to embed a document, retrieve information from the vector store via chat and update the database. Setup steps: - set your credentials for Supabase - set your credentials for an AI model of your choice -…