8
n8n 中文网amn8n.com

短视频创作套件 V2

高级

这是一个Design, AI, Marketing领域的自动化工作流,包含 61 个节点。主要使用 If, Set, Code, Wait, Switch 等节点,结合人工智能技术实现智能自动化。 使用GPT、Leonardo AI、RunwayML和JSON2Video的短视频创作套件

前置要求
  • HTTP Webhook 端点(n8n 会自动生成)
  • 可能需要目标 API 的认证凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "t0ryptaZkvpZ3NNQ",
  "meta": {
    "instanceId": "2d54f61dfd963457efb86a8690aae457934e92fb9e4b8b6490ca74fc37094458",
    "templateCredsSetupCompleted": true
  },
  "name": "短内容 V2",
  "tags": [],
  "nodes": [
    {
      "id": "552f4aea-6eba-4ef3-a15a-5803a25ed701",
      "name": "便签 6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -5180,
        -200
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "e70c19bc-c100-4c4e-bb0c-3480bf43b82e",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2680,
        140
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "e51cd6c7-872a-48b8-a6b7-ac47f35a409a",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2960,
        1260
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "1edeb5fc-2774-46ed-a4f8-c4ac3f3a9ac7",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1060,
        1640
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "aa0dff4d-a840-45e0-8de9-fcd170be08d2",
      "name": "是否处理?",
      "type": "n8n-nodes-base.if",
      "position": [
        -4720,
        -80
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "1b62d439-f82e-432b-a1bc-5b73abc8b5e6",
      "name": "切换脚本类型",
      "type": "n8n-nodes-base.switch",
      "position": [
        -5080,
        240
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "df9759eb-5511-4323-86b8-7d40bb0e43e9",
      "name": "基础 LLM 链",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "onError": "continueErrorOutput",
      "position": [
        -4080,
        60
      ],
      "parameters": {},
      "typeVersion": 1.5
    },
    {
      "id": "8ff00af2-cb59-4a48-8504-1e388f00d8c3",
      "name": "条件判断",
      "type": "n8n-nodes-base.if",
      "position": [
        -4880,
        140
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "3ccaa3f8-51b7-44f9-83b2-0ad7fb291596",
      "name": "正文",
      "type": "n8n-nodes-base.set",
      "position": [
        -4900,
        -80
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "d78562f1-6236-4aa8-81dc-741c82d2b9ea",
      "name": "结构化输出解析器",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -3860,
        240
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "42276de0-b0f6-490e-9fba-28008e01293b",
      "name": "OpenAI 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -4040,
        240
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "11c7ba76-0b22-4dfd-b063-dbfc2cf1d582",
      "name": "Leo - 改进提示",
      "type": "n8n-nodes-base.httpRequest",
      "onError": "continueErrorOutput",
      "position": [
        -2260,
        260
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "8d813e38-4689-4102-9a84-322e57573e72",
      "name": "Leo - 获取图像ID",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -900,
        300
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "759c964b-560e-476c-9948-041d781d7225",
      "name": "Leo - 生成图像",
      "type": "n8n-nodes-base.httpRequest",
      "onError": "continueErrorOutput",
      "position": [
        -1780,
        180
      ],
      "parameters": {},
      "notesInFlow": false,
      "typeVersion": 4.2
    },
    {
      "id": "7ba0fa55-3a4a-45ce-bf84-7b0695014e1f",
      "name": "等待1",
      "type": "n8n-nodes-base.wait",
      "position": [
        -1300,
        160
      ],
      "webhookId": "ae4c943c-3a67-4532-8fc5-3f0b5c1e9cd3",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "8e770b9e-44c3-4d6f-b816-04a141dcea1b",
      "name": "场景映射",
      "type": "n8n-nodes-base.set",
      "position": [
        -3360,
        -160
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "eb75b3e1-7945-47cb-99a3-b123d4509840",
      "name": "分离输出",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        -3360,
        240
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "9d1a5b5a-e6f9-4e0b-b0ab-c5d00a42b933",
      "name": "Runway - 创建视频",
      "type": "n8n-nodes-base.httpRequest",
      "onError": "continueErrorOutput",
      "position": [
        -2100,
        520
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "e6e34dd1-14b9-457a-94d7-d649df9bf6fa",
      "name": "Runway - 获取视频",
      "type": "n8n-nodes-base.httpRequest",
      "onError": "continueErrorOutput",
      "position": [
        -1420,
        580
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "9e5b3314-5ff5-40d5-b25b-650b2b86b673",
      "name": "等待2",
      "type": "n8n-nodes-base.wait",
      "position": [
        -1660,
        580
      ],
      "webhookId": "1d9b1044-08ca-446c-a290-e1e28d356402",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "9122333a-9cbd-4e05-a071-fa63237abc70",
      "name": "循环场景",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -2580,
        240
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "12e3944f-bf50-452a-a566-e21e37b8ae8c",
      "name": "代码",
      "type": "n8n-nodes-base.code",
      "position": [
        -2500,
        1560
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "87281d2b-c75b-442c-b7b4-069e9b547c3b",
      "name": "等待",
      "type": "n8n-nodes-base.wait",
      "position": [
        -1940,
        1820
      ],
      "webhookId": "5cac0c0c-2373-410d-a4fa-93631e4f7a16",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "1d14b153-cf53-4bb8-bc48-500d407f1136",
      "name": "json2video : 视频渲染",
      "type": "n8n-nodes-base.httpRequest",
      "onError": "continueErrorOutput",
      "position": [
        -2160,
        1840
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "e85203de-a496-4424-92cf-6702be3107fd",
      "name": "json2video : 检查视频渲染",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1740,
        1820
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "1f7e969a-9eb0-4d34-8bee-cc412794757a",
      "name": "Baserow",
      "type": "n8n-nodes-base.baserow",
      "position": [
        -900,
        1800
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "8c3c9f77-c674-4082-8417-d218e4c1f146",
      "name": "Baserow 处理",
      "type": "n8n-nodes-base.baserow",
      "position": [
        -4480,
        -180
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "f051222a-69de-488b-95ee-8ddba38cfecc",
      "name": "输出",
      "type": "n8n-nodes-base.set",
      "position": [
        -1180,
        780
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "4ccc7e0b-95a8-4bf8-9328-914796d04e5f",
      "name": "更新脚本",
      "type": "n8n-nodes-base.baserow",
      "position": [
        -3360,
        -340
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "1ac9cf4f-2ea5-4901-8021-daa1aaebe526",
      "name": "背景类型",
      "type": "n8n-nodes-base.if",
      "position": [
        -2340,
        600
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "3f4cfe61-ad21-4306-b510-ff5a6cdc9c6a",
      "name": "输出图像",
      "type": "n8n-nodes-base.set",
      "position": [
        -2100,
        780
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "ae0c2d35-18f4-4360-a61d-d5c40624864e",
      "name": "执行工作流2",
      "type": "n8n-nodes-base.executeWorkflow",
      "position": [
        -1860,
        700
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "53ee6f59-3e74-4dbf-9655-4557f2e3dd80",
      "name": "执行工作流3",
      "type": "n8n-nodes-base.executeWorkflow",
      "position": [
        -1520,
        280
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "3cc71591-718c-48c5-a81f-903bc27703a7",
      "name": "执行工作流4",
      "type": "n8n-nodes-base.executeWorkflow",
      "position": [
        -3620,
        160
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "ffba25bf-ebfb-437c-88a9-baffa9183ad2",
      "name": "HeyGen",
      "type": "n8n-nodes-base.httpRequest",
      "onError": "continueErrorOutput",
      "position": [
        -3860,
        2100
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "0f0c91ed-3a81-4add-9219-fb0b2b769592",
      "name": "等待",
      "type": "n8n-nodes-base.wait",
      "position": [
        -3640,
        2060
      ],
      "webhookId": "d2c37f01-834e-40d3-888e-6e7e4296f474",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "e2144fa4-4a79-4203-8690-7fc3654aa2aa",
      "name": "HeyGen : 检查视频",
      "type": "n8n-nodes-base.httpRequest",
      "onError": "continueErrorOutput",
      "position": [
        -3460,
        2080
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "5e3c03f0-2688-48e2-88f9-8c56cb2bcd82",
      "name": "heygen响应",
      "type": "n8n-nodes-base.switch",
      "position": [
        -3220,
        2060
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "f1fe987d-97f3-4f86-b160-1ec019db8ba9",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3980,
        2000
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "ecd90ffe-b4f3-4895-858e-f2dbbc758f3f",
      "name": "等待6",
      "type": "n8n-nodes-base.wait",
      "position": [
        -2160,
        1340
      ],
      "webhookId": "1ae300a3-2b49-4ee0-9817-9d29692d7bd8",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "7f2db63c-6ccd-427b-976d-788906acaffa",
      "name": "CaptionsAI1",
      "type": "n8n-nodes-base.httpRequest",
      "onError": "continueErrorOutput",
      "position": [
        -2460,
        1340
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "ef6d1fda-f589-4a80-bef9-6b58a0c7be4c",
      "name": "CaptionsAI : 检查轮询1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1980,
        1340
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "704dc30e-92d7-4fbf-84f7-fa28c8e3c800",
      "name": "聚合",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        -2660,
        1340
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "7fa5ee4a-b331-44e3-8eac-bb51a1640f02",
      "name": "j2v响应",
      "type": "n8n-nodes-base.switch",
      "position": [
        -1580,
        1820
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "4bf31cad-30ba-4111-82c6-543c8270ba78",
      "name": "json2video 执行错误",
      "type": "n8n-nodes-base.executeWorkflow",
      "position": [
        -1940,
        2080
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "2b7f8cf6-e72f-4709-8384-470be9018a58",
      "name": "json2video 执行错误1",
      "type": "n8n-nodes-base.executeWorkflow",
      "position": [
        -1640,
        2080
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "000f4384-59f2-45cc-8ac7-947578faf961",
      "name": "CAPTIONS 执行错误",
      "type": "n8n-nodes-base.executeWorkflow",
      "position": [
        -1640,
        1560
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "8c0f1519-7c15-4753-a3a4-e0ea7bdecd91",
      "name": "cap响应",
      "type": "n8n-nodes-base.switch",
      "position": [
        -1800,
        1340
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "ca2a0e83-1945-44da-88db-fd43f7abdd01",
      "name": "代码添加子项",
      "type": "n8n-nodes-base.code",
      "position": [
        -1580,
        1340
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "32919f30-7192-4fe9-a8c0-5056f23930da",
      "name": "执行工作流",
      "type": "n8n-nodes-base.executeWorkflow",
      "position": [
        -4620,
        160
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "0d2c27de-ced5-4717-bd69-120cdca0c404",
      "name": "代码 Heygen",
      "type": "n8n-nodes-base.code",
      "position": [
        -2500,
        2040
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "49cbb913-b8d8-407b-aba1-772b183fc2cb",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -5120,
        -80
      ],
      "webhookId": "9dc1daa9-0cc3-4171-bd2c-f334afe7f786",
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "ece27b23-6adb-4bde-bd27-16f9c52074b1",
      "name": "如果使用heygen",
      "type": "n8n-nodes-base.if",
      "position": [
        -2500,
        1780
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "4b574962-192a-4896-9b20-d1a1a6a2dba9",
      "name": "如果使用头像",
      "type": "n8n-nodes-base.if",
      "position": [
        -2920,
        1480
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "17443565-19e6-4f87-b3d0-ae760ef2e9c0",
      "name": "heygen 执行错误",
      "type": "n8n-nodes-base.executeWorkflow",
      "position": [
        -3680,
        2260
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "db4608b4-de96-4fca-8015-9a529c5d7ec2",
      "name": "heygen 执行错误2",
      "type": "n8n-nodes-base.executeWorkflow",
      "position": [
        -3220,
        2260
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "59b0d81e-47dd-4142-9e4f-2720d3ab4cd2",
      "name": "执行工作流5",
      "type": "n8n-nodes-base.executeWorkflow",
      "position": [
        -2000,
        280
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "5907b590-cb1a-40f2-973a-c267f4f2a618",
      "name": "CAPTIONS 执行错误1",
      "type": "n8n-nodes-base.executeWorkflow",
      "position": [
        -2300,
        1500
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "5003eb72-ccaf-4397-b222-74520118b710",
      "name": "执行工作流6",
      "type": "n8n-nodes-base.executeWorkflow",
      "position": [
        -1180,
        600
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "d7bfd001-f3e7-4615-9cb4-c999f85796b4",
      "name": "基础 LLM 链手动",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "onError": "continueErrorOutput",
      "position": [
        -4060,
        -180
      ],
      "parameters": {},
      "typeVersion": 1.5
    },
    {
      "id": "7d14ce33-6879-4fbf-8c4d-741dc0199fd8",
      "name": "OpenAI 聊天模型1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -4220,
        -20
      ],
      "parameters": {},
      "typeVersion": 1.2
    }
  ],
  "active": true,
  "pinData": {
    "Webhook": [
      {
        "json": {
          "body": {
            "items": [
              {
                "id": 108,
                "Topic": "5 Mind-Blowing Facts About Space Exploration",
                "order": "17.00000000000000000000",
                "Script": null,
                "Status": null,
                "AvatarId": "Conrad_sitting_house_side",
                "Duration": null,
                "ErrorLog": null,
                "fontSize": null,
                "VideoType": {
                  "id": 3178320,
                  "color": "light-purple",
                  "value": "Story"
                },
                "Created on": "2025-05-04T15:04:40.357861Z",
                "ScriptType": {
                  "id": 3178323,
                  "color": "green",
                  "value": "ai gen"
                },
                "AvatarStatus": {
                  "id": 3178329,
                  "color": "light-purple",
                  "value": "Heygen"
                },
                "ScenesNumber": "5",
                "CaptionsStyle": {
                  "id": 3178331,
                  "color": "light-green",
                  "value": "classic-progressive"
                },
                "FinalVideoURL": "",
                "HeygenVoiceId": "2b0587b1089b4544ae41b155e3d21118",
                "Last modified": "2025-05-04T15:04:40.357861Z",
                "BackgroundType": {
                  "id": 3178325,
                  "color": "light-cyan",
                  "value": "Images"
                },
                "BackgroundMusic": "",
                "CaptionsBoxColor": "#000000",
                "CaptionsLineColor": "#FFFFFF",
                "HeygenAvatarWidth": "280",
                "HeygenAvatarHeight": "340",
                "HeygenAvatarPosition": {
                  "id": 3178338,
                  "color": "light-green",
                  "value": "bottom-right"
                }
              }
            ],
            "event_id": "0c5f0416-4d27-4d2e-a75d-2b5e60c32e6d",
            "table_id": 522247,
            "event_type": "rows.created",
            "webhook_id": 6062,
            "database_id": 218184,
            "workspace_id": 96424
          },
          "query": {},
          "params": {},
          "headers": {
            "host": "n8n.coolify.cloudysoftwares.tech",
            "accept": "*/*",
            "baggage": "sentry-trace_id=efe94c5a1e454e57aa0b88a0c00d1cb3,sentry-environment=production,sentry-release=38df5eb102dc465ef71bfc85e63012e3d13ad610,sentry-public_key=c030c9f41daa4b3da9cbc0fcdf5027f9, http.route=%5Eapi%2Fdatabase%2Fviews%2Fform%2F%28%3FP%3Cslug%3E%5B-%5Cw%5D%2B%29%2Fsubmit%2F%24,user.id=74171",
            "x-real-ip": "3.77.114.147",
            "user-agent": "python-requests/2.31.0",
            "traceparent": "00-53a1f27d3e9774d4ccb87c740e056a61-b8850e99d79163c6-00",
            "content-type": "application/json",
            "sentry-trace": "efe94c5a1e454e57aa0b88a0c00d1cb3-bc58b7dddbd6c53d",
            "content-length": "1218",
            "accept-encoding": "gzip, deflate, br",
            "x-baserow-event": "rows.created",
            "x-forwarded-for": "3.77.114.147",
            "x-forwarded-host": "n8n.coolify.cloudysoftwares.tech",
            "x-forwarded-port": "443",
            "x-forwarded-proto": "https",
            "x-baserow-delivery": "0c5f0416-4d27-4d2e-a75d-2b5e60c32e6d",
            "x-forwarded-server": "837fcab6fd50"
          },
          "webhookUrl": "https://n8n.coolify.cloudysoftwares.tech/webhook/short-gen/v2",
          "executionMode": "production"
        }
      }
    ]
  },
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "4d4b3d08-d63e-41a6-8f20-0a8b58f5f674",
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Basic LLM Chain Manual",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Execute Workflow",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Body": {
      "main": [
        [
          {
            "node": "Should Process?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code": {
      "main": [
        [
          {
            "node": "If_with_heygen",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "json2video : Check Video Rendering",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait1": {
      "main": [
        [
          {
            "node": "Leo - Get imageId",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait2": {
      "main": [
        [
          {
            "node": "Runway - Get Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait4": {
      "main": [
        [
          {
            "node": "HeyGen : Check Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait6": {
      "main": [
        [
          {
            "node": "CaptionsAI : Check Poll1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HeyGen": {
      "main": [
        [
          {
            "node": "Wait4",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "heygen Execute ERROR",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "output": {
      "main": [
        [
          {
            "node": "loop_over_scenes",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook": {
      "main": [
        [
          {
            "node": "Body",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate": {
      "main": [
        [
          {
            "node": "CaptionsAI1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "loop_over_scenes",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "CaptionsAI1": {
      "main": [
        [
          {
            "node": "Wait6",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "CAPTIONS Execute ERROR1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code Heygen": {
      "main": [
        [
          {
            "node": "json2video : Video Rendering",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code Add Sub": {
      "main": [
        [
          {
            "node": "json2video : Video Rendering",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "cap_response": {
      "main": [
        [
          {
            "node": "Code Add Sub",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait6",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "CAPTIONS Execute ERROR",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "j2v_response": {
      "main": [
        [
          {
            "node": "Baserow",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "json2video Execute ERROR1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "output image": {
      "main": [
        [
          {
            "node": "loop_over_scenes",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "BackgroundType": {
      "main": [
        [
          {
            "node": "Runway - Create Video",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "output image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If_with_avatar": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If_with_heygen": {
      "main": [
        [
          {
            "node": "HeyGen",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "json2video : Video Rendering",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Scenes Mapping": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Basic LLM Chain": {
      "main": [
        [
          {
            "node": "Scenes Mapping",
            "type": "main",
            "index": 0
          },
          {
            "node": "Update Script",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Execute Workflow4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Should Process?": {
      "main": [
        [
          {
            "node": "Switch ScriptType",
            "type": "main",
            "index": 0
          },
          {
            "node": "Baserow Processing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "heygen_response": {
      "main": [
        [
          {
            "node": "Code Heygen",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "loop_over_scenes": {
      "main": [
        [
          {
            "node": "If_with_avatar",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Leo - Improve Prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Leo - Get imageId": {
      "main": [
        [
          {
            "node": "BackgroundType",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Basic LLM Chain",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Switch ScriptType": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Basic LLM Chain",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Basic LLM Chain Manual",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Runway - Get Video": {
      "main": [
        [
          {
            "node": "output",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Execute Workflow6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HeyGen : Check Video": {
      "main": [
        [
          {
            "node": "heygen_response",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "heygen Execute ERROR2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Leo - Generate Image": {
      "main": [
        [
          {
            "node": "Wait1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Execute Workflow3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Leo - Improve Prompt": {
      "main": [
        [
          {
            "node": "Leo - Generate Image",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Execute Workflow5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Runway - Create Video": {
      "main": [
        [
          {
            "node": "Wait2",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Execute Workflow2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Basic LLM Chain Manual": {
      "main": [
        [
          {
            "node": "Update Script",
            "type": "main",
            "index": 0
          },
          {
            "node": "Scenes Mapping",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Execute Workflow4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "CaptionsAI : Check Poll1": {
      "main": [
        [
          {
            "node": "cap_response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Basic LLM Chain",
            "type": "ai_outputParser",
            "index": 0
          },
          {
            "node": "Basic LLM Chain Manual",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "json2video : Video Rendering": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "json2video Execute ERROR",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "json2video : Check Video Rendering": {
      "main": [
        [
          {
            "node": "j2v_response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 设计, 人工智能, 营销

需要付费吗?

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

工作流信息
难度等级
高级
节点数量61
分类3
节点类型16
难度说明

适合高级用户,包含 16+ 个节点的复杂工作流

作者
Adam Crafts

Adam Crafts

@adamcrafts

As an experienced AI Agent Builder, I specialize in creating intelligent solutions tailored to enhance automation, streamline operations, and drive innovation. 🛠️ My passion lies in transforming ideas into functional AI agents that deliver tangible results.

外部链接
在 n8n.io 查看

分享此工作流