This workflow corresponds to n8n.io template #4528 — we link there as the canonical source.
This workflow follows the OpenAI → Telegram recipe pattern — see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"id": "JnDUKOvOXcOImSQc",
"meta": {
"templateCredsSetupCompleted": true
},
"name": "Transcribe Telegram Audio with OpenAI",
"tags": [],
"nodes": [
{
"id": "9302ced1-1655-4177-87a1-8cf69a5e692d",
"name": "Get audio file",
"type": "n8n-nodes-base.telegram",
"position": [
1020,
-100
],
"parameters": {
"fileId": "={{ $json.message.voice.file_id }}",
"resource": "file"
},
"credentials": {
"telegramApi": {
"name": "<your credential>"
}
},
"typeVersion": 1.2
},
{
"id": "0eb4cb08-cce3-45d4-98cc-128f2769a1db",
"name": "Transcribe audio",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
1240,
-100
],
"parameters": {
"options": {},
"resource": "audio",
"operation": "transcribe"
},
"credentials": {
"openAiApi": {
"name": "<your credential>"
}
},
"typeVersion": 1.8
},
{
"id": "460ffa1f-96a2-46ea-b7b3-69256091cd2b",
"name": "Message Trigger",
"type": "n8n-nodes-base.telegramTrigger",
"position": [
600,
-180
],
"parameters": {
"updates": [
"message"
],
"additionalFields": {}
},
"credentials": {
"telegramApi": {
"name": "<your credential>"
}
},
"typeVersion": 1.2
},
{
"id": "206b4539-8536-4728-a73c-9ce74807a1ec",
"name": "Send transcription message",
"type": "n8n-nodes-base.telegram",
"position": [
1420,
-200
],
"parameters": {
"text": "={{ $json.message.text }}\n{{ $json.text }}",
"chatId": "={{ $('Message Trigger').item.json.message.chat.id }}",
"additionalFields": {
"appendAttribution": false
}
},
"credentials": {
"telegramApi": {
"name": "<your credential>"
}
},
"typeVersion": 1.2
},
{
"id": "3ecfa664-e415-4280-938b-9203209ad940",
"name": "Route Chat Input",
"type": "n8n-nodes-base.switch",
"position": [
800,
-180
],
"parameters": {
"rules": {
"values": [
{
"outputKey": "text",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "a561aab7-4c3b-4c96-9bb7-078281b5c7d5",
"operator": {
"type": "string",
"operation": "exists",
"singleValue": true
},
"leftValue": "={{ $json.message.text }}",
"rightValue": ""
}
]
},
"renameOutput": true
},
{
"outputKey": "voice",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "b7f1055d-6651-416f-b0cd-c46e003d4f3a",
"operator": {
"type": "object",
"operation": "exists",
"singleValue": true
},
"leftValue": "={{ $json.message.voice }}",
"rightValue": ""
}
]
},
"renameOutput": true
}
]
},
"options": {}
},
"typeVersion": 3.2
}
],
"active": false,
"settings": {
"timezone": "Europe/Madrid",
"callerPolicy": "workflowsFromSameOwner",
"executionOrder": "v1"
},
"versionId": "b3af0e15-d151-48d7-9e0d-1bd553e559c5",
"connections": {
"Get audio file": {
"main": [
[
{
"node": "Transcribe audio",
"type": "main",
"index": 0
}
]
]
},
"Message Trigger": {
"main": [
[
{
"node": "Route Chat Input",
"type": "main",
"index": 0
}
]
]
},
"Route Chat Input": {
"main": [
[
{
"node": "Send transcription message",
"type": "main",
"index": 0
}
],
[
{
"node": "Get audio file",
"type": "main",
"index": 0
}
]
]
},
"Transcribe audio": {
"main": [
[
{
"node": "Send transcription message",
"type": "main",
"index": 0
}
]
]
}
}
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
openAiApitelegramApi
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
This n8n workflow processes incoming Telegram messages, differentiating between text and voice messages. Message Trigger: The workflow initiates when a new message is received via the Telegram "Message Trigger" node. Switch Node: This node acts as a router. It examines the…
Source: https://n8n.io/workflows/4528/ — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
Ask questions like “How much did I spend on food last month?” and get instant answers from your financial data — directly in Telegram.
Build a Telegram bot that helps users find AliExpress products using natural language requests. The bot uses OpenAI to optimize search queries, Decodo to scrape product listings, and AI analysis to se
Voice Note -> Veo 3 AD. Uses telegramTrigger, telegram, openAi, httpRequest. Event-driven trigger; 49 nodes.
> ⚠️ Disclaimer: This workflow uses Community Nodes and must be run on a self-hosted instance of n8n.
Viral Tik Tok Clone Finder. Uses httpRequest, telegramTrigger, openAi, googleSheets. Event-driven trigger; 41 nodes.