🤖 Create a Documentation Expert Bot with RAG, Gemini, and Supabase
Ready for 3.0What this workflow does
This AI workflow has 25 nodes and runs manually, when you click “Execute workflow” (plus 3 other triggers). Along the way it connects Supabase Vector Store, Google Gemini Chat Model, Embeddings Google Gemini and Supabase. It also calls docs.n8n.io over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 3 other triggers).
- Get All n8n Documentation Links (HTTP Request): calls docs.n8n.io
- Get Documentation Page (HTTP Request): calls an HTTP API
- Keep Supabase Instance Alive (Supabase): get many
- n8n Docs AI Agent (AI Agent): runs an AI agent, with model: Gemini 2.5 Flash; 1 tool (Official n8n Documentation); memory: Simple Memory
- Extract Links from HTML (HTML): parses or builds HTML
- Extract Documentation Content (HTML): parses or builds HTML
- Split Out: splits a list into separate items
- Clean Documentation (Edit Fields (Set)): sets 1 field: documentation
- Remove Duplicate Links (Remove Duplicates): removes duplicate items
- Remove Duplicate Documentation Content (Remove Duplicates): removes duplicate items
…plus 4 more steps. See the full node list below.
Services it uses
Other Google Gemini + Supabase templates (66)
HTTP calls to: docs.n8n.io
Scraping pages by hand? Firecrawl is a simpler option (10% off for new users).
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 (20)
- Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Supabase Vector Store
@n8n/n8n-nodes-langchain.vectorStoreSupabase - Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - Recursive Character Text Splitter
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter - Remove Duplicates
n8n-nodes-base.removeDuplicates - Filter
n8n-nodes-base.filter - Edit Fields (Set)
n8n-nodes-base.set - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - HTTP Request
n8n-nodes-base.httpRequest - HTML
n8n-nodes-base.html - Split Out
n8n-nodes-base.splitOut - Execute Sub-workflow
n8n-nodes-base.executeWorkflow - Embeddings Google Gemini
@n8n/n8n-nodes-langchain.embeddingsGoogleGemini - Supabase
n8n-nodes-base.supabase - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - AI Agent
@n8n/n8n-nodes-langchain.agent - Manual Trigger
n8n-nodes-base.manualTrigger - Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger
From the author
How it works This template is a complete, hands-on tutorial for building a RAG (Retrieval-Augmented Generation) pipeline. In simple terms, you'll teach an AI to become an expert on a specific topic—in this case, the official n8n documentation—and then build a…