AI Knowledge-Base Agent (RAG)
Grounded Q&A over your docs: returns an LLM answer with sources and an honest "not in the docs" fallback — the answer core for a RAG bot (plug in your own retrieval step).
Inside this workflow
Overview
**What it automates:** Webhook (question + context) → OpenAI reads context, answers question, cites source + confidence → responds to caller with fallback "not in docs" if uncertain. This is the answer core; you add your own retrieval (vector search, BM25) in the step before. **Business outcome:** Support teams spend 20% of time on FAQ-answerable questions. This workflow is the grounded-answer engine that powers your knowledge-base chatbot or Slack integration. **Apps & nodes:** Webhook, retrieval provider (your DB/vector store), OpenAI (grounded answering), HTTP response **Setup (4 steps):** 1. Create webhook for questions 2. Build/integrate your retrieval step (vector search, Supabase, Algolia) 3. Add OpenAI API key with grounding instructions 4. Test with known questions **Difficulty:** Intermediate-Advanced (20 min setup) | **Credentials:** OpenAI, your retrieval provider
What's included
Quickstart
- 01
Download the JSON
With an active Library Pass, download the workflow file right from this page or your dashboard.
- 02
Import into n8n
Choose Import from File and select the downloaded JSON. The full agent graph appears, ready to configure.
- 03
Plug in credentials
Each integration node prompts for credentials on first run. The setup guide lists every credential the agent expects.
- 04
Activate and test
Run once with sample input, confirm the expected output, then flip the activate toggle.
Reviews (0)
No reviews yet. Be the first.
Sign in to leave a review.
Included with any pass
This agent — and every other in the library — comes with a Library Pass. One pass, the whole catalog.
Get a Library Pass- Every agent in the library
- All new releases while active
- Unlimited downloads
- Commercial-use license
- Priority email support
- 30-day money-back guarantee
More in Research
AI Daily Revenue Digest
Each morning, an LLM turns the last 24h of Stripe charges into a 3-bullet revenue digest — total, notable customers, anomalies — posted to Slack.
AI Weekly KPI Recap
Each week, an LLM turns your metrics into a crisp recap — 3 wins, 2 watch-items, and a suggested focus — posted to Slack.