Skip to content
FlowHubFluxonLab
HTTP Request
AI Automationfree

🤖 Telegram Messaging Agent for Text/Audio/Images

by Joseph LePageadapted from n8n official workflow galleryUpdated Aug 2026
RequiresHTTP RequestHTTP RequestOpenAIOpenAI Chat ModelOpenAI Chat ModelTelegramTelegramText ClassifierText Classifier
Share Post Share
IfCheck User & Chat IDCheck User & Ch…Error messageWeListen for Telegram EventsListen for Tele…HRSet Webhook Test URLSet Webhook Tes…HRGet Telegram Webhook InfoGet Telegram We…SeImage Schemagpt-4o-miniGet Audio FileGet ImageAnalyze ImageTranscribe RecordingTranscribe Reco…gpt-4o-mini1Test Webhook StatusTest Webhook St…Production Webhook StatusProduction Webh…HRSet Webhook Production URLSet Webhook Pro…SeEdit FieldsAudio Task MessageAudio Task Mess…Audio Other MessageAudio Other Mes…Text Task MessageText Task Messa…Text Other MessageText Other Mess…Image MessageCTConvert to Image FileConvert to Imag…EFExtract from File to Base64Extract from Fi…TCText Classifier AudioText Classifier…TCText ClassifierSeTelegram Token & WebhooksTelegram Token …Get Webhook StatusGet Webhook Sta…SeValidationSwMessage Router12345678910111213141516171819202122
1/5
FLOWS
STEPS · 22
Starts on an incoming request

🤖 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 sophisticated processing pipeline. Core Components Message Reception and Validation 📥 🔄 Implements webhook-based message reception for real-time processing 🔐 Features a robust user validation system that verifies sender credentials 🔀 Supports both testing and production webhook endpoints for development flexibility Message Processing Pipeline ⚡ 🔄 Uses a smart router to detect and categorize incoming message types 📝 Processes three main message formats: 💬 Text messages 🎤 Voice recordings 📸 Images with captions AI Integration 🧠 🤖 Leverages OpenAI's GPT-4 for message classification and processing 🗣️ Incorporates voice transcription capabilities for audio messages 👁️ Features image analysis using GPT-4 Vision API for processing visual content Technical Architecture Webhook Management 🔌 🌐 Maintains separate endpoints for testing and production environments 📊 Implements automatic webhook status monitoring ⚡ Provides real-ti

Tags

n8nreference-onlylm-chat-open-aiopen-aitelegramtext-classifier
Connects
WHTTP RequestOpenAIopenaichatmodelOpenAI Chat ModeltelegramTelegramtextclassifierText Classifier
CategoryAI Automation
Triggermanual
Complexityadvanced
Nodes29
AddedJan 18, 2025

Related workflows

See all AI Automation
AWopenaichatmodel
free

Create AI product video ad Shorts from Telegram photos with OpenAI and AtlasCloud

Quick overview This workflow takes a product photo sent via Telegram, uses OpenAI Vision to describe it and OpenAI to write a short-form video ad prompt, generates a vertical video via AtlasCloud, then (after two approvals in Telegram) publishes the Short to YouTube via Blotato. How it works Triggers when a user sends a product photo (optionally with a caption/campaign) to a Telegram bot. Downloads the image from Telegram and uses OpenAI Vision to extract an advertising-focused product description. Uses OpenAI to generate a single cinematic text-to-video prompt plus a YouTube Shorts title and description. Sends the proposed prompt to Telegram and waits for your approval before proceeding. If approved, requests video generation from AtlasCloud and polls the render status until the video is completed. Sends the generated video back to Telegram for preview and waits for a second approval to publish. If approved, publishes the video to YouTube as an unlisted Short via Blotato and notifies you in Telegram (otherwise it stops and sends a decline message). Setup Create and connect a Telegram bot credential, then start a chat with the bot so it can receive photos and send approval prompts.

by Dr. Firas
Aopenaichatmodelstructuredoutputparser
free

Publish AI social posts from Telegram to LinkedIn, Instagram, Facebook and Threads with OpenAI and Blotato

Quick overview This workflow listens for a Telegram message or voice note, uses OpenAI to turn it into a cross-platform social caption and matching AI image, publishes the post via Blotato to LinkedIn, Instagram, Facebook, and Threads, then sends a confirmation back to Telegram. How it works Triggers when a new Telegram message is received by your bot. Routes the input as voice or text, downloading voice notes from Telegram and transcribing them with OpenAI. Sends the resulting text to an OpenAI chat model to generate a single ready-to-publish caption plus an image prompt. Generates an image with OpenAI (gpt-image-1) using the returned image prompt. Uploads the generated image to Blotato to get a hosted media URL. Publishes the caption and image to LinkedIn, Instagram, Facebook Pages, and Threads through Blotato. Sends a Telegram message confirming publication and includes the posted caption. Setup Create a Telegram bot in @BotFather, add the bot token as a Telegram credential in n8n, and activate the Telegram Trigger. Add an OpenAI API credential for audio transcription, caption generation, and image generation, and (optionally) adjust the model, language, image size, and quality

by Dr. Firas
AopenaichatmodelS
free

Run a voice-enabled AI assistant on Telegram with OpenAI, Gmail and Notion

Quick overview This workflow turns a Telegram bot into a personal assistant that handles text and voice messages using OpenAI, can read Gmail and Google Calendar, looks up tasks and contacts in Notion, and can draft and send emails with a required approval step in Telegram. How it works Triggers when a new Telegram message is received by your bot. Detects whether the message is a voice note or text, and if it is voice, downloads it from Telegram and transcribes it with OpenAI. Sends the resulting user text to an OpenAI-powered agent that keeps a short conversation memory per chat. When needed, the agent fetches recent emails from Gmail, lists upcoming events from Google Calendar, and pulls tasks or contacts from Notion to answer the request. If the agent decides to send an email, it asks for approval in Telegram and only proceeds after you approve within the time limit. Sends the assistant’s final response back to the same Telegram chat. Setup Create a Telegram bot with @BotFather, add the Telegram credentials in n8n, and use the workflow’s Telegram trigger to connect the bot. Add an OpenAI API credential for both chat responses and voice transcription, and set your preferred model

by Dr. Firas