🤖 Telegram messaging agent for text/audio/images
Ready for 3.0What this workflow does
This AI workflow has 29 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Telegram, OpenAI Chat Model and OpenAI.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Validation (Edit Fields (Set)): sets 3 fields: first_name, last_name, id
- Check User & Chat ID (If): checks a condition and branches into true / false
- Message Router (Switch): routes items into 3 branches
- Error message (Telegram): uses Telegram
- Get Audio File (Telegram): work with file
- Edit Fields (Edit Fields (Set)): sets 1 field: text
- Image Schema (Edit Fields (Set)): sets 2 fields: image_file_id, caption
- Transcribe Recording (OpenAI): transcribe (audio)
- Text Classifier: classifies text into categories with AI, with model: gpt-4o-mini
- Get Image (Telegram): work with file
…plus 16 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (11)
- If
n8n-nodes-base.if - Telegram
n8n-nodes-base.telegram - Webhook
n8n-nodes-base.webhook - HTTP Request
n8n-nodes-base.httpRequest - Edit Fields (Set)
n8n-nodes-base.set - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - OpenAI
@n8n/n8n-nodes-langchain.openAi - Convert to File
n8n-nodes-base.convertToFile - Extract from File
n8n-nodes-base.extractFromFile - Text Classifier
@n8n/n8n-nodes-langchain.textClassifier - Switch
n8n-nodes-base.switch
From the author
🤖 This n8n workflow creates an intelligent Telegram bot that processes multiple types of messages and provides automated responses using AI capabilities. The bot serves as a personal assistant that can handle text, voice messages, and images through a…