Library / RAG & Knowledge Bases
RAG & Knowledge Bases
Build a Documentation Expert Chatbot with a RAG Pipeline
When run manually or on a chat message, the workflow loads documentation into a vector store with OpenAI and answers questions as a retrieval-augmented chatbot.
What it does
# Tutorial: Build an AI Expert with RAG Welcome! This workflow teaches you RAG (Retrieval-Augmented Generation) using n8n's built-in tools. The Goal: To create an AI chatbot that is an expert on a specific topic (the n8n docs) and *never* makes up answers. It has two parts: 1. TOP FLOW (Indexing): You run this once manually to build the AI's knowledge base. It reads the n8n docs and stores them in n8n's in-memory vector store. 2. BOTTOM FLOW (Chat): This is the live chatbot. It retrieves relevant info from the knowledge base to answer your questions accurately.
The steps
- Simple Memory
- Default Data Loader
- Recursive Character Text Splitter
- Remove Duplicate Documentation Content
- Only Keep Doc Paths
- Clean Documentation
- Get All n8n Documentation Links
- Extract Links from HTML
- Split Out Links
- Remove Duplicate Links
- Add Documentation Page to Vector Store
- Get Documentation Page
- Extract Documentation Content
- Loop Over Documentation Pages
23 steps in total.
Similar automations
RAG & Knowledge BasesBuild a Documentation Expert Chatbot with Gemini RAG23 stepsRAG & Knowledge Basesn8n Documentation Expert Bot with Gemini RAG and Supabase25 stepsAI Agents & AssistantsTech Stack Expert Agent with Claude and Postgres Memory7 stepsRAG & Knowledge BasesExtract API Schemas from Documentation with Gemini and Qdrant82 steps