云端硬盘到Facebook广告自动化
中级
这是一个Marketing领域的自动化工作流,包含 13 个节点。主要使用 Function、GoogleDrive、HttpRequest、ManualTrigger 等节点。 自动化Google云端硬盘到Facebook广告:一键视频营销工作流
前置要求
- •Google Drive API 凭证
- •可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "nkYXWToCsTu0oQCu",
"meta": {
"instanceId": "57c71fe69aec521b7d0bd3751d2e0aaa08f8884418e122571610a23c9eb8a65c",
"templateCredsSetupCompleted": true
},
"name": "drive_fb_ads",
"tags": [],
"nodes": [
{
"id": "39f9d135-0594-483d-bb62-c3e7bd355ba6",
"name": "手动触发器",
"type": "n8n-nodes-base.manualTrigger",
"position": [
0,
0
],
"parameters": {},
"typeVersion": 1
},
{
"id": "4439237c-49fb-4864-ba9e-09341136f326",
"name": "列出Drive视频",
"type": "n8n-nodes-base.googleDrive",
"position": [
200,
0
],
"parameters": {
"name": "video1.pdf",
"options": {}
},
"credentials": {
"googleDriveOAuth2Api": {
"id": "pIW55BNPyp4T9msu",
"name": "Google Drive account 2"
}
},
"typeVersion": 2
},
{
"id": "1214fa7b-8768-46c8-bd44-e35e58ae7bc4",
"name": "下载视频",
"type": "n8n-nodes-base.googleDrive",
"position": [
400,
0
],
"parameters": {
"fileId": {
"__rl": true,
"mode": "list",
"value": ""
},
"options": {},
"operation": "download"
},
"credentials": {
"googleDriveOAuth2Api": {
"id": "pIW55BNPyp4T9msu",
"name": "Google Drive account 2"
}
},
"typeVersion": 2
},
{
"id": "5a08b369-b001-4c7d-a839-1f035c04fed2",
"name": "上传视频到FB",
"type": "n8n-nodes-base.httpRequest",
"position": [
600,
0
],
"parameters": {
"url": "https://graph-video.facebook.com/v19.0/{{ $json.ad_account_id }}/advideos",
"options": {},
"authentication": "headerAuth"
},
"typeVersion": 3
},
{
"id": "b00251d7-db53-44d0-8c9b-6c461208e51a",
"name": "创建广告创意",
"type": "n8n-nodes-base.httpRequest",
"position": [
800,
0
],
"parameters": {
"url": "https://graph.facebook.com/v19.0/{{ $json.ad_account_id }}/adcreatives",
"options": {},
"authentication": "headerAuth"
},
"typeVersion": 3
},
{
"id": "5fbd0846-cda3-49fa-8b0b-f5fda2198ce2",
"name": "提取视频ID",
"type": "n8n-nodes-base.function",
"position": [
720,
180
],
"parameters": {
"functionCode": "return items.map(item => ({ json: {\n video_id: item.json.id,\n ad_account_id: 'act_YOUR_AD_ACCOUNT_ID',\n page_id: 'YOUR_PAGE_ID'\n} }));"
},
"typeVersion": 1
},
{
"id": "376af680-b958-4f28-bb46-e278974badad",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-160,
-200
],
"parameters": {
"width": 460,
"height": 120,
"content": "自动从Google Drive文件夹获取所有MP4视频,下载每个视频,将其作为广告视频上传到Facebook,并使用上传的视频创建广告创意。"
},
"typeVersion": 1
},
{
"id": "939f6448-9c5a-4be6-9138-eacd7588668b",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-40,
160
],
"parameters": {
"width": 150,
"height": 80,
"content": "手动启动工作流"
},
"typeVersion": 1
},
{
"id": "d272eedd-0871-43a7-baa6-c5f3249d0f8b",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
180,
160
],
"parameters": {
"width": 150,
"height": 80,
"content": "从Google Drive获取视频文件(MP4)"
},
"typeVersion": 1
},
{
"id": "f89e6cf7-f352-4463-a59f-cb690e571ee4",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
380,
160
],
"parameters": {
"width": 150,
"height": 80,
"content": "下载选定的视频"
},
"typeVersion": 1
},
{
"id": "e71a87a8-816f-4ec3-95f1-84dc7e53a1c2",
"name": "便签说明4",
"type": "n8n-nodes-base.stickyNote",
"position": [
560,
160
],
"parameters": {
"width": 150,
"height": 80,
"content": "将视频上传到Facebook广告账户"
},
"typeVersion": 1
},
{
"id": "b5c42829-5e8c-4693-aa4d-005eac224ca0",
"name": "便签说明5",
"type": "n8n-nodes-base.stickyNote",
"position": [
740,
380
],
"parameters": {
"width": 210,
"height": 80,
"content": "准备ID和广告账户/页面信息"
},
"typeVersion": 1
},
{
"id": "3125893f-bf28-4472-96ce-dcab1726a0b2",
"name": "便签 6",
"type": "n8n-nodes-base.stickyNote",
"position": [
840,
160
],
"parameters": {
"width": 170,
"height": 80,
"content": "使用上传的视频创建广告创意"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "c70b52c1-6804-4fbc-b924-7ed1c2a4126d",
"connections": {
"Download Video": {
"main": [
[
{
"node": "Upload Video to FB",
"type": "main",
"index": 0
}
]
]
},
"Manual Trigger": {
"main": [
[
{
"node": "List Drive Videos",
"type": "main",
"index": 0
}
]
]
},
"Extract Video ID": {
"main": [
[
{
"node": "Create Ad Creative",
"type": "main",
"index": 0
}
]
]
},
"List Drive Videos": {
"main": [
[
{
"node": "Download Video",
"type": "main",
"index": 0
}
]
]
},
"Upload Video to FB": {
"main": [
[
{
"node": "Extract Video ID",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
这是一个中级难度的工作流,适用于Marketing等场景。适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
Crunchbase 初创企业动态监控器
AI摘要和邮件警报的Crunchbase实时初创企业情报监控
Set
Gmail
Http Request
+5
12 节点Yaron Been
AI
CrunchBase竞争对手追踪
CrunchBase竞争对手情报追踪器
Set
Code
Click Up
+3
9 节点Yaron Been
Finance
特斯拉新闻与情绪分析工具
使用BuiltWith跟踪技术变化并记录到Google Sheets
Set
Code
Http Request
+3
10 节点Yaron Been
Marketing
BuiltWith到Google Sheets
从BuiltWith导出并整理技术栈数据到Google Sheets
Code
Http Request
Google Sheets
+2
10 节点Yaron Been
Marketing
Builtwith 技术栈追踪器
使用 BuiltWith 追踪技术栈并查找决策者,同步至 Google Sheets
Set
Code
Http Request
+3
10 节点Yaron Been
AI
Crunchbase初创公司活动监控器
每日初创公司情报:使用GPT处理Crunchbase更新并发送电子邮件摘要
Set
Gmail
Http Request
+5
12 节点Yaron Been
AI
工作流信息
难度等级
中级
节点数量13
分类1
节点类型5
作者
Yaron Been
@yaron-nofluffBuilding AI Agents and Automations | Growth Marketer | Entrepreneur | Book Author & Podcast Host If you need any help with Automations, feel free to reach out via linkedin: https://www.linkedin.com/in/yaronbeen/ And check out my Youtube channel: https://www.youtube.com/@YaronBeen/videos
外部链接
在 n8n.io 上查看 →
分享此工作流