Turn a Telegram chat into a live knowledge base for your team. Send a PDF to the bot to store it, then ask questions in chat to get clear answers from your own documents. Great for teams that work on mobile and need quick facts from manuals, price lists, or playbooks.
When a Telegram message arrives, the flow checks if it is a document or a question. For documents, the bot downloads the file, tags it as a PDF, splits it into small parts, creates vector embeddings with OpenAI, and saves them in a Pinecone index. A reply confirms how many pages were stored. For questions, the flow searches Pinecone for the best chunks, sends them to a Groq large language model, and returns a focused answer back to the same chat. This keeps answers grounded in your files and reduces guesswork.
You need a Telegram bot token, Pinecone and OpenAI API keys, and a Groq API key. The configuration uses a 3000 character chunk size with 200 overlap, which fits long PDFs well. Teams in operations, sales, or support can cut search time and answer staff or customer questions faster by chatting with the bot.