YT AI新闻播放列表创建器/AI新闻表单更新器
高级
这是一个Other领域的自动化工作流,包含 23 个节点。主要使用 Filter, YouTube, SplitOut, Telegram, HttpRequest 等节点。 使用Google Sheets创建每日YouTube播放列表,并在Telegram中接收通知
前置要求
- •Telegram Bot Token
- •可能需要目标 API 的认证凭证
- •Google Sheets API 凭证
使用的节点 (23)
分类
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "2LFEJVoSkeZMndiM",
"meta": {
"instanceId": "d73587d68bda6969e611b1d966e9e2b0ae078a8d2666ab57d6d9dcd379a0ce36",
"templateCredsSetupCompleted": true
},
"name": "YT AI 新闻播放列表创建器/AI 新闻表单更新器",
"tags": [],
"nodes": [
{
"id": "a871e87e-dc02-4364-83b3-fe378ca60687",
"name": "读取频道名称",
"type": "n8n-nodes-base.googleSheets",
"position": [
860,
100
],
"parameters": {
"options": {},
"sheetName": {
"__rl": true,
"mode": "list",
"value": 944489068,
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1RNah4ZZsLxflQXvMq8AEn3BFpscOC2ygMZ1dPTlk-Kk/edit#gid=944489068",
"cachedResultName": "AI News Channels"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "1RNah4ZZsLxflQXvMq8AEn3BFpscOC2ygMZ1dPTlk-Kk",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1RNah4ZZsLxflQXvMq8AEn3BFpscOC2ygMZ1dPTlk-Kk/edit?usp=drivesdk",
"cachedResultName": "Media Links"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "hVq7KRYH68lYmtEB",
"name": "Google Sheets account"
}
},
"typeVersion": 4.5
},
{
"id": "bcc83a11-e7e1-4bcb-a054-a2f0cc26c5f0",
"name": "获取视频",
"type": "n8n-nodes-base.httpRequest",
"position": [
1020,
100
],
"parameters": {
"url": "https://www.googleapis.com/youtube/v3/search",
"options": {},
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "part",
"value": "snippet"
},
{
"name": "publishedAfter",
"value": "={{ $now.minus(1, 'day') }}"
},
{
"name": "maxResults",
"value": "5"
},
{
"name": "channel_id",
"value": "={{ $('Read Channel Names').item.json['Channel Id'] }}"
},
{
"name": "order",
"value": "date"
},
{
"name": "key",
"value": "AddYourAPIKeyHere"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "6da4a908-1705-4d3a-8f1a-aa73e36866c7",
"name": "分离输出",
"type": "n8n-nodes-base.splitOut",
"position": [
1160,
100
],
"parameters": {
"options": {},
"fieldToSplitOut": "items"
},
"typeVersion": 1
},
{
"id": "1f7ab323-fb52-4a41-bf71-9594e4d1c78d",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
140,
0
],
"parameters": {
"width": 220,
"height": 260,
"content": "## 初始化"
},
"typeVersion": 1
},
{
"id": "e17f2b65-3320-46aa-b360-2366691053cd",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
800,
0
],
"parameters": {
"color": 5,
"width": 660,
"height": 260,
"content": "## 获取视频"
},
"typeVersion": 1
},
{
"id": "d950c171-0993-4e51-8942-18dca557c70a",
"name": "创建播放列表",
"type": "n8n-nodes-base.youTube",
"position": [
440,
100
],
"parameters": {
"title": "={{ $today.format('yyLLdd') }} AI News",
"options": {},
"resource": "playlist",
"operation": "create"
},
"credentials": {
"youTubeOAuth2Api": {
"id": "alrF3L4QeYVd4Ckn",
"name": "YouTube account"
}
},
"typeVersion": 1
},
{
"id": "1d292e23-4efc-4377-aacf-8c5b9c54e524",
"name": "删除旧播放列表",
"type": "n8n-nodes-base.youTube",
"position": [
580,
-220
],
"parameters": {
"options": {},
"resource": "playlist",
"operation": "delete",
"playlistId": "={{ $json['New Playlist ID'] }}"
},
"credentials": {
"youTubeOAuth2Api": {
"id": "alrF3L4QeYVd4Ckn",
"name": "YouTube account"
}
},
"typeVersion": 1
},
{
"id": "26ddb0d4-4ae8-485c-8909-00c70230ce76",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
400,
-340
],
"parameters": {
"color": 3,
"width": 380,
"height": 280,
"content": "## 删除昨天的播放列表"
},
"typeVersion": 1
},
{
"id": "c4756eb6-c080-48dd-9941-511fbf405fbe",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
400,
0
],
"parameters": {
"color": 4,
"width": 360,
"height": 260,
"content": "## 创建新的 AI 新闻播放列表"
},
"typeVersion": 1
},
{
"id": "33308ef0-fb86-4bce-a81f-0c5ddc4215a1",
"name": "YouTube",
"type": "n8n-nodes-base.youTube",
"position": [
1580,
100
],
"parameters": {
"options": {},
"videoId": "={{ $('Split Out').item.json.id.videoId }}",
"resource": "playlistItem",
"playlistId": "={{ $('Create Playlist').item.json.id }}"
},
"credentials": {
"youTubeOAuth2Api": {
"id": "alrF3L4QeYVd4Ckn",
"name": "YouTube account"
}
},
"typeVersion": 1
},
{
"id": "2db4a5e2-f177-4c45-a890-8bf140971882",
"name": "便签4",
"type": "n8n-nodes-base.stickyNote",
"position": [
1500,
0
],
"parameters": {
"color": 6,
"width": 280,
"height": 260,
"content": "## 添加视频到播放列表"
},
"typeVersion": 1
},
{
"id": "7c2945de-9912-4db0-bd4f-6c222b8ebeaf",
"name": "过滤掉即将开始的",
"type": "n8n-nodes-base.filter",
"position": [
1300,
100
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "or",
"conditions": [
{
"id": "8884d2e9-b06d-4347-9635-846d7dea168f",
"operator": {
"type": "string",
"operation": "notEquals"
},
"leftValue": "={{ $json.snippet.liveBroadcastContent }}",
"rightValue": "upcoming"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "d822a00b-acfc-4838-ae50-37103e581cbf",
"name": "保存播放列表 ID",
"type": "n8n-nodes-base.googleSheets",
"position": [
600,
100
],
"parameters": {
"columns": {
"value": {
"Playlist Group": "AI News",
"New Playlist ID": "={{ $json.id }}"
},
"schema": [
{
"id": "Playlist Group",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "Playlist Group",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "New Playlist ID",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "New Playlist ID",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "row_number",
"type": "string",
"display": true,
"removed": true,
"readOnly": true,
"required": false,
"displayName": "row_number",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [
"Playlist Group"
],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {},
"operation": "update",
"sheetName": {
"__rl": true,
"mode": "list",
"value": 1541621778,
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1RNah4ZZsLxflQXvMq8AEn3BFpscOC2ygMZ1dPTlk-Kk/edit#gid=1541621778",
"cachedResultName": "PlaylistId"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "1RNah4ZZsLxflQXvMq8AEn3BFpscOC2ygMZ1dPTlk-Kk",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1RNah4ZZsLxflQXvMq8AEn3BFpscOC2ygMZ1dPTlk-Kk/edit?usp=drivesdk",
"cachedResultName": "Media Links"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "hVq7KRYH68lYmtEB",
"name": "Google Sheets account"
}
},
"typeVersion": 4.5
},
{
"id": "bbbcbe5b-5594-44cb-bb1d-897498b61810",
"name": "Google Sheets",
"type": "n8n-nodes-base.googleSheets",
"position": [
440,
-220
],
"parameters": {
"options": {},
"filtersUI": {
"values": [
{
"lookupValue": "AI News",
"lookupColumn": "Playlist Group"
}
]
},
"sheetName": {
"__rl": true,
"mode": "list",
"value": 1541621778,
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1RNah4ZZsLxflQXvMq8AEn3BFpscOC2ygMZ1dPTlk-Kk/edit#gid=1541621778",
"cachedResultName": "PlaylistId"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "1RNah4ZZsLxflQXvMq8AEn3BFpscOC2ygMZ1dPTlk-Kk",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1RNah4ZZsLxflQXvMq8AEn3BFpscOC2ygMZ1dPTlk-Kk/edit?usp=drivesdk",
"cachedResultName": "Media Links"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "hVq7KRYH68lYmtEB",
"name": "Google Sheets account"
}
},
"typeVersion": 4.5
},
{
"id": "20d814e1-4f1e-4313-949b-961556cd40bf",
"name": "Telegram",
"type": "n8n-nodes-base.telegram",
"position": [
1880,
100
],
"webhookId": "5007b956-14f6-4275-ab8d-2c47050b6007",
"parameters": {
"text": "Your AI News YT Playlist has been updated.",
"additionalFields": {}
},
"credentials": {
"telegramApi": {
"id": "FeG2VD9QbvSMvLxW",
"name": "Dinar Newscaster"
}
},
"typeVersion": 1.2
},
{
"id": "b0cfab69-ad82-4d65-8106-0bd4b23dfdb3",
"name": "便签5",
"type": "n8n-nodes-base.stickyNote",
"position": [
1820,
0
],
"parameters": {
"color": 6,
"width": 280,
"height": 260,
"content": "## 完成通知(可选)"
},
"typeVersion": 1
},
{
"id": "57ef08c8-b7ca-4af6-963a-67a3d2b80176",
"name": "0715 触发器",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
180,
100
],
"parameters": {
"rule": {
"interval": [
{
"triggerAtHour": 7,
"triggerAtMinute": 15
}
]
}
},
"typeVersion": 1.2
},
{
"id": "d3003e8a-aa46-437e-b246-b9030578ea49",
"name": "获取频道",
"type": "n8n-nodes-base.httpRequest",
"position": [
800,
-640
],
"parameters": {
"url": "https://www.googleapis.com/youtube/v3/search",
"options": {},
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "q",
"value": "={{ $json['Channel User Name'] }}"
},
{
"name": "type",
"value": "channel"
},
{
"name": "maxResults",
"value": "1"
},
{
"name": "part",
"value": "snippet"
},
{
"name": "key",
"value": "AIzaSyARU7upVG5hzoaMHIMaBEXjcYtayo8vPJ4"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "fde3bac7-77be-4322-9b74-2cb7b9ddd17c",
"name": "更新 Google Sheet",
"type": "n8n-nodes-base.googleSheets",
"position": [
1000,
-640
],
"parameters": {
"columns": {
"value": {
"Link": "=https://www.youtube.com/{{ $('Read Channel Names1').item.json['Channel User Name'] }}",
"Channel Id": "={{ $json.items[0].id.channelId }}",
"row_number": "={{ $('Read Channel Names1').item.json.row_number }}",
"Channel Name": "={{ $json.items[0].snippet.channelTitle }}"
},
"schema": [
{
"id": "Channel Name",
"type": "string",
"display": true,
"required": false,
"displayName": "Channel Name",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Link",
"type": "string",
"display": true,
"required": false,
"displayName": "Link",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Channel Id",
"type": "string",
"display": true,
"required": false,
"displayName": "Channel Id",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Channel User Name",
"type": "string",
"display": true,
"removed": true,
"required": false,
"displayName": "Channel User Name",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "row_number",
"type": "string",
"display": true,
"removed": false,
"readOnly": true,
"required": false,
"displayName": "row_number",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [
"row_number"
],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {},
"operation": "update",
"sheetName": {
"__rl": true,
"mode": "list",
"value": 944489068,
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1RNah4ZZsLxflQXvMq8AEn3BFpscOC2ygMZ1dPTlk-Kk/edit#gid=944489068",
"cachedResultName": "AI News Channels"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "1RNah4ZZsLxflQXvMq8AEn3BFpscOC2ygMZ1dPTlk-Kk",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1RNah4ZZsLxflQXvMq8AEn3BFpscOC2ygMZ1dPTlk-Kk/edit?usp=drivesdk",
"cachedResultName": "Media Links"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "hVq7KRYH68lYmtEB",
"name": "Google Sheets account"
}
},
"typeVersion": 4.5
},
{
"id": "2b1e067b-436a-4536-ad9f-c55862d496c9",
"name": "当点击\"测试工作流\"时",
"type": "n8n-nodes-base.manualTrigger",
"position": [
440,
-640
],
"parameters": {},
"typeVersion": 1
},
{
"id": "1dd572c5-6762-40a0-88aa-d6a9fa2ca0a3",
"name": "读取频道名称1",
"type": "n8n-nodes-base.googleSheets",
"position": [
620,
-640
],
"parameters": {
"options": {},
"sheetName": {
"__rl": true,
"mode": "list",
"value": 944489068,
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1RNah4ZZsLxflQXvMq8AEn3BFpscOC2ygMZ1dPTlk-Kk/edit#gid=944489068",
"cachedResultName": "AI News Channels"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "1RNah4ZZsLxflQXvMq8AEn3BFpscOC2ygMZ1dPTlk-Kk",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1RNah4ZZsLxflQXvMq8AEn3BFpscOC2ygMZ1dPTlk-Kk/edit?usp=drivesdk",
"cachedResultName": "Media Links"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "hVq7KRYH68lYmtEB",
"name": "Google Sheets account"
}
},
"typeVersion": 4.5
},
{
"id": "43466e82-dc55-4d4e-a6ff-ff2ed977fb3c",
"name": "便签6",
"type": "n8n-nodes-base.stickyNote",
"position": [
380,
-740
],
"parameters": {
"width": 820,
"height": 260,
"content": "## 创建您的频道列表"
},
"typeVersion": 1
},
{
"id": "149373af-ad35-49bc-b751-6ac919d218b0",
"name": "便签7",
"type": "n8n-nodes-base.stickyNote",
"position": [
1260,
-740
],
"parameters": {
"width": 820,
"height": 700,
"content": "## 说明"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"timezone": "Asia/Manila",
"callerPolicy": "workflowsFromSameOwner",
"executionOrder": "v1"
},
"versionId": "c154607b-f3b1-4f41-bf77-faec36ce3716",
"connections": {
"YouTube": {
"main": [
[
{
"node": "Telegram",
"type": "main",
"index": 0
}
]
]
},
"Split Out": {
"main": [
[
{
"node": "Filter Out Upcoming",
"type": "main",
"index": 0
}
]
]
},
"Get Videos": {
"main": [
[
{
"node": "Split Out",
"type": "main",
"index": 0
}
]
]
},
"0715 Trigger": {
"main": [
[
{
"node": "Create Playlist",
"type": "main",
"index": 0
},
{
"node": "Google Sheets",
"type": "main",
"index": 0
}
]
]
},
"Get Channels": {
"main": [
[
{
"node": "Update Google Sheet",
"type": "main",
"index": 0
}
]
]
},
"Google Sheets": {
"main": [
[
{
"node": "Delete Old Playlist",
"type": "main",
"index": 0
}
]
]
},
"Create Playlist": {
"main": [
[
{
"node": "Save Playlist ID",
"type": "main",
"index": 0
}
]
]
},
"Save Playlist ID": {
"main": [
[
{
"node": "Read Channel Names",
"type": "main",
"index": 0
}
]
]
},
"Read Channel Names": {
"main": [
[
{
"node": "Get Videos",
"type": "main",
"index": 0
}
]
]
},
"Filter Out Upcoming": {
"main": [
[
{
"node": "YouTube",
"type": "main",
"index": 0
}
]
]
},
"Read Channel Names1": {
"main": [
[
{
"node": "Get Channels",
"type": "main",
"index": 0
}
]
]
},
"When clicking ‘Test workflow’": {
"main": [
[
{
"node": "Read Channel Names1",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 其他
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
在可视化参考库中探索n8n节点
在可视化参考库中探索n8n节点
If
Ftp
Set
+93
113 节点I versus AI
其他
YT睡前故事 - 短视频 - N8N市场
使用OpenAI生成YouTube睡前故事
Set
Code
Wait
+10
43 节点Samautomation.work
其他
您喜爱频道的高级YouTube RSS Feed伙伴
通过RSS源监控喜爱的YouTube频道并接收通知
Set
Code
Gmail
+13
41 节点Joseph LePage
其他
周边旧货集市(展示)
📍 通过Telegram发送每日附近旧货集市提醒
If
Set
Html
+9
20 节点Thibaud
其他
双向同步 Google 通讯录与 Notion
双向同步 Google 通讯录与 Notion
If
Set
Merge
+9
82 节点Solomon
其他
自动化 YouTube 订阅通知,集成 RSS 和邮件
自动化 YouTube 订阅通知,集成 RSS 和邮件
If
Filter
You Tube
+7
18 节点Sweenu
其他