8
n8n 中文网amn8n.com

使用Google Drive存储和Telegram提醒自动化Instagram Reel下载

中级

这是一个File Management, Miscellaneous, Multimodal AI领域的自动化工作流,包含 11 个节点。主要使用 If, Code, Webhook, Telegram, GoogleDrive 等节点。 使用Google Drive存储和Telegram提醒自动化Instagram Reel下载

前置要求
  • HTTP Webhook 端点(n8n 会自动生成)
  • Telegram Bot Token
  • Google Drive API 凭证
  • 可能需要目标 API 的认证凭证
  • Google Sheets API 凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "58a9e858b82757a75629d435ec0da2448ad5d9e906a9ce3b7dcbb64c90fda9fe",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "28a1d05e-2b90-4654-ad8b-b78e7403dabd",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -624,
        40
      ],
      "webhookId": "21e2041e-0006-48c2-995d-344e41a9e689",
      "parameters": {
        "path": "n8n-template-insta-webhook",
        "options": {},
        "responseMode": "responseNode",
        "multipleMethods": true
      },
      "typeVersion": 2
    },
    {
      "id": "7d238158-1d62-4280-9c3d-ec0631ff9240",
      "name": "如果",
      "type": "n8n-nodes-base.if",
      "position": [
        -400,
        -128
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "a3aa0a1a-a5b2-4bf3-9a34-639ce39138f0",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.query['hub.mode'] }}",
              "rightValue": "subscribe"
            },
            {
              "id": "fcf913d6-363e-46fe-bcb7-b77cce5a8d88",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.query['hub.verify_token'] }}",
              "rightValue": "youtube-automation-n8n-token"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "1a1629ed-5508-45b2-b139-6cb3650401bc",
      "name": "响应 Webhook",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        -176,
        -128
      ],
      "parameters": {
        "options": {},
        "respondWith": "text",
        "responseBody": "={{ $json.query['hub.challenge'] }}"
      },
      "typeVersion": 1.4
    },
    {
      "id": "3a7ebfa8-ac9e-4c05-a4dc-c1a8a7ccf89d",
      "name": "如果发送者是我",
      "type": "n8n-nodes-base.if",
      "position": [
        -400,
        136
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "2d8fd5c8-8bcc-4be8-9f3d-66f64748b670",
              "operator": {
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.body.entry[0].messaging[0].sender.id }}",
              "rightValue": "123456"
            },
            {
              "id": "f0f4d497-2945-47fc-a193-8a4504b031cd",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.body.entry[0].messaging[0].recipient.id }}",
              "rightValue": "123456"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "7e3690c5-bffa-4202-bf0e-0add7cc8de07",
      "name": "获取 Reel",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        48,
        64
      ],
      "parameters": {
        "url": "={{ $('If Sender is Me').first().json.body.entry[0].messaging[0].message.attachments[0].payload.url }}",
        "options": {}
      },
      "typeVersion": 4.2
    },
    {
      "id": "aa7d406d-6b21-4d4e-9671-9f592ad81880",
      "name": "使用 Reel 更新表格",
      "type": "n8n-nodes-base.googleSheets",
      "onError": "continueRegularOutput",
      "position": [
        496,
        136
      ],
      "parameters": {
        "columns": {
          "value": {
            "URL": "={{ $json.webViewLink }}",
            "Status": "Downloaded",
            "Timestamp": "={{ $('Get Timestamp Code').item.json.timestamp }}"
          },
          "schema": [
            {
              "id": "Timestamp",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "Timestamp",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "URL",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "URL",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "Status",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "Status",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [
            "URL"
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {},
        "operation": "appendOrUpdate",
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": 969588995,
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1ItzGn2Wrs7FCXTzGGxbCbhUElUR4Q78S7_OFSbWbBRk/edit#gid=969588995",
          "cachedResultName": "Sheet"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "1ItzGn2Wrs7FCXTzGGxbCbhUElUR4Q78S7_OFSbWbBRk",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1ItzGn2Wrs7FCXTzGGxbCbhUElUR4Q78S7_OFSbWbBRk/edit?usp=drivesdk",
          "cachedResultName": "n8n Template | Instagram Reels Downloader"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "Gs7mfT220sbLQ7PS",
          "name": "Google Sheets account"
        }
      },
      "typeVersion": 4.6,
      "alwaysOutputData": false
    },
    {
      "id": "e41cd87b-220d-4db5-b2ad-92a55a9b1152",
      "name": "获取时间戳代码",
      "type": "n8n-nodes-base.code",
      "position": [
        -176,
        64
      ],
      "parameters": {
        "jsCode": "return {\n  timestamp: new Date().toLocaleString(\"en-In\", {\n    timeZone: \"asia/Kolkata\",\n  }),\n  id: new Date().toISOString()\n};\n"
      },
      "typeVersion": 2
    },
    {
      "id": "db50d4e7-7010-4fe7-ad28-ce5e3d4eb93f",
      "name": "消息",
      "type": "n8n-nodes-base.telegram",
      "position": [
        720,
        144
      ],
      "webhookId": "563be58f-8c89-40e0-9434-269f1c784384",
      "parameters": {
        "text": "={{ $json.Timestamp }}\n\nDownloaded Reel & Saved to Drive.\nURL - {{ $json.URL }}",
        "chatId": "1459274827",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "credentials": {
        "telegramApi": {
          "id": "6sgIoaU8LLxrB1Fx",
          "name": "Youtube Automation Telegram Bot"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "bf2293bc-4ed4-441c-84aa-523d7056d43a",
      "name": "上传文件",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        272,
        136
      ],
      "parameters": {
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": "My Drive"
        },
        "options": {},
        "folderId": {
          "__rl": true,
          "mode": "list",
          "value": "1WcR_S-0wDexvEX16NmEH9SZFiJD8Ajk7",
          "cachedResultUrl": "https://drive.google.com/drive/folders/1WcR_S-0wDexvEX16NmEH9SZFiJD8Ajk7",
          "cachedResultName": "Trials"
        }
      },
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "gEA2i1PODjMLWDzO",
          "name": "Google Drive account"
        }
      },
      "typeVersion": 3
    },
    {
      "id": "a670fed0-c9d0-4dc2-9603-7a84646ff16c",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1216,
        -144
      ],
      "parameters": {
        "width": 528,
        "height": 512,
        "content": "## Insta Reel 自动下载器 – 关键步骤"
      },
      "typeVersion": 1
    },
    {
      "id": "841103f4-de00-4a5e-b797-9fa4f0a45a68",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        272,
        -160
      ],
      "parameters": {
        "width": 448,
        "content": "## 设置提示"
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "If Sender is Me",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Reel": {
      "main": [
        [
          {
            "node": "Upload file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload file": {
      "main": [
        [
          {
            "node": "Update Sheet with the Reel",
            "type": "main",
            "index": 0
          },
          {
            "node": "If Sender is Me",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If Sender is Me": {
      "main": [
        [
          {
            "node": "Get Timestamp Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Timestamp Code": {
      "main": [
        [
          {
            "node": "Get Reel",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Sheet with the Reel": {
      "main": [
        [
          {
            "node": "Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

中级 - 文件管理, 杂项, 多模态 AI

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
中级
节点数量11
分类3
节点类型9
难度说明

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

外部链接
在 n8n.io 查看

分享此工作流