使用Gemini、FAL和Google Workspace自动生成产品视频
高级
这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 16 个节点。主要使用 Wait, Filter, GoogleDrive, HttpRequest, GoogleSheets 等节点。 使用Gemini、FAL和Google Workspace自动生成产品视频
前置要求
- •Google Drive API 凭证
- •可能需要目标 API 的认证凭证
- •Google Sheets API 凭证
使用的节点 (16)
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"meta": {
"instanceId": "783d2046f405cc6ecb20ef185376ed1023323a3da628b9d8156b1fb75c75e037"
},
"nodes": [
{
"id": "06fc66f7-c12e-443c-bfdb-1339128e0dec",
"name": "Google Sheets 触发器",
"type": "n8n-nodes-base.googleSheetsTrigger",
"position": [
0,
368
],
"parameters": {
"event": "rowAdded",
"options": {},
"pollTimes": {
"item": [
{
"mode": "everyMinute"
}
]
},
"sheetName": {
"__rl": true,
"mode": "id",
"value": "=xxxx"
},
"documentId": {
"__rl": true,
"mode": "id",
"value": "=xxxxxx"
}
},
"credentials": {
"googleSheetsTriggerOAuth2Api": {
"id": "yThtJbXk01Imf6iZ",
"name": "Google Sheets Trigger account"
}
},
"typeVersion": 1
},
{
"id": "4f833098-8f46-457f-9e47-5e273b831de4",
"name": "下载文件",
"type": "n8n-nodes-base.googleDrive",
"position": [
464,
368
],
"parameters": {
"fileId": {
"__rl": true,
"mode": "url",
"value": "={{ $json.link_image }}",
"__regex": "https:\\/\\/(?:drive|docs)\\.google\\.com(?:\\/.*|)\\/d\\/([0-9a-zA-Z\\-_]+)(?:\\/.*|)"
},
"options": {},
"operation": "download"
},
"credentials": {
"googleDriveOAuth2Api": {
"id": "7ksMk3zwMvT2CToN",
"name": "Google Drive account"
}
},
"typeVersion": 3
},
{
"id": "27356824-4c60-47f8-9c25-846d2716bd25",
"name": "从文件提取",
"type": "n8n-nodes-base.extractFromFile",
"position": [
688,
368
],
"parameters": {
"options": {},
"operation": "binaryToPropery"
},
"typeVersion": 1
},
{
"id": "8d2848d5-b2e5-49a7-9480-526ae86212b6",
"name": "[{",
"type": "n8n-nodes-base.convertToFile",
"position": [
1168,
368
],
"parameters": {
"options": {},
"operation": "toBinary",
"sourceProperty": "=candidates[0].content.parts[0].inlineData.data"
},
"typeVersion": 1.1
},
{
"id": "2491f22b-31e8-4190-91ce-b3ef4889ae14",
"name": "上传文件",
"type": "n8n-nodes-base.googleDrive",
"position": [
1424,
368
],
"parameters": {
"name": "={{ $now }}",
"driveId": {
"__rl": true,
"mode": "id",
"value": "=My Drive"
},
"options": {},
"folderId": {
"__rl": true,
"mode": "id",
"value": "=xxxxx"
}
},
"credentials": {
"googleDriveOAuth2Api": {
"id": "7ksMk3zwMvT2CToN",
"name": "Google Drive account"
}
},
"typeVersion": 3
},
{
"id": "dac990c2-64a1-4e13-b9d4-ffbeb890f90c",
"name": "更新 sheet 中的行",
"type": "n8n-nodes-base.googleSheets",
"position": [
2816,
368
],
"parameters": {
"columns": {
"value": {
"STT": "={{ $('Google Sheets Trigger').item.json.STT }}",
"status": "finished",
"link_video": "={{ $json.webViewLink }}"
},
"schema": [
{
"id": "STT",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "STT",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "link_image",
"type": "string",
"display": true,
"required": false,
"displayName": "link_image",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "note",
"type": "string",
"display": true,
"required": false,
"displayName": "note",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "status",
"type": "string",
"display": true,
"required": false,
"displayName": "status",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "link_video",
"type": "string",
"display": true,
"required": false,
"displayName": "link_video",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "row_number",
"type": "number",
"display": true,
"removed": true,
"readOnly": true,
"required": false,
"displayName": "row_number",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [
"STT"
],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {},
"operation": "update",
"sheetName": {
"__rl": true,
"mode": "list",
"value": "gid=0",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1WCta4mwXQB0vY1Etre78IrVouruy6gRRe1mToswv6v8/edit#gid=0",
"cachedResultName": "Sheet1"
},
"documentId": {
"__rl": true,
"mode": "id",
"value": "=xxxx"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "urlO8dciDPm5B2zv",
"name": "Google Sheets account"
}
},
"typeVersion": 4.7
},
{
"id": "82b056de-b2ac-4575-95b0-6bf1a10f4549",
"name": "您可以通过修改此节点中的 `max_results` 参数来更改此数量。",
"type": "n8n-nodes-base.stickyNote",
"position": [
0,
0
],
"parameters": {
"color": 5,
"width": 680,
"height": 320,
"content": "## 工作流概览"
},
"typeVersion": 1
},
{
"id": "e93e737c-4712-46ed-9511-3a054cd34818",
"name": "便签 — 设置",
"type": "n8n-nodes-base.stickyNote",
"position": [
1120,
0
],
"parameters": {
"color": 3,
"width": 680,
"height": 280,
"content": "## 设置检查清单"
},
"typeVersion": 1
},
{
"id": "9d4202cd-993b-4f9c-b190-4058e827c9f9",
"name": "便签 — 注意事项和提示",
"type": "n8n-nodes-base.stickyNote",
"position": [
2208,
0
],
"parameters": {
"color": 4,
"width": 680,
"height": 300,
"content": "## 注意事项和提示"
},
"typeVersion": 1
},
{
"id": "c1d73203-257e-4988-816d-393a3ca6fb6a",
"name": "筛选",
"type": "n8n-nodes-base.filter",
"position": [
208,
368
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "ca5a2759-ec88-45a8-b037-58341ec5da2c",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.status }}",
"rightValue": "run"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "618d9398-d6f6-4b6a-8c8b-de030f213c49",
"name": "等待",
"type": "n8n-nodes-base.wait",
"position": [
1856,
368
],
"webhookId": "214d0cab-c68b-473d-8eba-cc1c11420c0a",
"parameters": {
"amount": 30
},
"typeVersion": 1.1
},
{
"id": "28ff8eda-a56e-4314-a980-b95ac06cb740",
"name": "使用模型创建产品图片",
"type": "n8n-nodes-base.httpRequest",
"position": [
912,
368
],
"parameters": {
"url": "https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash-image-preview:generateContent",
"method": "POST",
"options": {
"redirect": {
"redirect": {}
}
},
"jsonBody": "={\n \"contents\": [\n {\n \"parts\": [\n {\n \"text\": \"Create a image with model and product attached to create ads videos with this require: {{ JSON.stringify($('Filter').item.json.note).slice(1,-1) }}\"\n },\n {\n \"inline_data\": {\n \"mime_type\": \"image/jpeg\",\n \"data\": \"{{ $json.data }}\"\n }\n }\n ]\n }\n ]\n}",
"sendBody": true,
"sendHeaders": true,
"specifyBody": "json",
"headerParameters": {
"parameters": [
{
"name": "x-goog-api-key",
"value": "xxxxxx"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "f6cbccbc-9b32-40c2-9735-0915e44e684e",
"name": "创建视频",
"type": "n8n-nodes-base.httpRequest",
"position": [
1648,
368
],
"parameters": {
"url": "https://queue.fal.run/fal-ai/ltxv-13b-098-distilled/image-to-video",
"method": "POST",
"options": {},
"sendBody": true,
"sendHeaders": true,
"bodyParameters": {
"parameters": [
{
"name": "prompt",
"value": "=slow motion, {{ $('Filter').item.json.note }}"
},
{
"name": "image_url",
"value": "={{ $json.webContentLink }}"
}
]
},
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "Key xxxxx"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "0b700727-2e6b-4ce8-989d-ab18f1a5d887",
"name": "获取视频链接",
"type": "n8n-nodes-base.httpRequest",
"position": [
2080,
368
],
"parameters": {
"url": "={{ $json.response_url }}",
"options": {},
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "Key xxxx"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "c5c00e9c-b56a-459b-a00c-151316707c4f",
"name": "下载视频",
"type": "n8n-nodes-base.httpRequest",
"position": [
2336,
368
],
"parameters": {
"url": "={{ $json.video.url }}",
"options": {}
},
"typeVersion": 4.2
},
{
"id": "306165a7-4320-4fcc-a03f-6cd424074c29",
"name": "上传视频",
"type": "n8n-nodes-base.googleDrive",
"position": [
2592,
368
],
"parameters": {
"name": "={{ $now }}",
"driveId": {
"__rl": true,
"mode": "list",
"value": "My Drive",
"cachedResultUrl": "https://drive.google.com/drive/my-drive",
"cachedResultName": "My Drive"
},
"options": {},
"folderId": {
"__rl": true,
"mode": "id",
"value": "=xxxx"
}
},
"credentials": {
"googleDriveOAuth2Api": {
"id": "7ksMk3zwMvT2CToN",
"name": "Google Drive account"
}
},
"typeVersion": 3
}
],
"pinData": {},
"connections": {
"Wait": {
"main": [
[
{
"node": "Get Link Video",
"type": "main",
"index": 0
}
]
]
},
"Filter": {
"main": [
[
{
"node": "Download file",
"type": "main",
"index": 0
}
]
]
},
"Upload file": {
"main": [
[
{
"node": "Create video",
"type": "main",
"index": 0
}
]
]
},
"Create video": {
"main": [
[
{
"node": "Wait",
"type": "main",
"index": 0
}
]
]
},
"Upload video": {
"main": [
[
{
"node": "Update row in sheet",
"type": "main",
"index": 0
}
]
]
},
"Download file": {
"main": [
[
{
"node": "Extract from File",
"type": "main",
"index": 0
}
]
]
},
"Download video": {
"main": [
[
{
"node": "Upload video",
"type": "main",
"index": 0
}
]
]
},
"Get Link Video": {
"main": [
[
{
"node": "Download video",
"type": "main",
"index": 0
}
]
]
},
"Convert to File": {
"main": [
[
{
"node": "Upload file",
"type": "main",
"index": 0
}
]
]
},
"Extract from File": {
"main": [
[
{
"node": "Create product image with model",
"type": "main",
"index": 0
}
]
]
},
"Google Sheets Trigger": {
"main": [
[
{
"node": "Filter",
"type": "main",
"index": 0
}
]
]
},
"Create product image with model": {
"main": [
[
{
"node": "Convert to File",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 内容创作, 多模态 AI
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
LinkedIn和X病毒内容自动引擎
使用AI生成和发布自动创建LinkedIn和X的病毒内容
If
Set
Wait
+26
156 节点Diptamoy Barman
内容创作
使用OpenAI、RunwayML和ElevenLabs自动化无脸短视频
使用OpenAI、RunwayML和ElevenLabs自动化无脸短视频:从脚本到社交媒体
Set
Code
Wait
+18
56 节点LeeWei
内容创作
WordPress博客自动化专业版(深度研究)v2.1市场
使用GPT-4o、Perplexity AI和多语言支持自动化SEO优化的博客创建
If
Set
Xml
+27
125 节点Daniel Ng
内容创作
我的工作流
使用 Apify、GPT-4o 和 Facebook 广告库进行竞争广告研究与图像生成
Set
Wait
Limit
+10
32 节点Nick Saraev
内容创作
1. 播放列表详情设置机器人副本
使用 Suno、GPT-4、Runway 和 Creatomate 创建 AI 生成的 YouTube 音乐播放列表
If
Set
Code
+22
203 节点Joseph
内容创作
使用 Apify、GPT-4 和 Google Drive 从竞争对手生成 AI Facebook 广告变体
使用 Apify、GPT-4 和 Google Drive 从竞争对手生成 AI Facebook 广告变体
Set
Wait
Limit
+10
29 节点Electrabot
内容创作
工作流信息
难度等级
高级
节点数量16
分类2
节点类型9
作者
Cong Nguyen
@cong-nguyenI’m a developer specialized in building web and mobile applications with AI integration and intelligent automation. With a solid background in data science, I help businesses build smarter digital solutions using cutting-edge technologies.
外部链接
在 n8n.io 查看 →
分享此工作流