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.

What this workflow does

This AI workflow has 18 nodes and runs on Telegram events (message). Along the way it connects Telegram, Embeddings OpenAI, Pinecone Vector Store and Groq Chat Model.

How it runs

Trigger: On Telegram events (message).

  1. Check If is a document (If): checks a condition and branches into true / false
  2. Telegram: work with file
  3. Question and Answer Chain: answers questions over your documents (RAG), with model: Groq Chat Model; retriever: Vector Store Retriever
  4. Change to application/pdf (Code): runs custom JavaScript code
  5. Telegram: uses Telegram
  6. Pinecone Vector Store: stores documents in the Pinecone vector store, with embeddings: Embeddings OpenAI; document loader: Default Data Loader
  7. Stop and Error: stops the run with an error
  8. Limit: keeps the first few items
  9. Telegram: uses Telegram
  10. Stop and Error: stops the run with an error

Services it uses

TelegramEmbeddings OpenAIPinecone Vector StoreGroq Chat Model

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (13)

From the author

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…

Excerpt from felipe biava cataneo's description on n8n.io.

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.