Automated Telegram Image Analysis with OpenAI
detail.loadingPreview
This n8n workflow automatically analyzes images sent via Telegram using OpenAI. It triggers on image reception, processes the image with OpenAI, and sends the analysis back to the Telegram chat.
🚀Ready to Deploy This Workflow?
About This Workflow
Overview
This n8n workflow automates the process of analyzing images sent through Telegram. It leverages the power of OpenAI for image analysis and the Telegram nodes for seamless communication. When an image is received via Telegram, the workflow triggers, sends the image data to OpenAI for analysis, and then returns the analysis results back to the originating Telegram chat. This is particularly useful for automated content moderation, image categorization, or providing real-time feedback on shared visuals.
Key Features
- Trigger on new Telegram messages containing images.
- Utilize OpenAI's image analysis capabilities.
- Automatically send analysis results back to the Telegram chat.
- Handles cases where no image is sent, prompting the user to upload an image.
How To Use
- Set up your Telegram bot and obtain the API token.
- Configure your OpenAI API credentials.
- Add the
Telegram Triggernode and configure it with your Telegram bot token and desired update types (e.g., 'message'). Ensure thedownloadoption is enabled. - Add the
OpenAInode and select the 'analyze' operation for the 'image' resource. Configure it to accept input in 'base64' format. - Add a
Switchnode to differentiate between messages with images and those without. - For messages with images, connect the
Switchnode to theOpenAInode. - Connect the
OpenAInode to aTelegramnode to send the analysis results back to the chat. - For messages without images, configure a
Waitnode followed by aTelegramnode to send an error message asking the user to upload an image.
Apps Used
Workflow JSON
{
"id": "b37e91c8-da17-4a2b-99bb-041e31341fd4",
"name": "Automated Telegram Image Analysis with OpenAI",
"nodes": 0,
"category": "Telegram Automation",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: b37e91c8-da17...
About the Author
Free n8n Workflows Official
System Admin
The official repository for verified enterprise-grade workflows.
Statistics
Verification Info
Related Workflows
Discover more workflows you might like
Telegram Messaging Agent for Text, Audio, and Images
Automate Telegram interactions by processing text, audio, and image messages. This workflow uses a webhook to listen for events, checks user/chat IDs, and leverages OpenAI for analysis and transcription. It handles various message types with specific nodes.
Automate Daily Vegan Recipes via Telegram Bot
This workflow automatically sends daily vegan recipes to Telegram users. It uses the Cron node to trigger the process, Airtable to manage chat IDs, and the Spoonacular API to fetch recipes.
Telegram AI Chatbot with OpenAI Integration
Automate your Telegram messaging with an AI-powered chatbot using OpenAI Chat Model. This workflow triggers on new Telegram messages and sends AI-generated responses back to the chat.