Telegram Image Analyzer

Telegram Image AnalyzerTelegram Bots

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

  1. Import this workflow into your n8n instance.
  2. Configure credentials for Telegram and OpenAI in n8n (create a Telegram Bot and an OpenAI API key).
  3. Replace the webhook in your Telegram Bot settings with your n8n webhook URL if required.
  4. Activate the workflow.
  5. Test by sending an image to the configured Telegram bot — the workflow will analyze it and respond with the analysis.