Templates / Document Q&A chatbot with Google Drive, GPT-4-mini & Telegram (RAG system)

Document Q&A chatbot with Google Drive, GPT-4-mini & Telegram (RAG system)

Ready for 3.0

by DuyTran βœ“ Β· 904 views Β· created 2025-09-02 Β· Internal Wiki, AI RAG

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

Nodes used (10)

Default Data LoaderGoogle DriveEmbeddings OpenAIAI AgentOpenAI Chat ModelSimple MemorySimple Vector StoreTelegram

What it does

Description πŸ“Œ Overview This workflow creates a chat-based Retrieval-Augmented Generation (RAG) agent that lets you upload documents to Google Drive and then query them directly through Telegram. It uses embeddings, vector storage, and an AI agent to retrieve, analyze, and answer user questions with context-aware responses. 🧩 Key Features πŸ“‚ Google Drive Integration Watches a folder for new file uploads. Downloads and loads documents automatically into the system. πŸ”Ž Vector Embeddings & Storage Uses OpenAI embeddings to transform documents into vectors. Stores them in an in-memory vector store for retrieval. πŸ€– AI Agent with Memory Built on LangChain Agent + GPT-4.1-mini. Performs similarity search in the vector store. Provides contextual answers with citations from the uploaded documents. Maintains short-term conversation memory for better continuity. πŸ’¬ Telegram Bot Integration Users can send questions directly to the bot. AI agent retrieves relevant information and replies with clear answers. βš™οΈ How It Works Trigger: Upload a file into the Google Drive folder. Processing: Workflow downloads the file β†’ loads β†’ embeds β†’ stores in vector memory. Query: User sends a question via Telegram. Retrieval & Response: AI agent searches stored documents β†’ analyzes results β†’ returns summarized answer in Telegram. πŸ” Requirements Google Drive OAuth credentials. OpenAI API key (for embeddings + LLM). Telegram Bot API token. πŸ“₯ Use Cases πŸ“‘ Knowledge base assistant – Upload internal docs and query them in chat. 🏫 Learning support – Students upload study materials and ask questions. πŸ“Š Business intelligence – Teams upload reports and get instant summaries. More templet: https://aitool.wiki/

View the original on n8n.io β†’ Check your own copy

Get the weekly β€œwhat broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.