π€ Telegram Messaging Agent for Text/Audio/Images
Configured with Convert To File, Extract From File, HTTP Request, OpenAI Chat Model, and additional nodes. Review the connections and setup before adapting this template.
Node categories in this workflow
- Routing
- Messaging
- Trigger
- Web / API
- Transform
- AI & models
Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.
Drag to pan; use + and β to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.
How it works
The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.
| Node | Category | Type | Operation |
|---|---|---|---|
| Check User & Chat ID | Routing | If | See node parameters |
| Error message | Messaging | Telegram | See node parameters |
| Listen for Telegram Events | Trigger | Webhook | See node parameters |
| Set Webhook Test URL | Web / API | HTTP Request | See node parameters |
| Get Telegram Webhook Info | Web / API | HTTP Request | See node parameters |
| Image Schema | Transform | Edit Fields | See node parameters |
| gpt-4o-mini | AI & models | OpenAI Chat Model | See node parameters |
| Get Audio File | Messaging | Telegram | file |
| Get Image | Messaging | Telegram | file |
| Analyze Image | AI & models | Open Ai | image / analyze |
| Transcribe Recording | AI & models | Open Ai | audio / transcribe |
| gpt-4o-mini1 | AI & models | OpenAI Chat Model | See node parameters |
| Test Webhook Status | Messaging | Telegram | See node parameters |
| Production Webhook Status | Messaging | Telegram | See node parameters |
| Set Webhook Production URL | Web / API | HTTP Request | See node parameters |
| Edit Fields | Transform | Edit Fields | See node parameters |
| Audio Task Message | Messaging | Telegram | See node parameters |
| Audio Other Message | Messaging | Telegram | See node parameters |
| Text Task Message | Messaging | Telegram | See node parameters |
| Text Other Message | Messaging | Telegram | See node parameters |
| Image Message | Messaging | Telegram | See node parameters |
| Convert to Image File | Transform | Convert To File | toBinary |
| Extract from File to Base64 | Transform | Extract From File | binaryToPropery |
| Text Classifier Audio | AI & models | Text Classifier | See node parameters |
| Text Classifier | AI & models | Text Classifier | See node parameters |
| Telegram Token & Webhooks | Transform | Edit Fields | See node parameters |
| Get Webhook Status | Messaging | Telegram | See node parameters |
| Validation | Transform | Edit Fields | See node parameters |
| Message Router | Routing | Switch | See node parameters |
Setup
- Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
- Connect your own credentials through n8nβs credential store. Replace
REPLACE_WITH_*values with your resource identifiers. - Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
- Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.
Requirements
An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.
Credential types declared in the source
openAiApitelegramApi
Workflow notes
How to set up a Telegram Bot WebHook
How to set up a Telegram Bot WebHook
WebHook Setup Process
Basic Concept A WebHook allows your Telegram bot to automatically receive updates instead of manually polling the Bot API.
Setup Method To set a WebHook, make a GET request using this URL format:
https://api.telegram.org/bot{my_bot_token}/setWebhook?url={url_to_send_updates_to}
Where:
my_bot_token: Your bot token from BotFatherurl_to_send_updates_to: Your HTTPS endpoint that handles bot updates
Verification To verify the WebHook setup, use:
https://api.telegram.org/bot{my_bot_token}/getWebhookInfo
A successful response looks like:
{
"ok": true,
"result": {
"url": "https://www.example.com/my-telegram-bot/",
"has_custom_certificate": false,
"pending_update_count": 0,
"max_connections": 40
}
}
This method provides a simple and efficient way to handle Telegram bot updates automatically through webhooks rather than manual polling.
π€ Telegram Messaging Agent for Text/Audio/Images
π€ Telegram Messaging Agent for Text/Audio/Images
Purpose and structure
This folder contains the π€ Telegram Messaging Agent for Text/Audio/Images workflow. Its executable nodes use convertToFile, extractFromFile, httpRequest, if, lmChatOpenAi, openAi, set, switch, telegram, textClassifier, webhook. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.
Setup
Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.
Entry points
Listen for Telegram Events
Verification
Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.
Attribution
https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Telegram/2051_Telegram_Webhook_Automation_Webhook.json MIT; preserve source notices.
Canvas section labels
These name areas of the original canvas; they do not include explanatory instructions.
- Receive Telegram Message with Webhook
- Telegram Webhook Tools
- Process Audio
- Process Image
- Process Text
- Validate Telegram User
- Webhook Status
- Set Webhook for Testing
- Set Webhook for Production