Built an n8n conversational AI agent that listens for incoming Telegram messages, processes them through an OpenAI chat model with window buffer memory to maintain conversation context, and uses DALL-E 3 as a tool whenever an image is requested. Successful responses get sent back to the user as a message, with a separate error-handling path that sends a corrective message if anything goes wrong. The image generation runs as a sub-workflow triggering DALL-E 3 via the OpenAI API, sending the photo directly back into the Telegram chat, and appending the response field cleanly.