n8n

How to Automate Telegram Multilingual Replies?

Turn Telegram voice notes into clear translated replies. A chat user speaks, and they receive text and audio back in the target language. Great for travel help, language practice, or teams that serve customers in many languages.

The flow starts when Telegram sends a new message to n8n. The bot downloads the voice file and uses OpenAI to turn speech into text. A custom prompt then detects the language and translates based on values in the Settings node, so you choose the native and target languages. The result is posted as a text message and also converted back to audio using OpenAI, then sent as an audio reply in the same chat. A small input step captures text when present so non voice messages do not break the run. Because answers arrive in both text and audio, people can read or listen based on their needs.

You need a Telegram bot token and an OpenAI API key to run this. Set the language fields in the Settings node, activate the workflow, and send a voice note to the bot to test. Expect faster cross language replies and fewer copy paste steps for your team. This is useful for front desk teams, tutors, or field staff who must handle quick chats in many languages.

What are the key features?

  • Telegram on app event trigger listens for new messages and voice notes.
  • Downloads the voice file from Telegram using the voice file id.
  • Uses OpenAI to transcribe audio to text for accurate speech capture.
  • Detects the language and translates based on the Settings node choices.
  • Sends the translated text back to the same chat with Markdown formatting.
  • Generates spoken audio from the translated text using OpenAI.
  • Returns an audio reply in Telegram so users can listen to the result.
  • Basic input handling captures text fields to keep runs stable.

What are the benefits?

  • Reduce manual translation from minutes to under 30 seconds per message
  • Streamline cross language chat replies by up to 80 percent
  • Cut copy paste steps to zero for voice message translation
  • Support dozens of languages with one simple setup
  • Handle many chats at once through one Telegram bot

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with Telegram and OpenAI. See the Tools Required section above for links to create accounts with these services.
  3. Create a Telegram bot: In Telegram, chat with BotFather, create a new bot, and copy the bot token.
  4. Set Telegram credentials in n8n: Double click any Telegram node, open the Credential to connect with menu, click Create new credential, choose Telegram API, paste the bot token, and save.
  5. Create an OpenAI API key: In your OpenAI account, open the API keys page and generate a new key.
  6. Set OpenAI credentials in n8n: Double click the OpenAI nodes, choose Credential to connect with, click Create new credential, paste your OpenAI API key, and save.
  7. Open the Settings node in the workflow and set language_native and language_translate to the languages you want, for example english and spanish.
  8. Check the Telegram Trigger node. No extra changes are usually needed. Make sure the workflow will be set to Active so Telegram can reach it.
  9. Click Activate to register the webhook with Telegram. Send a voice message to your bot to start a run.
  10. Open the Executions view in n8n and confirm that the Telegram file node downloaded the voice file and that the OpenAI transcribe step produced text.
  11. Verify the Auto detect and translate step returns the translated text, the Text reply posts to the chat, and the audio path produces a playable audio reply.
  12. Troubleshoot if needed: If nothing triggers, start a chat with your bot in Telegram. If transcription fails, check audio length and format. If the audio reply is missing, confirm binary data flows into the sendAudio node and your OpenAI credentials are valid.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

OpenAI

Sign up

Pay-as-you-go: GPT-5 at $1.25 per 1M input tokens and $10 per 1M output tokens

Telegram

Sign up

Free: $0, Telegram Bot API usage is free for developers

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.