This workflow listens for images sent to a Telegram bot, sends the image to OpenAI for automated analysis, and returns the analysis back to the same Telegram chat. It includes basic error handling for non-image messages and uses n8n expressions to route and assemble the response.
What You Can Do
- Receive images from Telegram users and automatically analyze them with OpenAI’s image analysis.
- Send the analysis text back to the originating Telegram chat.
- Handle non-image messages by sending a polite error prompt requesting an image.
- Customize analysis or add additional routing rules by editing the Switch or OpenAI node parameters.
Quick Start
- Import this workflow into your n8n instance.
- Configure credentials for Telegram and OpenAI in n8n (create a Telegram Bot and an OpenAI API key).
- Replace the webhook in your Telegram Bot settings with your n8n webhook URL if required.
- Activate the workflow.
- Test by sending an image to the configured Telegram bot — the workflow will analyze it and respond with the analysis.


