N
n8n Store
Workflow Market
Transcribe Telegram Audio with OpenAI

Transcribe Telegram Audio with OpenAI

by aitoralonso0 views

Description

Categories

🤖 AI & Machine Learning

Nodes Used

n8n-nodes-base.switchn8n-nodes-base.telegramn8n-nodes-base.telegramn8n-nodes-base.telegramTrigger@n8n/n8n-nodes-langchain.openAi
PriceGratis
Views0
Last Updated11/28/2025
workflow.json
{
  "id": "JnDUKOvOXcOImSQc",
  "meta": {
    "instanceId": "9219ebc7795bea866f70aa3d977d54417fdf06c41944be95e20cfb60f992db19",
    "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
      ],
      "webhookId": "73d0d328-d75b-4bb0-a1b9-81d42a2f2bfd",
      "parameters": {
        "fileId": "={{ $json.message.voice.file_id }}",
        "resource": "file"
      },
      "credentials": {
        "telegramApi": {
          "id": "SqOmYg6P5P1Nr1mG",
          "name": "cbd bot"
        }
      },
      "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": {
          "id": "vupAk5StuhOafQcb",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.8
    },
    {
      "id": "460ffa1f-96a2-46ea-b7b3-69256091cd2b",
      "name": "Message Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        600,
        -180
      ],
      "webhookId": "d08f35d7-e003-4e77-a26a-eb110855e027",
      "parameters": {
        "updates": [
          "message"
        ],
        "additionalFields": {}
      },
      "credentials": {
        "telegramApi": {
          "id": "SqOmYg6P5P1Nr1mG",
          "name": "cbd bot"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "206b4539-8536-4728-a73c-9ce74807a1ec",
      "name": "Send transcription message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1420,
        -200
      ],
      "webhookId": "5c6997c0-948a-49bb-a542-10c8bf130fdd",
      "parameters": {
        "text": "={{ $json.message.text }}\n{{ $json.text }}",
        "chatId": "={{ $('Message Trigger').item.json.message.chat.id }}",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "credentials": {
        "telegramApi": {
          "id": "SqOmYg6P5P1Nr1mG",
          "name": "cbd bot"
        }
      },
      "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,
  "pinData": {},
  "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
          }
        ]
      ]
    }
  }
}

相关工作流