AcademyWorkflowsCustomer support

Knowledge base chatbot with OpenAI, RAG and MongoDB

Internal support teams and product specialists who want quick answers from their product documentation.

  • Recommendedour rating
  • 8,234views on n8n
Open on n8n.io ↗

Paste it straight onto an n8n canvas with Ctrl+V or Cmd+V.

build-a-knowledge-base-chatbot-with-openai-rag-and-mongodb-vector-embeddings.json

Loading the file...

AI automation

Want this workflow running in your company?

A template is the start. We adapt automations like this to your tools, handle the exceptions, and test and monitor them so they hold up under real load.

  • Free 20-minute call to look at your process
  • Connected to the tools you already use
  • Tested, monitored and documented

What it does

An n8n template with two workflows. The first imports product documentation from Google Docs, splits it into chunks, creates OpenAI embeddings and stores them in a MongoDB Atlas vector store. The second answers questions by searching that store and replying with a GPT-4o-mini agent that keeps short-term memory.

Use cases

  1. 01Answer agent questions from product manuals
  2. 02Index Google Docs into a vector store
  3. 03Give support staff a chat over internal docs

Connects

Google Docs · AI Agent · Embeddings OpenAI · OpenAI Chat Model · Simple Memory · Recursive Character Text Splitter · Default Data Loader · MongoDB Atlas Vector Store

Questions about
Knowledge base chatbot with OpenAI, RAG and MongoDB.

What is Knowledge base chatbot with OpenAI, RAG and MongoDB used for?

Internal support teams and product specialists who want quick answers from their product documentation. An n8n template with two workflows. The first imports product documentation from Google Docs, splits it into chunks, creates OpenAI embeddings and stores them in a MongoDB Atlas vector store. The second answers questions by searching that store and replying with a GPT-4o-mini agent that keeps short-term memory.

How do I import Knowledge base chatbot with OpenAI, RAG and MongoDB into n8n?

Copy the workflow JSON from this page and paste it onto the n8n canvas with Ctrl+V or Cmd+V. Then connect your credentials in each node.

Is Knowledge base chatbot with OpenAI, RAG and MongoDB safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.