

Click on the Image to Download the Template FOR FREE !! 👇👇
🤖 Telegram AI Voice & Text Assistant Workflow
This n8n workflow turns Telegram into a full AI assistant that can handle voice messages, text messages, and approvals, using OpenAI for reasoning, transcription, and audio generation.


Approval Workflow 👇👇
🔹 1. Telegram Trigger
The workflow starts when a new Telegram update is received
Supports:
🎙 Voice messages
💬 Text messages
✅ Approval-type interactions
🔹 2. Message Type Detection (Switch Node)
A Switch (Rules) node checks the incoming message type:
Voice
Text
Approval / Event-based data
Each type follows a different processing path.
🔹 3. Voice Message Processing
🎙 Voice → Text
Get a voice message (Telegram – get file)
Transcribe recording using OpenAI (speech-to-text)
Edit fields to clean and format the transcription
The transcribed text is then sent to the AI Agent.
🔹 4. Text Message Processing
Text messages are:
Retrieved directly
Cleaned and normalized via Edit Fields
Sent straight to the AI Agent for reasoning
🔹 5. AI Agent (Core Brain)
The AI Agent uses an OpenAI Chat Model
It:
Understands user intent
Decides how to respond
Chooses between text or voice output
Supports memory and tool usage for more advanced behavior
🔹 6. Conditional Output Logic (If Node)
After the AI Agent responds:
If output is text → send a Telegram text message
If output is audio:
Generate audio using OpenAI (text-to-speech)
Convert to binary audio data
Send the audio file back to Telegram
🔹 7. Approval & Event Handling (Optional Path)
Approval data is:
Manually structured
Routed via event-type logic
Sent to an external service using an HTTP Request
Useful for workflows that require confirmation before execution
🚀 What This Workflow Enables
✅ Telegram AI voice assistant
✅ Voice → text → AI reasoning → voice reply
✅ Text-based AI chat
✅ Multi-modal AI (text + audio)
✅ Approval-based automation
✅ Fully automated Telegram bot logic
💡 Ideal Use Cases
Personal AI assistant on Telegram
Customer support bot
Voice-controlled automation
AI agents with approval flows
Multi-modal chatbots
