Block 1 - π Complete Documentation
- Type / Role
- n8n-nodes-base.stickyNote - stickyNote
- Config choices
- Version 1
AI Chatbot with RAG: Google Gemini & Supabase Vector Store Summary Build a custom, intelligent knowledge base in minutes. This n8n workflow provides a complete Retrieval Augmented Generation ...
n8n-nodes-base.stickynote, n8n-nodes-base.errortrigger, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.lmchatgooglegemini, @n8n/n8n-nodes-langchain.chattrigger, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.memorypostgreschat, @n8n/n8n-nodes-langchain.vectorstoresupabase
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Tricore Infotech Pvt Ltd.
Original n8n.io sourceBuild a custom, intelligent knowledge base in minutes. This n8n workflow provides a complete Retrieval-Augmented Generation (RAG) system using Google Gemini and Supabase. It features a seamless dual-flow design: an ingestion pipeline to process and store your uploaded documents, and a conversational AI agent that queries those documents to provide accurate, context-aware answers while remembering past interactions.
models/gemini-embedding-001 and models/gemini-2.5-flash) for high-quality text embeddings and intelligent chat generation.sessionId, allowing the AI to maintain context across ongoing conversations. The chat trigger automatically generates a unique Session ID per browser window, keeping individual user conversations completely separate.Before running the workflow, ensure your Supabase/Postgres database has the required tables. β οΈ See the "DATABASE SETUP (SQL)" sticky note on the canvas for the complete SQL script.
Connect your Google Gemini API, Supabase (URL and Service Role Key), and Postgres databases. (Note: Your Postgres memory can be hosted within your Supabase project). Ensure your Supabase database has pgvector enabled.
Open the Supabase and Postgres nodes and replace:
your_documents_table β your actual table nameyour_chat_history_table β your actual table nameThe workflow catches errors and formats an alert message, but you must manually connect a messaging node (like Slack, Microsoft Teams, or Email) directly after the Format Error Alert node to receive these notifications.
Open the Upload Knowledge Base Form node, click "Test step", and upload a sample document to index it into your database.
Open the User Chat Trigger node, click "Chat", and ask a question related to the document you just uploaded!
User-Facing Interfaces:
Data Processing Pipeline (Ingestion):
AI & Memory (Query):
Error Handling:
.pdf, .txt, .docx, .pptx. Highly complex PDFs with nested tables or un-OCR'd images may fail parsing.chat_history table periodically or clear old sessions.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.
| Workflow | Build a RAG chatbot using Google Gemini and a Supabase vector store |
|---|---|
| Complexity | advanced |
| Nodes | 21 |
| Categories | Internal Wiki, AI RAG |
| Author | Tricore Infotech Pvt Ltd |
| Published | 15 May 2026 |
Use the JSON export at /data/workflows/15738/15738.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
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.
AI Chatbot with RAG: Google Gemini & Supabase Vector Store Summary Build a custom, intelligent knowledge base in minutes. This n8n workflow provides a complete Retrieval Augmented Generation ...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
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 Internal Wiki, AI RAG use case.