Intelligent Telegram agent processing text, audio, and images
Workflow Description
An automation that receives messages from Telegram in various formats and processes them using artificial intelligence. It classifies content, analyzes audio files and images, and generates intelligent responses automatically.
How it works
- 1.Receive messages via webhook from Telegram
- 2.Identify content type (text, audio, image) and classify it
- 3.Extract data from audio files and images
- 4.Process content through OpenAI model
- 5.Generate intelligent response and send to user
Use cases
- Build a customer support bot that understands voice messages and images
- Automate analysis of files and documents sent through Telegram
- Deploy automatic message classification and intelligent routing
Requirements
- Telegram account with API Token
- OpenAI API key
- Enabled webhook for message reception
- Stable internet connection
Service Value
Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.
Apps Used
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (39)
Check User & Chat ID
If
Error message
Set
Sticky Note
Sticky Note
Listen for Telegram Events
Webhook
Set Webhook Test URL
HTTP Request
Sticky Note2
Sticky Note
Get Telegram Webhook Info
HTTP Request
Sticky Note5
Sticky Note
Image Schema
Set
Sticky Note3
Sticky Note
Sticky Note1
Sticky Note
gpt-4o-mini
OpenAI
Get Audio File
Set
Get Image
Set
Analyze Image
OpenAI
Transcribe Recording
OpenAI
Sticky Note6
Sticky Note
gpt-4o-mini1
OpenAI
Test Webhook Status
Set
Production Webhook Status
Set
Set Webhook Production URL
HTTP Request
Edit Fields
Set
Audio Task Message
Set
Audio Other Message
Set
Text Task Message
Set
Text Other Message
Set
Image Message
Set
Convert to Image File
Convert To File
Extract from File to Base64
Extract From File
Text Classifier Audio
If
Text Classifier
If
Telegram Token & Webhooks
Set
Get Webhook Status
Set
Validation
Set
Sticky Note4
Sticky Note
Sticky Note7
Sticky Note
Sticky Note8
Sticky Note
Sticky Note9
Sticky Note
Message Router
Switch