{
  "name": "My workflow",
  "nodes": [
    {
      "parameters": {
        "promptType": "define",
        "text": "=生成新闻口播搞",
        "hasOutputParser": true,
        "options": {
          "systemMessage": "=从通过关于{{ $json['主题'] }}的新闻内容得到的搜索结果中，选出从{{$now.minus(5,'day').format('yyyy-MM-dd')}}到{{$now.format('yyyy-MM-dd')}}热度最高最新的五篇文章，记录新闻的【新闻时间】，总结成中文300字左右的【口播稿】，如果【口播稿】中包含有数字需要改成汉字（比如，2025需改成二零二五，3需改成三，等等），并给这个口播稿取一个【标题】， 并按【Index】顺序记录。\n\n输出JSON格式：\n{\n    \"Index\": \"Index\",    \n    \"Topic\": \"标题\",\n    \"Transcript\": \"段落\",\n    \"Date\": \"新闻时间\"\n},\n{\n    \"Index\": \"Index\",    \n    \"Topic\": \"标题\",\n    \"Transcript\": \"段落\",\n    \"Date\": \"新闻时间\"\n},\n{\n    \"Index\": \"Index\",    \n    \"Topic\": \"标题\",\n    \"Transcript\": \"段落\",\n    \"Date\": \"新闻时间\"\n},\n{\n    \"Index\": \"Index\",    \n    \"Topic\": \"标题\",\n    \"Transcript\": \"段落\",\n    \"Date\": \"新闻时间\"\n},\n{\n    \"Index\": \"Index\",    \n    \"Topic\": \"标题\",\n    \"Transcript\": \"段落\",\n    \"Date\": \"新闻时间\"\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": {
        "fileSelector": "/data/files/07/news.xlsx",
        "options": {}
      },
      "type": "n8n-nodes-base.readWriteFile",
      "typeVersion": 1,
      "position": [
        320,
        120
      ],
      "id": "7b25b2e8-5c68-48ef-9de2-ed513760004f",
      "name": "主题表"
    },
    {
      "parameters": {
        "operation": "xlsx",
        "options": {}
      },
      "type": "n8n-nodes-base.extractFromFile",
      "typeVersion": 1,
      "position": [
        480,
        120
      ],
      "id": "bc666405-adf4-459c-b01f-aee2614bf27f",
      "name": "数据转换"
    },
    {
      "parameters": {
        "jsonSchemaExample": "[{\n    \"Index\": \"Index\",    \n    \"Topic\": \"标题\",\n    \"Transcript\": \"段落\",\n    \"Date\": \"新闻时间\"\n},\n{\n    \"Index\": \"Index\",    \n    \"Topic\": \"标题\",\n    \"Transcript\": \"段落\",\n    \"Date\": \"新闻时间\"\n},\n{\n    \"Index\": \"Index\",    \n    \"Topic\": \"标题\",\n    \"Transcript\": \"段落\",\n    \"Date\": \"新闻时间\"\n},\n{\n    \"Index\": \"Index\",    \n    \"Topic\": \"标题\",\n    \"Transcript\": \"段落\",\n    \"Date\": \"新闻时间\"\n},\n{\n    \"Index\": \"Index\",    \n    \"Topic\": \"标题\",\n    \"Transcript\": \"段落\",\n    \"Date\": \"新闻时间\"\n}]"
      },
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "typeVersion": 1.3,
      "position": [
        980,
        360
      ],
      "id": "028f7333-e905-407d-ad03-f50d99307b0a",
      "name": "Structured Output Parser"
    },
    {
      "parameters": {},
      "type": "n8n-nodes-base.limit",
      "typeVersion": 1,
      "position": [
        640,
        120
      ],
      "id": "e1127015-4a16-4c1e-8437-7f70f3800103",
      "name": "Limit"
    },
    {
      "parameters": {
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatDeepSeek",
      "typeVersion": 1,
      "position": [
        700,
        360
      ],
      "id": "66abc8bb-f549-4e51-9735-3dd842edb2a9",
      "name": "DeepSeek",
      "credentials": {
        "deepSeekApi": {
          "id": "yC9A4AQzve1eorS4",
          "name": "DeepSeek account"
        }
      }
    },
    {
      "parameters": {
        "maxItems": 5
      },
      "type": "n8n-nodes-base.limit",
      "typeVersion": 1,
      "position": [
        160,
        620
      ],
      "id": "d9efbcb3-7dd7-4294-8fa3-040ecb1eeafe",
      "name": "Limit1"
    },
    {
      "parameters": {
        "options": {}
      },
      "type": "n8n-nodes-base.splitInBatches",
      "typeVersion": 3,
      "position": [
        360,
        620
      ],
      "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": {
          "redirect": {
            "redirect": {}
          }
        }
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        1220,
        640
      ],
      "id": "de89cfda-a83a-4a4c-b54c-ac5981bcb8ec",
      "name": "查询任务",
      "alwaysOutputData": false
    },
    {
      "parameters": {
        "amount": 10
      },
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [
        780,
        640
      ],
      "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": [
        1380,
        640
      ],
      "id": "ec2232e9-fdb5-401e-a334-fc704f32b674",
      "name": "If"
    },
    {
      "parameters": {
        "amount": 3
      },
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [
        1320,
        840
      ],
      "id": "0a5044cf-0d8f-4fc3-838b-1bece83c0b54",
      "name": "Wait1",
      "webhookId": "9d10cd5b-47df-4f29-a2b5-9c1c2f5ba222"
    },
    {
      "parameters": {
        "content": "## 新闻搜索和LLM改写口播及整理数据",
        "height": 480,
        "width": 1180
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        80,
        40
      ],
      "id": "df9a74a0-99fb-4700-9b2a-f3ae02ebce2e",
      "name": "Sticky Note"
    },
    {
      "parameters": {
        "content": "## ComfyUI声音克隆TTS",
        "height": 500,
        "width": 1680,
        "color": 5
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        80,
        560
      ],
      "id": "75188dd0-802d-4700-9bef-615518a534f9",
      "name": "Sticky Note1"
    },
    {
      "parameters": {
        "content": "## ComfyUI数字人Heygem制作",
        "height": 520,
        "width": 1860,
        "color": 3
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        60,
        1100
      ],
      "id": "b2ecad09-8a7b-4781-9062-0d36a5aef409",
      "name": "Sticky Note2"
    },
    {
      "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": [
        400,
        880
      ],
      "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": [
        1580,
        640
      ],
      "id": "faeb353a-15eb-4486-8db4-c8013407b432",
      "name": "下载语音"
    },
    {
      "parameters": {
        "toolDescription": "Searching for news on the Internet",
        "method": "POST",
        "url": "https://qianfan.baidubce.com/v2/ai_search/chat/completions",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Content-Type",
              "value": "application/json"
            },
            {
              "name": "Authorization",
              "value": "Bearer "
            },
            {
              "name": "HOST",
              "value": "qianfan.baidubce.com"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n    \"messages\": [\n        {\n            \"content\": \"{{ $json['主题'] }}\",\n            \"role\": \"user\"\n        }\n    ],\n    \"search\": true,\n    \"search_source\": \"baidu_search_v2\",\n   \n    \"time_range\": [\n    {{Date.now() - 7 * 24 * 60 * 60 * 1000}}, \n    {{Date.now()}} \n  ],\n\n    \"enable_corner_markers\": true,\n\"resource_type_filter\": [{\"type\": \"web\",\"top_k\": 15}]\n   \n}",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequestTool",
      "typeVersion": 4.2,
      "position": [
        840,
        360
      ],
      "id": "fa9ac530-14fe-435a-87f2-3ded5772dcb7",
      "name": "baidu_tools"
    },
    {
      "parameters": {
        "fieldToSplitOut": "output",
        "options": {}
      },
      "type": "n8n-nodes-base.splitOut",
      "typeVersion": 1,
      "position": [
        1100,
        120
      ],
      "id": "e37a1e3a-f0ad-40d3-83c6-94651e241cca",
      "name": "新闻分组"
    },
    {
      "parameters": {
        "fileSelector": "/data/files/07/axx.MP3",
        "options": {}
      },
      "type": "n8n-nodes-base.readWriteFile",
      "typeVersion": 1,
      "position": [
        220,
        880
      ],
      "id": "21e39e4e-f522-4d03-8ea0-ab7deec1ba8a",
      "name": "读取克隆音"
    },
    {
      "parameters": {
        "operation": "write",
        "fileName": "=/data/files/07/{{ $('Loop Over Items').item.json.Index }}.flac",
        "options": {}
      },
      "type": "n8n-nodes-base.readWriteFile",
      "typeVersion": 1,
      "position": [
        1580,
        840
      ],
      "id": "f71ede08-588a-4867-9654-5461009b3b5a",
      "name": "保存语音"
    },
    {
      "parameters": {
        "maxItems": 5
      },
      "type": "n8n-nodes-base.limit",
      "typeVersion": 1,
      "position": [
        160,
        1180
      ],
      "id": "899a4e27-457e-4a1f-bb8e-a8e78dcedabc",
      "name": "Limit2"
    },
    {
      "parameters": {
        "amount": 80
      },
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [
        1060,
        1180
      ],
      "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": [
        1540,
        1180
      ],
      "id": "e19b1961-a4c6-4497-b32e-73fa96cbee8f",
      "name": "If1"
    },
    {
      "parameters": {},
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [
        1400,
        1360
      ],
      "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.Transcript }}\"\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": [
        760,
        840
      ],
      "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": [
        920,
        1420
      ],
      "id": "d524a33d-8c3c-4ef7-8d16-7b68deabf66c",
      "name": "Comfy_heygem工作流"
    },
    {
      "parameters": {
        "operation": "write",
        "fileName": "=/data/files/07/news01.xlsx",
        "options": {}
      },
      "type": "n8n-nodes-base.readWriteFile",
      "typeVersion": 1,
      "position": [
        1500,
        120
      ],
      "id": "612be7ea-42cb-4713-adba-8306315c0e6f",
      "name": "保存新闻EXCEL"
    },
    {
      "parameters": {
        "operation": "xlsx",
        "options": {}
      },
      "type": "n8n-nodes-base.convertToFile",
      "typeVersion": 1.1,
      "position": [
        1320,
        120
      ],
      "id": "a9ebe5ba-e51f-4e73-b36e-f8c1ab4602fe",
      "name": "数据转换1"
    },
    {
      "parameters": {
        "content": "## 保存新闻EXCEL文档",
        "height": 260,
        "width": 480,
        "color": 4
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        1280,
        40
      ],
      "id": "ec1346a8-f38a-4087-986c-cca312c831a0",
      "name": "Sticky Note3"
    },
    {
      "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": [
        360,
        1420
      ],
      "id": "1ddc2a71-86de-4157-9ff5-b2ffab7dffbf",
      "name": "上传口播语音"
    },
    {
      "parameters": {
        "fileSelector": "={{ $json.fileName }}",
        "options": {}
      },
      "type": "n8n-nodes-base.readWriteFile",
      "typeVersion": 1,
      "position": [
        560,
        1200
      ],
      "id": "e8081696-3cdf-46f0-80aa-0993f2b707d1",
      "name": "读取口播语音"
    },
    {
      "parameters": {
        "fileSelector": "=/data/files/07/xx.mp4",
        "options": {}
      },
      "type": "n8n-nodes-base.readWriteFile",
      "typeVersion": 1,
      "position": [
        540,
        1420
      ],
      "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": [
        740,
        1420
      ],
      "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": [
        900,
        1180
      ],
      "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": [
        1380,
        1180
      ],
      "id": "60f13c0d-3ed7-4894-a1b4-6b10321dc3fa",
      "name": "数字人查询任务"
    },
    {
      "parameters": {
        "options": {}
      },
      "type": "n8n-nodes-base.splitInBatches",
      "typeVersion": 3,
      "position": [
        340,
        1180
      ],
      "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": [
        600,
        640
      ],
      "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": [
        580,
        840
      ],
      "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": [
        1720,
        1160
      ],
      "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": [
        1000,
        640
      ],
      "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": [
        1220,
        1180
      ],
      "id": "851344d5-ea36-482c-b3cb-040592643312",
      "name": "任务ID1"
    },
    {
      "parameters": {
        "operation": "write",
        "fileName": "=/data/files/07/{{ $('Limit1').item.json.Index }}.mp4",
        "options": {}
      },
      "type": "n8n-nodes-base.readWriteFile",
      "typeVersion": 1,
      "position": [
        1740,
        1380
      ],
      "id": "e1ce707e-2268-4ef0-b42a-952f070e3293",
      "name": "保存数字人"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "12439f43-4060-404f-8c5d-1c83461a397f",
              "name": "video",
              "value": "={{ $json.fileName }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        140,
        1740
      ],
      "id": "c8bfaa08-4f44-4c86-988f-1042dbee7065",
      "name": "Edit Fields"
    },
    {
      "parameters": {
        "fieldsToAggregate": {
          "fieldToAggregate": [
            {
              "fieldToAggregate": "video"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.aggregate",
      "typeVersion": 1,
      "position": [
        300,
        1740
      ],
      "id": "e183f2f0-5089-461f-80b0-6cb01eb1f1c2",
      "name": "Aggregate"
    },
    {
      "parameters": {
        "operation": "toText",
        "sourceProperty": "video",
        "options": {}
      },
      "type": "n8n-nodes-base.convertToFile",
      "typeVersion": 1.1,
      "position": [
        620,
        1740
      ],
      "id": "fcf7d437-47e7-470a-91b1-8bf0ead67e77",
      "name": "Convert to File"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "fafe3c05-7aa4-4847-953b-2bdb931da136",
              "name": "video",
              "value": "={{ $json.video.map(item => `file '${item}`).join('\\n') }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        460,
        1740
      ],
      "id": "64b36340-9510-47df-972a-23049ae6ff3f",
      "name": "Edit Fields6"
    },
    {
      "parameters": {
        "operation": "write",
        "fileName": "/data/files/07/video.txt",
        "options": {}
      },
      "type": "n8n-nodes-base.readWriteFile",
      "typeVersion": 1,
      "position": [
        800,
        1740
      ],
      "id": "43c14921-90e7-4c48-ae93-51a438da8e42",
      "name": "Read/Write Files from Disk"
    },
    {
      "parameters": {
        "command": "=ffmpeg -f concat -safe 0 -i {{ $json.fileName }} -c copy /data/files/new.mp4"
      },
      "type": "n8n-nodes-base.executeCommand",
      "typeVersion": 1,
      "position": [
        980,
        1740
      ],
      "id": "bd34d139-9452-401e-8517-30059fd3651e",
      "name": "Execute Command"
    },
    {
      "parameters": {
        "content": "## 视频剪辑合成",
        "height": 280,
        "width": 1120,
        "color": 6
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        60,
        1660
      ],
      "id": "81e6ac42-6ab6-4ba4-8743-5cbc445350cc",
      "name": "Sticky Note4"
    }
  ],
  "pinData": {
    "AI Agent": [
      {
        "json": {
          "output": [
            {
              "Index": "1",
              "Topic": "二零二五年中国创新影像大赛启动",
              "Transcript": "二零二五年七月二日，中国创新影像大赛在四川成都正式启动。本次大赛由中国电影电视技术学会等五家权威机构联合主办，旨在打造创新驱动的影像产业生态，吸引多元创作力量参与。",
              "Date": "2025-07-02"
            },
            {
              "Index": "2",
              "Topic": "AIGC与元宇宙融合论坛在京举办",
              "Transcript": "二零二五年七月四日，北京举办了一场AIGC与元宇宙融合论坛。论坛上，网易、阿里巴巴等企业展示了最新成果，探讨了AIGC技术在降低内容创作门槛和提升个性化服务方面的核心价值。",
              "Date": "2025-07-04"
            },
            {
              "Index": "3",
              "Topic": "上合电影节聚焦AI电影制作",
              "Transcript": "二零二五年七月六日，上合组织国家电影节在重庆永川举行，主题为“科技光影·上合风采”。展览中，AI技术成为主角，展示了从虚拟拍摄到AI影像处理的前沿成果，吸引了众多参观者。",
              "Date": "2025-07-06"
            },
            {
              "Index": "4",
              "Topic": "第十届中国数据新闻大赛启动",
              "Transcript": "二零二五年七月六日，第十届中国数据新闻大赛暨首届AIGC应用大赛启动。大赛由北师香港浸会大学承办，旨在推动媒体融合发展，培养高质量复合型人才。",
              "Date": "2025-07-06"
            },
            {
              "Index": "5",
              "Topic": "AIGC照见创意与信任",
              "Transcript": "二零二五年七月六日，伦敦大学学院学生Echo Zhang在全球名校“Z世代”青年连线活动中指出，AIGC不仅是技术革命，更是一面照见人类创意与价值的镜子，呼吁从人文视角引导技术发展。",
              "Date": "2025-07-06"
            }
          ]
        }
      }
    ]
  },
  "connections": {
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "主题表",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "主题表": {
      "main": [
        [
          {
            "node": "数据转换",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "数据转换": {
      "main": [
        [
          {
            "node": "Limit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Limit": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "DeepSeek": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "新闻分组",
            "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
          }
        ]
      ]
    },
    "baidu_tools": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "新闻分组": {
      "main": [
        [
          {
            "node": "数据转换1",
            "type": "main",
            "index": 0
          },
          {
            "node": "Limit1",
            "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
          }
        ]
      ]
    },
    "数据转换1": {
      "main": [
        [
          {
            "node": "保存新闻EXCEL",
            "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": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "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
          }
        ]
      ]
    },
    "Aggregate": {
      "main": [
        [
          {
            "node": "Edit Fields6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields6": {
      "main": [
        [
          {
            "node": "Convert to File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert to File": {
      "main": [
        [
          {
            "node": "Read/Write Files from Disk",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read/Write Files from Disk": {
      "main": [
        [
          {
            "node": "Execute Command",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "cf9ec5ad-4873-4340-abc9-914c76540db3",
  "meta": {
    "instanceId": "87e8c461afa776bf2948885324374126ce83226bb93a05e2b71c8a2576c19286"
  },
  "id": "4ucvT4H8KngxYBRs",
  "tags": []
}