FM
FlowMarket
RAG & Vector DB Advanced ⚡ 20 n8n Nodes

Telegram chat with PDF

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 incom...

🔌 Nodes & Integrations Used (11)

Telegram Trigger Embeddings Open Ai Document Default Data Loader Text Splitter Recursive Character Text Splitter Stop And Error Chain Retrieval Qa Retriever Vector Store Vector Store Pinecone Lm Chat Groq Telegram Limit

📖 Implementation & Setup Guide

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

⚡ How to import this workflow into n8n:

  1. Click the Direct Download JSON button above to save Telegram chat with PDF.json.
  2. Log in to your n8n Cloud or self-hosted n8n instance.
  3. In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
  4. Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
  5. Click Execute Workflow to test and switch to Active!

Related RAG & Vector DB Workflows

View All in RAG & Vector DB →