AI驱动视频创作与上传至Instagram、TikTok和YouTube
这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 53 个节点。主要使用 If, Set, Code, Wait, Merge 等节点。 从云端硬盘进行AI驱动视频创作并上传至Instagram、TikTok和YouTube
- •Discord Bot Token 或 Webhook
- •Telegram Bot Token
- •Google Drive API 凭证
- •可能需要目标 API 的认证凭证
- •Google Sheets API 凭证
- •OpenAI API Key
使用的节点 (53)
{
"meta": {
"instanceId": "cb9a1e5321767b6316634728341237e564b2587ab15b74ca0a89eb02a53484d6"
},
"nodes": [
{
"id": "361c4067-abfd-4f88-bee0-944985ceb60e",
"name": "获取图片",
"type": "n8n-nodes-base.httpRequest",
"position": [
784,
240
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "a61f8402-5a98-45b3-a5f4-2c774d468962",
"name": "生成图片",
"type": "n8n-nodes-base.httpRequest",
"position": [
512,
240
],
"parameters": {},
"retryOnFail": false,
"typeVersion": 4.2
},
{
"id": "5027cbc7-4499-4e88-92e5-0839afe144cc",
"name": "图片转视频",
"type": "n8n-nodes-base.httpRequest",
"position": [
144,
768
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "4ddb4160-dee6-41d2-8d22-47342f7273b7",
"name": "获取视频",
"type": "n8n-nodes-base.httpRequest",
"position": [
400,
768
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "871a4192-6604-440b-a6d5-b680c61cdfe2",
"name": "列出元素",
"type": "n8n-nodes-base.code",
"position": [
1024,
800
],
"parameters": {},
"typeVersion": 2
},
{
"id": "ac357967-955d-4037-bee1-6ff830782b94",
"name": "等待 10 分钟",
"type": "n8n-nodes-base.wait",
"position": [
288,
768
],
"webhookId": "1f9d716f-6544-4e4e-94ec-408ac3ea6e82",
"parameters": {},
"typeVersion": 1.1
},
{
"id": "1f32a54f-f597-46c7-a550-5bb24e62d7af",
"name": "等待 3 分钟",
"type": "n8n-nodes-base.wait",
"position": [
640,
240
],
"webhookId": "77cdee73-5e99-456a-b5e7-410b4d257669",
"parameters": {},
"typeVersion": 1.1
},
{
"id": "77b86b10-0943-4c72-b414-b8a4a2045965",
"name": "等待 5 分钟",
"type": "n8n-nodes-base.wait",
"position": [
1104,
160
],
"webhookId": "31d5b1a2-dbb5-4849-ae25-cb491539c16e",
"parameters": {},
"typeVersion": 1.1
},
{
"id": "85ac0521-97a8-42be-8c2e-aecea9adc4ea",
"name": "生成语音",
"type": "n8n-nodes-base.httpRequest",
"position": [
512,
1232
],
"parameters": {},
"retryOnFail": false,
"typeVersion": 4.2
},
{
"id": "295f3a3d-f4ed-4ece-a815-e5f011b7e6a4",
"name": "列出元素1",
"type": "n8n-nodes-base.code",
"position": [
1024,
1024
],
"parameters": {},
"typeVersion": 2
},
{
"id": "92c1f6c9-428a-4bbd-beaf-e16558cdacfe",
"name": "失败检查",
"type": "n8n-nodes-base.if",
"position": [
544,
768
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "d46f09bb-e153-4b3e-8b93-d5264b45ecc0",
"name": "等待重试",
"type": "n8n-nodes-base.wait",
"position": [
688,
720
],
"webhookId": "3b0fae8f-4419-45cd-8380-8f72eca05ff8",
"parameters": {},
"typeVersion": 1.1
},
{
"id": "f5da2a02-d8e4-45eb-8812-f75215182247",
"name": "生成图像提示",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
32,
320
],
"parameters": {},
"typeVersion": 1.8
},
{
"id": "1f38aad5-2ff5-4a67-863b-ed174c1a9d02",
"name": "计算令牌使用量",
"type": "n8n-nodes-base.code",
"position": [
320,
320
],
"parameters": {},
"typeVersion": 2
},
{
"id": "904758e1-bb66-47f2-a74b-beb289dd8312",
"name": "检查失败",
"type": "n8n-nodes-base.if",
"position": [
928,
240
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "c2351c2e-4d01-4adb-987a-e630cbb6580e",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
0,
0
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "9f2ce4a4-b45f-42d7-b20f-0348f2ffd5c3",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
112,
480
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "291f80d1-0da9-419f-bce1-f793424647b7",
"name": "生成视频字幕",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
-416,
992
],
"parameters": {},
"typeVersion": 1.8
},
{
"id": "883d3d0c-9f2d-4b97-94b0-460ff0307ecd",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
112,
1008
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "3f1ffa42-cbca-4fbe-9dfe-419647ea12ac",
"name": "匹配字幕与视频",
"type": "n8n-nodes-base.merge",
"position": [
864,
800
],
"parameters": {},
"typeVersion": 3
},
{
"id": "1c057f3e-39b2-40bf-b859-987f4554782e",
"name": "生成脚本",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
144,
1232
],
"parameters": {},
"executeOnce": true,
"typeVersion": 1.8
},
{
"id": "7784c6e5-eca5-45d5-85d4-75bea6b42615",
"name": "上传语音音频",
"type": "n8n-nodes-base.googleDrive",
"position": [
704,
1232
],
"parameters": {},
"typeVersion": 3
},
{
"id": "ec310c53-f655-4162-a692-6e0cfd26dcd9",
"name": "设置访问权限",
"type": "n8n-nodes-base.googleDrive",
"position": [
880,
1232
],
"parameters": {},
"typeVersion": 3
},
{
"id": "93083cd7-9171-48e7-bf5f-54cd0273441b",
"name": "将视频与音频配对",
"type": "n8n-nodes-base.merge",
"position": [
1248,
912
],
"parameters": {},
"typeVersion": 3
},
{
"id": "c7a04be1-2d27-4dd9-ab0c-39e0f1bf70bf",
"name": "渲染最终视频",
"type": "n8n-nodes-base.httpRequest",
"position": [
1424,
912
],
"parameters": {},
"executeOnce": true,
"typeVersion": 4.2
},
{
"id": "8cdbb0f4-6ab6-4b31-8ba3-89e948dc3697",
"name": "在 Discord 上通知我",
"type": "n8n-nodes-base.discord",
"position": [
2400,
912
],
"webhookId": "1541bc50-06e4-48e8-8c76-23850ee4edf6",
"parameters": {},
"typeVersion": 2
},
{
"id": "8857afc3-d70a-4d10-9e11-cd633b73b5b0",
"name": "加载 Google 表格",
"type": "n8n-nodes-base.googleSheets",
"position": [
-560,
992
],
"parameters": {},
"typeVersion": 4.5,
"alwaysOutputData": true
},
{
"id": "cfc74149-d962-49c7-9951-0009dff77d4e",
"name": "创建列表",
"type": "n8n-nodes-base.code",
"position": [
-96,
912
],
"parameters": {},
"typeVersion": 2
},
{
"id": "19f953d5-0086-4d3a-918a-a9ff402f734a",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
1168,
688
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "388b7269-71d0-467c-a88f-029ca386d6c8",
"name": "便签说明5",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1024,
544
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "d457089b-17bd-483c-b6e4-b7f1a6df7a55",
"name": "等待1",
"type": "n8n-nodes-base.wait",
"position": [
1552,
912
],
"webhookId": "206d0cdf-b71f-44a7-909f-97df885c471a",
"parameters": {},
"typeVersion": 1.1
},
{
"id": "e0b41683-da7d-4825-be4f-74c437746b24",
"name": "获取最终视频",
"type": "n8n-nodes-base.httpRequest",
"position": [
1664,
912
],
"parameters": {},
"executeOnce": true,
"typeVersion": 4.2
},
{
"id": "eb413acf-0ae0-46a0-8f70-b819f533fae9",
"name": "上传最终视频",
"type": "n8n-nodes-base.googleDrive",
"position": [
1920,
912
],
"parameters": {},
"typeVersion": 3
},
{
"id": "507210b2-9fe6-4cfb-91bb-7fba4627ae17",
"name": "获取原始文件",
"type": "n8n-nodes-base.httpRequest",
"position": [
1792,
912
],
"parameters": {},
"typeVersion": 4.2
},
{
"id": "bfbb8656-6966-4787-9a2e-813b622c970e",
"name": "设置权限",
"type": "n8n-nodes-base.googleDrive",
"position": [
2064,
912
],
"parameters": {},
"typeVersion": 3
},
{
"id": "178f75a5-a1d2-472d-a2ca-b0f906c12696",
"name": "更新 Google 表格",
"type": "n8n-nodes-base.googleSheets",
"position": [
2224,
912
],
"parameters": {},
"typeVersion": 4.5
},
{
"id": "b976dd0f-c088-42f1-be60-f3c5060d4770",
"name": "设置 API 密钥",
"type": "n8n-nodes-base.set",
"notes": "SET BEFORE STARTING",
"position": [
-768,
992
],
"parameters": {},
"notesInFlow": true,
"typeVersion": 3.4
},
{
"id": "45ab6f9d-efb3-457c-ae04-76195daa1498",
"name": "验证列表格式",
"type": "n8n-nodes-base.if",
"position": [
-96,
1104
],
"parameters": {},
"typeVersion": 2.2
},
{
"id": "ec465032-4f34-4745-be44-b08396f09fb3",
"name": "从视频中获取音频",
"type": "@n8n/n8n-nodes-langchain.openAi",
"notes": "Extract the audio from video for generate the description",
"position": [
2096,
1840
],
"parameters": {},
"notesInFlow": true,
"retryOnFail": true,
"typeVersion": 1,
"waitBetweenTries": 5000
},
{
"id": "66ff7441-aadb-4316-b4d5-688eeade30b9",
"name": "为 TikTok 和 Instagram 视频生成描述",
"type": "@n8n/n8n-nodes-langchain.openAi",
"notes": "Request to OpenAi for generate description with the audio extracted from the video",
"position": [
2304,
1840
],
"parameters": {},
"notesInFlow": true,
"retryOnFail": true,
"typeVersion": 1.4,
"waitBetweenTries": 5000
},
{
"id": "85a29206-b8b4-4fa7-873f-d9010fe7b136",
"name": "上传视频和描述到 TikTok",
"type": "n8n-nodes-base.httpRequest",
"notes": "Generate in upload-post.com the token and add to the credentials in the header-> Authorization: Apikey (token here)",
"position": [
3072,
1424
],
"parameters": {},
"notesInFlow": true,
"typeVersion": 4.2
},
{
"id": "fd919440-f00e-4aa0-a299-2de622dd85bf",
"name": "上传视频和描述到 Instagram",
"type": "n8n-nodes-base.httpRequest",
"notes": "Generate in upload-post.com the token and add to the credentials in the header-> Authorization: Apikey (token here)",
"position": [
3072,
1632
],
"parameters": {},
"notesInFlow": true,
"typeVersion": 4.2
},
{
"id": "d0b616ee-027c-40f4-95a6-093c9162e39b",
"name": "上传视频和描述到 YouTube",
"type": "n8n-nodes-base.httpRequest",
"notes": "Generate in upload-post.com the token and add to the credentials in the header-> Authorization: Apikey (token here)",
"position": [
3072,
1840
],
"parameters": {},
"notesInFlow": true,
"typeVersion": 4.2
},
{
"id": "3e3999d4-7b05-4bae-a0d2-ea9a50be692f",
"name": "上传视频和描述到 Facebook",
"type": "n8n-nodes-base.httpRequest",
"notes": "Generate in upload-post.com the token and add to the credentials in the header-> Authorization: Apikey (token here)",
"position": [
3072,
2080
],
"parameters": {},
"notesInFlow": true,
"typeVersion": 4.2
},
{
"id": "d6530ad2-2578-4531-b383-ddbedbad37f1",
"name": "上传视频和描述到 LinkedIn",
"type": "n8n-nodes-base.httpRequest",
"notes": "Generate in upload-post.com the token and add to the credentials in the header-> Authorization: Apikey (token here)",
"position": [
3072,
2320
],
"parameters": {},
"notesInFlow": true,
"typeVersion": 4.2
},
{
"id": "dbcb5be2-d40f-4f1d-b423-27d36b5db966",
"name": "便签 7",
"type": "n8n-nodes-base.stickyNote",
"position": [
1824,
1408
],
"parameters": {
"content": ""
},
"typeVersion": 1
},
{
"id": "96da86ec-ab34-4925-9196-228be717ff28",
"name": "从 Google Drive 读取视频",
"type": "n8n-nodes-base.readBinaryFile",
"position": [
2640,
1840
],
"parameters": {},
"typeVersion": 1
},
{
"id": "de8790d5-b700-4821-82bd-d126439ff36b",
"name": "写入视频",
"type": "n8n-nodes-base.writeBinaryFile",
"position": [
1904,
1840
],
"parameters": {},
"typeVersion": 1
},
{
"id": "912e589f-7a28-4fc0-89a1-ba01b077dda6",
"name": "在 Google Sheets 中获取行",
"type": "n8n-nodes-base.googleSheetsTool",
"position": [
2448,
2048
],
"parameters": {},
"typeVersion": 4.7
},
{
"id": "7630242f-6f87-4fb1-b1dd-bf917afcf806",
"name": "发送文本消息",
"type": "n8n-nodes-base.telegram",
"position": [
2400,
752
],
"webhookId": "254d7548-d99e-464d-b9f0-addabeabf714",
"parameters": {},
"typeVersion": 1.2
},
{
"id": "4f6c8e9e-06a6-442c-9d21-b06efd65775f",
"name": "Rapiwa",
"type": "n8n-nodes-rapiwa.rapiwa",
"position": [
2400,
1072
],
"parameters": {},
"typeVersion": 1
},
{
"id": "be647451-2ec1-462e-b353-f878ba9f4e72",
"name": "计划",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
-976,
992
],
"parameters": {},
"typeVersion": 1.2
},
{
"id": "e78b7107-575c-4707-8228-61f00d370d03",
"name": "便签说明4",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1376,
544
],
"parameters": {
"content": ""
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"Wait1": {
"main": [
[
{
"node": "Get Final Video",
"type": "main",
"index": 0
}
]
]
},
"Schedule": {
"main": [
[
{
"node": "Set API Keys",
"type": "main",
"index": 0
}
]
]
},
"Get Video": {
"main": [
[
{
"node": "Fail check",
"type": "main",
"index": 0
}
]
]
},
"Get image": {
"main": [
[
{
"node": "Check for failures",
"type": "main",
"index": 0
}
]
]
},
"Wait 3min": {
"main": [
[
{
"node": "Get image",
"type": "main",
"index": 0
}
]
]
},
"Wait 5min": {
"main": [
[
{
"node": "Generate Image",
"type": "main",
"index": 0
}
]
]
},
"Fail check": {
"main": [
[
{
"node": "Wait to retry",
"type": "main",
"index": 0
}
],
[
{
"node": "Match captions with videos",
"type": "main",
"index": 1
}
]
]
},
"Wait 10min": {
"main": [
[
{
"node": "Get Video",
"type": "main",
"index": 0
}
]
]
},
"Create List": {
"main": [
[
{
"node": "Validate list formatting",
"type": "main",
"index": 0
}
]
]
},
"Write video": {
"main": [
[
{
"node": "Get Audio from Video",
"type": "main",
"index": 0
}
]
]
},
"Get Raw File": {
"main": [
[
{
"node": "Upload Final Video",
"type": "main",
"index": 0
},
{
"node": "Write video",
"type": "main",
"index": 0
}
]
]
},
"Set API Keys": {
"main": [
[
{
"node": "Load Google Sheet",
"type": "main",
"index": 0
}
]
]
},
"List Elements": {
"main": [
[
{
"node": "Pair Videos with Audio",
"type": "main",
"index": 0
}
]
]
},
"Wait to retry": {
"main": [
[
{
"node": "Image-to-Video",
"type": "main",
"index": 0
}
]
]
},
"Generate Image": {
"main": [
[
{
"node": "Wait 3min",
"type": "main",
"index": 0
}
]
]
},
"Generate voice": {
"main": [
[
{
"node": "Upload Voice Audio",
"type": "main",
"index": 0
}
]
]
},
"Image-to-Video": {
"main": [
[
{
"node": "Wait 10min",
"type": "main",
"index": 0
}
]
]
},
"List Elements1": {
"main": [
[
{
"node": "Pair Videos with Audio",
"type": "main",
"index": 1
}
]
]
},
"Generate Script": {
"main": [
[
{
"node": "Generate voice",
"type": "main",
"index": 0
}
]
]
},
"Get Final Video": {
"main": [
[
{
"node": "Get Raw File",
"type": "main",
"index": 0
}
]
]
},
"Set Permissions": {
"main": [
[
{
"node": "Update Google Sheet",
"type": "main",
"index": 0
}
]
]
},
"Load Google Sheet": {
"main": [
[
{
"node": "Generate Video Captions",
"type": "main",
"index": 0
}
]
]
},
"Check for failures": {
"main": [
[
{
"node": "Wait 5min",
"type": "main",
"index": 0
}
],
[
{
"node": "Image-to-Video",
"type": "main",
"index": 0
}
]
]
},
"Render Final Video": {
"main": [
[
{
"node": "Wait1",
"type": "main",
"index": 0
}
]
]
},
"Upload Final Video": {
"main": [
[
{
"node": "Set Permissions",
"type": "main",
"index": 0
}
]
]
},
"Upload Voice Audio": {
"main": [
[
{
"node": "Set Access Permissions",
"type": "main",
"index": 0
}
]
]
},
"Send a text message": {
"main": [
[]
]
},
"Update Google Sheet": {
"main": [
[
{
"node": "Notify me on Discord",
"type": "main",
"index": 0
},
{
"node": "Send a text message",
"type": "main",
"index": 0
},
{
"node": "Rapiwa",
"type": "main",
"index": 0
}
]
]
},
"Get Audio from Video": {
"main": [
[
{
"node": "Generate Description for Videos in Tiktok and Instagram",
"type": "main",
"index": 0
}
]
]
},
"Calculate Token Usage": {
"main": [
[
{
"node": "Generate Image",
"type": "main",
"index": 0
}
]
]
},
"Generate Image Prompts": {
"main": [
[
{
"node": "Calculate Token Usage",
"type": "main",
"index": 0
}
]
]
},
"Pair Videos with Audio": {
"main": [
[
{
"node": "Render Final Video",
"type": "main",
"index": 0
}
]
]
},
"Set Access Permissions": {
"main": [
[
{
"node": "List Elements1",
"type": "main",
"index": 0
}
]
]
},
"Generate Video Captions": {
"main": [
[
{
"node": "Create List",
"type": "main",
"index": 0
}
]
]
},
"Validate list formatting": {
"main": [
[
{
"node": "Generate Image Prompts",
"type": "main",
"index": 0
},
{
"node": "Match captions with videos",
"type": "main",
"index": 0
},
{
"node": "Generate Script",
"type": "main",
"index": 0
}
],
[
{
"node": "Generate Video Captions",
"type": "main",
"index": 0
}
]
]
},
"Match captions with videos": {
"main": [
[
{
"node": "List Elements",
"type": "main",
"index": 0
}
]
]
},
"Read Video from Google Drive": {
"main": [
[
{
"node": "Upload Video and Description to Tiktok",
"type": "main",
"index": 0
},
{
"node": "Upload Video and Description to Instagram",
"type": "main",
"index": 0
},
{
"node": "Upload Video and Description to Youtube",
"type": "main",
"index": 0
},
{
"node": "Upload Video and Description to Facebook",
"type": "main",
"index": 0
},
{
"node": "Upload Video and Description to Linkedin",
"type": "main",
"index": 0
}
]
]
},
"Get row(s) in sheet in Google Sheets": {
"ai_tool": [
[
{
"node": "Generate Description for Videos in Tiktok and Instagram",
"type": "ai_tool",
"index": 0
}
]
]
},
"Generate Description for Videos in Tiktok and Instagram": {
"main": [
[
{
"node": "Read Video from Google Drive",
"type": "main",
"index": 0
}
]
]
}
}
}如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 内容创作, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
DevCode Journey
@devcodejourneyI build intelligent systems that automate tasks, streamline workflows, and enhance user experiences using tools like n8n, AI chatbots, and modern automation platforms. With a passion for solving real-world problems through smart technology, I create custom solutions that help individuals and businesses save time, scale faster, and work smarter. Whether it's integrating APIs, building no-code/low-code automations, or developing conversational AI, I'm always exploring the edge of what's possible.
分享此工作流