This n8n workflow creates an intelligent Telegram chatbot that leverages retrieval-augmented generation (RAG) with OpenAI’s GPT model to answer user questions based on uploaded PDFs. The process begins with a Telegram trigger listening for incoming messages. If the message is text, it uses an AI-powered agent to retrieve relevant document sections from an embedded knowledge base and generates a context-aware reply. In addition, the workflow supports manual uploading of PDFs, which are processed by extracting their text content, embedding using OpenAI, and storing the vectors in memory for quick retrieval. The original PDF files are also backed up to Google Drive for safekeeping. This setup benefits knowledge workers, support teams, educators, and individuals seeking automated, searchable access to their documents through a conversational interface, with cloud backup ensuring data safety.
AI-Powered Telegram Chatbot with PDF Knowledge Base Backup
Node Count | >20 Nodes |
---|---|
Nodes Used | @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.documentDefaultDataLoader, @n8n/n8n-nodes-langchain.embeddingsOpenAi, @n8n/n8n-nodes-langchain.lmChatOpenAi, @n8n/n8n-nodes-langchain.vectorStoreInMemory, code, formTrigger, googleDrive, if, stickyNote, telegram, telegramTrigger |
Reviews
There are no reviews yet.