使用ZapCap和Google云端硬盘生成AI视频字幕

中级

这是一个Content Creation、Multimodal AI领域的自动化工作流,包含 14 个节点。主要使用 If、Wait、GoogleDrive、HttpRequest、GoogleDriveTrigger 等节点。 使用ZapCap和Google云端硬盘生成AI视频字幕

前置要求
  • Google Drive API 凭证
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "0eacf600eb1c8c4a04ccca0c2bfee1f580c527ac71d9fcb4e7867a35f513b36f",
    "templateCredsSetupCompleted": true
  },
  "name": "使用 ZapCap 和 Google Drive 生成 AI 视频字幕",
  "tags": [],
  "nodes": [
    {
      "id": "452daa5e-5e33-4063-a342-4762f81567f9",
      "name": "Google Drive 触发器",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "position": [
        1232,
        -176
      ],
      "parameters": {
        "event": "fileCreated",
        "options": {},
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        },
        "triggerOn": "specificFolder",
        "folderToWatch": {
          "__rl": true,
          "mode": "list",
          "value": "<<<GOOGLE_DRIVE_FOLDER_ID>>>",
          "cachedResultUrl": "<<<GOOGLE_DRIVE_FOLDER_URL>>>",
          "cachedResultName": "<<<GOOGLE_DRIVE_FOLDER_NAME>>>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "23e88fbd-be88-476b-9f65-d9400bed24d6",
      "name": "将视频上传至 ZapCap",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1552,
        -176
      ],
      "parameters": {
        "url": "https://api.zapcap.ai/videos/url",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "authentication": "genericCredentialType",
        "bodyParameters": {
          "parameters": [
            {
              "name": "url",
              "value": "={{ $json.webViewLink }}"
            }
          ]
        },
        "genericAuthType": "httpHeaderAuth"
      },
      "typeVersion": 4.2
    },
    {
      "id": "2d528391-6c5b-4898-9557-79a9b674d941",
      "name": "触发视频处理",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1856,
        -176
      ],
      "parameters": {
        "url": "=https://api.zapcap.ai/videos/{{ $json.id }}/task ",
        "method": "POST",
        "options": {
          "redirect": {
            "redirect": {
              "followRedirects": false
            }
          }
        },
        "sendBody": true,
        "sendQuery": true,
        "authentication": "genericCredentialType",
        "bodyParameters": {
          "parameters": [
            {
              "name": "templateId",
              "value": "ca050348-e2d0-49a7-9c75-7a5e8335c67d"
            },
            {
              "name": "autoApprove",
              "value": "={{ true }}"
            }
          ]
        },
        "genericAuthType": "httpHeaderAuth",
        "queryParameters": {
          "parameters": [
            {
              "name": "ttl",
              "value": "1d"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "717e4fde-1a21-4d65-b7b1-c8ea0e0519f7",
      "name": "获取处理任务",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2096,
        -176
      ],
      "parameters": {
        "url": "=https://api.zapcap.ai/videos/{{ $('Upload video to ZapCap').item.json.id }}/task/{{$('Trigger video processing').item.json.taskId }}",
        "options": {},
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth"
      },
      "typeVersion": 4.2
    },
    {
      "id": "c2352a7d-08bb-481b-819d-c51b345910a0",
      "name": "如果处理完成",
      "type": "n8n-nodes-base.if",
      "position": [
        2336,
        -256
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "or",
          "conditions": [
            {
              "id": "a9b08b06-0f10-4a98-b033-95f93b156d9a",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.status }}",
              "rightValue": "=completed"
            },
            {
              "id": "aaa8d677-85e8-4c09-88bc-f3f95cd90283",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.status }}",
              "rightValue": "failed"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "d48ef8f1-6715-45a3-b733-2722f8286d4d",
      "name": "下载已完成的视频",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2624,
        -272
      ],
      "parameters": {
        "url": "={{ $json.downloadUrl }}",
        "options": {}
      },
      "typeVersion": 4.2
    },
    {
      "id": "acd2f825-b1d9-4eb1-99fe-3166dc7dc861",
      "name": "上传文件",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        2832,
        -272
      ],
      "parameters": {
        "name": "={{ $('Google Drive Trigger').item.json.name }}",
        "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
    },
    {
      "id": "74fe5b37-d1d2-4deb-9df8-8e65cfbf465d",
      "name": "等待",
      "type": "n8n-nodes-base.wait",
      "position": [
        2352,
        -32
      ],
      "webhookId": "e684b1d5-3733-4f9f-8650-bb75ebba23b6",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "db1c33e0-ec36-416f-b549-591ea5f44fcd",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        496,
        -480
      ],
      "parameters": {
        "width": 624,
        "height": 720,
        "content": "## 🎬 使用 ZapCap 自动为 Google Drive 中的视频添加 AI 字幕"
      },
      "typeVersion": 1
    },
    {
      "id": "885d0386-4f97-404d-bd58-d2e14e7038c9",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1120,
        -480
      ],
      "parameters": {
        "color": 5,
        "width": 336,
        "height": 720,
        "content": "## Google Drive 触发器"
      },
      "typeVersion": 1
    },
    {
      "id": "4492221e-5666-4b82-ab1f-892b1ca59a02",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1456,
        -480
      ],
      "parameters": {
        "color": 5,
        "width": 320,
        "height": 720,
        "content": "## 将视频上传至 ZapCap"
      },
      "typeVersion": 1
    },
    {
      "id": "843ec7db-6d4d-4d1b-990d-9ea1600d9e66",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1776,
        -480
      ],
      "parameters": {
        "color": 5,
        "width": 784,
        "height": 720,
        "content": "## ZapCap 开始处理您的视频"
      },
      "typeVersion": 1
    },
    {
      "id": "dee8dcfd-ffd3-4e79-a98a-ae758b5f366d",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2560,
        -480
      ],
      "parameters": {
        "color": 4,
        "width": 432,
        "height": 720,
        "content": "## 带字幕的视频已上传到您选择的 Google Drive 文件夹。"
      },
      "typeVersion": 1
    },
    {
      "id": "f905df28-4a11-4b79-895e-b20a6784003e",
      "name": "便签5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1680,
        -672
      ],
      "parameters": {
        "content": "## 注意"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "",
  "connections": {
    "Wait": {
      "main": [
        [
          {
            "node": "Get processing task",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get processing task": {
      "main": [
        [
          {
            "node": "If processing completed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive Trigger": {
      "main": [
        [
          {
            "node": "Upload video to ZapCap",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload video to ZapCap": {
      "main": [
        [
          {
            "node": "Trigger video processing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If processing completed": {
      "main": [
        [
          {
            "node": "Download completed video",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download completed video": {
      "main": [
        [
          {
            "node": "Upload file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Trigger video processing": {
      "main": [
        [
          {
            "node": "Get processing task",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

这是一个中级难度的工作流,适用于Content Creation、Multimodal AI等场景。适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

需要付费吗?

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

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

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

外部链接
在 n8n.io 上查看 →

分享此工作流