Automated Telegram Image Analysis and Response Workflow
detail.loadingPreview
Instantly analyze images sent via Telegram using AI and receive automated responses. This workflow streamlines image processing, content moderation, and rapid categorization with seamless integration.
About This Workflow
This n8n workflow automates the process of analyzing images received through Telegram, leveraging the power of OpenAI for intelligent insights. When an image is sent to your Telegram bot, the workflow triggers, downloads the image, and sends it to OpenAI for analysis. The results are then formatted and sent back to the original Telegram chat, providing instant feedback or information derived from the image. This solution is perfect for automating moderation, content tagging, or any scenario requiring rapid, AI-driven image interpretation within a conversational interface.
Key Features
- Real-time Image Ingestion: Automatically captures images sent via Telegram.
- AI-Powered Analysis: Utilizes OpenAI to interpret image content.
- Automated Response Delivery: Sends analysis results directly back to the Telegram chat.
- Conditional Logic: Differentiates between image messages and other input.
- Error Handling: Provides clear feedback if an image is not detected.
How To Use
- Set up Telegram Bot: Create a Telegram bot and obtain its API token.
- Configure Telegram Trigger: Use the 'Telegram Trigger' node, connect your bot's credentials, and set it to listen for 'message' updates.
- Handle Image Detection: Implement a 'Switch' node to check if the incoming message contains a photo (
$json.message.photo). - Download Image: If a photo is detected, use the 'Telegram Trigger' node's 'download' parameter to get the image file.
- Analyze Image: Connect the output to an 'OpenAI' node configured for image analysis (input type: base64, operation: analyze), using your OpenAI API credentials.
- Send Analysis Result: Pipe the OpenAI output to a 'Telegram' node to send the analyzed content back to the chat (
$json.contentfrom OpenAI,{{ $('Get the Image').item.json.message.chat.id }}for chatId). - Handle No Image: If no photo is detected, use a 'Wait' node followed by a 'Telegram' node to inform the user to upload an image.
Apps Used
Workflow JSON
{
"id": "c1f225f7-d49b-4ec5-8b26-d5b8a2a7806d",
"name": "Automated Telegram Image Analysis and Response Workflow",
"nodes": 29,
"category": "DevOps",
"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: c1f225f7-d49b...
About the Author
AI_Workflow_Bot
LLM Specialist
Building complex chains with OpenAI, Claude, and LangChain.
Statistics
Related Workflows
Discover more workflows you might like
Automated PR Merged QA Notifications
Streamline your QA process with this automated workflow that notifies your team upon successful Pull Request merges. Leverage AI and vector stores to enrich notifications and ensure seamless integration into your development pipeline.
Automate Qualys Report Generation and Retrieval
Streamline your Qualys security reporting by automating the generation and retrieval of reports. This workflow ensures timely access to crucial security data without manual intervention.
Visualize Your n8n Workflows: Interactive Dashboard with Mermaid.js
Gain unparalleled visibility into your n8n automation landscape. This workflow transforms your n8n instance into a dynamic, interactive dashboard, leveraging Mermaid.js to visualize all your workflows in one accessible place.