8
n8n 中文网amn8n.com

YouTube短视频生成器

高级

这是一个AI, Marketing领域的自动化工作流,包含 32 个节点。主要使用 Set, Code, Wait, Limit, Merge 等节点,结合人工智能技术实现智能自动化。 使用Flux、Runway、Eleven Labs和Creatomate生成AI YouTube短视频

前置要求
  • Google Drive API 凭证
  • 可能需要目标 API 的认证凭证
  • Google Sheets API 凭证
  • Anthropic API Key
  • Google Gemini API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "aI6FudahqOzGWB29",
  "meta": {
    "instanceId": "b3c467df4053d13fe31cc98f3c66fa1d16300ba750506bfd019a0913cec71ea3",
    "templateCredsSetupCompleted": true
  },
  "name": "YouTube短视频生成器",
  "tags": [],
  "nodes": [
    {
      "id": "8f869048-ab2a-4b33-8fec-aed542de0e1c",
      "name": "当点击\"测试工作流\"时",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        40,
        300
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "cb373333-4ec2-4daa-911e-c317a805a4ce",
      "name": "获取创意",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        420,
        300
      ],
      "parameters": {},
      "typeVersion": 4.5
    },
    {
      "id": "73cd9e9e-a39b-45c3-9cd9-b1b5dcfb78ec",
      "name": "图像提示代理",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1080,
        300
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "79603af8-768c-4987-a6ed-2169e635b8eb",
      "name": "移除\\n",
      "type": "n8n-nodes-base.code",
      "position": [
        1620,
        300
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "877c2184-f9fc-465c-9c6e-0fab8e513929",
      "name": "设置提示词",
      "type": "n8n-nodes-base.set",
      "position": [
        1960,
        300
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "5cdd9002-6fa8-45cf-b8c9-5b039689a33a",
      "name": "获取图像",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        440,
        720
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "c8bd2665-f442-42e7-96b9-8dd54253d04b",
      "name": "限制",
      "type": "n8n-nodes-base.limit",
      "position": [
        60,
        1020
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "72b89ade-4139-4a94-a42f-5839c987d636",
      "name": "Flash 2.0",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        320,
        1220
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "0872395a-79fa-4703-a9a5-776d3e8cdb6d",
      "name": "设置音频",
      "type": "n8n-nodes-base.set",
      "position": [
        660,
        1020
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "4c8dbe50-eeee-457a-9aae-4137fcba01d2",
      "name": "生成音频",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        800,
        1020
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "88cf6933-702b-475a-97f1-7a7f35f67f27",
      "name": "上传到Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        940,
        1020
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "7dcbfcbe-6946-419d-9d3e-bece75562074",
      "name": "合并",
      "type": "n8n-nodes-base.merge",
      "position": [
        1400,
        720
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "af6aecc7-5aee-4b76-b7f3-a343641049a6",
      "name": "25秒",
      "type": "n8n-nodes-base.wait",
      "position": [
        1940,
        720
      ],
      "webhookId": "d5cd29e8-d3f7-491c-a6b6-2d705aa47931",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "b851aaaa-d225-49ed-8fed-4d55cefa9df1",
      "name": "下载视频",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1400,
        1020
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "ff3be79c-072d-4774-9c71-79bb6b7a4542",
      "name": "更新表格",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1940,
        1020
      ],
      "parameters": {},
      "typeVersion": 4.5
    },
    {
      "id": "a34dbb83-a8a0-490a-85b2-33870682f90c",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "disabled": true,
      "position": [
        0,
        120
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "38679a37-94e6-4eeb-b295-bef644da22ed",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        620
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "8a69f0f0-fa12-4db8-93b5-b2afea472125",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        920
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "35866216-8557-4a37-90a1-2841af08ea68",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1280,
        620
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "6169ca5e-3e97-460f-9159-20f680a651b9",
      "name": "获取视频",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1020,
        720
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "1070663a-0378-4afd-9ae9-5558b59e6e19",
      "name": "生成视频",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        680,
        720
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "4c81c70c-5ab1-4181-828f-8c15affc5277",
      "name": "便签5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        640,
        620
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "6f6bea71-9db2-4107-912a-007e76b680ae",
      "name": "分享文件",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1080,
        1020
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "7655ea61-8900-41c6-ac64-41b427697d60",
      "name": "设置创意",
      "type": "n8n-nodes-base.set",
      "position": [
        740,
        300
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "822f434e-417a-42fa-8719-d47012859cd3",
      "name": "20秒",
      "type": "n8n-nodes-base.wait",
      "position": [
        260,
        720
      ],
      "webhookId": "ffdc5132-c0fe-44f6-af2b-4b3bb8894153",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "9bf0da34-6ff0-4b7c-91aa-c7c066728ae4",
      "name": "1分钟",
      "type": "n8n-nodes-base.wait",
      "position": [
        860,
        720
      ],
      "webhookId": "3ce99001-8f5a-4c0a-9b25-e3e261fcc778",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "89c76b18-c5d9-4150-b076-23fc145faf50",
      "name": "渲染视频1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1660,
        720
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "333180c6-4357-4584-8749-bebf13793709",
      "name": "Anthropic聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        1020,
        440
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "191402e4-4698-4dbe-a231-8d76eaf44b1b",
      "name": "上传视频",
      "type": "n8n-nodes-base.youTube",
      "position": [
        1680,
        1020
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "62148bc2-4b6d-4260-b871-7cc964854f3f",
      "name": "更新视频状态",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        220,
        1020
      ],
      "parameters": {},
      "typeVersion": 4.5
    },
    {
      "id": "983b41ea-b4c4-4620-876a-af47426a3250",
      "name": "图像生成",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        60,
        720
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "608898d7-e592-4d2b-94b0-ccc5d4b2d95c",
      "name": "音频提示代理",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        360,
        1020
      ],
      "parameters": {},
      "typeVersion": 1.7
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "b6efc32f-5e80-456e-9672-055fb9812611",
  "connections": {
    "Limit": {
      "main": [
        [
          {
            "node": "Update Video Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "Render Video1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "1 minute": {
      "main": [
        [
          {
            "node": "Get Videos",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Idea": {
      "main": [
        [
          {
            "node": "Image Prompt Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Flash 2.0": {
      "ai_languageModel": [
        [
          {
            "node": "Audio Prompt Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Grab Idea": {
      "main": [
        [
          {
            "node": "Set Idea",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Remove \\n": {
      "main": [
        [
          {
            "node": "Set Prompts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Audio": {
      "main": [
        [
          {
            "node": "Generate Audio",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "20 seconds": {
      "main": [
        [
          {
            "node": "Get Images",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "25 Seconds": {
      "main": [
        [
          {
            "node": "Download Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Images": {
      "main": [
        [
          {
            "node": "Generate Videos",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Videos": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          },
          {
            "node": "Limit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Share File": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Set Prompts": {
      "main": [
        [
          {
            "node": "Image Generation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Sheet": {
      "main": [
        []
      ]
    },
    "Upload Video": {
      "main": [
        [
          {
            "node": "Update Sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Render Video1": {
      "main": [
        [
          {
            "node": "25 Seconds",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Video": {
      "main": [
        [
          {
            "node": "Upload Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Audio": {
      "main": [
        [
          {
            "node": "Upload to Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Videos": {
      "main": [
        [
          {
            "node": "1 minute",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload to Drive": {
      "main": [
        [
          {
            "node": "Share File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Image Generation": {
      "main": [
        [
          {
            "node": "20 seconds",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Audio Prompt Agent": {
      "main": [
        [
          {
            "node": "Set Audio",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Image Prompt Agent": {
      "main": [
        [
          {
            "node": "Remove \\n",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Video Status": {
      "main": [
        [
          {
            "node": "Audio Prompt Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Image Prompt Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Grab Idea",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 人工智能, 营销

需要付费吗?

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

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

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

作者
Joseph

Joseph

@mjomba

Automation expert specializing in building smart, scalable workflows using tools like n8n, Make, and Airtable. I help businesses save time, reduce manual work, and grow faster with tailored automation solutions. Feel free to reach out at joseph@uppfy.com to discuss your project.

外部链接
在 n8n.io 查看

分享此工作流