Templates / 🤖 Telegram messaging agent for text/audio/images

🤖 Telegram messaging agent for text/audio/images

Ready for 3.0

by Joseph LePage ✓ · 55,055 views · created 2025-01-18 · Personal Productivity, AI Chatbot

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What 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.

  1. Validation (Edit Fields (Set)): sets 3 fields: first_name, last_name, id
  2. Check User & Chat ID (If): checks a condition and branches into true / false
  3. Message Router (Switch): routes items into 3 branches
  4. Error message (Telegram): uses Telegram
  5. Get Audio File (Telegram): work with file
  6. Edit Fields (Edit Fields (Set)): sets 1 field: text
  7. Image Schema (Edit Fields (Set)): sets 2 fields: image_file_id, caption
  8. Transcribe Recording (OpenAI): transcribe (audio)
  9. Text Classifier: classifies text into categories with AI, with model: gpt-4o-mini
  10. Get Image (Telegram): work with file

…plus 16 more steps. See the full node list below.

Services it uses

TelegramOpenAI Chat ModelOpenAI

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)

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…

Excerpt from Joseph LePage's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.