使用Google Veo3创建视频并上传到YouTube
高级
这是一个AI, Marketing领域的自动化工作流,包含 22 个节点。主要使用 If, Set, Wait, GoogleDrive, HttpRequest 等节点,结合人工智能技术实现智能自动化。 使用Google Veo3生成AI视频,保存到Google云端硬盘并上传到YouTube
前置要求
- •Google Drive API 凭证
- •可能需要目标 API 的认证凭证
- •Google Sheets API 凭证
- •OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "g1hmK8jw38TOYX7D",
"meta": {
"instanceId": "a4bfc93e975ca233ac45ed7c9227d84cf5a2329310525917adaf3312e10d5462",
"templateCredsSetupCompleted": true
},
"name": "使用 Google Veo3 创建视频并上传到 Youtube",
"tags": [],
"nodes": [
{
"id": "f1fcb9ab-37aa-44a3-91fc-8480351aa5cd",
"name": "当点击\"测试工作流\"时",
"type": "n8n-nodes-base.manualTrigger",
"position": [
-220,
840
],
"parameters": {},
"typeVersion": 1
},
{
"id": "58194812-a64d-401e-be5e-2f1ba9210557",
"name": "获取状态",
"type": "n8n-nodes-base.httpRequest",
"position": [
840,
840
],
"parameters": {
"url": "=https://queue.fal.run/fal-ai/veo3/requests/{{ $('Create Video').item.json.request_id }}/status ",
"options": {},
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth"
},
"credentials": {
"httpHeaderAuth": {
"id": "daOZafXpRXLtoLUV",
"name": "Fal.run API"
}
},
"typeVersion": 4.2
},
{
"id": "1e23339c-f829-4426-b4f6-b02add8f8c5e",
"name": "等待 60 秒",
"type": "n8n-nodes-base.wait",
"position": [
660,
840
],
"webhookId": "490facb8-d0ae-402e-ab59-a87720cf0bdd",
"parameters": {
"amount": 60
},
"typeVersion": 1.1
},
{
"id": "98ad8a6d-9ded-4f4e-a4ef-b624f7fe7e39",
"name": "定时触发器",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
-220,
700
],
"parameters": {
"rule": {
"interval": [
{
"field": "minutes"
}
]
}
},
"typeVersion": 1.2
},
{
"id": "262608c6-e905-4d16-bc52-22b67c1bc298",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
-220,
-460
],
"parameters": {
"color": 3,
"width": 740,
"height": 280,
"content": "# 使用 Google Veo3 生成 AI 视频,保存到 Google Drive 并上传到 YouTube"
},
"typeVersion": 1
},
{
"id": "1ea1879e-1e8e-42f9-8b11-7f771cfca2f8",
"name": "便签说明4",
"type": "n8n-nodes-base.stickyNote",
"position": [
-220,
-140
],
"parameters": {
"width": 740,
"height": 200,
"content": "## 步骤 1 - GOOGLE SHEET"
},
"typeVersion": 1
},
{
"id": "8c54b723-d0b9-4d89-8150-975306640a96",
"name": "完成了吗?",
"type": "n8n-nodes-base.if",
"position": [
1020,
840
],
"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": "1135e1f0-b605-4724-a8b3-7f16b9887ef7",
"name": "更新结果",
"type": "n8n-nodes-base.googleSheets",
"position": [
860,
1100
],
"parameters": {
"columns": {
"value": {
"VIDEO": "={{ $('Get Url Video').item.json.video.url }}",
"row_number": "={{ $('Get new video').item.json.row_number }}"
},
"schema": [
{
"id": "PROMPT",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "PROMPT",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "DURATION",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "DURATION",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "VIDEO",
"type": "string",
"display": true,
"removed": false,
"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/11ebWJvwwXHgvQld9kxywKQUvIoBw6xMa0g0BuIqHDxE/edit#gid=0",
"cachedResultName": "Foglio1"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "1pcoY9N_vQp44NtSRR5eskkL5Qd0N0BGq7Jh_4m-7VEQ",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1pcoY9N_vQp44NtSRR5eskkL5Qd0N0BGq7Jh_4m-7VEQ/edit?usp=drivesdk",
"cachedResultName": "Video Google Veo3"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "JYR6a64Qecd6t8Hb",
"name": "Google Sheets account"
}
},
"typeVersion": 4.5
},
{
"id": "8d0ac30d-5a92-487b-aaff-f761bd720293",
"name": "设置数据",
"type": "n8n-nodes-base.set",
"position": [
220,
840
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "c713d31f-9abd-496a-ac79-e8e2efe60aa0",
"name": "prompt",
"type": "string",
"value": "={{ $json.PROMPT }}\n\nDuration of the video: {{ $json.DURATION }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "ae68690d-c154-4ec9-a5b8-ba95137d2cf4",
"name": "便签说明5",
"type": "n8n-nodes-base.stickyNote",
"position": [
-220,
520
],
"parameters": {
"width": 740,
"height": 100,
"content": "## 步骤 4 - 主流程"
},
"typeVersion": 1
},
{
"id": "429ab164-e165-409c-adc7-8a80c25b9f7d",
"name": "便签 6",
"type": "n8n-nodes-base.stickyNote",
"position": [
-220,
100
],
"parameters": {
"width": 740,
"height": 140,
"content": "## 步骤 2 - 获取 API 密钥 (YOURAPIKEY)"
},
"typeVersion": 1
},
{
"id": "868339d3-e3f0-473b-9f1f-c7c4fe9c9898",
"name": "便签 7",
"type": "n8n-nodes-base.stickyNote",
"position": [
400,
780
],
"parameters": {
"width": 180,
"height": 200,
"content": "设置步骤2中创建的API密钥"
},
"typeVersion": 1
},
{
"id": "44793285-6bb8-471a-a632-e0fe33d2d047",
"name": "获取新视频",
"type": "n8n-nodes-base.googleSheets",
"position": [
0,
840
],
"parameters": {
"options": {},
"filtersUI": {
"values": [
{
"lookupColumn": "VIDEO"
}
]
},
"sheetName": {
"__rl": true,
"mode": "list",
"value": "gid=0",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1pcoY9N_vQp44NtSRR5eskkL5Qd0N0BGq7Jh_4m-7VEQ/edit#gid=0",
"cachedResultName": "Foglio1"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "1pcoY9N_vQp44NtSRR5eskkL5Qd0N0BGq7Jh_4m-7VEQ",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1pcoY9N_vQp44NtSRR5eskkL5Qd0N0BGq7Jh_4m-7VEQ/edit?usp=drivesdk",
"cachedResultName": "Video Google Veo3"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "JYR6a64Qecd6t8Hb",
"name": "Google Sheets account"
}
},
"typeVersion": 4.5
},
{
"id": "7271ea9a-c4f5-4091-8f0f-ef40bb1d94af",
"name": "创建视频",
"type": "n8n-nodes-base.httpRequest",
"position": [
440,
840
],
"parameters": {
"url": "https://queue.fal.run/fal-ai/veo3",
"method": "POST",
"options": {},
"jsonBody": "={\n \"prompt\": \"{{$json.prompt}}\"\n}",
"sendBody": true,
"sendHeaders": true,
"specifyBody": "json",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"headerParameters": {
"parameters": [
{
"name": "Content-Type",
"value": "application/json"
}
]
}
},
"credentials": {
"httpHeaderAuth": {
"id": "daOZafXpRXLtoLUV",
"name": "Fal.run API"
}
},
"typeVersion": 4.2
},
{
"id": "f0cbd048-011e-47ee-8840-af630adf6f85",
"name": "获取视频 URL",
"type": "n8n-nodes-base.httpRequest",
"position": [
-220,
1220
],
"parameters": {
"url": "=https://queue.fal.run/fal-ai/veo3/requests/{{ $json.request_id }}",
"options": {},
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth"
},
"credentials": {
"httpHeaderAuth": {
"id": "daOZafXpRXLtoLUV",
"name": "Fal.run API"
}
},
"typeVersion": 4.2
},
{
"id": "f48cef5b-0609-417b-b4ec-21614397cb07",
"name": "获取视频文件",
"type": "n8n-nodes-base.httpRequest",
"position": [
400,
1220
],
"parameters": {
"url": "={{ $('Get Url Video').item.json.video.url }}",
"options": {}
},
"typeVersion": 4.2
},
{
"id": "2cde22e1-1b71-4672-80dc-4992c4bdfe5d",
"name": "上传视频",
"type": "n8n-nodes-base.googleDrive",
"position": [
680,
1100
],
"parameters": {
"name": "={{ $now.format('yyyyLLddHHmmss') }}-{{ $('Get Url Video').item.json.video.file_name }}",
"driveId": {
"__rl": true,
"mode": "list",
"value": "My Drive"
},
"options": {},
"folderId": {
"__rl": true,
"mode": "list",
"value": "1aHRwLWyrqfzoVC8HoB-YMrBvQ4tLC-NZ",
"cachedResultUrl": "https://drive.google.com/drive/folders/1aHRwLWyrqfzoVC8HoB-YMrBvQ4tLC-NZ",
"cachedResultName": "Fal.run"
}
},
"credentials": {
"googleDriveOAuth2Api": {
"id": "HEy5EuZkgPZVEa9w",
"name": "Google Drive account (n3w.it)"
}
},
"typeVersion": 3
},
{
"id": "bf77f692-8a47-4f49-883b-ba045cb39f3b",
"name": "HTTP 请求",
"type": "n8n-nodes-base.httpRequest",
"position": [
680,
1320
],
"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').item.json.message.content }}"
},
{
"name": "user",
"value": "YOUR_USERNAME"
},
{
"name": "platform[]",
"value": "youtube"
},
{
"name": "video",
"parameterType": "formBinaryData",
"inputDataFieldName": "data"
}
]
},
"genericAuthType": "httpHeaderAuth"
},
"credentials": {
"httpHeaderAuth": {
"id": "DEE2XGvhGodgbAJh",
"name": "Upload-post.com API"
}
},
"typeVersion": 4.2
},
{
"id": "0fab9370-c079-40c8-9e87-e9b319e0bee7",
"name": "生成标题",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
20,
1220
],
"parameters": {
"modelId": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini",
"cachedResultName": "GPT-4O-MINI"
},
"options": {},
"messages": {
"values": [
{
"content": "=Input: {{ $('Get new video').item.json.PROMPT }}"
},
{
"role": "system",
"content": "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\""
}
]
}
},
"credentials": {
"openAiApi": {
"id": "TefveNaDaMERl1hY",
"name": "OpenAi account (Eure)"
}
},
"typeVersion": 1.8
},
{
"id": "cf9a58f0-0523-4229-ac2e-42f0f71d5306",
"name": "更新 YouTube URL",
"type": "n8n-nodes-base.googleSheets",
"position": [
860,
1320
],
"parameters": {
"columns": {
"value": {
"VIDEO": "=",
"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": false,
"required": false,
"displayName": "PROMPT",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "DURATION",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "DURATION",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "VIDEO",
"type": "string",
"display": true,
"removed": false,
"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/11ebWJvwwXHgvQld9kxywKQUvIoBw6xMa0g0BuIqHDxE/edit#gid=0",
"cachedResultName": "Foglio1"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "1pcoY9N_vQp44NtSRR5eskkL5Qd0N0BGq7Jh_4m-7VEQ",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1pcoY9N_vQp44NtSRR5eskkL5Qd0N0BGq7Jh_4m-7VEQ/edit?usp=drivesdk",
"cachedResultName": "Video Google Veo3"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "JYR6a64Qecd6t8Hb",
"name": "Google Sheets account"
}
},
"typeVersion": 4.5
},
{
"id": "2f97346c-78df-41fe-b15d-c2af7e9ee680",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
660,
1260
],
"parameters": {
"width": 180,
"height": 200,
"content": "在步骤 3 中设置 YOUR_USERNAME"
},
"typeVersion": 1
},
{
"id": "0d6517cb-d2a3-4afe-b163-25311faed711",
"name": "## 为什么选择 4o 模型?👆",
"type": "n8n-nodes-base.stickyNote",
"position": [
-220,
280
],
"parameters": {
"width": 740,
"height": 200,
"content": "## 步骤 3 - 在 Youtube 上上传视频"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "a358d31a-ae0a-44e0-83e4-0a0df359e143",
"connections": {
"Set data": {
"main": [
[
{
"node": "Create Video",
"type": "main",
"index": 0
}
]
]
},
"Completed?": {
"main": [
[
{
"node": "Get Url Video",
"type": "main",
"index": 0
}
],
[
{
"node": "Wait 60 sec.",
"type": "main",
"index": 0
}
]
]
},
"Get status": {
"main": [
[
{
"node": "Completed?",
"type": "main",
"index": 0
}
]
]
},
"Create Video": {
"main": [
[
{
"node": "Wait 60 sec.",
"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 60 sec.": {
"main": [
[
{
"node": "Get status",
"type": "main",
"index": 0
}
]
]
},
"Get Url Video": {
"main": [
[
{
"node": "Generate title",
"type": "main",
"index": 0
}
]
]
},
"Get new video": {
"main": [
[
{
"node": "Set data",
"type": "main",
"index": 0
}
]
]
},
"Update result": {
"main": [
[]
]
},
"Generate title": {
"main": [
[
{
"node": "Get File Video",
"type": "main",
"index": 0
}
]
]
},
"Get File Video": {
"main": [
[
{
"node": "Upload Video",
"type": "main",
"index": 0
},
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
]
]
},
"When clicking ‘Test workflow’": {
"main": [
[
{
"node": "Get new video",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 人工智能, 营销
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
使用 FLUX Kontext 生成 AI 情境化图像
使用 FLUX Kontext、Google Sheets 和 Drive 通过 AI 提示词变换图像
If
Wait
Google Drive
+5
17 节点Davide
设计
WooCommerce服装目录的AI虚拟试穿
WooCommerce服装目录的AI虚拟试穿自动生成
If
Set
Wait
+7
21 节点Davide
销售
在GIF上交换面孔
使用Fal.run AI和Google服务自动化GIF人脸交换
If
Set
Wait
+6
19 节点Davide
设计
图像转3D
使用Fal.ai Trellis将图像转换为3D模型并存储到Google Drive
If
Set
Wait
+6
17 节点Davide
设计
使用Google Veo3 Fast创建更便宜的视频并上传到社交媒体
使用Veo3 Fast创建低成本AI视频并上传至YouTube和TikTok
If
Set
Wait
+7
23 节点Davide
内容创作
使用Sora2 Pro创建视频并上传到YouTube
使用Sora2 Pro生成AI视频,保存到Google云端硬盘并上传到YouTube
If
Set
Wait
+7
22 节点Davide
工作流信息
难度等级
高级
节点数量22
分类2
节点类型10
作者
Davide
@n3witaliaFull-stack Web Developer based in Italy specialising in Marketing & AI-powered automations. For business enquiries, send me an email at info@n3w.it or add me on Linkedin.com/in/davideboizza
外部链接
在 n8n.io 查看 →
分享此工作流