Skip to content
NEWMarketplace and the trig8n Agent: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / RAG & Knowledge Bases

RAG & Knowledge Bases

Build a Documentation Expert Chatbot with Gemini RAG

When run manually or on a chat message, the workflow loads documentation into a vector store with Gemini 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

  1. Simple Memory
  2. Default Data Loader
  3. Recursive Character Text Splitter
  4. Remove Duplicate Documentation Content
  5. Only Keep Doc Paths
  6. Clean Documentation
  7. Gemini 2.5 Flash
  8. Get All n8n Documentation Links
  9. Extract Links from HTML
  10. Split Out Links
  11. Remove Duplicate Links
  12. Add Documentation Page to Vector Store
  13. Get Documentation Page
  14. Extract Documentation Content

23 steps in total.

Similar automations