8
n8n 中文网amn8n.com

Recap AI - YouTube视频剪辑器

中级

这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 12 个节点。主要使用 If, Set, Wait, Slack, Filter 等节点。 使用Vizard AI从YouTube视频生成病毒式TikTok/IG Reel片段

前置要求
  • Slack Bot Token 或 Webhook URL
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "y7hQeDrKG6Dh0GRo",
  "meta": {
    "instanceId": "06e5009344f682419c20ccd4ecdcb5223bbb91761882af93ac6d468dbc2cbf8d",
    "templateCredsSetupCompleted": true
  },
  "name": "The Recap AI - YouTube 视频剪辑器",
  "tags": [],
  "nodes": [
    {
      "id": "8ec0c272-cdd2-4398-8799-035b4e9cbb57",
      "name": "表单触发器",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -180,
        0
      ],
      "webhookId": "b624408a-188f-4fc0-abf3-20293eba7b98",
      "parameters": {
        "options": {},
        "formTitle": "YouTube Video Clipper",
        "formFields": {
          "values": [
            {
              "fieldLabel": "YouTube Video Url",
              "placeholder": "https://www.youtube.com/watch?v=DB9mjd-65gw",
              "requiredField": true
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "2ab8e9a6-6a75-40c9-9f9c-3512fa1208af",
      "name": "提交视频",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        100,
        0
      ],
      "parameters": {
        "url": "https://elb-api.vizard.ai/hvizard-server-front/open-api/v1/project/create",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n  \"lang\": \"en\",\n  \"preferLength\": [\n    0\n  ],\n  \"videoUrl\": \"{{ $json['YouTube Video Url'] }}\",\n  \"videoType\": 2,\n  \"maxClipNumber\": 8\n}",
        "sendBody": true,
        "specifyBody": "json",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth"
      },
      "credentials": {
        "httpHeaderAuth": {
          "id": "wa7PH900htc4zSiG",
          "name": "Vizard AI"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "cfddcedd-19ab-45a2-b746-657c580082b2",
      "name": "等待",
      "type": "n8n-nodes-base.wait",
      "position": [
        380,
        0
      ],
      "webhookId": "65cefde9-1d9f-466c-9b9e-b200eb155023",
      "parameters": {
        "amount": 10
      },
      "typeVersion": 1.1
    },
    {
      "id": "42c02942-9d9e-42e0-b931-cf3feb354394",
      "name": "检查状态",
      "type": "n8n-nodes-base.if",
      "position": [
        940,
        100
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "0583b406-8a93-4582-9229-7f68aa461320",
              "operator": {
                "type": "number",
                "operation": "equals"
              },
              "leftValue": "={{ $json.code }}",
              "rightValue": 2000
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "01e39b0c-8226-4f1d-a6c4-eb2826219859",
      "name": "发送初始消息",
      "type": "n8n-nodes-base.slack",
      "position": [
        -180,
        560
      ],
      "webhookId": "92c0d4b5-b4de-409a-ad16-15648a4a6978",
      "parameters": {
        "text": "=<{{ $('form_trigger').item.json['YouTube Video Url'] }}|Video Clipper Results>",
        "select": "channel",
        "channelId": {
          "__rl": true,
          "mode": "list",
          "value": "C08KC39K8DR",
          "cachedResultName": "ai-tools-content"
        },
        "otherOptions": {
          "includeLinkToWorkflow": false
        },
        "authentication": "oAuth2"
      },
      "credentials": {
        "slackOAuth2Api": {
          "id": "iKdTzmZ6YuYaaRG4",
          "name": "Slack (OAuth)"
        }
      },
      "typeVersion": 2.3
    },
    {
      "id": "72cf4174-306f-4ed9-8b94-1ec43209a84b",
      "name": "设置视频",
      "type": "n8n-nodes-base.set",
      "position": [
        100,
        560
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "dd18de51-6e46-48a5-8df6-3fbb6b03474b",
              "name": "videos",
              "type": "array",
              "value": "={{ $('check_status').item.json.videos }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "985bc5e1-00f3-4023-a6e0-a98c9ad025d9",
      "name": "获取剪辑状态",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        660,
        0
      ],
      "parameters": {
        "url": "=https://elb-api.vizard.ai/hvizard-server-front/open-api/v1/project/query/{{ $json.projectId }}",
        "options": {},
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth"
      },
      "credentials": {
        "httpHeaderAuth": {
          "id": "wa7PH900htc4zSiG",
          "name": "Vizard AI"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "72bd9d52-762a-4f46-861a-461bddaae842",
      "name": "分割视频",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        380,
        560
      ],
      "parameters": {
        "options": {},
        "fieldToSplitOut": "videos"
      },
      "typeVersion": 1
    },
    {
      "id": "17d6d975-63f3-452d-9ddc-952ff97d9600",
      "name": "发送视频消息",
      "type": "n8n-nodes-base.slack",
      "position": [
        940,
        560
      ],
      "webhookId": "92c0d4b5-b4de-409a-ad16-15648a4a6978",
      "parameters": {
        "text": "=*{{ $json.title }} | ({{ $json.viralScore }} / 10)*\n```\n{{ $json.videoUrl }}\n```\n---",
        "select": "channel",
        "channelId": {
          "__rl": true,
          "mode": "list",
          "value": "C08KC39K8DR",
          "cachedResultName": "ai-tools-content"
        },
        "otherOptions": {
          "thread_ts": {
            "replyValues": {
              "thread_ts": "={{ $('send_initial_msg').item.json.message.ts }}"
            }
          },
          "includeLinkToWorkflow": false
        },
        "authentication": "oAuth2"
      },
      "credentials": {
        "slackOAuth2Api": {
          "id": "iKdTzmZ6YuYaaRG4",
          "name": "Slack (OAuth)"
        }
      },
      "typeVersion": 2.3
    },
    {
      "id": "800c0992-1bc3-4b9e-9328-459290f465b0",
      "name": "筛选病毒分数",
      "type": "n8n-nodes-base.filter",
      "position": [
        660,
        560
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "loose"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "1ca8f8e1-04f4-44fd-9a2d-7e656b08ff81",
              "operator": {
                "type": "number",
                "operation": "gte"
              },
              "leftValue": "={{ $json.viralScore }}",
              "rightValue": 9
            }
          ]
        },
        "looseTypeValidation": true
      },
      "typeVersion": 2.2
    },
    {
      "id": "115d57c2-5326-4e9d-b1f6-5ab50a6a74aa",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -200,
        -200
      ],
      "parameters": {
        "color": 5,
        "width": 1380,
        "height": 560,
        "content": "## 1. 分析长格式 YouTube 视频并生成病毒剪辑"
      },
      "typeVersion": 1
    },
    {
      "id": "84f43084-3d5d-4af1-b191-ac6b95ab00e7",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -200,
        380
      ],
      "parameters": {
        "color": 6,
        "width": 1380,
        "height": 360,
        "content": "## 2. 在 Slack 中分享最佳病毒剪辑"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "117cda19-70c4-426a-a9a5-04a0d6034916",
  "connections": {
    "wait": {
      "main": [
        [
          {
            "node": "get_clipping_status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "set_videos": {
      "main": [
        [
          {
            "node": "split_videos",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "check_status": {
      "main": [
        [
          {
            "node": "send_initial_msg",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "form_trigger": {
      "main": [
        [
          {
            "node": "submit_video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "split_videos": {
      "main": [
        [
          {
            "node": "filter_viral_score",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "submit_video": {
      "main": [
        [
          {
            "node": "wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "send_initial_msg": {
      "main": [
        [
          {
            "node": "set_videos",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "filter_viral_score": {
      "main": [
        [
          {
            "node": "send_video_msg",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "get_clipping_status": {
      "main": [
        [
          {
            "node": "check_status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

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

需要付费吗?

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

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

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

作者
Lucas Walter

Lucas Walter

@lucaswalter

Chief Automation Officer at The Recap AI. I build the AI systems and agents that power our business and teach others how to use n8n. Check out our YouTube channel linked below!

外部链接
在 n8n.io 查看

分享此工作流