Create a factual learning assistant with RAG, Gemini, Telegram & MongoDB
Ready for 3.0What this workflow does
This AI workflow has 14 nodes and runs when someone submits an n8n form (“file upload”) (plus 3 other triggers). Along the way it connects Google Drive, MongoDB Atlas Vector Store, Google Gemini Chat Model and Telegram and 1 more.
How it runs
Trigger: When someone submits an n8n form (“file upload”) (plus 3 other triggers).
- MongoDB Atlas Vector Store: stores documents in the MongoDB Atlas vector store, with embeddings: Convert Documents to Embeddings; document loader: Default Data Loader
- RAG Agent (AI Agent): runs an AI agent, with model: Google Gemini Chat Model; memory: Simple Memory
- Download file (Google Drive): download
- Send Answer via Telegram (Telegram): uses Telegram
- MongoDB Atlas Vector Store: is searched by the agent in the MongoDB Atlas vector store
- Retrieve Documents from Embeddings (Embeddings Google Gemini): uses Embeddings Google Gemini
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (12)
- Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - Google Drive Trigger
n8n-nodes-base.googleDriveTrigger - MongoDB Atlas Vector Store
@n8n/n8n-nodes-langchain.vectorStoreMongoDBAtlas - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Google Drive
n8n-nodes-base.googleDrive - AI Agent
@n8n/n8n-nodes-langchain.agent - n8n Form Trigger
n8n-nodes-base.formTrigger - Telegram Trigger
n8n-nodes-base.telegramTrigger - Telegram
n8n-nodes-base.telegram - Embeddings Google Gemini
@n8n/n8n-nodes-langchain.embeddingsGoogleGemini - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow
From the author
Who's it for? This template is perfect for educational institutions, coaching centers (like UPSC, GMAT, or specialized technical training), internal corporate knowledge bases, and SaaS companies that need to provide instant, accurate, and source-grounded…