Build an intelligent knowledge base chatbot using this advanced n8n workflow. Integrates GPT-4o-mini, MongoDB RAG, and human feedback (RLHF) for continuous learning.
Download this n8n workflow template and start using it instantly.
Teams needing an internal, self-learning documentation search bot.
Users looking for advanced examples of n8n templates integrating Langchain and MongoDB Atlas.
Developers interested in implementing Reinforcement Learning from Human Feedback (RLHF) in an n8n workflow.
Automation Specialists seeking to build complex, multi-tool AI agents using n8n.
This sophisticated n8n workflow demonstrates how to deploy a powerful AI knowledge base agent using state-of-the-art techniques. It leverages the Langchain framework within n8n to connect a GPT-4o-mini model with three distinct vector stores hosted on MongoDB Atlas: official documentation, positively rated past interactions, and negatively rated past interactions.
This setup achieves two primary goals: high-accuracy RAG (by searching official docs) and continuous improvement via RLHF. Every time a user interacts with the bot via the Telegram n8n trigger, the response is generated, sent back, and immediately assessed for quality. This human feedback (positive or negative) is automatically embedded and re-indexed into the RLHF vector stores, ensuring the AI model learns what works and what does not. This is a robust, production-ready n8n template for AI automation.
The n8n workflow operates in two main phases: Indexing and Runtime.
To use this powerful n8n template, follow these steps:
Receive Message on Telegram and Send Message on Telegram nodes.n8n-template and n8n-template-feedback) and index names (data_index and template-feedback-search) mentioned in the workflow’s sticky note.Receive Message on Telegram n8n trigger is active and listening for messages.This n8n workflow utilizes numerous specialized nodes to manage the AI, database, and messaging components:
Receive Message on Telegram (n8n Trigger): The entry point for the runtime flow. Function: Listens for incoming chat messages in Telegram.
Knowledge Base Agent (n8n node): The primary RAG component. Function: Acts as the orchestrator, deciding which of the three vector stores to consult based on the query and system rules. Key Configuration: Uses the gpt-4o-mini model and a detailed instruction prompt (system message) governing language detection, link prohibition, and rule enforcement.
Search Documentation (MongoDB Atlas Vector Store n8n node): Function: Performs vector similarity search on the primary documentation knowledge base (collection n8n-template). Key Configuration: Configured as the productDocs tool for the Agent.
Search Positive Interactions / Search Negative Interactions (MongoDB Atlas Vector Store n8n nodes): Function: Retrieve historical, human-rated responses to improve AI quality via RLHF. Key Configuration: Configured as feedbackPositive and feedbackNegative tools, filtering by metadata.
MongoDB Chat Memory (n8n node): Function: Stores and retrieves chat history for context persistence across messages, crucial for conversational flow.
Send Message on Telegram, Wait for Feedback (n8n node): Function: Sends the generated AI response and activates a subsequent webhook to capture user feedback (approval/disapproval).
n8n-template-feedback).Deploy a powerful n8n workflow using AI Agents, GPT, and web search capabilities. This n8n template provides a sophisticated, conversational chatbot solution with persistent memory.

Deploy a robust, self-maintaining RAG knowledge base using n8n. This n8n workflow integrates OpenAI embeddings, Qdrant vector store, and Google Gemini, automatically updating documents from Google Drive.

Build an intelligent, multi-tool AI assistant using this powerful n8n workflow. Integrate GPT-4 with Gmail and Calendly via Pipedream's MCP server for complex automation tasks.

A powerful n8n workflow template utilizing Gemini AI and PostgreSQL for a high-performance, cost-optimized Telegram chatbot with dynamic model selection based on task complexity.

This advanced n8n workflow uses AI web scraping (ScrapeGraphAI) to extract support data, run complex SLA and escalation analytics via a Code n8n node, and sync results to Google Sheets and Slack for real-time monitoring. Get high-value n8n templates for ops.

NovaNode is a software factory building scalable AI for modern businesses. We specialize in omni-channel AI agents that automate customer support, sales, and operations across voice, WhatsApp, email, and chat. We serve both enterprise clients and SMEs, balancing deep integrations with speed and cost-efficiency. By combining automation with adaptability, we help companies scale faster and operate smarter. NovaNode is where AI meets execution.







































