使用AI翻译Telegram语音消息(支持55种语言)v1
中级
这是一个AI领域的自动化工作流,包含 13 个节点。主要使用 Set, Telegram, TelegramTrigger, OpenAi, ChainLlm 等节点,结合人工智能技术实现智能自动化。 使用AI翻译Telegram语音消息(支持55种语言)
前置要求
- •Telegram Bot Token
- •OpenAI API Key
分类
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "IvgAFAUOSI3biT4L",
"meta": {
"instanceId": "2723a3a635131edfcb16103f3d4dbaadf3658e386b4762989cbf49528dccbdbd"
},
"name": "使用 AI 翻译 Telegram 语音消息(支持 55 种语言)v1",
"tags": [],
"nodes": [
{
"id": "f91fa0cf-ea01-4fc0-9ef2-754da399b7fb",
"name": "Telegram 触发器",
"type": "n8n-nodes-base.telegramTrigger",
"position": [
440,
220
],
"webhookId": "c537cfcc-6c4a-436a-8871-d32f8ce016cb",
"parameters": {
"updates": [
"*"
],
"additionalFields": {}
},
"credentials": {
"telegramApi": {
"id": "Ov00cT0t4h4AFtZ0",
"name": "Telegram account"
}
},
"typeVersion": 1
},
{
"id": "057ae05f-2c7d-48c5-a057-a6917a88971c",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
1240,
0
],
"parameters": {
"width": 556.5162909529794,
"height": 586.6978417266175,
"content": "## 翻译功能"
},
"typeVersion": 1
},
{
"id": "c6947668-118e-4e23-bc55-1cdbce554a20",
"name": "文本回复",
"type": "n8n-nodes-base.telegram",
"position": [
2240,
220
],
"parameters": {
"text": "={{ $json.text }}",
"chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
"additionalFields": {
"parse_mode": "Markdown"
}
},
"credentials": {
"telegramApi": {
"id": "Ov00cT0t4h4AFtZ0",
"name": "Telegram account"
}
},
"typeVersion": 1
},
{
"id": "93551aea-0213-420d-bf82-7669ab291dae",
"name": "Telegram1",
"type": "n8n-nodes-base.telegram",
"position": [
1060,
220
],
"parameters": {
"fileId": "={{ $('Telegram Trigger').item.json.message.voice.file_id }}",
"resource": "file"
},
"credentials": {
"telegramApi": {
"id": "Ov00cT0t4h4AFtZ0",
"name": "Telegram account"
}
},
"typeVersion": 1.1
},
{
"id": "972177e4-b0a4-424f-9ca6-6555ff3271d7",
"name": "OpenAI 聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
1520,
400
],
"parameters": {
"options": {}
},
"credentials": {
"openAiApi": {
"id": "fOF5kro9BJ6KMQ7n",
"name": "OpenAi account"
}
},
"typeVersion": 1
},
{
"id": "0e8f610f-03a7-4943-bd19-b3fb10c89519",
"name": "输入错误处理",
"type": "n8n-nodes-base.set",
"position": [
860,
220
],
"parameters": {
"fields": {
"values": [
{
"name": "message.text",
"stringValue": "={{ $json?.message?.text || \"\" }}"
}
]
},
"options": {}
},
"typeVersion": 3.2
},
{
"id": "c8ab9e01-c9b5-4647-8008-9157ed97c4c3",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
1920,
0
],
"parameters": {
"width": 585.8688089385912,
"height": 583.7625899280566,
"content": "## Telegram 输出"
},
"typeVersion": 1
},
{
"id": "0898dc4d-c3ad-43df-871f-1896f673f631",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-140,
0
],
"parameters": {
"color": 4,
"width": 489.00549958607303,
"height": 573.4892086330929,
"content": "## 多语言 AI 驱动通用翻译器(含语音功能)⭐"
},
"typeVersion": 1
},
{
"id": "ae0595d2-7e40-4c1e-a643-4b232220d19a",
"name": "Settings",
"type": "n8n-nodes-base.set",
"position": [
660,
220
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "501ac5cc-73e8-4e9c-bf91-df312aa9ff88",
"name": "language_native",
"type": "string",
"value": "english"
},
{
"id": "efb9a7b2-5baa-44cc-b94d-c8030f17e890",
"name": "language_translate",
"type": "string",
"value": "french"
}
]
}
},
"typeVersion": 3.3
},
{
"id": "2d3654cf-a182-4916-a50c-a501828c2f6e",
"name": "自动检测并翻译",
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"position": [
1500,
220
],
"parameters": {
"text": "=Detect the language of the text that follows. \n- If it is {{ $('Settings').item.json.language_native }} translate to {{ $('Settings').item.json.language_translate }}. \n- If it is in {{ $('Settings').item.json.language_translate }} translate to {{ $('Settings').item.json.language_native }} . \n- In the output just provide the translation and do not explain it. Just provide the translation without anything else.\n\nText:\n {{ $json.text }}\n",
"promptType": "define"
},
"typeVersion": 1.4
},
{
"id": "a6e63516-4967-4e81-ba5b-58ad0ab21ee3",
"name": "语音回复",
"type": "n8n-nodes-base.telegram",
"position": [
2240,
400
],
"parameters": {
"chatId": "={{ $('Telegram Trigger').item.json.message.chat.id }}",
"operation": "sendAudio",
"binaryData": true,
"additionalFields": {}
},
"credentials": {
"telegramApi": {
"id": "Ov00cT0t4h4AFtZ0",
"name": "Telegram account"
}
},
"typeVersion": 1.1
},
{
"id": "e4782117-03de-41d2-9208-390edc87fc08",
"name": "OpenAI2",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
1300,
220
],
"parameters": {
"options": {},
"resource": "audio",
"operation": "transcribe"
},
"credentials": {
"openAiApi": {
"id": "fOF5kro9BJ6KMQ7n",
"name": "OpenAi account"
}
},
"typeVersion": 1.3
},
{
"id": "b29355f5-122c-4557-8215-28fdb523d221",
"name": "OpenAI",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
2020,
400
],
"parameters": {
"input": "={{ $json.text }}",
"options": {},
"resource": "audio"
},
"credentials": {
"openAiApi": {
"id": "fOF5kro9BJ6KMQ7n",
"name": "OpenAi account"
}
},
"typeVersion": 1.3
}
],
"active": true,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "ac9c6f40-10c8-4b60-9215-8d4e253bf318",
"connections": {
"OpenAI": {
"main": [
[
{
"node": "Audio reply",
"type": "main",
"index": 0
}
]
]
},
"OpenAI2": {
"main": [
[
{
"node": "Auto-detect and translate",
"type": "main",
"index": 0
}
]
]
},
"Settings": {
"main": [
[
{
"node": "Input Error Handling",
"type": "main",
"index": 0
}
]
]
},
"Telegram1": {
"main": [
[
{
"node": "OpenAI2",
"type": "main",
"index": 0
}
]
]
},
"Telegram Trigger": {
"main": [
[
{
"node": "Settings",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "Auto-detect and translate",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Input Error Handling": {
"main": [
[
{
"node": "Telegram1",
"type": "main",
"index": 0
}
]
]
},
"Auto-detect and translate": {
"main": [
[
{
"node": "Text reply",
"type": "main",
"index": 0
},
{
"node": "OpenAI",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 人工智能
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
基于 GPT、LangChain 和智能路由的 AI 驱动客户服务自动化
AI驱动客户服务自动化,基于GPT、LangChain和智能路由
Set
Gmail
Merge
+19
46 节点Paul
客户支持
Airbnb Telegram代理 - 模板
Airbnb Telegram代理 - 支持语音的AI驱动住宿搜索
Set
Switch
Telegram
+8
15 节点Friedemann Schuetz
客户支持
轻松任务管理:从Telegram直接创建Todoist任务
轻松任务管理:通过AI从Telegram直接创建Todoist任务
Set
Switch
Todoist
+7
13 节点Onur
人工智能
博客闪电战:博主版
使用 OpenAI 和 DALL-E 生成 SEO 优化的博客文章并发布到 Blogger
Set
Code
Telegram
+7
19 节点Khairul Muhtadin
人工智能
基于Telegram、OpenAI Whisper和Gmail的语音转邮件回复系统
基于Telegram、OpenAI Whisper和Gmail的语音转邮件回复系统
If
Set
Gmail
+8
24 节点Adam Janes
销售
自动化新闻到简报AI代理v13
AI新闻研究团队:24/7简报自动化,含Perplexity引用
Set
Code
Gmail
+15
37 节点Derek Cheung
产品
工作流信息
难度等级
中级
节点数量13
分类1
节点类型7
作者
Derek Cheung
@derekcheungsaDerek is an engineer, instructor, and investor based in Canada. He is publicly building AI applications to solve real-world problems, leveraging his technical expertise to develop practical solutions.
外部链接
在 n8n.io 查看 →
分享此工作流