YouTube视频翻译器和摘要生成器 → Slack自动发布
中级
这是一个自动化工作流,包含 10 个节点。主要使用 Code, Slack, HttpRequest, OpenAi, RssFeedReadTrigger 等节点。 使用GPT-4o-mini自动将YouTube视频摘要翻译为日语并发布到Slack
前置要求
- •Slack Bot Token 或 Webhook URL
- •可能需要目标 API 的认证凭证
- •OpenAI API Key
分类
-
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "k0Kebprms2GkvaiL",
"meta": {
"instanceId": "ad59d09d8e026d0e92690243618d86d51b0293b236148394ca356eae1d1ea59b",
"templateCredsSetupCompleted": true
},
"name": "YouTube视频翻译器和摘要生成器 → Slack自动发布",
"tags": [],
"nodes": [
{
"id": "12d7d3b4-f93a-4ba5-9aa4-eab50c190415",
"name": "发送摘要到Slack(#youtube-summary)",
"type": "n8n-nodes-base.slack",
"position": [
1376,
-80
],
"webhookId": "4512a04c-2298-482d-b27a-6b88486b8650",
"parameters": {
"text": "=🎥 *New YouTube Video Summary*\n\n🕒 Posted: {{ $('YouTube RSS Trigger (Channel 1)').item.json.pubDate }}\n🧩 Title: {{ $('YouTube RSS Trigger (Channel 1)').item.json.title }}\n🔗 Link: {{ $('YouTube RSS Trigger (Channel 1)').item.json.link }}\n📝 Summary: {{$json[\"message\"][\"content\"]}}\n",
"select": "channel",
"channelId": {
"__rl": true,
"mode": "list",
"value": "C09LVUG4S5U",
"cachedResultName": "youtube-summary"
},
"otherOptions": {},
"authentication": "oAuth2"
},
"credentials": {
"slackOAuth2Api": {
"id": "8nlSlZuLK1ZboZkW",
"name": "Slack account"
}
},
"typeVersion": 2.3
},
{
"id": "80facbb9-3728-4c99-b9fd-8fbf9df3cd7d",
"name": "YouTube RSS触发器(频道1)",
"type": "n8n-nodes-base.rssFeedReadTrigger",
"position": [
208,
-80
],
"parameters": {
"feedUrl": "https://www.youtube.com/feeds/videos.xml?channel_id=",
"pollTimes": {
"item": [
{
"mode": "everyX",
"value": 1
}
]
}
},
"typeVersion": 1
},
{
"id": "3908d543-a4e3-4c6e-a9cc-32b87b291c23",
"name": "通过RapidAPI获取YouTube转录文本",
"type": "n8n-nodes-base.httpRequest",
"position": [
512,
-80
],
"parameters": {
"url": "=https://youtube-transcript3.p.rapidapi.com/api/transcript?videoId={{$json[\"id\"].replace(\"yt:video:\", \"\")}}\n",
"options": {},
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "x-rapidapi-key",
"value": "YOUR_RAPIDAPI_KEY_HERE"
},
{
"name": "x-rapidapi-host",
"value": "youtube-transcript3.p.rapidapi.com"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "b2534af6-112b-4545-80c9-e5396c7a901d",
"name": "合并转录文本(代码)",
"type": "n8n-nodes-base.code",
"position": [
800,
-80
],
"parameters": {
"jsCode": "const rss = $item(0, 0).$node[\"YouTube RSS Trigger (Channel 1)\"].json;\nconst transcript = $json.transcript || [];\n\nreturn {\n json: {\n title: rss.title,\n link: rss.link,\n full_text: transcript.map(t => t.text).join(' '),\n },\n};"
},
"typeVersion": 2
},
{
"id": "6cbfe83d-a942-4ea9-adfd-7b1789ae97bf",
"name": "生成日语摘要(OpenAI)",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
1040,
-80
],
"parameters": {
"modelId": {
"__rl": true,
"mode": "id",
"value": "gpt-4o-mini"
},
"options": {},
"messages": {
"values": [
{
"content": "=Summarize the following YouTube video transcript into **3 concise sentences in Japanese.**\n{{$json[\"full_text\"]}}\n"
}
]
}
},
"credentials": {
"openAiApi": {
"id": "xWUO0jq5mcmikNzw",
"name": "検証開発用1_OpenAI"
}
},
"typeVersion": 1.8
},
{
"id": "33628cdc-54fd-41a3-b4b9-06d65c205307",
"name": "便签:HTTP信息",
"type": "n8n-nodes-base.stickyNote",
"position": [
416,
-272
],
"parameters": {
"color": 5,
"width": 288,
"height": 400,
"content": "## 获取视频转录文本"
},
"typeVersion": 1
},
{
"id": "a589d990-f3bd-45b2-bfcf-d9be27ed54b2",
"name": "便签:代码信息",
"type": "n8n-nodes-base.stickyNote",
"position": [
720,
-272
],
"parameters": {
"color": 2,
"width": 272,
"height": 400,
"content": "## 合并转录文本"
},
"typeVersion": 1
},
{
"id": "5915165b-7d27-416b-b6e0-c17fa779d765",
"name": "便签:OpenAI信息",
"type": "n8n-nodes-base.stickyNote",
"position": [
1008,
-272
],
"parameters": {
"color": 4,
"width": 272,
"height": 400,
"content": "## 生成3行摘要(日语)"
},
"typeVersion": 1
},
{
"id": "ca6e6333-600a-42fb-894c-6e46f40ba485",
"name": "便签:Slack信息",
"type": "n8n-nodes-base.stickyNote",
"position": [
1296,
-272
],
"parameters": {
"color": 3,
"width": 256,
"height": 400,
"content": "## YouTube视频字幕摘要生成器到Slack"
},
"typeVersion": 1
},
{
"id": "e88bb15f-d17d-431e-9475-bdb1a20b2228",
"name": "便签:HTTP信息1",
"type": "n8n-nodes-base.stickyNote",
"position": [
96,
-272
],
"parameters": {
"color": 6,
"width": 304,
"height": 400,
"content": "## 检测新的YouTube上传"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "6a06db3a-a283-4c0c-95ff-2231a94cedc9",
"connections": {
"Combine Transcript Text (Code)": {
"main": [
[
{
"node": "Generate Japanese Summary (OpenAI)",
"type": "main",
"index": 0
}
]
]
},
"YouTube RSS Trigger (Channel 1)": {
"main": [
[
{
"node": "Get YouTube Transcript via RapidAPI",
"type": "main",
"index": 0
}
]
]
},
"Generate Japanese Summary (OpenAI)": {
"main": [
[
{
"node": "Send Summary to Slack (#youtube-summary)",
"type": "main",
"index": 0
}
]
]
},
"Get YouTube Transcript via RapidAPI": {
"main": [
[
{
"node": "Combine Transcript Text (Code)",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
发票 OCR → 自动追加到表格(内部)
通过 OCR.Space、GPT 和 Google Sheets 实现发票数据提取的自动化
Code
Google Drive
Http Request
+4
14 节点Supira Inc.
发票处理
新闻自动收集器 → Google表格
使用NewsAPI、OpenAI和Google表格收集并总结多语言新闻
If
Set
Code
+6
19 节点Supira Inc.
AI 摘要总结
使用 Notion 和 GPT-4 的 SNS 自动发布器(Instagram 自动发布 + Threads/X/博客草稿)
使用 GPT-4、Notion 和 Instagram API 自动生成并发布社交媒体内容
Notion
Webhook
Http Request
+2
17 节点Supira Inc.
杂项
基于GPT-4和Apify的AI驱动竞争对手与市场情报系统
基于GPT-4和Apify的AI驱动竞争对手与市场情报系统
Code
Merge
Slack
+7
12 节点Marth
市场调研
基于AI的潜在客户评分(Salesforce、GPT-4o和Slack,含数据脱敏)
基于AI的潜在客户评分:使用Salesforce、GPT-4o和Slack,包含数据脱敏
Code
Slack
Http Request
+4
11 节点Le Nguyen
销售
会议纪要和行动项跟踪器
基于AI的会议纪要:使用GPT-4、任务分配和多渠道分发
If
Set
Code
+10
38 节点Jitesh Dugar
内容创作