使用Veo3、YouTube和Google套件自动化AI视频制作与分发
高级
这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 26 个节点。主要使用 If, Wait, AimlApi, GoogleDrive, HttpRequest 等节点。 使用Veo3、YouTube和Google套件自动化AI视频制作与分发
前置要求
- •Google Drive API 凭证
- •可能需要目标 API 的认证凭证
- •Google Sheets API 凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "29cf227651b207fca8739269056bd8f95a432c5e246ffae4aaf9220581f6fe53",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "2b7aee06-739e-46f2-969c-a1a595da9a7d",
"name": "当点击\"测试工作流\"时",
"type": "n8n-nodes-base.manualTrigger",
"position": [
0,
1504
],
"parameters": {},
"typeVersion": 1
},
{
"id": "39e9de43-a644-4093-b6b6-29ad283f96f4",
"name": "获取状态",
"type": "n8n-nodes-base.httpRequest",
"position": [
1024,
1376
],
"parameters": {
"url": "=https://api.aimlapi.com/v2/generate/video/google/generation",
"options": {},
"sendQuery": true,
"authentication": "genericCredentialType",
"genericAuthType": "httpBearerAuth",
"queryParameters": {
"parameters": [
{
"name": "generation_id",
"value": "={{ $json.id }}"
}
]
}
},
"credentials": {
"httpBearerAuth": {
"id": "la8dkcvJteCvP1fk",
"name": "Bearer Auth account"
}
},
"typeVersion": 4.2
},
{
"id": "8a8f5b05-aa67-465a-b8a7-c2f4793bca32",
"name": "计划触发器",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
0,
1344
],
"parameters": {
"rule": {
"interval": [
{
"field": "minutes"
}
]
}
},
"typeVersion": 1.2
},
{
"id": "5d98b57e-68e8-4f21-bba9-8131272ab84f",
"name": "便签4",
"type": "n8n-nodes-base.stickyNote",
"position": [
32,
80
],
"parameters": {
"width": 436,
"height": 424,
"content": "## 步骤 1:设置您的 Google Sheets"
},
"typeVersion": 1
},
{
"id": "5e85bae0-cc0b-4cc5-9dc7-433ee4811b1a",
"name": "已完成?",
"type": "n8n-nodes-base.if",
"position": [
1248,
1440
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "383d112e-2cc6-4dd4-8985-f09ce0bd1781",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.status }}",
"rightValue": "completed"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "f9c32efc-ce09-4504-9a5a-cd748efdf199",
"name": "更新结果",
"type": "n8n-nodes-base.googleSheets",
"position": [
2256,
1344
],
"parameters": {
"columns": {
"value": {
"VIDEO": "={{ $json.webContentLink }}",
"row_number": "={{ $('Get new video').item.json.row_number }}"
},
"schema": [
{
"id": "PROMPT",
"type": "string",
"display": true,
"removed": true,
"required": false,
"displayName": "PROMPT",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "VIDEO",
"type": "string",
"display": true,
"required": false,
"displayName": "VIDEO",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "YOUTUBE_URL",
"type": "string",
"display": true,
"removed": true,
"required": false,
"displayName": "YOUTUBE_URL",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "row_number",
"type": "number",
"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": "gid=0",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1PXFCgY9zKHjX0HEhtrjMMiwefuwUP-bHIbwJ1gc-cAI/edit#gid=0",
"cachedResultName": "Main"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "1PXFCgY9zKHjX0HEhtrjMMiwefuwUP-bHIbwJ1gc-cAI",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1PXFCgY9zKHjX0HEhtrjMMiwefuwUP-bHIbwJ1gc-cAI/edit?usp=drivesdk",
"cachedResultName": "Veo3 VideoGen"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "FAqNqtaHmPjIXEtc",
"name": "Google Sheets account"
}
},
"typeVersion": 4.5
},
{
"id": "06e62023-79ea-44b0-9f35-76f197177bf7",
"name": "便签5",
"type": "n8n-nodes-base.stickyNote",
"position": [
496,
720
],
"parameters": {
"width": 484,
"height": 452,
"content": "## 步骤 4:主流程"
},
"typeVersion": 1
},
{
"id": "149c7098-6fae-432c-968c-602fce1ee77b",
"name": "便签6",
"type": "n8n-nodes-base.stickyNote",
"position": [
496,
384
],
"parameters": {
"width": 484,
"height": 316,
"content": "## 步骤 2:获取您的 API 密钥"
},
"typeVersion": 1
},
{
"id": "21888932-7f64-48b2-81fd-6020e53375be",
"name": "便签7",
"type": "n8n-nodes-base.stickyNote",
"position": [
464,
1360
],
"parameters": {
"width": 246,
"height": 248,
"content": "设置在步骤 2 中创建的 API 密钥"
},
"typeVersion": 1
},
{
"id": "e7908696-7ecf-40ed-a500-bd97eae235ba",
"name": "获取新视频",
"type": "n8n-nodes-base.googleSheets",
"position": [
240,
1440
],
"parameters": {
"options": {},
"sheetName": {
"__rl": true,
"mode": "list",
"value": "gid=0",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1PXFCgY9zKHjX0HEhtrjMMiwefuwUP-bHIbwJ1gc-cAI/edit#gid=0",
"cachedResultName": "Main"
},
"documentId": {
"__rl": true,
"mode": "id",
"value": "1PXFCgY9zKHjX0HEhtrjMMiwefuwUP-bHIbwJ1gc-cAI"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "FAqNqtaHmPjIXEtc",
"name": "Google Sheets account"
}
},
"typeVersion": 4.5
},
{
"id": "c68b0220-628b-4433-9f6c-9fe669fad481",
"name": "上传视频",
"type": "n8n-nodes-base.googleDrive",
"position": [
1984,
1344
],
"parameters": {
"name": "={{ $now.format('yyyy.LL.dd HH-mm-ss') }} {{ $json.content }}.mp4",
"driveId": {
"__rl": true,
"mode": "list",
"value": "My Drive",
"cachedResultUrl": "https://drive.google.com/drive/my-drive",
"cachedResultName": "My Drive"
},
"options": {},
"folderId": {
"__rl": true,
"mode": "list",
"value": "1jwfZcnC1nJvD7Gs9i0ug2mBaVfmqV5FO",
"cachedResultUrl": "https://drive.google.com/drive/folders/1jwfZcnC1nJvD7Gs9i0ug2mBaVfmqV5FO",
"cachedResultName": "AI ML API"
}
},
"credentials": {
"googleDriveOAuth2Api": {
"id": "FGK0xoeiUeo2ttBT",
"name": "Google Drive account"
}
},
"typeVersion": 3
},
{
"id": "a5fd7d46-56ce-4cb4-81fe-6195f5125826",
"name": "HTTP 请求",
"type": "n8n-nodes-base.httpRequest",
"position": [
1984,
1584
],
"parameters": {
"url": "https://api.upload-post.com/api/upload",
"method": "POST",
"options": {},
"sendBody": true,
"contentType": "multipart-form-data",
"authentication": "genericCredentialType",
"bodyParameters": {
"parameters": [
{
"name": "title",
"value": "={{ $('Generate title with AI/ML API').item.json.content }}"
},
{
"name": "user",
"value": "YOUR_USERNAME"
},
{
"name": "platform[]",
"value": "youtube"
},
{
"name": "video",
"parameterType": "formBinaryData",
"inputDataFieldName": "data"
}
]
},
"genericAuthType": "httpHeaderAuth"
},
"typeVersion": 4.2
},
{
"id": "eadd3284-83f0-428d-968c-cc6b1af8a42a",
"name": "更新 YouTube URL",
"type": "n8n-nodes-base.googleSheets",
"position": [
2256,
1584
],
"parameters": {
"columns": {
"value": {
"row_number": "={{ $('Get new video').item.json.row_number }}",
"YOUTUBE_URL": "https://youtu.be/{{ $json.results.youtube.video_id }}"
},
"schema": [
{
"id": "PROMPT",
"type": "string",
"display": true,
"removed": true,
"required": false,
"displayName": "PROMPT",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "DURATION",
"type": "string",
"display": true,
"removed": true,
"required": false,
"displayName": "DURATION",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "VIDEO",
"type": "string",
"display": true,
"removed": true,
"required": false,
"displayName": "VIDEO",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "YOUTUBE_URL",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "YOUTUBE_URL",
"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": "gid=0",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1PXFCgY9zKHjX0HEhtrjMMiwefuwUP-bHIbwJ1gc-cAI/edit#gid=0",
"cachedResultName": "Main"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "1PXFCgY9zKHjX0HEhtrjMMiwefuwUP-bHIbwJ1gc-cAI",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1PXFCgY9zKHjX0HEhtrjMMiwefuwUP-bHIbwJ1gc-cAI/edit?usp=drivesdk",
"cachedResultName": "Veo3 VideoGen"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "FAqNqtaHmPjIXEtc",
"name": "Google Sheets account"
}
},
"typeVersion": 4.5
},
{
"id": "54e07216-fc8a-4b96-b462-80cbd0e71e56",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
1920,
1504
],
"parameters": {
"width": 228,
"height": 232,
"content": "在步骤 3 中设置 YOUR_USERNAME"
},
"typeVersion": 1
},
{
"id": "4d1165e3-c25a-46cd-9465-d4d34a59ff92",
"name": "便签8",
"type": "n8n-nodes-base.stickyNote",
"position": [
32,
528
],
"parameters": {
"width": 436,
"height": 520,
"content": "## 步骤 3:配置 YouTube 上传"
},
"typeVersion": 1
},
{
"id": "ef498f17-80b0-4482-82ed-d2f90458e5c8",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
496,
-112
],
"parameters": {
"color": 3,
"width": 484,
"height": 472,
"content": "**AI Video Automation: Google Veo3 → Google Drive → YouTube**\n\n**This end‑to‑end workflow fully automates your AI video pipeline:**\n\n1. **AI Video Generation**\n * Trigger video creation with Google Veo3 directly from a Google Sheet.\n\n2. **Save to Google Drive**\n * Automatically store completed videos in a specified Drive folder.\n\n3. **Title Optimization**\n * Leverage GPT‑4o to generate SEO‑friendly YouTube titles.\n\n4. **Automatic YouTube Upload**\n * Publish videos via the YouTube API with metadata populated.\n\n5. **Tracking & Reporting**\n * Log upload status, video IDs, and performance metrics back into the Sheet."
},
"typeVersion": 1
},
{
"id": "12fb7ba2-e048-4cd0-b0d3-f5ac746bcbb2",
"name": "Generate title with AI/ML API",
"type": "n8n-nodes-aimlapi.aimlApi",
"position": [
1520,
1440
],
"parameters": {
"model": "openai/gpt-4o",
"prompt": "=You are a YouTube SEO expert specialized in creating engaging and optimized titles.\n\nYour task is to generate an effective title for a YouTube video based on the user's video description.\n\nGUIDELINES:\n- Maximum 60 characters to avoid truncation\n- Use relevant keywords for SEO\n- Make the title catchy and clickable\n- Avoid excessive or misleading clickbait\n- Consider the target audience of the content\n- Use numbers, questions, or power words when appropriate\n- IMPORTANT: Generate the title in the same language as the input description\n\nOUTPUT FORMAT:\nProvide only the title, without additional explanations.\n\nEXAMPLE:\nInput: \"Tutorial video on how to cook perfect pasta carbonara\"\nOutput: \"PERFECT Carbonara in 10 Minutes - Chef's Secrets\"\n\nInput: {{ $('Get new video').item.json.PROMPT }}",
"options": {},
"requestOptions": {}
},
"credentials": {
"aimlApi": {
"id": "fzkUXwSArkMtWVYd",
"name": "AI/ML account"
}
},
"typeVersion": 1
},
{
"id": "9b3e4edd-f4ef-4c51-b4db-8cafeeaea697",
"name": "Create Video with AI/ML API",
"type": "n8n-nodes-base.httpRequest",
"position": [
544,
1440
],
"parameters": {
"url": "https://api.aimlapi.com/v2/generate/video/google/generation",
"method": "POST",
"options": {},
"sendBody": true,
"sendHeaders": true,
"authentication": "genericCredentialType",
"bodyParameters": {
"parameters": [
{
"name": "prompt",
"value": "={{ $json.PROMPT }}"
},
{
"name": "model",
"value": "google/veo3"
}
]
},
"genericAuthType": "httpBearerAuth",
"headerParameters": {
"parameters": [
{
"name": "Content-Type",
"value": "application/json"
}
]
}
},
"credentials": {
"httpBearerAuth": {
"id": "la8dkcvJteCvP1fk",
"name": "Bearer Auth account"
}
},
"typeVersion": 4.2
},
{
"id": "1bd9bb11-77d8-4138-a6d4-ff13ff5ac02f",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
448,
1280
],
"parameters": {
"color": 5,
"width": 960,
"height": 432,
"content": "# 通过 VEO-3 生成视频"
},
"typeVersion": 1
},
{
"id": "d33b9412-f38d-40fd-8278-2baf6dfd6383",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
1440,
1280
],
"parameters": {
"color": 5,
"width": 246,
"height": 432,
"content": "### Generate Title via GPT-4o"
},
"typeVersion": 1
},
{
"id": "1a48d18e-952f-4568-a8aa-e51db4e987e3",
"name": "便签9",
"type": "n8n-nodes-base.stickyNote",
"position": [
1712,
1216
],
"parameters": {
"color": 5,
"width": 726,
"height": 544,
"content": "## Upload your video"
},
"typeVersion": 1
},
{
"id": "2913cb17-aa57-40e1-9977-a229aa357ab7",
"name": "Wait 30 sec.",
"type": "n8n-nodes-base.wait",
"position": [
800,
1440
],
"webhookId": "490facb8-d0ae-402e-ab59-a87720cf0bdd",
"parameters": {
"amount": 30
},
"typeVersion": 1.1
},
{
"id": "03c75bcc-27d6-496f-964f-17c745dedb40",
"name": "便签10",
"type": "n8n-nodes-base.stickyNote",
"position": [
-64,
1280
],
"parameters": {
"color": 5,
"width": 486,
"height": 432,
"content": "### Select your automating settings\n"
},
"typeVersion": 1
},
{
"id": "7c727b48-cc78-466f-8260-ad82f53e394a",
"name": "便签11",
"type": "n8n-nodes-base.stickyNote",
"position": [
1456,
1360
],
"parameters": {
"width": 214,
"height": 232,
"content": "设置在步骤 2 中创建的 API 密钥"
},
"typeVersion": 1
},
{
"id": "605b0ad0-8bdd-4a6a-94ab-f73562803f53",
"name": "获取视频文件",
"type": "n8n-nodes-base.httpRequest",
"position": [
1744,
1440
],
"parameters": {
"url": "={{ $('Completed?').item.json.video.url }}",
"options": {}
},
"typeVersion": 4.2
},
{
"id": "13a8afe5-6e36-4881-ad10-b4e40338115f",
"name": "便签12",
"type": "n8n-nodes-base.stickyNote",
"position": [
1920,
1264
],
"parameters": {
"width": 228,
"height": 232,
"content": "Create and insert link to your `output` GoogleDrive folder"
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"Completed?": {
"main": [
[
{
"node": "Generate title with AI/ML API",
"type": "main",
"index": 0
}
],
[
{
"node": "Wait 30 sec.",
"type": "main",
"index": 0
}
]
]
},
"Get status": {
"main": [
[
{
"node": "Completed?",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request": {
"main": [
[
{
"node": "Update Youtube URL",
"type": "main",
"index": 0
}
]
]
},
"Upload Video": {
"main": [
[
{
"node": "Update result",
"type": "main",
"index": 0
}
]
]
},
"Wait 30 sec.": {
"main": [
[
{
"node": "Get status",
"type": "main",
"index": 0
}
]
]
},
"Get new video": {
"main": [
[
{
"node": "Create Video with AI/ML API",
"type": "main",
"index": 0
}
]
]
},
"Get Video File": {
"main": [
[
{
"node": "Upload Video",
"type": "main",
"index": 0
},
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
]
]
},
"Create Video with AI/ML API": {
"main": [
[
{
"node": "Wait 30 sec.",
"type": "main",
"index": 0
}
]
]
},
"Generate title with AI/ML API": {
"main": [
[
{
"node": "Get Video File",
"type": "main",
"index": 0
}
]
]
},
"When clicking ‘Test workflow’": {
"main": [
[
{
"node": "Get new video",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 内容创作, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
LinkedIn和X病毒内容自动引擎
使用AI生成和发布自动创建LinkedIn和X的病毒内容
If
Set
Wait
+26
156 节点Diptamoy Barman
内容创作
使用Google Veo3 Fast创建更便宜的视频并上传到社交媒体
使用Veo3 Fast创建低成本AI视频并上传至YouTube和TikTok
If
Set
Wait
+7
23 节点Davide
内容创作
使用 Google Veo3 Fast 创建视频并通过 Postiz 上传到 TikTok
使用 Google Veo3 Fast 和 Postiz 生成低成本病毒式 AI 视频到 TikTok
If
Set
Wait
+8
22 节点Davide
内容创作
使用 MiniMax 海螺 02 将图像转换为视频并上传到 YouTube 和 TikTok
使用 MiniMax 海螺 02 将图像转换为 AI 视频并上传到 YouTube/TikTok
If
Set
Wait
+7
25 节点Davide
内容创作
在 Telegram 中使用 GPT-4o 增强和 Flux Pro 生成 AI 图像
在 Telegram 中使用 GPT-4o 增强和 Flux Pro 生成 AI 图像
If
Set
Telegram
+6
22 节点AI/ML API | D1m7asis
内容创作
使用GPT-5和Google Veo-3从文本提示生成视频
使用GPT-5和Google Veo-3从文本提示生成视频
If
Set
Wait
+5
20 节点AI/ML API | D1m7asis
内容创作