Turn a Telegram chat into a smart helper for your own documents. Users send a PDF, then ask questions, and get clear answers pulled from that file. Useful for teams that need quick facts from manuals, guides, or policy docs.
Messages arrive through a Telegram Trigger and pass a command router that separates normal chat, file uploads, and unsupported content. When a PDF arrives, the flow downloads it, extracts text, splits it into chunks, and creates embeddings with Google Gemini. Those vectors are stored in Supabase and searched later when a question comes in. A Gemini chat model writes the final reply, with safe formatting, message splitting for Telegram limits, and a fallback if formatting fails. Weather lookups with OpenWeatherMap are available on request.
Setup needs Telegram, Google Gemini, Supabase, and optional OpenWeatherMap accounts. Expect faster answers and less manual searching, especially for repeat questions and long documents. Strong fits include customer support handbooks, onboarding guides, or service SOPs where staff need quick, accurate answers in chat.