Telegram chat with PDF

Nodes

5538bde0-49bb-4e2f-8501-dd5ee606606a1841584d-f090-40d7-8a99-6d8ec8df82fd57932fab-a25f-4afc-8917-5e99648bfd3c18498941-310c-4e96-b6a9-f14e1733ae0c+6

Created by

fefelipe biava cataneo

Last edited 39 days ago

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

New to n8n?

Need help building new n8n workflows? Process automation for you or your company will save you time and money, and it's completely free!