Templates / Telegram chat with PDF

Telegram chat with PDF

Ready for 3.0

by felipe biava cataneo · 18,746 views · created 2024-08-27 · Document Extraction, 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 (13)

TelegramEmbeddings OpenAIDefault Data LoaderRecursive Character Text SplitterQuestion and Answer ChainVector Store RetrieverPinecone Vector StoreGroq Chat Model

What it does

What this template does This template serves as a Chatbot that enables you to ask questions about the content of a PDF directly in Telegream. It checks incoming Telegram messages if they contain a document. If they do, it stores the PDF in a Pinecone Vector store. If there's no document, it will search the Vector Store for information and try to answer your question. Setup 1. Open the Telegram app and search for the BotFather user (@BotFather) 2. Start a chat with the BotFather 3. Type /newbot to create a new bot 4. Follow the prompts to name your bot and get a unique API token 5. Save your access token and username Once you set your bot, you can send the pdf, and then ask questions about the content. How to adjust it to your needs - You can exchange the Groq chat model with any model that you like - Exchange Pinecone with any other vector store tool you like (e.g. Supabase, Postgres or QDrant) Telegram, Pinecone, Openai, GroQ

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.