8
n8n 中文网amn8n.com

基于AI的新闻转视频生成器(使用Heygen和GPT4o)

高级

这是一个Design, AI, Marketing领域的自动化工作流,包含 18 个节点。主要使用 Set, Code, Wait, Limit, GoogleDrive 等节点,结合人工智能技术实现智能自动化。 使用Heygen和GPT-4o将RSS新闻转换为AI虚拟形象视频

前置要求
  • Google Drive API 凭证
  • 可能需要目标 API 的认证凭证
  • Google Sheets API 凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "lOnfQBQ1O7BLR1S5",
  "meta": {
    "instanceId": "2000c64071c20843606b95c63795bb0797c41036047055a6586498e855b96efc",
    "templateCredsSetupCompleted": true
  },
  "name": "基于AI的新闻转视频生成器(使用Heygen和GPT4o)",
  "tags": [],
  "nodes": [
    {
      "id": "7012dfef-7b35-4cbc-b970-923ddae3cd79",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -1900,
        580
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "ef12f30b-83f9-4295-9fa9-b89cd46c80dd",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2040,
        -40
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "04735893-dcdf-49f7-90af-011208fa3790",
      "name": "便签 1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1100,
        -40
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "bbb05e02-6f71-4844-a042-5fbe6412872b",
      "name": "便签 3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1060,
        980
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "01f46028-7341-468e-8788-95da905dab77",
      "name": "RSS 读取",
      "type": "n8n-nodes-base.rssFeedRead",
      "position": [
        -1760,
        260
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "9721845d-eb1c-4299-8a37-cac6ff80eca5",
      "name": "点击“测试工作流”时",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -1940,
        260
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "18e3bab3-0e9e-4cab-8fe7-8f67ba1b39ef",
      "name": "等待",
      "type": "n8n-nodes-base.wait",
      "position": [
        -560,
        580
      ],
      "webhookId": "d9404622-0a06-4a65-959e-badd4fd87465",
      "parameters": {},
      "typeVersion": 1.1,
      "alwaysOutputData": false
    },
    {
      "id": "772f5854-1dd6-42e7-bf9d-b2948a6394e0",
      "name": "获取虚拟形象视频",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -300,
        580
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "d4bd5011-9986-4d8f-b10a-b919e367611e",
      "name": "创建虚拟形象视频",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -800,
        580
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "e728589c-784c-4c9c-a7b1-37da4ddda043",
      "name": "设置Heygen",
      "type": "n8n-nodes-base.set",
      "position": [
        -1040,
        580
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "cab70adc-73bf-4e5b-8a2c-afef28983dbf",
      "name": "下载视频",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -20,
        580
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "cdc50948-e5fa-4ad6-b0f6-ad79afa37e98",
      "name": "限制",
      "type": "n8n-nodes-base.limit",
      "position": [
        -1260,
        260
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "5433be24-3061-4d94-9de3-3d75aa1be40a",
      "name": "Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "disabled": true,
      "position": [
        280,
        580
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "9b503ab4-4834-43d5-9b2d-7823715c50ee",
      "name": "解析字幕",
      "type": "n8n-nodes-base.code",
      "position": [
        -1540,
        580
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "b3a2a7ef-c055-4d49-b79c-9eea7ce89bab",
      "name": "限制1",
      "type": "n8n-nodes-base.limit",
      "position": [
        -1600,
        260
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "03814c51-6323-4c90-b8bd-4fa5feaf187b",
      "name": "记录新闻到表格",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -1420,
        260
      ],
      "parameters": {},
      "typeVersion": 4.5
    },
    {
      "id": "efad1b71-33fc-4070-b2c4-d5976cb9dd76",
      "name": "记录视频链接和标题到表格",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -140,
        780
      ],
      "parameters": {},
      "typeVersion": 4.5
    },
    {
      "id": "63ee3aff-4b8b-4a26-b8e0-d8d844572d6f",
      "name": "撰写脚本",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1880,
        800
      ],
      "parameters": {},
      "typeVersion": 1.2
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "0d647d48-28ad-408b-99b6-056d6903dca9",
  "connections": {
    "Wait": {
      "main": [
        [
          {
            "node": "Get Avatar Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Limit": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Limit1": {
      "main": [
        [
          {
            "node": "log news to sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "parse caption",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "RSS Read": {
      "main": [
        [
          {
            "node": "Limit1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Setup Heygen": {
      "main": [
        [
          {
            "node": "Create Avatar Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "write script": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "parse caption": {
      "main": [
        [
          {
            "node": "Setup Heygen",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download video": {
      "main": [
        [
          {
            "node": "Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Avatar Video": {
      "main": [
        [
          {
            "node": "Download video",
            "type": "main",
            "index": 0
          },
          {
            "node": "Log video url and title to sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "log news to sheets": {
      "main": [
        [
          {
            "node": "Limit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Avatar Video": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "RSS Read",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

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

需要付费吗?

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

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

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

作者
David Olusola

David Olusola

@dae221

I love building smart, efficient automations with n8n that help businesses save time and scale effortlessly. Turning complex workflows into simple solutions is where I have the most fun

外部链接
在 n8n.io 查看

分享此工作流