Description
Β Ask questions about any PDF directly inside Telegramβpowered by AI and vector search. This n8n workflow processes uploaded documents, stores them in a vector database, and intelligently answers your queries based on the content.
π§ How It Works:
β π₯ Telegram Bot Upload β Users send a PDF document to your Telegram bot β π PDF Parsing β The file is parsed and chunked for semantic understanding β π§ Vector Embedding & Storage β Document chunks are embedded and stored in Pinecone (or your preferred vector DB) β π¬ Query Detection β If a user sends a message without a document, the bot treats it as a question β π€ AI-Powered Answering β The bot searches the vector store and returns an accurate answer using the context
π It Automates:
β Accepting PDFs through Telegram uploads β Extracting and chunking text from the PDF file β Creating embeddings using a selected LLM model β Storing document vectors in Pinecone β Searching stored PDFs when a user asks a follow-up question β Generating context-aware answers from relevant chunks
π‘ Why Choose This Workflow:
β Query any PDF in seconds with natural language β No need for a frontendβuse Telegram as the interface β Lightweight, fast, and fully customizable β Easily switch out vector stores or LLM models β Ideal for documentation, research, contracts, manuals, and more
π€ Who Is This For:
β Teams dealing with complex documents or manuals β Researchers and students needing instant PDF lookup β Professionals managing multiple contracts or legal files β Educators sharing reading material with interactive querying β Anyone wanting an AI assistant that understands PDFs
π Integrations:
β Telegram Bot API (via n8n Telegram Trigger node) β Pinecone Vector Store (for document embeddings) β Groq LLM API (can be swapped with OpenAI, Claude, etc.) β PDF Parsing Tool (integrated via n8nβs Function/HTTP nodes)
π§ Setup Instructions:
π² Create a bot via @BotFather on Telegram and get the API token π© Add the Telegram Trigger node in n8n to receive messages π Configure PDF parsing logic with file buffer π§ Embed content into Pinecone (or Supabase/Postgres/Qdrant) π€ Route user text messages through your chosen LLM π€ Return answers directly to Telegram in real-time
π Your Personal AI PDF Expert Inside Telegram From contracts to course notes, this Telegram chatbot brings PDFs to life with instant, smart Q&Aβno app-switching, just upload, ask, and get answers.
Link : https://lovable.dev/projects/7d071541-4aca-4c8f-9311-c194b8e0451b