← All N8N workflows
AI & researchConvert To FileExtract From FileHTTP RequestIfOpenAI Chat Model

πŸ€– 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.

Workflow preview
RoutingCheck User & Chat IDIfMessagingError messageTelegramTriggerListen for TelegramEventsWebhookWeb / APISet Webhook Test URLHTTP RequestWeb / APIGet Telegram WebhookInfoHTTP RequestTransformImage SchemaEdit FieldsAI & modelsgpt-4o-miniOpenAI Chat ModelMessagingGet Audio FileTelegramMessagingGet ImageTelegramAI & modelsAnalyze ImageOpen AiAI & modelsTranscribe RecordingOpen AiAI & modelsgpt-4o-mini1OpenAI Chat ModelMessagingTest Webhook StatusTelegramMessagingProduction WebhookStatusTelegramWeb / APISet Webhook ProductionURLHTTP RequestTransformEdit FieldsEdit FieldsMessagingAudio Task MessageTelegramMessagingAudio Other MessageTelegramMessagingText Task MessageTelegramMessagingText Other MessageTelegramMessagingImage MessageTelegramTransformConvert to Image FileConvert To FileTransformExtract from File toBase64Extract From FileAI & modelsText Classifier AudioText ClassifierAI & modelsText ClassifierText ClassifierTransformTelegram Token &WebhooksEdit FieldsMessagingGet Webhook StatusTelegramTransformValidationEdit FieldsRoutingMessage RouterSwitch

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.

Workflow node names, types, and operations
NodeCategoryTypeOperation
Check User & Chat IDRoutingIfSee node parameters
Error messageMessagingTelegramSee node parameters
Listen for Telegram EventsTriggerWebhookSee node parameters
Set Webhook Test URLWeb / APIHTTP RequestSee node parameters
Get Telegram Webhook InfoWeb / APIHTTP RequestSee node parameters
Image SchemaTransformEdit FieldsSee node parameters
gpt-4o-miniAI & modelsOpenAI Chat ModelSee node parameters
Get Audio FileMessagingTelegramfile
Get ImageMessagingTelegramfile
Analyze ImageAI & modelsOpen Aiimage / analyze
Transcribe RecordingAI & modelsOpen Aiaudio / transcribe
gpt-4o-mini1AI & modelsOpenAI Chat ModelSee node parameters
Test Webhook StatusMessagingTelegramSee node parameters
Production Webhook StatusMessagingTelegramSee node parameters
Set Webhook Production URLWeb / APIHTTP RequestSee node parameters
Edit FieldsTransformEdit FieldsSee node parameters
Audio Task MessageMessagingTelegramSee node parameters
Audio Other MessageMessagingTelegramSee node parameters
Text Task MessageMessagingTelegramSee node parameters
Text Other MessageMessagingTelegramSee node parameters
Image MessageMessagingTelegramSee node parameters
Convert to Image FileTransformConvert To FiletoBinary
Extract from File to Base64TransformExtract From FilebinaryToPropery
Text Classifier AudioAI & modelsText ClassifierSee node parameters
Text ClassifierAI & modelsText ClassifierSee node parameters
Telegram Token & WebhooksTransformEdit FieldsSee node parameters
Get Webhook StatusMessagingTelegramSee node parameters
ValidationTransformEdit FieldsSee node parameters
Message RouterRoutingSwitchSee node parameters

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. 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

  • openAiApi
  • telegramApi

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 BotFather
  • url_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

More in AI & research