Workflow
How it works
1. A Telegram trigger fires whenever someone sends a message to your bot. 2. The AI Agent receives the message text and the sender's first name, and keeps a rolling memory of the last ten messages in that chat. 3. If the user asks for an image, the agent uses its image tool (OpenAI DALL-E 3) with a prompt it writes itself, and puts the returned image link into its answer. 4. A Telegram step sends the agent's final answer back to the same chat.