Multi-language Telegram RAG chatbot with supervisor AI & automated Google Drive pipeline
Needs changesNeeds changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.
What to replace before upgrading
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Content Formatter (v1.8), Supervisor AI Agent1 (v1.6), Output First Translator (v1.6), Translator1 (v1.6), Output Translator (v1.6), RAG AI Agent - Product (v1.6), RAG AI Agent - Academy (v1.6), RAG AI Agent - News (v1.6) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (31)
- Manual Trigger
n8n-nodes-base.manualTrigger - Wait
n8n-nodes-base.wait - Google Docs
n8n-nodes-base.googleDocs - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - AI Agent
@n8n/n8n-nodes-langchain.agent - Google Sheets
n8n-nodes-base.googleSheets - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - If
n8n-nodes-base.if - Filter
n8n-nodes-base.filter - Merge
n8n-nodes-base.merge - HTTP Request
n8n-nodes-base.httpRequest - Edit Fields (Set)
n8n-nodes-base.set - Google Drive
n8n-nodes-base.googleDrive - Supabase
n8n-nodes-base.supabase - Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi - Character Text Splitter
@n8n/n8n-nodes-langchain.textSplitterCharacterTextSplitter - Google Drive Trigger
n8n-nodes-base.googleDriveTrigger - Switch
n8n-nodes-base.switch - Extract from File
n8n-nodes-base.extractFromFile - Supabase Vector Store
@n8n/n8n-nodes-langchain.vectorStoreSupabase - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Aggregate
n8n-nodes-base.aggregate - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Postgres Chat Memory
@n8n/n8n-nodes-langchain.memoryPostgresChat - Call n8n Workflow Tool
@n8n/n8n-nodes-langchain.toolWorkflow - Telegram Trigger
n8n-nodes-base.telegramTrigger - Telegram
n8n-nodes-base.telegram - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - Postgres Tool
n8n-nodes-base.postgresTool - Google Sheets Tool
n8n-nodes-base.googleSheetsTool
What it does
N8N Hybrid RAG Chatbot with Multiple AI Agents One of the most powerful system in the market, this template creates a sophisticated, multi-agent hybrid RAG (Retrieval-Augmented Generation) chatbot that can handle diverse user queries by routing them to a “Supervisor AI agent”. The Supervisor agent will then send the request to “Expert AI agents”, agents specializing in specific domains. In addition, this system automates data ingestion from various sources (including websites and Google Drive), processes and stores the information in a vector database, and interacts with users through Telegram in multiple languages. For more powerful n8n templates, visit our website at aiautomationpro.org. !HybridRAGChatbot.png(fileId:1801) !3phase RAG Chatbot.png(fileId:1802) !WorkflowsDiagram.png(fileId:1803) !HybridRAGChatbotn8ntemplatemultiagent.jpeg(fileId:1799)!HybridRAGChatbotn8ntemplateoverview.jpeg(fileId:1800) Who’s it for? This template is ideal for: Developers and Businesses looking to build a powerful, knowledge-based chatbot for customer support, internal knowledge management, or lead generation. AI Enthusiasts who want to explore advanced concepts like multi-agent systems, RAG, and automated data pipelines. n8n Users who want to build a scalable and customizable AI solution that integrates multiple services. Key Features Multi-Agent Architecture: Utilizes a supervisor agent to route queries to specialized agents for different domains (e.g., Products, News, Academy). Automated Data Ingestion: Automatically scrapes data from websites and syncs new or updated files from Google Drive. Retrieval-Augmented Generation (RAG): Enriches the chatbot's knowledge by retrieving relevant information from a Supabase vector store and a Postgres database. Telegram Integration: Provides a seamless, multi-language chat interface for users to interact with the bot. Dynamic Data Handling: Automatically processes and embeds data from various sources like Google Docs, PDFs, and Word documents. Data Management: Keeps the knowledge base up-to-date by automatically handling document creation, updates, and deletions. How it works The workflow is divided into three main parts: data ingestion, data management, and the chat interface. 1. Data Ingestion & Processing: Web Scraping: The workflow fetches URLs from a Google Sheet, scrapes the content using Crawl4ai, cleans it with an AI agent, and saves it to a Google Doc. Google Drive Sync: It monitors specific Google Drive folders for new or updated files (Google Docs, PDFs, Word documents). Embedding & Storage: The content from these sources is then chunked, converted into vector embeddings using OpenAI, and stored in a Supabase vector database for efficient retrieval. 2. Data Deletion: A scheduled trigger periodically checks a Google Sheet for records marked as "deleted." It then removes the corresponding data from the Supabase vector store and deletes the file from Google Drive to ensure the chatbot's knowledge remains current. 3. Chat Interface & Logic (Telegram): User Input: The chatbot receives user messages via a Telegram trigger. Language Detection: It first detects the language of the query and translates it to English if necessary. Supervisor Agent: A central "Supervisor" AI agent analyzes the user's query. Agent Routing: Based on the query, the Supervisor delegates the task to the most appropriate specialized agent: News AI Agent: Handles questions about current events. Product AI Agent: Answers queries about product details from a Postgres database. Academy AI Agent: Responds to questions about courses and educational content. Response Generation: The selected agent processes the query, retrieves the necessary information using RAG, generates a response, and translates it back to the user's original language before sending it via Telegram. Requirements To use this template, you will need accounts and credentials for the following services: n8n OpenAI Supabase (for vector storage) Google Workspace (Go