使用Google Sheets、Drive和Cloudinary安排Instagram Reels(本地时区)
中级
这是一个Social Media领域的自动化工作流,包含 14 个节点。主要使用 Set, Wait, GoogleDrive, HttpRequest, GoogleSheets 等节点。 使用Google Drive、Cloudinary和Sheets自动发布Instagram Reels
前置要求
- •Google Drive API 凭证
- •可能需要目标 API 的认证凭证
- •Google Sheets API 凭证
分类
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "JEi8YuD1uPNaoepv",
"meta": {
"instanceId": "2df08f928998d4e5d8b5a6b8a989bb8e91873e1415dd987955b920ab774cea97",
"templateCredsSetupCompleted": true
},
"name": "N0006_使用 Google Sheets、Drive 和 Cloudinary 安排 Instagram Reels(本地时区)",
"tags": [],
"nodes": [
{
"id": "0357178e-fb26-4964-8228-921f83aaef06",
"name": "计划触发器",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
-660,
200
],
"parameters": {
"rule": {
"interval": [
{
"field": "minutes"
}
]
}
},
"typeVersion": 1.2
},
{
"id": "8b542a21-1ee8-45d7-adbb-d1708b349355",
"name": "获取 Instagram 内容的执行",
"type": "n8n-nodes-base.googleSheets",
"position": [
-420,
200
],
"parameters": {
"options": {},
"filtersUI": {
"values": [
{
"lookupValue": "Reel",
"lookupColumn": "Type"
},
{
"lookupValue": "Scheduled to post",
"lookupColumn": "Status"
}
]
},
"sheetName": {
"__rl": true,
"mode": "list",
"value": 1315784118,
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1TjZL_eWbs01DdRYs8pJNDr5UMXzYe8u311o6rVUwjdg/edit#gid=1315784118",
"cachedResultName": "Execute "
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "1TjZL_eWbs01DdRYs8pJNDr5UMXzYe8u311o6rVUwjdg",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1TjZL_eWbs01DdRYs8pJNDr5UMXzYe8u311o6rVUwjdg/edit?usp=drivesdk",
"cachedResultName": "0006_Master"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "fYJtZaGhyPBxT6ua",
"name": "Google Drive/Sheet account"
}
},
"typeVersion": 4.6
},
{
"id": "f83b5a42-73b6-452a-998e-d7f47e73feb7",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-180,
60
],
"parameters": {
"width": 284,
"height": 354,
"content": "### 注意:"
},
"typeVersion": 1
},
{
"id": "32dc3be3-b6ba-41f4-af15-ac9e5f36ff58",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
340,
60
],
"parameters": {
"width": 304,
"height": 354,
"content": "在 Cloudinary 上创建账户和文件夹后,请确保更新以下内容:"
},
"typeVersion": 1
},
{
"id": "288d81c8-3f6c-4404-9ad5-c70f28fae05f",
"name": "Instagram 设置(访问令牌, ig_business_id)",
"type": "n8n-nodes-base.set",
"position": [
780,
200
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "5b2dad43-2ec9-4bc0-8427-c9bab6a5fc2c",
"name": "access_token",
"type": "string",
"value": "<your-instagram-access-token>"
},
{
"id": "55b08009-fd62-44b8-b21e-6dde6aa9594f",
"name": "ig_user_id",
"type": "string",
"value": "<your-ig_user_id>"
},
{
"id": "53127a63-5583-4a5b-84bf-d2efd439af2b",
"name": "image_url",
"type": "string",
"value": "={{ $json.url }}"
},
{
"id": "90a680ca-49c2-4b83-bbf4-45614e882c01",
"name": "caption",
"type": "string",
"value": "={{ $('Get video list from a Google Drive folder').item.json['Expected content'] }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "68f4f02d-011b-42cd-937f-6f2aa55d5f04",
"name": "将执行状态更新为 \"已处理\"",
"type": "n8n-nodes-base.googleSheets",
"position": [
1620,
200
],
"parameters": {
"columns": {
"value": {
"Status": "Processed",
"ExecuteId": "={{ $json.ExecuteId }}"
},
"schema": [
{
"id": "ExecuteId",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "ExecuteId",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Folder",
"type": "string",
"display": true,
"removed": true,
"required": false,
"displayName": "Folder",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Expected content",
"type": "string",
"display": true,
"removed": true,
"required": false,
"displayName": "Expected content",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Language",
"type": "string",
"display": true,
"removed": true,
"required": false,
"displayName": "Language",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Status",
"type": "string",
"display": true,
"required": false,
"displayName": "Status",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "Type",
"type": "string",
"display": true,
"removed": true,
"required": false,
"displayName": "Type",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "schedule_at",
"type": "string",
"display": true,
"removed": true,
"required": false,
"displayName": "schedule_at",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "row_number",
"type": "string",
"display": true,
"removed": true,
"readOnly": true,
"required": false,
"displayName": "row_number",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [
"ExecuteId"
],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {},
"operation": "update",
"sheetName": {
"__rl": true,
"mode": "list",
"value": 1315784118,
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1WEUHeQXFMYsWVAW3DykWwpANxxD3DxH-S6c0i06dW1g/edit#gid=1315784118",
"cachedResultName": "Execute "
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "1vkawOzltRju_g313gM6ysbn-n2TkMrMtvwCfTizQU4Y",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1vkawOzltRju_g313gM6ysbn-n2TkMrMtvwCfTizQU4Y/edit?usp=drivesdk",
"cachedResultName": "0005_Master"
}
},
"credentials": {
"googleSheetsOAuth2Api": {
"id": "fYJtZaGhyPBxT6ua",
"name": "Google Drive/Sheet account"
}
},
"typeVersion": 4.6
},
{
"id": "ccad3cfd-4158-4ba7-bfb9-0855c5286e6e",
"name": "从 Google Drive 下载视频 (Reel) (轮播)",
"type": "n8n-nodes-base.httpRequest",
"position": [
180,
200
],
"parameters": {
"url": "=https://drive.google.com/uc?export=download&id={{ $json.id }}",
"options": {
"response": {
"response": {
"fullResponse": true,
"responseFormat": "file"
}
}
}
},
"typeVersion": 4.2
},
{
"id": "988c111d-38c8-4e97-b962-db65d9731f39",
"name": "将视频上传到 Cloudinary",
"type": "n8n-nodes-base.httpRequest",
"position": [
440,
200
],
"parameters": {
"url": "https://api.cloudinary.com/v1_1/<your-cloud-name>/video/upload",
"method": "POST",
"options": {
"response": {
"response": {
"responseFormat": "json"
}
}
},
"sendBody": true,
"contentType": "multipart-form-data",
"bodyParameters": {
"parameters": [
{
"name": "file",
"parameterType": "formBinaryData",
"inputDataFieldName": "=data"
},
{
"name": "upload_preset",
"value": "<your_upload_preset>"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "fed72c81-9760-4349-ad6d-7571083ec69a",
"name": "创建媒体容器 (Reels)",
"type": "n8n-nodes-base.httpRequest",
"position": [
1040,
200
],
"parameters": {
"url": "=https://graph.instagram.com/v23.0/{{ $json.ig_user_id }}/media",
"method": "POST",
"options": {
"response": {
"response": {
"fullResponse": true
}
}
},
"sendBody": true,
"contentType": "form-urlencoded",
"bodyParameters": {
"parameters": [
{
"name": "video_url",
"value": "={{ $json.video_url }}"
},
{
"name": "caption",
"value": "={{ $json.caption }}"
},
{
"name": "access_token",
"value": "={{ $json.access_token }}"
},
{
"name": "media_type",
"value": "REELS"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "ec04e6e4-b2ec-4d0b-9642-ac016778b711",
"name": "发布 Instagram Reels",
"type": "n8n-nodes-base.httpRequest",
"position": [
1400,
200
],
"parameters": {
"url": "=https://graph.instagram.com/v23.0/{{ $('Setup for Instagram (access token, ig_business_id)').first().json.ig_user_id }}/media_publish",
"method": "POST",
"options": {
"response": {
"response": {
"responseFormat": "json"
}
}
},
"sendBody": true,
"bodyParameters": {
"parameters": [
{
"name": "creation_id",
"value": "={{ $json.body.id }}"
},
{
"name": "access_token",
"value": "={{ $('Setup for Instagram (access token, ig_business_id)').first().json.access_token }}"
}
]
}
},
"typeVersion": 4.2
},
{
"id": "8dec47fa-58a6-43c3-89da-769acc7818dc",
"name": "等待",
"type": "n8n-nodes-base.wait",
"position": [
1220,
200
],
"webhookId": "6756ecda-85e9-4fb7-8871-86fd12b1fa3c",
"parameters": {},
"typeVersion": 1.1
},
{
"id": "4d87caa0-01fd-45b0-a1fc-b0cfda42278c",
"name": "从 Google Drive 文件夹获取视频列表",
"type": "n8n-nodes-base.googleDrive",
"position": [
-80,
200
],
"parameters": {
"filter": {
"folderId": {
"__rl": true,
"mode": "url",
"value": "={{ $json.Folder }}"
}
},
"options": {
"fields": [
"id",
"name",
"thumbnailLink",
"webViewLink"
]
},
"resource": "fileFolder",
"returnAll": true,
"queryString": "="
},
"credentials": {
"googleDriveOAuth2Api": {
"id": "4TPyxdrYHCrliUg8",
"name": "Google Drive account"
}
},
"typeVersion": 3
},
{
"id": "781d5f70-566f-4389-bac1-717fc41d3f14",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1620,
-220
],
"parameters": {
"width": 884,
"height": 1114,
"content": "# 📹 Instagram Reels 自动发布工作流"
},
"typeVersion": 1
},
{
"id": "63c5ef3e-d582-4bc4-8ce5-d44d8cf57256",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
680,
60
],
"parameters": {
"width": 304,
"height": 354,
"content": "更新您的 Instagram 访问令牌和用户 ID:"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "ce4fedad-e92f-4352-875e-6ca7044106ed",
"connections": {
"Wait": {
"main": [
[
{
"node": "Publish Instagram Reels",
"type": "main",
"index": 0
}
]
]
},
"Schedule Trigger": {
"main": [
[
{
"node": "Get Execution for Instagram contents",
"type": "main",
"index": 0
}
]
]
},
"Publish Instagram Reels": {
"main": [
[
{
"node": "Update Execute to \"Processed\"",
"type": "main",
"index": 0
}
]
]
},
"Upload videos to Cloudinary": {
"main": [
[
{
"node": "Setup for Instagram (access token, ig_business_id)",
"type": "main",
"index": 0
}
]
]
},
"Create Media Container (Reels)": {
"main": [
[
{
"node": "Wait",
"type": "main",
"index": 0
}
]
]
},
"Get Execution for Instagram contents": {
"main": [
[
{
"node": "Get video list from a Google Drive folder",
"type": "main",
"index": 0
}
]
]
},
"Get video list from a Google Drive folder": {
"main": [
[
{
"node": "Download Video (Reel) from Google Drive (Carousel)",
"type": "main",
"index": 0
}
]
]
},
"Download Video (Reel) from Google Drive (Carousel)": {
"main": [
[
{
"node": "Upload videos to Cloudinary",
"type": "main",
"index": 0
}
]
]
},
"Setup for Instagram (access token, ig_business_id)": {
"main": [
[
{
"node": "Create Media Container (Reels)",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 社交媒体
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
[IG] Instagram轮播帖
使用Google表格、Drive和Cloudinary自动化Instagram轮播帖
Set
Aggregate
Google Drive
+4
15 节点Henry
社交媒体
在Facebook页面上发布Reel
使用Google表格和Drive自动化Facebook Reels发布
If
Set
Code
+6
17 节点Đỗ Thành Nguyên
社交媒体
在您的 Facebook 页面发布视频故事
使用 Google Drive 和 Sheets 自动化视频故事发布到 Facebook 页面
If
Set
Code
+5
16 节点Đỗ Thành Nguyên
社交媒体
Twitter品牌自动推广
使用Anthropic Claude AI和Google Sheets报告自动进行Twitter品牌推广
Set
Code
Wait
+10
26 节点Pavlo Hurhu
社交媒体
创意自动测试_v4(最终版)
Meta 广告创意测试和活动发布的自动化
If
Set
Merge
+6
25 节点Kirill Khatkevich
社交媒体
我的工作流79
使用Google Sheets和MailerSend构建完整的电子邮件CRM系统
If
Set
Wait
+6
34 节点Nima Salimi
社交媒体