This workflow follows the HTTP Request → OpenAI 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 →
{
"active": true,
"connections": {
"Edit Fields3": {
"main": [
[
{
"node": "Convert to File",
"type": "main",
"index": 0
}
]
]
},
"Convert to File": {
"main": [
[
{
"node": "Transcribe a recording",
"type": "main",
"index": 0
}
]
]
},
"Switch2": {
"main": [
[
{
"node": "replace",
"type": "main",
"index": 0
}
],
[
{
"node": "GET audio",
"type": "main",
"index": 0
}
],
[
{
"node": "Send a photo message",
"type": "main",
"index": 0
}
]
]
},
"Edit Fields": {
"main": [
[]
]
},
"Segmentos": {
"main": [
[
{
"node": "Loop Over Items1",
"type": "main",
"index": 0
}
]
]
},
"1,2s": {
"main": [
[
{
"node": "Send a text message",
"type": "main",
"index": 0
}
]
]
},
"Loop Over Items1": {
"main": [
[],
[
{
"node": "1,2s",
"type": "main",
"index": 0
}
]
]
},
"replace": {
"main": [
[
{
"node": "Segmentos",
"type": "main",
"index": 0
}
]
]
},
"If": {
"main": [
[],
[]
]
},
"V1": {
"main": [
[
{
"node": "Switch2",
"type": "main",
"index": 0
}
]
]
},
"Lu": {
"main": [
[
{
"node": "V1",
"type": "main",
"index": 0
}
]
]
},
"Send a text message": {
"main": [
[
{
"node": "Loop Over Items1",
"type": "main",
"index": 0
}
]
]
},
"Transcribe a recording": {
"main": [
[]
]
},
"Edit Fields4": {
"main": [
[
{
"node": "Convert to File1",
"type": "main",
"index": 0
}
]
]
},
"Convert to File1": {
"main": [
[
{
"node": "Transcribe a recording1",
"type": "main",
"index": 0
}
]
]
},
"Switch": {
"main": [
[
{
"node": "replace1",
"type": "main",
"index": 0
}
],
[
{
"node": "Edit Fields4",
"type": "main",
"index": 0
}
],
[
{
"node": "Send a photo message1",
"type": "main",
"index": 0
}
]
]
},
"Segmentos1": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"1,2s1": {
"main": [
[
{
"node": "Send a text message1",
"type": "main",
"index": 0
}
]
]
},
"Loop Over Items": {
"main": [
[],
[
{
"node": "1,2s1",
"type": "main",
"index": 0
}
]
]
},
"V": {
"main": [
[
{
"node": "Switch",
"type": "main",
"index": 0
}
]
]
},
"Send a text message1": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Transcribe a recording1": {
"main": [
[
{
"node": "Segmentos1",
"type": "main",
"index": 0
}
]
]
},
"replace1": {
"main": [
[
{
"node": "Segmentos1",
"type": "main",
"index": 0
}
]
]
},
"GET audio": {
"main": [
[
{
"node": "Convert audio",
"type": "main",
"index": 0
}
]
]
},
"Convert audio": {
"main": [
[
{
"node": "OpenAI",
"type": "main",
"index": 0
}
]
]
},
"OpenAI": {
"main": [
[
{
"node": "Segmentos",
"type": "main",
"index": 0
}
]
]
}
},
"createdAt": "2025-06-28T03:55:39.939Z",
"id": "3QcS36PdbvD90c91",
"isArchived": false,
"meta": {
"templateCredsSetupCompleted": true
},
"name": "LU",
"nodes": [
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "b7d210f0-6a18-456d-9e89-aa28f548b2a0",
"name": "audio",
"value": "={{ $json.msg.audio }}",
"type": "string"
}
]
},
"options": {}
},
"id": "3b834717-daac-4a24-a02e-47cd851048ff",
"name": "Edit Fields3",
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
208,
-464
]
},
{
"parameters": {
"operation": "toBinary",
"sourceProperty": "audio",
"options": {
"fileName": "aduio.ogg"
}
},
"id": "5570e257-c3ce-45da-aaeb-3d266299d98e",
"name": "Convert to File",
"type": "n8n-nodes-base.convertToFile",
"typeVersion": 1.1,
"position": [
432,
-464
]
},
{
"parameters": {
"rules": {
"values": [
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "0cb14635-2673-408e-86db-ce9e0373674b",
"leftValue": "={{ $json.msg.type }}",
"rightValue": "conversation",
"operator": {
"type": "string",
"operation": "equals",
"name": "filter.operator.equals"
}
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "Texto"
},
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "17a91880-7f4e-4c0e-a9d9-5fbcb6e29f33",
"leftValue": "={{ $json.msg.type }}",
"rightValue": "audioMessage",
"operator": {
"type": "string",
"operation": "equals",
"name": "filter.operator.equals"
}
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "audio"
},
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "e18a40cd-8037-4b56-873b-bbe690480a0d",
"leftValue": "={{ $json.msg.type }}",
"rightValue": "imageMessage",
"operator": {
"type": "string",
"operation": "equals",
"name": "filter.operator.equals"
}
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "imagen"
}
]
},
"options": {}
},
"id": "a55bca91-ad06-45ca-9784-00ea4b01d68c",
"name": "Switch2",
"type": "n8n-nodes-base.switch",
"typeVersion": 3.2,
"position": [
1152,
128
]
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "294730d2-a6a9-417d-b97e-46314b89d7f4",
"name": "msg",
"value": "={{ $json.text }}",
"type": "string"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
480,
1088
],
"id": "dad5ff4b-c1ac-4de8-8c2a-9b524148fa1c",
"name": "Edit Fields"
},
{
"parameters": {
"fieldToSplitOut": "text",
"options": {
"destinationFieldName": "msg"
}
},
"id": "f8677022-0663-4b05-9866-74cf7ba8da50",
"name": "Segmentos",
"type": "n8n-nodes-base.splitOut",
"typeVersion": 1,
"position": [
2256,
48
]
},
{
"parameters": {
"amount": 1.2
},
"id": "48612fbc-9ad3-4fcc-9055-0fcfecc3feb5",
"name": "1,2s",
"type": "n8n-nodes-base.wait",
"typeVersion": 1.1,
"position": [
2704,
-32
]
},
{
"parameters": {
"options": {}
},
"id": "3e7ea36e-78fa-4b85-9c22-95d8dfbb9b70",
"name": "Loop Over Items1",
"type": "n8n-nodes-base.splitInBatches",
"typeVersion": 3,
"position": [
2480,
48
]
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "5d04d69d-cb9c-41be-a44a-95fac3c059f3",
"name": "text",
"value": "={{ $json.msg.content }}",
"type": "string"
}
]
},
"options": {}
},
"id": "c5fe8bf7-b7c9-47ed-a87f-d1da4ca9c37c",
"name": "replace",
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
1760,
-16
]
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "a3a8f950-56cb-4eb3-80e1-20df81110c7c",
"leftValue": "={{ $json.body.data.key.fromMe }}",
"rightValue": "",
"operator": {
"type": "boolean",
"operation": "false",
"singleValue": true
}
}
],
"combinator": "and"
},
"options": {}
},
"type": "n8n-nodes-base.if",
"typeVersion": 2.2,
"position": [
592,
320
],
"id": "4284d93e-f95b-438f-a7b2-fa4288688552",
"name": "If"
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "f9ecf2fc-da2c-4f44-897a-5dc0a2f2f379",
"name": "msg.telefono_sender",
"value": "={{ $('Lu').item.json.body.data.key.remoteJid }}",
"type": "string"
},
{
"id": "dab7ca54-c3d2-4a36-a9ca-a0ebbd375ef5",
"name": "msg.quien_envia_a_luchi",
"value": "={{ $('Lu').item.json.body.data.pushName }}",
"type": "string"
},
{
"id": "cc7dcfe1-8ad7-4fe8-93ec-8f643c7d08c7",
"name": "msg.type",
"value": "={{ $json.body.data.messageType }}",
"type": "string"
},
{
"id": "81612acf-1b66-4c8e-82e4-ce8c77b31334",
"name": "msg.content",
"value": "={{ $('Lu').item.json.body.data.message.conversation }}",
"type": "string"
},
{
"id": "2dfc64f4-b222-4ea7-b095-fdd96d9fcb95",
"name": "msg.idmsg",
"value": "={{ $('Lu').item.json.body.data.key.id }}",
"type": "string"
},
{
"id": "d5e7819b-2e77-4cc0-8481-fcaaa9d19e4e",
"name": "msg.audio",
"value": "={{ ($json.body.data.fileBase64 || '').substring(($json.body.data.fileBase64 || '').indexOf(',') + 1) }}",
"type": "string"
}
]
},
"options": {}
},
"id": "ca79a770-1d20-44f8-ad5e-0f6a1ed685ec",
"name": "V1",
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
928,
144
],
"notesInFlow": true
},
{
"parameters": {
"httpMethod": "POST",
"path": "luchi",
"options": {}
},
"type": "n8n-nodes-base.webhook",
"typeVersion": 2,
"position": [
672,
160
],
"id": "537f6c10-c5c3-4316-9631-ed5760d57d33",
"name": "Lu"
},
{
"parameters": {
"chatId": "164729397",
"text": "={{ $('V1').item.json.msg.quien_envia_a_luchi }}: {{ $json.msg }}",
"additionalFields": {
"appendAttribution": false
}
},
"type": "n8n-nodes-base.telegram",
"typeVersion": 1.2,
"position": [
2928,
48
],
"id": "087e81d4-78a9-486d-b142-95aef0f8ca7c",
"name": "Send a text message",
"credentials": {
"telegramApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"operation": "sendPhoto",
"chatId": "164729397",
"binaryData": true,
"binaryPropertyName": "={{ $('Lu').item.json.body.data.message.base64 }}",
"additionalFields": {}
},
"type": "n8n-nodes-base.telegram",
"typeVersion": 1.2,
"position": [
1728,
400
],
"id": "d22e3fd7-4451-4045-be4b-297291336b86",
"name": "Send a photo message",
"credentials": {
"telegramApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"resource": "audio",
"operation": "transcribe",
"binaryPropertyName": "=data",
"options": {
"temperature": 0
}
},
"id": "9755471b-5730-42ba-a4dc-f6ebc27dde73",
"name": "Transcribe a recording",
"type": "@n8n/n8n-nodes-langchain.openAi",
"typeVersion": 1.7,
"position": [
656,
-464
],
"credentials": {
"openAiApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "b7d210f0-6a18-456d-9e89-aa28f548b2a0",
"name": "audio",
"value": "={{ $json.msg.audio }}",
"type": "string"
}
]
},
"options": {}
},
"id": "f4d01249-ad66-4049-9cce-dc90ac315a51",
"name": "Edit Fields4",
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
1328,
1056
]
},
{
"parameters": {
"operation": "toBinary",
"sourceProperty": "audio",
"options": {
"fileName": "aduio.ogg"
}
},
"id": "3c065de6-bcb5-4c1b-bdeb-bb26a9f0686f",
"name": "Convert to File1",
"type": "n8n-nodes-base.convertToFile",
"typeVersion": 1.1,
"position": [
1552,
1056
]
},
{
"parameters": {
"rules": {
"values": [
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "0cb14635-2673-408e-86db-ce9e0373674b",
"leftValue": "={{ $json.msg.type }}",
"rightValue": "conversation",
"operator": {
"type": "string",
"operation": "equals",
"name": "filter.operator.equals"
}
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "Texto"
},
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "17a91880-7f4e-4c0e-a9d9-5fbcb6e29f33",
"leftValue": "={{ $json.msg.type }}",
"rightValue": "audioMessage",
"operator": {
"type": "string",
"operation": "equals",
"name": "filter.operator.equals"
}
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "audio"
},
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "e18a40cd-8037-4b56-873b-bbe690480a0d",
"leftValue": "={{ $json.msg.type }}",
"rightValue": "imageMessage",
"operator": {
"type": "string",
"operation": "equals",
"name": "filter.operator.equals"
}
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "imagen"
}
]
},
"options": {}
},
"id": "e73c1a71-67dc-42d6-818e-8c4a13da0884",
"name": "Switch",
"type": "n8n-nodes-base.switch",
"typeVersion": 3.2,
"position": [
1104,
848
]
},
{
"parameters": {
"fieldToSplitOut": "text",
"options": {
"destinationFieldName": "msg"
}
},
"id": "003f62fb-7a9b-4b67-9b21-b091a6e3a811",
"name": "Segmentos1",
"type": "n8n-nodes-base.splitOut",
"typeVersion": 1,
"position": [
2000,
960
]
},
{
"parameters": {
"amount": 1.2
},
"id": "a2774442-3139-4189-b743-562f89b8de80",
"name": "1,2s1",
"type": "n8n-nodes-base.wait",
"typeVersion": 1.1,
"position": [
2448,
784
]
},
{
"parameters": {
"options": {}
},
"id": "5214fc2d-28a2-477d-b519-3a55fbe3fed6",
"name": "Loop Over Items",
"type": "n8n-nodes-base.splitInBatches",
"typeVersion": 3,
"position": [
2224,
960
]
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "f9ecf2fc-da2c-4f44-897a-5dc0a2f2f379",
"name": "msg.telefono_sender",
"value": "={{ $('Lu').item.json.body.data.remoteJid }}",
"type": "string"
},
{
"id": "dab7ca54-c3d2-4a36-a9ca-a0ebbd375ef5",
"name": "msg.quien_envia_a_luchi",
"value": "={{ $('Lu').item.json.body.data.pushName }}",
"type": "string"
},
{
"id": "cc7dcfe1-8ad7-4fe8-93ec-8f643c7d08c7",
"name": "msg.type",
"value": "={{ $json.body.data.messageType }}",
"type": "string"
},
{
"id": "81612acf-1b66-4c8e-82e4-ce8c77b31334",
"name": "msg.content",
"value": "={{ $('Lu').item.json.body.data.msgContent.conversation }}",
"type": "string"
},
{
"id": "2dfc64f4-b222-4ea7-b095-fdd96d9fcb95",
"name": "msg.idmsg",
"value": "={{ $('Lu').item.json.body.data.key.id }}",
"type": "string"
},
{
"id": "d5e7819b-2e77-4cc0-8481-fcaaa9d19e4e",
"name": "msg.audio",
"value": "={{ ($json.body.data.fileBase64 || '').substring(($json.body.data.fileBase64 || '').indexOf(',') + 1) }}",
"type": "string"
}
]
},
"options": {}
},
"id": "91ccc6e3-6dde-4c0b-b38c-901061973461",
"name": "V",
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
880,
864
],
"notesInFlow": true
},
{
"parameters": {
"chatId": "164729397",
"text": "={{ $('V').item.json.msg.quien_envia_a_luchi }}: {{ $json.msg }}",
"additionalFields": {
"appendAttribution": false
}
},
"type": "n8n-nodes-base.telegram",
"typeVersion": 1.2,
"position": [
2672,
960
],
"id": "c79f6e4e-b2c3-4e1b-98fd-4d0b9241b5dd",
"name": "Send a text message1",
"credentials": {
"telegramApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"operation": "sendPhoto",
"chatId": "164729397",
"file": "={{ $json.msg.content }}",
"additionalFields": {}
},
"type": "n8n-nodes-base.telegram",
"typeVersion": 1.2,
"position": [
1328,
720
],
"id": "f4f83feb-ae50-4a29-b590-33e6318ef5df",
"name": "Send a photo message1",
"credentials": {
"telegramApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"resource": "audio",
"operation": "transcribe",
"binaryPropertyName": "=data",
"options": {
"language": "es"
}
},
"id": "500cd3b9-df50-4374-b572-a70381017234",
"name": "Transcribe a recording1",
"type": "@n8n/n8n-nodes-langchain.openAi",
"typeVersion": 1.7,
"position": [
1776,
1056
],
"credentials": {
"openAiApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "5d04d69d-cb9c-41be-a44a-95fac3c059f3",
"name": "text",
"value": "={{ $json.msg.content }}",
"type": "string"
}
]
},
"options": {}
},
"id": "cedc0641-a989-4b92-9ea9-f851b9441e64",
"name": "replace1",
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
1776,
864
]
},
{
"parameters": {
"method": "POST",
"url": "={{ $('Normalizacion').item.json.instance.server_url }}/chat/getBase64FromMediaMessage/{{ $('Normalizacion').item.json.instance.name }}",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "apikey",
"value": "={{ $('Normalizacion').item.json.instance.apikey }}"
}
]
},
"sendBody": true,
"bodyParameters": {
"parameters": [
{
"name": "message.key.id",
"value": "={{ $('Normalizacion').item.json.message.message_id }}"
},
{
"name": "convertToMp4",
"value": "={{Boolean(false)}}"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
1616,
192
],
"id": "441a9626-3cf2-402b-9064-1e313ff66bdb",
"name": "GET audio"
},
{
"parameters": {
"operation": "toBinary",
"sourceProperty": "base64",
"options": {
"mimeType": "={{ $json.mimetype }}"
}
},
"type": "n8n-nodes-base.convertToFile",
"typeVersion": 1.1,
"position": [
1840,
192
],
"id": "f92ce3e4-1163-4233-a978-236a2f12d0ce",
"name": "Convert audio"
},
{
"parameters": {
"resource": "audio",
"operation": "transcribe",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.openAi",
"typeVersion": 1.8,
"position": [
2064,
192
],
"id": "4193e1eb-848d-4f7a-9be8-0853b4180c80",
"name": "OpenAI",
"credentials": {
"openAiApi": {
"name": "<your credential>"
}
}
}
],
"settings": {
"executionOrder": "v1",
"errorWorkflow": "2kOn0Oz7c2uvczPK",
"timezone": "America/Argentina/Buenos_Aires"
},
"staticData": null,
"tags": [],
"triggerCount": 1,
"updatedAt": "2025-08-11T17:05:09.826Z",
"versionId": "08f10fc3-d550-47f7-be4d-f0e29f654693"
}
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
LU. Uses telegram, openAi, httpRequest. Webhook trigger; 28 nodes.
Source: https://github.com/fer336/workback/blob/328a48f11b1e3d69b6c7a911b4269e5d6497480b/workflows/3QcS36PdbvD90c91.json — 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.
Listens for completed Fireflies transcripts, qualifies whether a proposal is needed using OpenAI, drafts structured proposal content, populates a Google Doc template, converts to PDF, and sends it to
This workflow turns a Telegram bot into an AI-powered lyrics assistant. Users send a command plus a lyrics URL, and the flow downloads, cleans, and analyzes the text, then replies on Telegram with tra
Accelerate your real estate marketing by moving from "photo capture" to "published listing" in seconds. This workflow automates the entire listing process by hosting property photos via UploadToURL, u
Ask questions like “How much did I spend on food last month?” and get instant answers from your financial data — directly in Telegram.
AI Institutional Stock Valuation Engine with Risk Scoring & Scenario Targets