Translate Telegram Audio Messages Automatically with n8n & OpenAI

Struggling with understanding Telegram voice messages in multiple languages? This n8n workflow uses OpenAI to transcribe, auto-detect, and translate audio messages from 55 languages, replying with text and speech, saving you hours of manual effort.
telegramTrigger
openAi
chainLlm
+4
Workflow Identifier: 1119
NODES in Use: Telegram Trigger, Sticky Note, Telegram, OpenAI, Set, Chain LLM, Telegram1
Automate Telegram audio with n8n and OpenAI

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What this workflow does

This workflow listens for new Telegram voice messages.
It downloads the audio and turns it into text using OpenAI.
Then, it checks what language the message is in.
After that, it translates the text between two chosen languages.
Finally, it sends the translated text and also an audio reply back in Telegram.
This saves time and helps understand messages faster in different languages.


Who should use this workflow

People who get voice messages in languages they do not speak well.
Users who want quick translations right inside Telegram without switching apps.
Anyone needing faster replies and fewer mistakes in foreign language chats.


Tools and services used

  • Telegram Bot API: Receives voice messages and sends replies.
  • OpenAI API: Transcribes speech to text, detects language, translates text, and synthesizes audio.
  • n8n automation: Runs the workflow and connects Telegram and OpenAI.

Inputs, Processing steps, and Outputs

Input

  • New Telegram voice message triggers the workflow.

Processing

  • Download the voice file from Telegram.
  • Send audio to OpenAI to get text transcription.
  • Prepare the text safely for processing if empty or missing.
  • Use OpenAI to detect the language and translate between two set languages.
  • Convert the translated text back to speech audio.

Output

  • Send back the translated text message in the Telegram chat.
  • Send audio of the translated speech as a voice reply.

Beginner step-by-step: How to use this workflow in n8n

Import the workflow

  1. Inside the n8n editor, click “Import from File”.
  2. Find and select the downloaded workflow file using the Download button on this page.

Configure after import

  1. Add your Telegram Bot API credentials.
  2. Add your OpenAI API Key.
  3. Check the Settings node for language_native and language_translate values. Change if needed.
  4. Make sure the chat IDs or user IDs are updating dynamically. Usually done automatically.

Test and activate

  1. Send a test voice message to your Telegram bot to try the whole flow.
  2. Watch in n8n if the workflow runs without errors.
  3. Once working, switch the workflow to active mode to run for all messages.

If you want privacy and control, consider self-host n8n.


Step-by-step workflow description (Input → Process → Output)

Input

The Telegram Trigger node waits for any new message with voice audio.
It triggers the workflow only if a voice message is detected.

Process

  • The Telegram node downloads voice audio using the file ID from the trigger.
  • The OpenAI node transcribes audio to text using speech-to-text models.
  • The Set node named Input Error Handling prepares the text so next nodes don’t break if text is empty.
  • The Chain LLM node auto detects if text is in native or translated language and then translates accordingly.
  • The system uses another OpenAI node to convert the translated text back to speech audio.

Output

  • The Telegram node sends translated text message back in the Telegram chat.
  • A second Telegram node sends the audio reply with the translated speech.

Common edge cases and how to handle failures

  • If the Telegram Trigger node does not work, check if the webhook is set and if credentials are correct.
  • If OpenAI transcription is empty or has errors, verify the Telegram voice file ID and ensure audio is correctly sent to OpenAI.
  • If translations look wrong or repeat, check the prompt in the Chain LLM node and make sure language variables are correct.

Customization ideas

  • Edit the Settings node to change native and translated languages easily.
  • Modify the Telegram Trigger to also handle audio and video messages.
  • Add emojis or format text in the reply node for more fun messages.
  • Insert logging nodes to save transcripts or translations to external databases.
  • Expand the Chain LLM translation prompt to support more than two languages.

Summary

→ Transcribes voice messages from Telegram.
→ Detects and translates text between two chosen languages.
→ Sends back translation as text and voice message.
✓ Quick understanding of foreign voice messages.
✓ Saves time and reduces errors.
✓ Fits inside Telegram without switching apps.


Automate Telegram audio with n8n and OpenAI

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

Check Telegram Bot API credentials are correct. Set webhook properly in Telegram BotFather. Restart the workflow after setup.
Verify the Telegram voice file ID is correctly used. Confirm audio file format matches OpenAI requirements. Pass binary data properly to OpenAI node.
Review the prompt in the Chain LLM node. Ensure dynamic language variables from Settings node are correctly referenced.
Yes, but it depends on the capacity of the n8n server and API limits of Telegram and OpenAI.

Promoted by BULDRR AI

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.