8
n8n 中文网amn8n.com

基于HeyGen、GPT-4和虚拟形象的YouTube视频端到端自动化

高级

这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 33 个节点。主要使用 Set, Code, Sort, Wait, Limit 等节点。 使用HeyGen、GPT-4和虚拟形象视频实现YouTube视频端到端自动化

前置要求
  • 可能需要目标 API 的认证凭证
  • Google Sheets API 凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "32d80f55a35a7b57f8e47a2ac19558d9f5bcec983a5519d9c29ba713ff4f12c7",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "40807895-a56e-4cb9-aaf2-e41467087ffb",
      "name": "多表:您可以连接多个表以实现有组织的数据结构",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        384,
        1936
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "74db801c-b9a8-424e-b6dd-a16f3a776c2b",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        816,
        -16
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "79c7bbbb-b4db-4d89-934c-742d7967067e",
      "name": "便签12",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -192,
        -128
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "ee3b7905-1442-487a-827a-aceb9c681add",
      "name": "计划触发器",
      "type": "n8n-nodes-base.scheduleTrigger",
      "disabled": true,
      "position": [
        848,
        752
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "71f38f99-275f-4c6d-a69b-c4b45316078a",
      "name": "过滤器",
      "type": "n8n-nodes-base.filter",
      "position": [
        1184,
        752
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "7d7c8dc5-320a-4019-9817-1a49d4399a4f",
      "name": "编辑字段",
      "type": "n8n-nodes-base.set",
      "position": [
        1824,
        752
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "84830425-1d45-4182-9858-194442d7ba0e",
      "name": "限制",
      "type": "n8n-nodes-base.limit",
      "position": [
        2048,
        752
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "3903b7bf-d28c-49b5-b313-1f0d5c16a2f8",
      "name": "便签 11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -192,
        -16
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "60d908ce-14c6-45a2-8160-7fcde4c3fe0f",
      "name": "HTTP 请求",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2240,
        768
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "b8f99e0c-cc2e-4e75-b4be-45faf7173200",
      "name": "提取HTML",
      "type": "n8n-nodes-base.code",
      "position": [
        2448,
        768
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "bcb62fa3-85e2-48d5-9ba5-a2e7a606a39b",
      "name": "OpenAI 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -128,
        1952
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "0142026f-fe2a-4ae0-9158-ec77016dfe9e",
      "name": "代码",
      "type": "n8n-nodes-base.code",
      "position": [
        1648,
        752
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "3d6dfd9e-e16f-4c6d-b000-deb13238df87",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -224,
        928
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "050d0e2b-e774-412f-ad8e-bb17c6f48637",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        784,
        944
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "a4892548-d5c6-4033-89d7-0258c2189bf7",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1632,
        928
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "c5d71655-04c7-43e7-9dab-744bfb9a822d",
      "name": "AI视频脚本(转录生成器)",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        48,
        1776
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "6f8d91bc-1122-4b23-b091-5c5e981c9f10",
      "name": "下载视频",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1616,
        1840
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "6b890d0f-07e5-410b-947a-1cb0fe950f05",
      "name": "生成视频",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        864,
        1840
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "08fe8df7-8006-485f-9fc5-bebdf222c580",
      "name": "获取视频 URL",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1456,
        1840
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "461c74c2-db88-48fa-8d94-2d41934b82fa",
      "name": "等待视频生成",
      "type": "n8n-nodes-base.wait",
      "position": [
        1072,
        1840
      ],
      "webhookId": "108a5c26-1fbc-4850-a1b8-cc7e9b5a5e63",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "a3475565-523d-411b-823d-853f3a98e48f",
      "name": "获取表中的行",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1024,
        752
      ],
      "parameters": {},
      "typeVersion": 4.6
    },
    {
      "id": "52d68e39-6b35-479c-8085-ea793dad2392",
      "name": "上传视频",
      "type": "n8n-nodes-base.youTube",
      "position": [
        2096,
        1952
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "9f8d34c3-b41b-4cb8-978c-0f4b69e5bca9",
      "name": "结构化输出解析器1",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        352,
        3168
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "79076ca1-58a3-44c5-9c0e-390e840d7179",
      "name": "OpenAI 聊天模型1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -32,
        3136
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "357bdfd4-bc79-4bba-9064-6f0ea289885f",
      "name": "更新YouTube元数据",
      "type": "n8n-nodes-base.youTube",
      "position": [
        1744,
        2992
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "9dd219e8-6366-4d1c-aed2-39095a723802",
      "name": "在表格中更新行",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2400,
        3008
      ],
      "parameters": {},
      "typeVersion": 4.6
    },
    {
      "id": "570eebce-82c2-44a3-a440-f14b84124ce9",
      "name": "发送并等待电子邮件",
      "type": "n8n-nodes-base.emailSend",
      "disabled": true,
      "position": [
        1104,
        2992
      ],
      "webhookId": "a8cac416-ea88-4874-b601-422292a642c4",
      "parameters": {},
      "typeVersion": 2.1
    },
    {
      "id": "e3604d34-2600-46bc-953b-2af171611bfa",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1616,
        -16
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "7a2df117-e983-4c6e-b0ed-09ea9b1942b5",
      "name": "便签5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -224,
        2192
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "9f551c8a-d71a-4929-89a4-0be8775da831",
      "name": "便签6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        784,
        2192
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "c31857a5-1fd9-4a63-aec4-5784d6b97d81",
      "name": "便签7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1632,
        2192
      ],
      "parameters": {
        "content": "确保您的表名与实际知识库结构匹配"
      },
      "typeVersion": 1
    },
    {
      "id": "8ff6ceb5-89db-42d9-8e3a-5886395323c3",
      "name": "用于YouTube元数据的AI代理",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        96,
        2992
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "fb5f117b-9bb2-427d-96d3-69c1b4f328be",
      "name": "排序",
      "type": "n8n-nodes-base.sort",
      "position": [
        1360,
        752
      ],
      "parameters": {},
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "Code": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Sort": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Limit": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter": {
      "main": [
        [
          {
            "node": "Sort",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Limit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract HTML": {
      "main": [
        [
          {
            "node": "AI Video Script (Transcript Generator)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "Extract HTML",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Video URL": {
      "main": [
        [
          {
            "node": "Download Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Video": {
      "main": [
        [
          {
            "node": "Upload a video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload a video": {
      "main": [
        [
          {
            "node": "AI Agent for Meta Data of Youtube",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get row(s) in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Video Script (Transcript Generator)",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "SendAndWait email": {
      "main": [
        [
          {
            "node": "Update Youtube Meta Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate the Video": {
      "main": [
        [
          {
            "node": "Wait for the Video to be Generated",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent for Meta Data of Youtube",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet": {
      "main": [
        [
          {
            "node": "Filter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update row in sheet": {
      "main": [
        []
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "AI Video Script (Transcript Generator)",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Update Youtube Meta Data": {
      "main": [
        [
          {
            "node": "Update row in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser1": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent for Meta Data of Youtube",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent for Meta Data of Youtube": {
      "main": [
        [
          {
            "node": "SendAndWait email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait for the Video to be Generated": {
      "main": [
        [
          {
            "node": "Get Video URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Video Script (Transcript Generator)": {
      "main": [
        [
          {
            "node": "Generate the Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

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

需要付费吗?

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

工作流信息
难度等级
高级
节点数量33
分类2
节点类型15
难度说明

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

作者
Amjid Ali

Amjid Ali

@amjid

I'm Amjid Ali, a CIO and automation expert with 25+ years in IT and digital transformation. I specialize in building AI-powered, low-code workflows using n8n to automate ERP, finance, reporting, and customer support processes. As the founder of SyncBricks, author of "Mastering n8n," and creator of online courses, I share practical automation solutions to help businesses scale efficiently and innovate with confidence.

外部链接
在 n8n.io 查看

分享此工作流