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 chatbot to ask it questions.
Think of it like this: instead of a general-knowledge AI, you're building an expert librarian.
The workflow is split into two main parts:
This is a one-time process you run manually. The workflow will:
This is like a librarian reading every book and creating a hyper-detailed index card for every paragraph.
⚠️ Important: This in-memory knowledge base is temporary. It will be erased if you restart your n8n instance. You'll need to run the indexing process again in that case.
This is the chat interface.
When you ask a question:
“Answer the user's question using ONLY this information.”
This ensures answers are accurate, factual, and grounded in your documents.
Total setup time: ~2 minutes
Indexing time: ~15–20 minutes
This template uses n8n’s built-in tools, so no external database is needed.
OpenAI Chat Model
).+ Create New Credential
.OpenAI Embeddings
) and select the newly created credential from the dropdown.⚠️ Be patient: This takes 15–20 minutes to scrape and process the full documentation.
You only need to do this once per n8n session.
Example questions:
All credits go to Lucas Peyrin
🔗 lucaspeyrin on n8n.io