Telegram chat with PDF
Ready for 3.0Ready 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).
- Check If is a document (If): checks a condition and branches into true / false
- Telegram: work with file
- Question and Answer Chain: answers questions over your documents (RAG), with model: Groq Chat Model; retriever: Vector Store Retriever
- Change to application/pdf (Code): runs custom JavaScript code
- Telegram: uses Telegram
- Pinecone Vector Store: stores documents in the Pinecone vector store, with embeddings: Embeddings OpenAI; document loader: Default Data Loader
- Stop and Error: stops the run with an error
- Limit: keeps the first few items
- Telegram: uses Telegram
- Stop and Error: stops the run with an error
Services it uses
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)
- Telegram Trigger
n8n-nodes-base.telegramTrigger - Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi - Default Data Loader
@n8n/n8n-nodes-langchain.documentDefaultDataLoader - Recursive Character Text Splitter
@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter - Stop and Error
n8n-nodes-base.stopAndError - Question and Answer Chain
@n8n/n8n-nodes-langchain.chainRetrievalQa - Vector Store Retriever
@n8n/n8n-nodes-langchain.retrieverVectorStore - Pinecone Vector Store
@n8n/n8n-nodes-langchain.vectorStorePinecone - Groq Chat Model
@n8n/n8n-nodes-langchain.lmChatGroq - If
n8n-nodes-base.if - Code
n8n-nodes-base.code - Telegram
n8n-nodes-base.telegram - Limit
n8n-nodes-base.limit
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…