Handle Telegram chats with an AI assistant that remembers past conversations. It understands text, voice, and images, and saves helpful notes for future use. Teams can answer faster without switching tools or losing context.
A Telegram webhook listens for new messages. A router checks if the message is text, an image, or audio. Audio files are downloaded from Telegram and sent to OpenAI for transcription. Images are fetched and analyzed by OpenAI to produce captions and details. All content flows into an AI agent powered by GPT 4o mini. The agent reads short term chat memory from Postgres, pulls long term memories and notes from Baserow, and can save new notes or memories back to Baserow. Merge and Aggregate nodes shape the final answer, which is sent back to Telegram with clean formatting. A user check step blocks unknown users and sends a clear error message.
Set up needs a Telegram bot, an OpenAI key, a Baserow base for memories and notes, and a Postgres database for chat history. Expect faster first response times and fewer repeat questions because the assistant recalls past details. Use it for customer support, product questions, and capturing insights during live chats so your team can review them later.