Build a Knowledge Base Chatbot with OpenAI, RAG and MongoDB Vector Embeddings
n8n template #4526Summary
Use templateWho is this for? This template is designed for internal support teams, product specialists, and knowledge managers in technology companies who want to automate ingestion of product documentation and enable AI-driven, retrieval-augmented question answering. What problem is this workflow solving? Support agents often spend too much time manually searching through lengthy documentation, leading to inconsistent or delayed answers. This solution automates importing, chunking, and indexing product manuals, then uses retrieval-augmented generation (RAG) to answer user queries accurately and quickly with AI. What these workflows do Workflow 1: Document Ingestion & Indexing Manually triggered to impo
How to set it up
- Open template #4526 on n8n.io and click Use for free, or copy the template JSON and paste it onto an empty canvas in n8n.
- Create 4 credentials under Credentials → Add credential: Google Docs, Embeddings OpenAI, OpenAI Chat Model, MongoDB Atlas Vector Store. Then open each of those nodes and pick the credential.
- Check the model in the AI Agent node. The template may point at a model your account can't use; swap it for one you have access to.
- Click Execute workflow and step through each node's output to confirm the data looks right.
- Toggle the workflow to Active so its trigger runs on its own.
Hand off to your agent
Prompt
Help me set up the n8n workflow "Build a Knowledge Base Chatbot with OpenAI, RAG and MongoDB Vector Embeddings" (https://n8n.io/workflows/4526). It uses: Google Docs, AI Agent, Embeddings OpenAI, OpenAI Chat Model, Simple Memory, Recursive Character Text Splitter, Default Data Loader, MongoDB Atlas Vector Store. Import the template JSON into my n8n instance, list every credential I need to create, and walk me through testing it.
Paste into Claude Code and it will do the rest.
Apps and nodes
Google DocsAI AgentEmbeddings OpenAIOpenAI Chat ModelSimple MemoryRecursive Character Text SplitterDefault Data LoaderMongoDB Atlas Vector Store
Questions
Yes. NovaNode published it free on n8n.io as a verified creator, and it has 8,234 views. It runs on n8n Cloud or a self-hosted n8n instance.
Google Docs, Embeddings OpenAI, OpenAI Chat Model, MongoDB Atlas Vector Store. The other 4 nodes are built into n8n.
Similar workflows
NameViews
- AI-Powered WhatsApp Chatbot for Text, Voice, Images, and PDF with RAG47K
- Building Your First WhatsApp Chatbot332K
- 🤖 AI Powered RAG Chatbot for Your Docs + Google Drive + Gemini + Qdrant65K
- Advanced AI Demo (Presented at AI Developers #14 meetup)24K
- Chat with GitHub API Documentation: RAG-Powered Chatbot with Pinecone & OpenAI23K
- Scale Deal Flow with a Pitch Deck AI Vision, Chatbot and QDrant Vector Store6,822
- AI Agent To Chat With Files In Supabase Storage and Google Drive5,693
- Explore n8n Nodes in a Visual Reference Library5,197