Create an AI Telegram bot using Google Drive, Qdrant, and OpenAI GPT-4.1
Ready for 3.0What this workflow does
This AI workflow has 13 nodes and runs on Telegram events (message) (plus 1 other trigger). Along the way it connects Google Drive, Qdrant Vector Store, Telegram and Embeddings OpenAI and 1 more.
How it runs
Trigger: On Telegram events (message) (plus 1 other trigger).
- Filter: keeps only the items that match a condition
- Download File (Google Drive): download
- AI Agent: runs an AI agent, with model: OpenAI Chat Model; 1 tool (Qdrant Knowledge Base)
- Insert into Qdrant (Qdrant Vector Store): stores documents in the Qdrant vector store, with embeddings: OpenAI Embeddings; document loader: Load Document Data
- Send Response to Telegram (Telegram): uses Telegram
- Move to Processed Folder (Google Drive): move
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 (11)
- Google Drive Trigger
n8n-nodes-base.googleDriveTrigger - Google Drive
n8n-nodes-base.googleDrive - Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - Recursive Character Text Splitter
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter - Qdrant Vector Store
@n8n/n8n-nodes-langchain.vectorStoreQdrant - Telegram Trigger
n8n-nodes-base.telegramTrigger - Filter
n8n-nodes-base.filter - Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi - Telegram
n8n-nodes-base.telegram - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
From the author
How it works This workflow creates an intelligent Telegram bot with a knowledge base powered by Qdrant vector database. The bot automatically processes documents uploaded to Google Drive, stores them as embeddings, and uses this knowledge to answer questions…