n8n

How to Automate Telegram Image Insights?

Turn image posts in Telegram into quick, clear answers. When someone sends a photo, the bot replies with a simple summary or insight. Teams that need fast checks or tagging can use it to keep chats clean and helpful.

Here is how it works. A Telegram trigger listens for new messages and downloads the image. A switch checks if the message has a photo. If yes, the image is passed as base64 to OpenAI for analysis. The result text is posted back to the same chat. If no image is found, the flow waits a moment and sends a friendly reminder to upload a picture. This creates consistent replies and cuts down manual review.

Setup needs a Telegram bot token and an OpenAI API key. Map the base64 image from the trigger to the analysis node, then send the result text back with the chat ID from the trigger. Expect faster message handling and fewer questions left unanswered. It is great for content moderation, quick tagging, and giving instant feedback in groups or support channels.

What are the key features?

  • Telegram trigger listens for new messages and downloads images automatically.
  • Switch logic routes messages with images to analysis and others to a guidance reply.
  • OpenAI image analysis reads base64 input and returns clear text insights.
  • Telegram send message node posts the analysis result back to the same chat.
  • Wait node adds a short delay before sending a helpful error message when no image is found.
  • Credential based connections for Telegram and OpenAI keep setup simple and secure.

What are the benefits?

  • Reduce manual review time from 10 minutes to under 30 seconds
  • Automate up to 90 percent of first replies to image posts
  • Handle up to 5 times more image submissions without extra staff
  • Connect Telegram and OpenAI in one simple flow

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with Telegram and OpenAI. See the Tools Required section above for links to create accounts with these services.
  3. Create a Telegram bot: In Telegram, start a chat with BotFather, run the new bot command, and copy the bot token.
  4. In n8n Cloud, open Credentials and create a new Telegram credential. Paste the bot token and save.
  5. Open the Telegram Trigger node and select your Telegram credential. Confirm that file download is enabled, then save.
  6. Activate the workflow in n8n Cloud so Telegram can send updates to your webhook URL. Send a test message to your bot to confirm it reaches n8n.
  7. Create an OpenAI API key from your OpenAI account’s API page. Copy the key.
  8. In n8n Credentials, add a new OpenAI credential using the API key. Save it and select it in the Analyze image node.
  9. In the Analyze image node, set input type to base64. Map the base64 image data from the Telegram Trigger. If unsure, double click the node and use the expression editor to select the image binary data.
  10. Open the Send Content node. Set Chat ID to use the chat ID from the Telegram Trigger and set the text field to the content from the analysis result.
  11. Send a real photo to your bot. You should receive the analysis reply in a few seconds.
  12. Test the error path by sending a text message. After a short delay, the bot should reply with a request to upload an image.
  13. If the bot does not respond, check that the workflow is active and that the Telegram credential is linked to the trigger. Make sure your n8n instance is reachable over HTTPS.
  14. Review run history in n8n to verify data mapping and adjust the base64 field if the analysis node returns empty content.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

OpenAI

Sign up

Pay-as-you-go: GPT-5 at $1.25 per 1M input tokens and $10 per 1M output tokens

Telegram

Sign up

Free: $0, Telegram Bot API usage is free for developers

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.