Build a retrieval-based chatbot with Telegram, OpenAI and Google Drive PDF backup
๐ Telegram RAG Chatbot with PDF Document & Google Drive Backup - An upgraded Retrieval-Augmented Generation (RAG) chatbot built in n8n that lets users ask questions via Telegram and receive accurate answers from uplo...
Template notes
๐ Telegram RAG Chatbot with PDF Document & Google Drive Backup - An upgraded Retrieval-Augmented Generation (RAG) chatbot built in n8n that lets users ask questions via Telegram and receive accurate answers from uploaded PDFs. It embeds documents using OpenAI and backs them up to Google Drive.
๐ค Whoโs it for
Perfect for: - Knowledge workers who want instant access to private documents - Support teams needing searchable SOPs and guides - Educators enabling course material Q&A for students - Individuals automating personal document search + cloud backup
โ๏ธ How it works / What it does
๐ฌ Telegram Chat Handling 1. User sends a message Triggered by the Telegram bot, the workflow checks if the message is text.
2. Text message โ OpenAI RAG Agent If the message is text, it's passed to a GPT-powered document agent. This agent: - Retrieves relevant info from embedded documents using semantic search - Returns a context-aware answer to the user
3. Send answer back The bot sends the generated response back to the Telegram user.
4. Non-text input fallback If the message is not text, the bot replies with a polite unsupported message.