Skip to content
FlowHubFluxonLab
C
AI Automationfree

Telegram chat with PDF

by felipe biava cataneoadapted from n8n official workflow galleryUpdated Aug 2026
RequiresCCodeDDefault Data LoaderEmbeddings OpenAIEmbeddings OpenAIGroq Chat ModelGroq Chat ModelPinecone Vector StorePinecone Vector StoreQuestion and Answer ChainQuestion and Answer ChainRecursive Character Text SplitterRecursive Character Text SplitterTelegramTelegramVector Store RetrieverVector Store Retriever
Share Post Share
Telegram TriggerEmbeddings OpenAIEmbeddings Open…DDDefault Data LoaderDefault Data Lo…TSRecursive Character Text SplitterRecursive Chara…SAStop and ErrorCRQuestion and Answer ChainQuestion and An…RVVector Store RetrieverVector Store Re…VSPinecone Vector Store1Pinecone Vector…Groq Chat ModelIfCheck If is a documentCheck If is a d…CoChange to application/pdfChange to appli…Telegram get FileTelegram get Fi…EmbeddingsTelegram ResponseTelegram Respon…Telegram Response about DatabaseTelegram Respon…SAStop and Error1VSPinecone Vector StorePinecone Vector…LiLimit to 11234567891011121314151617
1/5
STEPS · 17
Starts on a Telegram event

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 Open the Telegram app and search for the BotFather user (@BotFather) Start a chat with the BotFather Type /newbot to create a new bot Follow the prompts to name your bot and get a unique API token 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.

Tags

n8nreference-onlychain-retrieval-qadocument-default-data-loaderembeddings-open-ailm-chat-groqretriever-vector-storetelegramtext-splitter-recursive-character-text-splittervector-store-pinecone
Connects
CCodeDDefault Data LoaderembeddingsopenaiEmbeddings OpenAIgroqchatmodelGroq Chat ModelpineconevectorstorePinecone Vector StorequestionandanswerchainQuestion and Answer Chain
CategoryAI Automation
Triggermanual
Complexitycomplex
Nodes18
AddedAug 27, 2024

Related workflows

See all AI Automation
binaryinputloaderembeddingsopenaigoogledriveopenaichatmodel
free

Ask questions about a PDF using AI

The workflow first populates a Pinecone index with vectors from a Bitcoin whitepaper. Then, it waits for a manual chat message. When received, the chat message is turned into a vector and compared to the vectors in Pinecone. The most similar vectors are retrieved and passed to OpenAI for generating a chat response. Note that to use this template, you need to be on n8n version 1.19.4 or later.

by David Roberts
ACDgmail
free

AI: Summarize podcast episode and enhance using Wikipedia

The workflow automates the process of creating a summarized and enriched podcast digest, which is then sent via email. Note that to use this template, you need to be on n8n version 1.19.4 or later.

by n8n Team
DhtmlWopenaichatmodel
free

Scrape and summarize webpages with AI

This workflow integrates both web scraping and NLP functionalities. It uses HTML parsing to extract links, HTTP requests to fetch essay content, and AI-based summarization using GPT-4o. It's an excellent example of an end-to-end automated task that is not only efficient but also provides real value by summarizing valuable content. Note that to use this template, you need to be on n8n version 1.50.0 or later.

by n8n Team