Telegram PDF Chatbot

n8n AI Customer Support Productivity

Contributed by Sabrina Ramonov 🍄. From the community directory at agents.sabrina.dev, republished with permission and full credit.

This template serves as a Chatbot that enables you to ask questions about the content of a PDF directly in Telegram.

It checks incoming Telegram messages to see 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 up 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).

Tools used: Telegram, Pinecone, OpenAI

Download the workflow template (JSON)

Original tutorial

Want this running in your business? KOBA42 builds and operates automations like this one.