Automated Telegram PDF Processing and Q&A Workflow

somdn_product_page

This n8n workflow automates the process of receiving PDF files via Telegram, extracting and storing their content in a Pinecone vector database, and enabling interactive question-and-answer sessions based on the stored data. Initially triggered by a new Telegram message, the workflow checks if the message contains a document, downloads the file, and converts it to PDF format if necessary. The document is then split into manageable chunks, embedded using OpenAI’s embeddings, and stored in Pinecone for efficient retrieval. When a user sends a query, the workflow retrieves relevant document chunks from Pinecone, uses a language model to generate accurate answers based on the stored data, and responds via Telegram. This setup is ideal for users who want to create an AI-powered knowledge base accessible through Telegram, such as for educational resources, project documentation, or customer support.

Node Count

11 – 20 Nodes

Nodes Used

@n8n/n8n-nodes-langchain.chainRetrievalQa, @n8n/n8n-nodes-langchain.documentDefaultDataLoader, @n8n/n8n-nodes-langchain.embeddingsOpenAi, @n8n/n8n-nodes-langchain.lmChatGroq, @n8n/n8n-nodes-langchain.retrieverVectorStore, @n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter, @n8n/n8n-nodes-langchain.vectorStorePinecone, code, if, limit, stickyNote, stopAndError, telegram, telegramTrigger

Reviews

There are no reviews yet.

Be the first to review “Automated Telegram PDF Processing and Q&A Workflow”

Your email address will not be published. Required fields are marked *