8
n8n 中文网amn8n.com

使用 Google Gemini 和 Telegram 转录音频文件

高级

这是一个Other, AI领域的自动化工作流,包含 21 个节点。主要使用 Merge, Switch, Webhook, Telegram, GoogleDrive 等节点,结合人工智能技术实现智能自动化。 使用 Google Gemini 和 Telegram 转录音频文件

前置要求
  • HTTP Webhook 端点(n8n 会自动生成)
  • Telegram Bot Token
  • Google Drive API 凭证
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "d6b502dfa4d9dd072cdc5c2bb763558661053f651289291352a84403e01b3d1b",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "37944c66-0d78-4394-ac27-726f269af495",
      "name": "Google Calendar MCP",
      "type": "n8n-nodes-base.switch",
      "position": [
        1660,
        -20
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "57adc6af-843d-49bd-a959-c9a8e1689c08",
      "name": "Telegram3",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1940,
        -100
      ],
      "webhookId": "a1c1809d-9539-4e3e-b22e-a0a62c44f40a",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "3dc68aa7-8b64-4b5d-b6a8-75173e1c2a93",
      "name": "Telegram 触发器1",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        1440,
        -20
      ],
      "webhookId": "04666f2e-9887-4489-a6b3-2e575e4546df",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "dab2d354-1607-430e-a573-80638de6c4ba",
      "name": "初始化上传会话",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2140,
        -220
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "6c5aa9b7-9635-4329-8bf2-e94235a36992",
      "name": "上传文件",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2580,
        -120
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "6069294d-bbee-4ec0-a973-4fc3bab16620",
      "name": "合并",
      "type": "n8n-nodes-base.merge",
      "position": [
        2380,
        -120
      ],
      "parameters": {},
      "typeVersion": 3.1
    },
    {
      "id": "356d0e7a-da4f-4be1-80db-2c381fb837bc",
      "name": "请求 Gemini 转录",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2820,
        -120
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "bbee09bd-6dbe-4f39-a4aa-9c608d00cdeb",
      "name": "在 Telegram 中回复",
      "type": "n8n-nodes-base.telegram",
      "position": [
        3040,
        -120
      ],
      "webhookId": "ef66e722-c4f4-4719-a84c-e227f135623d",
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "642dc0b5-297c-4b72-9311-d8c11b106b7c",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2300,
        -360
      ],
      "parameters": {
        "content": "Emelia 触发器"
      },
      "typeVersion": 1
    },
    {
      "id": "2696d81d-644d-4b16-aab4-afd53fba4c67",
      "name": "文本消息走此路径",
      "type": "n8n-nodes-base.noOp",
      "position": [
        1940,
        120
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "5fe90735-0c8d-45e6-8d96-9bce12557977",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        900,
        -240
      ],
      "parameters": {
        "content": "Emelia 触发器"
      },
      "typeVersion": 1
    },
    {
      "id": "79c3e98b-1880-4e8b-84de-2e53b241b4de",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        900,
        380
      ],
      "parameters": {
        "content": "Emelia 触发器"
      },
      "typeVersion": 1
    },
    {
      "id": "429dd7d6-5680-4c68-a448-2c1ca1dc6483",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        500,
        -80
      ],
      "parameters": {
        "content": "Emelia 触发器"
      },
      "typeVersion": 1
    },
    {
      "id": "c291969b-709b-4594-9ca6-fe4d150805f4",
      "name": "便签10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        500,
        -240
      ],
      "parameters": {
        "content": "Emelia 触发器"
      },
      "typeVersion": 1
    },
    {
      "id": "1533b628-a959-46d2-bf39-42b7ac483aec",
      "name": "便签说明4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1400,
        -240
      ],
      "parameters": {
        "content": "Emelia 触发器"
      },
      "typeVersion": 1
    },
    {
      "id": "05e5eeb3-c9c2-44ee-b33d-9461d1306b91",
      "name": "从磁盘读取文件",
      "type": "n8n-nodes-base.readWriteFile",
      "position": [
        1680,
        380
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "981f58ce-4e1a-411e-932b-f097137cd399",
      "name": "从 URL 下载文件",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1880,
        380
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "79bcb7f2-af5e-4e4e-a91c-c16a80ce77ca",
      "name": "从 Google Drive 下载文件",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1460,
        580
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "5d6501fa-a53e-44b6-b14a-0d41e470eb36",
      "name": "处理文件夹中的每个上传文件",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "position": [
        1680,
        580
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "9bc0a6d7-c212-4c56-a31a-48f0b64641fc",
      "name": "通过 Webhook 接收",
      "type": "n8n-nodes-base.webhook",
      "position": [
        1460,
        380
      ],
      "webhookId": "b7f44f6d-12cc-4206-9917-841f9d2d3fbc",
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "720507a9-f6c5-4b79-a25c-63cbd6794e6f",
      "name": "便签说明5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1400,
        320
      ],
      "parameters": {
        "content": "Emelia 触发器"
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "Merge": {
      "main": [
        [
          {
            "node": "Upload file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch": {
      "main": [
        [
          {
            "node": "Telegram3",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Text messages go this way",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram3": {
      "main": [
        [
          {
            "node": "initialize upload session",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Upload file": {
      "main": [
        [
          {
            "node": "Ask Gemini to transcribe",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger1": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Ask Gemini to transcribe": {
      "main": [
        [
          {
            "node": "Reply in Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "initialize upload session": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

高级 - 其他, 人工智能

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
高级
节点数量21
分类2
节点类型11
难度说明

适合高级用户,包含 16+ 个节点的复杂工作流

作者
Solomon

Solomon

@solomon

Freelance consultant from Brazil, specializing in automations and data analysis. I work with select clients, addressing their toughest projects. For business inquiries, email me at automations.solomon@gmail.com or message me on Telegram for a faster response.

外部链接
在 n8n.io 查看

分享此工作流