Workflow
How it works
1. The Telegram Webhook trigger starts the workflow when a message arrives at your bot. 2. An If step compares the sender's Telegram user id with your own id, so only you can use the assistant. 3. The AI Agent reads the message, keeps a short memory of the conversation and decides when to call its tools. 4. Two Gmail tools are available: list messages that match a search query the agent writes, and read one message by id. 5. Send a Text Message posts the agent's answer back to your chat.