8
n8n 中文网amn8n.com

IG自动字幕代理工作流

中级

这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 14 个节点。主要使用 If, Wait, GoogleDrive, HttpRequest, GoogleDriveTrigger 等节点。 使用Google Drive和Submagic为Instagram/TikTok视频自动添加字幕

前置要求
  • Google Drive API 凭证
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "ceqHmtH7kMQI1jwl",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "name": "IG 自动字幕代理工作流",
  "tags": [],
  "nodes": [
    {
      "id": "39220e6f-5631-4bb4-90df-24784ef3a3e3",
      "name": "Google Drive 触发器",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "position": [
        -16,
        0
      ],
      "parameters": {
        "event": "fileCreated",
        "options": {},
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        },
        "triggerOn": "specificFolder",
        "folderToWatch": {
          "__rl": true,
          "mode": "list",
          "value": "<<<GOOGLE_DRIVE_FOLDER_ID>>>",
          "cachedResultUrl": "<<<REDACTED_URL>>>",
          "cachedResultName": "<<<GOOGLE_DRIVE_FOLDER_NAME>>>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "2579313d-5b23-4023-b762-395de0f41c79",
      "name": "等待",
      "type": "n8n-nodes-base.wait",
      "position": [
        496,
        0
      ],
      "parameters": {
        "amount": 15
      },
      "typeVersion": 1.1
    },
    {
      "id": "7e338ce1-56b8-4e00-9e2c-2014ebf072a3",
      "name": "发布到 Submagic",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        272,
        0
      ],
      "parameters": {
        "url": "https://api.submagic.co/v1/projects",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "authentication": "genericCredentialType",
        "bodyParameters": {
          "parameters": [
            {
              "name": "title",
              "value": "My First Video"
            },
            {
              "name": "language",
              "value": "en"
            },
            {
              "name": "videoUrl",
              "value": "={{ $json.webViewLink }}"
            },
            {
              "name": "templateName",
              "value": "Hormozi 2"
            }
          ]
        },
        "genericAuthType": "httpHeaderAuth"
      },
      "typeVersion": 4.2
    },
    {
      "id": "1feab281-5f2a-4239-aa55-ae010b600dc3",
      "name": "从 Submagic 获取带字幕视频",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        656,
        0
      ],
      "parameters": {
        "url": "=https://api.submagic.co/v1/projects/{{ $json.id }}",
        "options": {},
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth"
      },
      "typeVersion": 4.2
    },
    {
      "id": "baa828d3-a48f-4b61-b86c-a1ea197f0f61",
      "name": "下载带字幕的视频",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1088,
        -16
      ],
      "parameters": {
        "url": "={{ $json.downloadUrl }}",
        "options": {}
      },
      "typeVersion": 4.2
    },
    {
      "id": "8e4eaf50-5a27-4dee-a02b-90150ea86246",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -752,
        -320
      ],
      "parameters": {
        "width": 640,
        "height": 832,
        "content": "🎥 使用 Google Drive + Submagic 为 Instagram 视频自动添加字幕"
      },
      "typeVersion": 1
    },
    {
      "id": "6ad62e6e-1a14-4ef2-ba97-d16d257625f8",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -96,
        -144
      ],
      "parameters": {
        "color": 4,
        "width": 272,
        "height": 576,
        "content": "Google Drive 触发器"
      },
      "typeVersion": 1
    },
    {
      "id": "7253b25d-7085-4700-88bd-022f883af265",
      "name": "便签 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        192,
        -144
      ],
      "parameters": {
        "color": 3,
        "width": 272,
        "height": 576,
        "content": "发布到 Submagic 添加字幕"
      },
      "typeVersion": 1
    },
    {
      "id": "fe22f0ad-b2aa-4e7d-8bc3-82ced985b159",
      "name": "便签 3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        480,
        -144
      ],
      "parameters": {
        "color": 5,
        "width": 528,
        "height": 576,
        "content": "等待循环并获取带字幕视频"
      },
      "typeVersion": 1
    },
    {
      "id": "07bf2250-ae19-42fe-b1c7-fb05d868bae2",
      "name": "便签 4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1024,
        -144
      ],
      "parameters": {
        "color": 6,
        "height": 576,
        "content": "下载带字幕的视频"
      },
      "typeVersion": 1
    },
    {
      "id": "98d77f85-31c3-4690-8667-cdcea179a5b8",
      "name": "便签 5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1280,
        -144
      ],
      "parameters": {
        "color": 7,
        "height": 576,
        "content": "上传带字幕视频到 Drive"
      },
      "typeVersion": 1
    },
    {
      "id": "a2debc5f-46eb-4c02-8575-5b34453a8265",
      "name": "如果",
      "type": "n8n-nodes-base.if",
      "position": [
        832,
        0
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "f7ec8156-39d4-4e6e-9455-5c6dd6702c8f",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.status }}",
              "rightValue": "completed"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "b4cc46da-588d-4019-9c9f-e8204443ca89",
      "name": "等待1",
      "type": "n8n-nodes-base.wait",
      "position": [
        768,
        192
      ],
      "parameters": {
        "amount": 15
      },
      "typeVersion": 1.1
    },
    {
      "id": "2163581f-e8ef-4ccb-8f5a-7c9f747ff446",
      "name": "上传文件",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1344,
        -16
      ],
      "parameters": {
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": "<<<GOOGLE_DRIVE_NAME>>>"
        },
        "options": {},
        "folderId": {
          "__rl": true,
          "mode": "list",
          "value": "<<<GOOGLE_DRIVE_FOLDER_ID>>>",
          "cachedResultName": "<<<GOOGLE_DRIVE_FOLDER_NAME>>>"
        }
      },
      "typeVersion": 3
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Download Captioned Video",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "Get Captioned Video from Submagic",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait1": {
      "main": [
        [
          {
            "node": "Get Captioned Video from Submagic",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload file": {
      "main": [
        []
      ]
    },
    "Post to Submagic": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive Trigger": {
      "main": [
        [
          {
            "node": "Post to Submagic",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Captioned Video": {
      "main": [
        [
          {
            "node": "Upload file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Captioned Video from Submagic": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 内容创作, 多模态 AI

需要付费吗?

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

工作流信息
难度等级
中级
节点数量14
分类2
节点类型6
难度说明

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

作者
Automate With Marc

Automate With Marc

@marconi

Automating Start-Up and Business processes. Helping non-techies understand and leverage Agentic AI with easy to understand step-by-step tutorials. Check out my educational content: https://www.youtube.com/@Automatewithmarc

外部链接
在 n8n.io 查看

分享此工作流