{
  "name": "双人口播半自动化",
  "nodes": [
    {
      "parameters": {
        "promptType": "define",
        "text": "={{ $('数据转换').item.json.data }}",
        "hasOutputParser": true,
        "options": {
          "systemMessage": "=你是一个专业的文本结构化处理器。将文本转成男女口播文稿，并严格按以下规则处理输入文本：\n   - 共2个角色一个男性角色一个女性角色对话格式\n   - 每段独立一行，50字以内\n   - 严格保持原文标点和换行\n   - 不添加任何额外说明或注释\n   - 如果文中有数值需要改成中文，比如：8改成八，N8N中的8也算数值，2024改成二零二四\n\n### 输出示例\n\n使用JSON格式输出：\n[\n{\n    \"woman\": \"听你这么一说，我都想马上试试MCP了！\"\n},\n{\n   \"man\": \"那还等啥？赶紧上手，让AI帮你飞起来！\"\n}\n]"
        }
      },
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 2,
      "position": [
        780,
        120
      ],
      "id": "d10b4d6b-5012-493c-b21f-39c07a07ba15",
      "name": "AI Agent"
    },
    {
      "parameters": {},
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        160,
        120
      ],
      "id": "a38127bc-1ea4-4f0c-a88f-a734e564cf57",
      "name": "When clicking ‘Execute workflow’"
    },
    {
      "parameters": {
        "operation": "text",
        "options": {}
      },
      "type": "n8n-nodes-base.extractFromFile",
      "typeVersion": 1,
      "position": [
        560,
        120
      ],
      "id": "bc666405-adf4-459c-b01f-aee2614bf27f",
      "name": "数据转换"
    },
    {
      "parameters": {
        "model": "deepseek-reasoner",
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatDeepSeek",
      "typeVersion": 1,
      "position": [
        760,
        340
      ],
      "id": "66abc8bb-f549-4e51-9735-3dd842edb2a9",
      "name": "DeepSeek",
      "credentials": {
        "deepSeekApi": {
          "id": "yC9A4AQzve1eorS4",
          "name": "DeepSeek account"
        }
      }
    },
    {
      "parameters": {},
      "type": "n8n-nodes-base.limit",
      "typeVersion": 1,
      "position": [
        2120,
        -580
      ],
      "id": "d9efbcb3-7dd7-4294-8fa3-040ecb1eeafe",
      "name": "Limit1"
    },
    {
      "parameters": {
        "options": {}
      },
      "type": "n8n-nodes-base.splitInBatches",
      "typeVersion": 3,
      "position": [
        2320,
        -600
      ],
      "id": "966a3574-a521-4c0b-97ec-c6477c7b2724",
      "name": "Loop Over Items"
    },
    {
      "parameters": {
        "url": "=http://192.168.10.5:8188/history/{{ $('任务ID').item.json.prompt_id }}",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        3180,
        -580
      ],
      "id": "de89cfda-a83a-4a4c-b54c-ac5981bcb8ec",
      "name": "查询任务",
      "alwaysOutputData": false
    },
    {
      "parameters": {
        "amount": 10
      },
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [
        2740,
        -580
      ],
      "id": "7a3706ad-efa7-411e-8095-21120c9f0bea",
      "name": "Wait",
      "webhookId": "9d10cd5b-47df-4f29-a2b5-9c1c2f5ba222"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "loose",
            "version": 2
          },
          "conditions": [
            {
              "id": "de819fb6-bd6f-4a15-8c74-ed117f45dbff",
              "leftValue": "={{ $('查询任务').item.json }}",
              "rightValue": "",
              "operator": {
                "type": "object",
                "operation": "notEmpty",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "looseTypeValidation": true,
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        3340,
        -580
      ],
      "id": "ec2232e9-fdb5-401e-a334-fc704f32b674",
      "name": "If"
    },
    {
      "parameters": {
        "amount": 3
      },
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [
        3280,
        -380
      ],
      "id": "0a5044cf-0d8f-4fc3-838b-1bece83c0b54",
      "name": "Wait1",
      "webhookId": "9d10cd5b-47df-4f29-a2b5-9c1c2f5ba222"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "http://192.168.10.5:8188/upload/image",
        "sendBody": true,
        "contentType": "multipart-form-data",
        "bodyParameters": {
          "parameters": [
            {
              "parameterType": "formBinaryData",
              "name": "=image",
              "inputDataFieldName": "=data"
            },
            {
              "name": "overwrite",
              "value": "true"
            },
            {
              "name": "type",
              "value": "input"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        2360,
        -340
      ],
      "id": "33247a60-a917-499d-9100-105caa427514",
      "name": "上传克隆音"
    },
    {
      "parameters": {
        "url": "=http://192.168.10.5:8188/view?filename={{ $('查询任务').item.json[$('制作语音').item.json.prompt_id].outputs['4'].audio[0].filename }}",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        3540,
        -580
      ],
      "id": "faeb353a-15eb-4486-8db4-c8013407b432",
      "name": "下载语音"
    },
    {
      "parameters": {
        "fileSelector": "/data/files/07/axx.MP3",
        "options": {}
      },
      "type": "n8n-nodes-base.readWriteFile",
      "typeVersion": 1,
      "position": [
        2180,
        -340
      ],
      "id": "21e39e4e-f522-4d03-8ea0-ab7deec1ba8a",
      "name": "读取克隆音"
    },
    {
      "parameters": {
        "operation": "write",
        "fileName": "=/data/files/07/man_{{ ($index + 1).toString().padStart(3, '0') }}.flac",
        "options": {}
      },
      "type": "n8n-nodes-base.readWriteFile",
      "typeVersion": 1,
      "position": [
        3540,
        -360
      ],
      "id": "f71ede08-588a-4867-9654-5461009b3b5a",
      "name": "保存语音"
    },
    {
      "parameters": {
        "maxItems": 5
      },
      "type": "n8n-nodes-base.limit",
      "typeVersion": 1,
      "position": [
        3800,
        -580
      ],
      "id": "899a4e27-457e-4a1f-bb8e-a8e78dcedabc",
      "name": "Limit2"
    },
    {
      "parameters": {
        "amount": 80
      },
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [
        4700,
        -580
      ],
      "id": "cfaaa2a5-cf26-4acc-87ac-1533b48ce1c6",
      "name": "Wait2",
      "webhookId": "9d10cd5b-47df-4f29-a2b5-9c1c2f5ba222"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "de819fb6-bd6f-4a15-8c74-ed117f45dbff",
              "leftValue": "={{ $('数字人查询任务').item.json }}",
              "rightValue": "",
              "operator": {
                "type": "object",
                "operation": "notEmpty",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        5180,
        -580
      ],
      "id": "e19b1961-a4c6-4497-b32e-73fa96cbee8f",
      "name": "If1"
    },
    {
      "parameters": {},
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [
        5060,
        -400
      ],
      "id": "082a8cd3-3b4d-4048-be33-1ae6c38983a1",
      "name": "Wait3",
      "webhookId": "9d10cd5b-47df-4f29-a2b5-9c1c2f5ba222"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "932c4fea-d4de-49d6-b77d-de5c7260e037",
              "name": "workflow",
              "value": "={\n  \"1\": {\n    \"inputs\": {\n      \"text\": [\n        \"2\",\n        0\n      ],\n      \"model_version\": \"IndexTTS-1.5\",\n      \"language\": \"auto\",\n      \"speed\": 1,\n      \"seed\": {{ $json.seed }},\n      \"temperature\": 1,\n      \"top_p\": 0.8,\n      \"top_k\": 30,\n      \"repetition_penalty\": 10,\n      \"length_penalty\": 0,\n      \"num_beams\": 3,\n      \"max_mel_tokens\": 600,\n      \"sentence_split\": \"auto\",\n      \"reference_audio\": [\n        \"3\",\n        0\n      ]\n    },\n    \"class_type\": \"IndexTTSNode\",\n    \"_meta\": {\n      \"title\": \"Index TTS\"\n    }\n  },\n  \"2\": {\n    \"inputs\": {\n      \"text\": \"{{ $('Loop Over Items').item.json.man }}\"\n    },\n    \"class_type\": \"LayerUtility: TextBox\",\n    \"_meta\": {\n      \"title\": \"图层工具：文本框\"\n    }\n  },\n  \"3\": {\n    \"inputs\": {\n      \"audio\": \"{{ $('上传克隆音').item.json.name }}\",\n      \"audioUI\": \"\"\n    },\n    \"class_type\": \"LoadAudio\",\n    \"_meta\": {\n      \"title\": \"加载音频\"\n    }\n  },\n  \"4\": {\n    \"inputs\": {\n      \"filename_prefix\": \"ComfyUI\",\n      \"audioUI\": \"\",\n      \"audio\": [\n        \"1\",\n        0\n      ]\n    },\n    \"class_type\": \"SaveAudio\",\n    \"_meta\": {\n      \"title\": \"保存音频\"\n    }\n  }\n}",
              "type": "object"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        2720,
        -380
      ],
      "id": "a25d4885-2fb1-4c29-8cdd-9c8fbd52b605",
      "name": "Comfy_TTS工作流"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "932c4fea-d4de-49d6-b77d-de5c7260e037",
              "name": "workflow",
              "value": "={\n  \"5\": {\n    \"inputs\": {\n      \"audio\": \"{{ $('上传口播语音').item.json.name }}\",\n      \"audioUI\": \"\"\n    },\n    \"class_type\": \"LoadAudio\",\n    \"_meta\": {\n      \"title\": \"加载音频\"\n    }\n  },\n  \"6\": {\n    \"inputs\": {\n      \"video\": \"{{ $('上传形象视频').item.json.name }}\",\n      \"force_rate\": 30,\n      \"custom_width\": 0,\n      \"custom_height\": 0,\n      \"frame_load_cap\": 0,\n      \"skip_first_frames\": 0,\n      \"select_every_nth\": 1,\n      \"format\": \"AnimateDiff\"\n    },\n    \"class_type\": \"VHS_LoadVideo\",\n    \"_meta\": {\n      \"title\": \"加载视频\"\n    }\n  },\n  \"7\": {\n    \"inputs\": {\n      \"mode\": \"pingpong\",\n      \"stop_heygem\": false,\n      \"fps\": 30,\n      \"audio\": [\n        \"5\",\n        0\n      ],\n      \"video\": [\n        \"9\",\n        0\n      ]\n    },\n    \"class_type\": \"HeyGemRun\",\n    \"_meta\": {\n      \"title\": \"HeyGem AI Avatar\"\n    }\n  },\n  \"8\": {\n    \"inputs\": {\n      \"frame_rate\": 30,\n      \"loop_count\": 0,\n      \"filename_prefix\": \"AnimateDiff\",\n      \"format\": \"video/h264-mp4\",\n      \"pix_fmt\": \"yuv420p\",\n      \"crf\": 19,\n      \"save_metadata\": true,\n      \"trim_to_audio\": false,\n      \"pingpong\": false,\n      \"save_output\": true,\n      \"images\": [\n        \"7\",\n        0\n      ],\n      \"audio\": [\n        \"5\",\n        0\n      ]\n    },\n    \"class_type\": \"VHS_VideoCombine\",\n    \"_meta\": {\n      \"title\": \"合并为视频\"\n    }\n  },\n  \"9\": {\n    \"inputs\": {\n      \"aspect_ratio\": \"original\",\n      \"proportional_width\": 1,\n      \"proportional_height\": 1,\n      \"fit\": \"letterbox\",\n      \"method\": \"lanczos\",\n      \"round_to_multiple\": \"8\",\n      \"scale_to_side\": \"longest\",\n      \"scale_to_length\": 1280,\n      \"background_color\": \"#000000\",\n      \"image\": [\n        \"6\",\n        0\n      ]\n    },\n    \"class_type\": \"LayerUtility: ImageScaleByAspectRatio V2\",\n    \"_meta\": {\n      \"title\": \"按宽高比缩放_V2\"\n    }\n  }\n}",
              "type": "object"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        4580,
        -340
      ],
      "id": "d524a33d-8c3c-4ef7-8d16-7b68deabf66c",
      "name": "Comfy_heygem工作流"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "http://192.168.10.5:8188/upload/image",
        "sendBody": true,
        "contentType": "multipart-form-data",
        "bodyParameters": {
          "parameters": [
            {
              "parameterType": "formBinaryData",
              "name": "=image",
              "inputDataFieldName": "=data"
            },
            {
              "name": "overwrite",
              "value": "true"
            },
            {
              "name": "type",
              "value": "input"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        4020,
        -340
      ],
      "id": "1ddc2a71-86de-4157-9ff5-b2ffab7dffbf",
      "name": "上传口播语音"
    },
    {
      "parameters": {
        "fileSelector": "={{ $json.fileName }}",
        "options": {}
      },
      "type": "n8n-nodes-base.readWriteFile",
      "typeVersion": 1,
      "position": [
        4220,
        -560
      ],
      "id": "e8081696-3cdf-46f0-80aa-0993f2b707d1",
      "name": "读取口播语音"
    },
    {
      "parameters": {
        "fileSelector": "=/data/files/07/xx.mp4",
        "options": {}
      },
      "type": "n8n-nodes-base.readWriteFile",
      "typeVersion": 1,
      "position": [
        4200,
        -340
      ],
      "id": "77d505a0-e7b5-4d3e-831b-b0fb3f13cf1f",
      "name": "读取形象视频"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "http://192.168.10.5:8188/upload/image",
        "sendBody": true,
        "contentType": "multipart-form-data",
        "bodyParameters": {
          "parameters": [
            {
              "parameterType": "formBinaryData",
              "name": "=image",
              "inputDataFieldName": "=data"
            },
            {
              "name": "overwrite",
              "value": "true"
            },
            {
              "name": "type",
              "value": "input"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        4400,
        -340
      ],
      "id": "e3f9d382-02be-4520-bec8-488ce8d21b1d",
      "name": "上传形象视频"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "http://192.168.10.5:8188/prompt",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "prompt",
              "value": "={{ $json.workflow }}"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        4540,
        -580
      ],
      "id": "a38e6b62-b81b-4a2f-9be6-0fce829f9009",
      "name": "制作数字人"
    },
    {
      "parameters": {
        "url": "=http://192.168.10.5:8188/history/{{ $('任务ID1').item.json.prompt_id }}",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        5020,
        -580
      ],
      "id": "60f13c0d-3ed7-4894-a1b4-6b10321dc3fa",
      "name": "数字人查询任务"
    },
    {
      "parameters": {
        "options": {}
      },
      "type": "n8n-nodes-base.splitInBatches",
      "typeVersion": 3,
      "position": [
        3980,
        -580
      ],
      "id": "31c08a96-a908-4253-8fbb-ecfd8a38d0b9",
      "name": "Loop Over Items1"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "http://192.168.10.5:8188/prompt",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "prompt",
              "value": "={{ $json.workflow }}"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        2560,
        -580
      ],
      "id": "28daecd2-e768-4d1f-999f-f97d19c1c1aa",
      "name": "制作语音"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "d4d74de3-6b67-4fc5-99bc-fda31516599e",
              "name": "seed",
              "value": "={{Math.floor(Math.random() * 1000000) + 1 }}",
              "type": "number"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        2540,
        -380
      ],
      "id": "677d4311-4120-4558-acd6-4094fee97e30",
      "name": "seed"
    },
    {
      "parameters": {
        "url": "=http://192.168.10.5:8188/view?filename={{ $('数字人查询任务').item.json[$('制作数字人').item.json.prompt_id].outputs['8'].gifs[0].filename }}",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        5360,
        -600
      ],
      "id": "5b3b44c0-7b4b-431c-8216-16aa43fa5ab9",
      "name": "下载数字人"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "471991eb-c811-4be9-8803-bd6dfdf269b9",
              "name": "prompt_id",
              "value": "={{ $('制作语音').item.json.prompt_id }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        2960,
        -580
      ],
      "id": "9c7fe767-206f-419a-a22c-b6a32a21b954",
      "name": "任务ID"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "471991eb-c811-4be9-8803-bd6dfdf269b9",
              "name": "prompt_id",
              "value": "={{ $('制作数字人').item.json.prompt_id }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        4860,
        -580
      ],
      "id": "851344d5-ea36-482c-b3cb-040592643312",
      "name": "任务ID1"
    },
    {
      "parameters": {
        "operation": "write",
        "fileName": "=/data/files/07/man_{{ ($index + 1).toString().padStart(3, '0') }}.mp4",
        "options": {}
      },
      "type": "n8n-nodes-base.readWriteFile",
      "typeVersion": 1,
      "position": [
        5400,
        -380
      ],
      "id": "e1ce707e-2268-4ef0-b42a-952f070e3293",
      "name": "保存数字人"
    },
    {
      "parameters": {
        "fileSelector": "/data/files/07/text.txt",
        "options": {}
      },
      "type": "n8n-nodes-base.readWriteFile",
      "typeVersion": 1,
      "position": [
        360,
        120
      ],
      "id": "7b25b2e8-5c68-48ef-9de2-ed513760004f",
      "name": "文章上传"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "71cba3ef-86af-46e2-b416-d48a243683c1",
              "name": "1",
              "value": "={{ $json.output }}",
              "type": "array"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        1120,
        120
      ],
      "id": "c4087421-b0fc-45c1-8b81-3e3a69b85142",
      "name": "Edit Fields1"
    },
    {
      "parameters": {
        "fieldToSplitOut": "['1']",
        "options": {}
      },
      "type": "n8n-nodes-base.splitOut",
      "typeVersion": 1,
      "position": [
        1300,
        120
      ],
      "id": "d4aef4db-465d-4c7e-b872-3d6d4772cbc2",
      "name": "Split Out"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "717c07a9-2cb6-4411-be56-9dfeaf3e5542",
              "name": "man",
              "value": "={{ $json.man }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        1460,
        -260
      ],
      "id": "750c8b8d-461d-471b-a9f9-d71dc2dfdf6e",
      "name": "Edit Fields3"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "7a389389-af22-4a3a-8bfd-d9c19ed30360",
              "leftValue": "={{ $json.man }}",
              "rightValue": "",
              "operator": {
                "type": "string",
                "operation": "notEmpty",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.filter",
      "typeVersion": 2.2,
      "position": [
        1660,
        -260
      ],
      "id": "51c2aeab-b4d2-4bee-8375-0631b3a930b4",
      "name": "男人"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "7a389389-af22-4a3a-8bfd-d9c19ed30360",
              "leftValue": "={{ $json.women }}",
              "rightValue": "",
              "operator": {
                "type": "string",
                "operation": "notEmpty",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.filter",
      "typeVersion": 2.2,
      "position": [
        1660,
        320
      ],
      "id": "029b264b-c1d2-4d2f-84fc-9dd812a2f719",
      "name": "女人"
    },
    {
      "parameters": {},
      "type": "n8n-nodes-base.limit",
      "typeVersion": 1,
      "position": [
        2100,
        160
      ],
      "id": "424ccc57-d8a4-44e3-8d2e-a43555218187",
      "name": "Limit"
    },
    {
      "parameters": {
        "options": {}
      },
      "type": "n8n-nodes-base.splitInBatches",
      "typeVersion": 3,
      "position": [
        2300,
        160
      ],
      "id": "fb88f8ce-e5e5-46b0-bedc-ec08e492c5ca",
      "name": "Loop Over Items2"
    },
    {
      "parameters": {
        "url": "=http://192.168.10.5:8188/history/{{ $('任务ID2').item.json.prompt_id }}",
        "options": {
          "redirect": {
            "redirect": {}
          }
        }
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        3160,
        180
      ],
      "id": "a1c63ae8-b846-4914-8a2c-3d2eba814ae4",
      "name": "查询任务1",
      "alwaysOutputData": false
    },
    {
      "parameters": {
        "amount": 10
      },
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [
        2720,
        180
      ],
      "id": "c3820df1-4c92-42c3-ac46-1e86df7666b7",
      "name": "Wait4",
      "webhookId": "9d10cd5b-47df-4f29-a2b5-9c1c2f5ba222"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "loose",
            "version": 2
          },
          "conditions": [
            {
              "id": "de819fb6-bd6f-4a15-8c74-ed117f45dbff",
              "leftValue": "={{ $('查询任务1').item.json }}",
              "rightValue": "",
              "operator": {
                "type": "object",
                "operation": "notEmpty",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "looseTypeValidation": true,
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        3320,
        180
      ],
      "id": "40adf9c5-e587-47c9-9c25-e52c38a8992a",
      "name": "If2"
    },
    {
      "parameters": {
        "amount": 3
      },
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [
        3260,
        380
      ],
      "id": "87a60230-8661-425e-8f1f-c6766e7fe833",
      "name": "Wait5",
      "webhookId": "9d10cd5b-47df-4f29-a2b5-9c1c2f5ba222"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "http://192.168.10.5:8188/upload/image",
        "sendBody": true,
        "contentType": "multipart-form-data",
        "bodyParameters": {
          "parameters": [
            {
              "parameterType": "formBinaryData",
              "name": "=image",
              "inputDataFieldName": "=data"
            },
            {
              "name": "overwrite",
              "value": "true"
            },
            {
              "name": "type",
              "value": "input"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        2340,
        420
      ],
      "id": "b4b15ae8-7a5b-4340-8735-b9e34eda4e51",
      "name": "上传克隆音1"
    },
    {
      "parameters": {
        "url": "=http://192.168.10.5:8188/view?filename={{ $('查询任务1').item.json[$('制作语音1').item.json.prompt_id].outputs['4'].audio[0].filename }}",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        3520,
        180
      ],
      "id": "41b70797-1f63-4527-979a-49d2f3862417",
      "name": "下载语音1"
    },
    {
      "parameters": {
        "fileSelector": "/data/files/07/nv.MP3",
        "options": {}
      },
      "type": "n8n-nodes-base.readWriteFile",
      "typeVersion": 1,
      "position": [
        2160,
        420
      ],
      "id": "f21efb49-f2a0-4071-bcff-7e08b40da075",
      "name": "读取克隆音1"
    },
    {
      "parameters": {
        "operation": "write",
        "fileName": "=/data/files/07/women_{{ ($index + 1).toString().padStart(3, '0') }}.flac",
        "options": {}
      },
      "type": "n8n-nodes-base.readWriteFile",
      "typeVersion": 1,
      "position": [
        3520,
        400
      ],
      "id": "cd826195-4c61-455b-b4dc-eb65df13bb22",
      "name": "保存语音1"
    },
    {
      "parameters": {
        "maxItems": 5
      },
      "type": "n8n-nodes-base.limit",
      "typeVersion": 1,
      "position": [
        3780,
        180
      ],
      "id": "eb1efcd5-257f-4337-96b4-10133426255f",
      "name": "Limit3"
    },
    {
      "parameters": {
        "amount": 80
      },
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [
        4680,
        180
      ],
      "id": "3e4cbf30-dab1-4f14-b83a-0927e77d0081",
      "name": "Wait6",
      "webhookId": "9d10cd5b-47df-4f29-a2b5-9c1c2f5ba222"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "de819fb6-bd6f-4a15-8c74-ed117f45dbff",
              "leftValue": "={{ $('数字人查询任务1').item.json }}",
              "rightValue": "",
              "operator": {
                "type": "object",
                "operation": "notEmpty",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        5160,
        180
      ],
      "id": "12b2f752-da1b-42da-8e4a-d25a4a65687f",
      "name": "If3"
    },
    {
      "parameters": {},
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [
        5040,
        360
      ],
      "id": "5a048661-15e5-4712-a28b-7bba73020b6b",
      "name": "Wait7",
      "webhookId": "9d10cd5b-47df-4f29-a2b5-9c1c2f5ba222"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "932c4fea-d4de-49d6-b77d-de5c7260e037",
              "name": "workflow",
              "value": "={\n  \"1\": {\n    \"inputs\": {\n      \"text\": [\n        \"2\",\n        0\n      ],\n      \"model_version\": \"IndexTTS-1.5\",\n      \"language\": \"auto\",\n      \"speed\": 1,\n      \"seed\": {{ $json.seed }},\n      \"temperature\": 1,\n      \"top_p\": 0.8,\n      \"top_k\": 30,\n      \"repetition_penalty\": 10,\n      \"length_penalty\": 0,\n      \"num_beams\": 3,\n      \"max_mel_tokens\": 600,\n      \"sentence_split\": \"auto\",\n      \"reference_audio\": [\n        \"3\",\n        0\n      ]\n    },\n    \"class_type\": \"IndexTTSNode\",\n    \"_meta\": {\n      \"title\": \"Index TTS\"\n    }\n  },\n  \"2\": {\n    \"inputs\": {\n      \"text\": \"{{ $('Loop Over Items2').item.json.women }}\"\n    },\n    \"class_type\": \"LayerUtility: TextBox\",\n    \"_meta\": {\n      \"title\": \"图层工具：文本框\"\n    }\n  },\n  \"3\": {\n    \"inputs\": {\n      \"audio\": \"{{ $('上传克隆音1').item.json.name }}\",\n      \"audioUI\": \"\"\n    },\n    \"class_type\": \"LoadAudio\",\n    \"_meta\": {\n      \"title\": \"加载音频\"\n    }\n  },\n  \"4\": {\n    \"inputs\": {\n      \"filename_prefix\": \"ComfyUI\",\n      \"audioUI\": \"\",\n      \"audio\": [\n        \"1\",\n        0\n      ]\n    },\n    \"class_type\": \"SaveAudio\",\n    \"_meta\": {\n      \"title\": \"保存音频\"\n    }\n  }\n}",
              "type": "object"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        2700,
        380
      ],
      "id": "ad292095-6845-4640-9116-81c887b3d305",
      "name": "Comfy_TTS工作流1"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "932c4fea-d4de-49d6-b77d-de5c7260e037",
              "name": "workflow",
              "value": "={\n  \"5\": {\n    \"inputs\": {\n      \"audio\": \"{{ $('上传口播语音1').item.json.name }}\",\n      \"audioUI\": \"\"\n    },\n    \"class_type\": \"LoadAudio\",\n    \"_meta\": {\n      \"title\": \"加载音频\"\n    }\n  },\n  \"6\": {\n    \"inputs\": {\n      \"video\": \"{{ $('上传形象视频1').item.json.name }}\",\n      \"force_rate\": 30,\n      \"custom_width\": 0,\n      \"custom_height\": 0,\n      \"frame_load_cap\": 0,\n      \"skip_first_frames\": 0,\n      \"select_every_nth\": 1,\n      \"format\": \"AnimateDiff\"\n    },\n    \"class_type\": \"VHS_LoadVideo\",\n    \"_meta\": {\n      \"title\": \"加载视频\"\n    }\n  },\n  \"7\": {\n    \"inputs\": {\n      \"mode\": \"pingpong\",\n      \"stop_heygem\": false,\n      \"fps\": 30,\n      \"audio\": [\n        \"5\",\n        0\n      ],\n      \"video\": [\n        \"9\",\n        0\n      ]\n    },\n    \"class_type\": \"HeyGemRun\",\n    \"_meta\": {\n      \"title\": \"HeyGem AI Avatar\"\n    }\n  },\n  \"8\": {\n    \"inputs\": {\n      \"frame_rate\": 30,\n      \"loop_count\": 0,\n      \"filename_prefix\": \"AnimateDiff\",\n      \"format\": \"video/h264-mp4\",\n      \"pix_fmt\": \"yuv420p\",\n      \"crf\": 19,\n      \"save_metadata\": true,\n      \"trim_to_audio\": false,\n      \"pingpong\": false,\n      \"save_output\": true,\n      \"images\": [\n        \"7\",\n        0\n      ],\n      \"audio\": [\n        \"5\",\n        0\n      ]\n    },\n    \"class_type\": \"VHS_VideoCombine\",\n    \"_meta\": {\n      \"title\": \"合并为视频\"\n    }\n  },\n  \"9\": {\n    \"inputs\": {\n      \"aspect_ratio\": \"original\",\n      \"proportional_width\": 1,\n      \"proportional_height\": 1,\n      \"fit\": \"letterbox\",\n      \"method\": \"lanczos\",\n      \"round_to_multiple\": \"8\",\n      \"scale_to_side\": \"longest\",\n      \"scale_to_length\": 1280,\n      \"background_color\": \"#000000\",\n      \"image\": [\n        \"6\",\n        0\n      ]\n    },\n    \"class_type\": \"LayerUtility: ImageScaleByAspectRatio V2\",\n    \"_meta\": {\n      \"title\": \"按宽高比缩放_V2\"\n    }\n  }\n}",
              "type": "object"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        4560,
        420
      ],
      "id": "77cef8b8-d5de-489b-9f90-f40ae8331b25",
      "name": "Comfy_heygem工作流1"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "http://192.168.10.5:8188/upload/image",
        "sendBody": true,
        "contentType": "multipart-form-data",
        "bodyParameters": {
          "parameters": [
            {
              "parameterType": "formBinaryData",
              "name": "=image",
              "inputDataFieldName": "=data"
            },
            {
              "name": "overwrite",
              "value": "true"
            },
            {
              "name": "type",
              "value": "input"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        4000,
        420
      ],
      "id": "7e0bd751-29f2-413a-8106-a501a1fda6c5",
      "name": "上传口播语音1"
    },
    {
      "parameters": {
        "fileSelector": "={{ $json.fileName }}",
        "options": {}
      },
      "type": "n8n-nodes-base.readWriteFile",
      "typeVersion": 1,
      "position": [
        4200,
        200
      ],
      "id": "2eca1c23-ac38-4c7f-8157-65f547fe1ef4",
      "name": "读取口播语音1"
    },
    {
      "parameters": {
        "fileSelector": "=/data/files/07/xx.mp4",
        "options": {}
      },
      "type": "n8n-nodes-base.readWriteFile",
      "typeVersion": 1,
      "position": [
        4180,
        420
      ],
      "id": "084751a9-be51-416c-9e61-a6e7ca85b747",
      "name": "读取形象视频1"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "http://192.168.10.5:8188/upload/image",
        "sendBody": true,
        "contentType": "multipart-form-data",
        "bodyParameters": {
          "parameters": [
            {
              "parameterType": "formBinaryData",
              "name": "=image",
              "inputDataFieldName": "=data"
            },
            {
              "name": "overwrite",
              "value": "true"
            },
            {
              "name": "type",
              "value": "input"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        4380,
        420
      ],
      "id": "2b8bdb4d-63a2-4b4f-8ba0-ab3309c2a936",
      "name": "上传形象视频1"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "http://192.168.10.5:8188/prompt",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "prompt",
              "value": "={{ $json.workflow }}"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        4520,
        180
      ],
      "id": "c7f030cf-9253-4794-8692-4716d896fa3c",
      "name": "制作数字人1"
    },
    {
      "parameters": {
        "url": "=http://192.168.10.5:8188/history/{{ $('任务ID3').item.json.prompt_id }}",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        5000,
        180
      ],
      "id": "44d74f9f-da5e-48ac-bfce-6e7f8a5a63b3",
      "name": "数字人查询任务1"
    },
    {
      "parameters": {
        "options": {}
      },
      "type": "n8n-nodes-base.splitInBatches",
      "typeVersion": 3,
      "position": [
        3960,
        180
      ],
      "id": "bd2d4b9b-765c-4960-9f91-27986c85bb76",
      "name": "Loop Over Items3"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "http://192.168.10.5:8188/prompt",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "prompt",
              "value": "={{ $json.workflow }}"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        2540,
        180
      ],
      "id": "f855d939-de7d-47cd-b2f4-59e797e59f81",
      "name": "制作语音1"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "d4d74de3-6b67-4fc5-99bc-fda31516599e",
              "name": "seed",
              "value": "={{Math.floor(Math.random() * 1000000) + 1 }}",
              "type": "number"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        2520,
        380
      ],
      "id": "80bfdf2e-46a9-4cc8-ae83-602ef8168ac6",
      "name": "seed1"
    },
    {
      "parameters": {
        "url": "=http://192.168.10.5:8188/view?filename={{ $('数字人查询任务1').item.json[$('制作数字人1').item.json.prompt_id].outputs['8'].gifs[0].filename }}",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        5340,
        160
      ],
      "id": "5ab9d082-9f39-401f-8b54-e37692e8e6ba",
      "name": "下载数字人1"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "471991eb-c811-4be9-8803-bd6dfdf269b9",
              "name": "prompt_id",
              "value": "={{ $('制作语音1').item.json.prompt_id }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        2940,
        180
      ],
      "id": "f5516010-67fc-4924-a88f-ba662cec998a",
      "name": "任务ID2"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "471991eb-c811-4be9-8803-bd6dfdf269b9",
              "name": "prompt_id",
              "value": "={{ $('制作数字人1').item.json.prompt_id }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        4840,
        180
      ],
      "id": "42d662ff-512e-47b5-b0b0-6380c32d1e35",
      "name": "任务ID3"
    },
    {
      "parameters": {
        "operation": "write",
        "fileName": "=/data/files/07/women_{{ ($index + 1).toString().padStart(3, '0') }}.mp4",
        "options": {}
      },
      "type": "n8n-nodes-base.readWriteFile",
      "typeVersion": 1,
      "position": [
        5380,
        380
      ],
      "id": "e30e717e-f8cc-427d-a772-9d9126f1e34b",
      "name": "保存数字人1"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "717c07a9-2cb6-4411-be56-9dfeaf3e5542",
              "name": "women",
              "value": "={{ $json.woman }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        1480,
        320
      ],
      "id": "b345c590-a85b-48fb-bca5-efad73e97197",
      "name": "Edit Fields"
    }
  ],
  "pinData": {
    "AI Agent": [
      {
        "json": {
          "output": "[\n  {\n    \"woman\": \"嘿，朋友们！今天来给大家讲讲 MCP，这可是个在 AI 领域越来越重要的玩意儿。MCP，全称 Model Context Protocol，也就是模型上下文协议，是由 Anthropic 在 二零二四 年推出的。它就好比 AI 世界里的 “USB-C 接口”，作用是把 AI 模型和各种外部数据源、工具连接起来，让它们能顺畅交流。这么一来，就打破了数据之间的隔阂，实现了一种 “即插即用” 的智能交互体验。​\"\n  },\n  {\n    \"man\": \"咱先从日常工作场景来理解 MCP 。比如说，你在一家电商公司做运营，每天都要处理大量商品文档，还得频繁查询库存数据。以前，可能得在不同系统间来回切换，操作繁琐。但要是用上支持 MCP 的智能体，它就能像个贴心小助手，通过 MCP 协议，轻松调用文档处理工具整理商品文档，同时连接库存数据库查询数据，大大提高工作效率。再比如做市场推广的朋友，想了解最新行业资讯，智能体借助 MCP，能快速调用搜索引擎，获取实时信息，给出分析报告，是不是超方便？​\"\n  },\n  {\n    \"woman\": \"接下来讲讲 N八N 和 MCP 。N八N 是一个超棒的工作流自动化平台，而 MCP 能让 N八N 如虎添翼。n八n - nodes - mcp 这个开源的 n八n 社区节点，就允许我们在 n八n 工作流里和 MCP 服务器互动。要在 n八n 中使用 MCP，得先安装 n八n ，安装好后，用命令 “n八n install n八n - nodes - mcp” 安装这个节点。安装完，就能在 n八n 的节点库里找到 MCP Client 节点了。使用前，得先配置 MCP 服务器，像用 “npx my - mcp - server” 这样的命令。配置好凭据，就能在工作流里大显身手啦。比如创建工作流，添加 MCP Client 节点，执行 “List Tools” 操作查看有哪些可用工具，再添加节点，选 “Execute Tool” 操作，设置好参数，像搜索最新 AI 新闻，设置 “{ \\\"query\\\": \\\"latest AI news\\\" }”，就能让 N八N 借助 MCP 完成各种复杂任务，实现工作流的自动化。​\"\n  },\n  {\n    \"man\": \"再说说 MCP 和 ComfyUI 的关系 。ComfyUI 是很厉害的图像生成工具，MCP 能把它和大模型连接起来。比如说，通过 MCP 服务器调用 ComfyUI 的 API ，用户在客户端输入提示词，就能控制 ComfyUI 生成高质量图像。像自媒体创作者，想通过大模型让 ComfyUI 获取本地、网络等数据源的数据，生成图像后，再传输到本地存储或者自动发布到社交媒体平台，MCP 就能轻松实现这个流程，打破数据孤岛，让不同工具协同工作。​\"\n  },\n  {\n    \"woman\": \"总之，MCP 在我们日常工作和各种工具调用中，有着巨大潜力，能让工作变得更高效，让不同工具配合得更默契。大家不妨动手试试，感受下 MCP 带来的便捷。\"\n  }\n]"
        }
      }
    ]
  },
  "connections": {
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "文章上传",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "数据转换": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "DeepSeek": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Edit Fields1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Limit1": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [
          {
            "node": "Limit2",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "读取克隆音",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "查询任务": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "任务ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If": {
      "main": [
        [
          {
            "node": "下载语音",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait1": {
      "main": [
        [
          {
            "node": "查询任务",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "上传克隆音": {
      "main": [
        [
          {
            "node": "seed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "下载语音": {
      "main": [
        [
          {
            "node": "保存语音",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "读取克隆音": {
      "main": [
        [
          {
            "node": "上传克隆音",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "保存语音": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait2": {
      "main": [
        [
          {
            "node": "任务ID1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If1": {
      "main": [
        [
          {
            "node": "下载数字人",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait3": {
      "main": [
        [
          {
            "node": "数字人查询任务",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Limit2": {
      "main": [
        [
          {
            "node": "Loop Over Items1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Comfy_TTS工作流": {
      "main": [
        [
          {
            "node": "制作语音",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Comfy_heygem工作流": {
      "main": [
        [
          {
            "node": "制作数字人",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "上传口播语音": {
      "main": [
        [
          {
            "node": "读取形象视频",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "读取口播语音": {
      "main": [
        [
          {
            "node": "上传口播语音",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "读取形象视频": {
      "main": [
        [
          {
            "node": "上传形象视频",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "上传形象视频": {
      "main": [
        [
          {
            "node": "Comfy_heygem工作流",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "制作数字人": {
      "main": [
        [
          {
            "node": "Wait2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "数字人查询任务": {
      "main": [
        [
          {
            "node": "If1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items1": {
      "main": [
        [],
        [
          {
            "node": "读取口播语音",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "制作语音": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "seed": {
      "main": [
        [
          {
            "node": "Comfy_TTS工作流",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "下载数字人": {
      "main": [
        [
          {
            "node": "保存数字人",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "任务ID": {
      "main": [
        [
          {
            "node": "查询任务",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "任务ID1": {
      "main": [
        [
          {
            "node": "数字人查询任务",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "保存数字人": {
      "main": [
        [
          {
            "node": "Loop Over Items1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "文章上传": {
      "main": [
        [
          {
            "node": "数据转换",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields1": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Edit Fields3",
            "type": "main",
            "index": 0
          },
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields3": {
      "main": [
        [
          {
            "node": "男人",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "男人": {
      "main": [
        [
          {
            "node": "Limit1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "女人": {
      "main": [
        [
          {
            "node": "Limit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Limit": {
      "main": [
        [
          {
            "node": "Loop Over Items2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items2": {
      "main": [
        [
          {
            "node": "Limit3",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "读取克隆音1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "查询任务1": {
      "main": [
        [
          {
            "node": "If2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait4": {
      "main": [
        [
          {
            "node": "任务ID2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If2": {
      "main": [
        [
          {
            "node": "下载语音1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait5": {
      "main": [
        [
          {
            "node": "查询任务1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "上传克隆音1": {
      "main": [
        [
          {
            "node": "seed1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "下载语音1": {
      "main": [
        [
          {
            "node": "保存语音1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "读取克隆音1": {
      "main": [
        [
          {
            "node": "上传克隆音1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "保存语音1": {
      "main": [
        [
          {
            "node": "Loop Over Items2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Limit3": {
      "main": [
        [
          {
            "node": "Loop Over Items3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait6": {
      "main": [
        [
          {
            "node": "任务ID3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If3": {
      "main": [
        [
          {
            "node": "下载数字人1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait7",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait7": {
      "main": [
        [
          {
            "node": "数字人查询任务1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Comfy_TTS工作流1": {
      "main": [
        [
          {
            "node": "制作语音1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Comfy_heygem工作流1": {
      "main": [
        [
          {
            "node": "制作数字人1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "上传口播语音1": {
      "main": [
        [
          {
            "node": "读取形象视频1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "读取口播语音1": {
      "main": [
        [
          {
            "node": "上传口播语音1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "读取形象视频1": {
      "main": [
        [
          {
            "node": "上传形象视频1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "上传形象视频1": {
      "main": [
        [
          {
            "node": "Comfy_heygem工作流1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "制作数字人1": {
      "main": [
        [
          {
            "node": "Wait6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "数字人查询任务1": {
      "main": [
        [
          {
            "node": "If3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items3": {
      "main": [
        [],
        [
          {
            "node": "读取口播语音1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "制作语音1": {
      "main": [
        [
          {
            "node": "Wait4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "seed1": {
      "main": [
        [
          {
            "node": "Comfy_TTS工作流1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "下载数字人1": {
      "main": [
        [
          {
            "node": "保存数字人1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "任务ID2": {
      "main": [
        [
          {
            "node": "查询任务1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "任务ID3": {
      "main": [
        [
          {
            "node": "数字人查询任务1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "保存数字人1": {
      "main": [
        [
          {
            "node": "Loop Over Items3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "女人",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "852fe64f-49f5-4669-add6-c9e6a32084a8",
  "meta": {
    "instanceId": "87e8c461afa776bf2948885324374126ce83226bb93a05e2b71c8a2576c19286"
  },
  "id": "4ucvT4H8KngxYBRs",
  "tags": []
}