8
n8n 中文网amn8n.com

使用 Creatomate 生成短视频

高级

这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 31 个节点。主要使用 If, Code, Wait, FormTrigger, GoogleDrive 等节点。 使用 Creatomate、ElevenLabs 和 Pexels 素材库生成 AI 短视频

前置要求
  • Google Drive API 凭证
  • 可能需要目标 API 的认证凭证
  • OpenAI API Key
  • Anthropic API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "CYtp7zJfBepNByyF",
  "meta": {
    "instanceId": "78cd535d8c280c9f391d1c1efae71bb3b005620d19729d7bf9cd5c4e1509eeb2"
  },
  "name": "使用 Creatomate 生成短视频",
  "tags": [],
  "nodes": [
    {
      "id": "7d57f5bb-f93a-41c5-862f-ac2f82b96b16",
      "name": "Anthropic 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "disabled": true,
      "position": [
        48,
        1760
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "25505f0e-9d06-48e9-a44b-39149511cd6a",
      "name": "OpenAI 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "disabled": true,
      "position": [
        416,
        1760
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "93abbaa2-9702-4cc3-b43b-62933046fd0a",
      "name": "结构化输出解析器",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        608,
        1760
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "3e334821-6955-4415-befd-6f70475eb7b9",
      "name": "遍历项目",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1056,
        1872
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "36a2c944-621a-4a4e-85d9-f5d384847407",
      "name": "格式化循环项",
      "type": "n8n-nodes-base.code",
      "position": [
        800,
        1600
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "9eb04653-0c43-4313-95cf-20b4ae90e839",
      "name": "获取视频详情",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1440,
        1872
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "19fd8288-1722-4a91-8aca-1530c18cbb05",
      "name": "搜索视频",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1280,
        1872
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "28bdc773-878d-4600-8183-6da72bc1ba91",
      "name": "查找较小视频文件",
      "type": "n8n-nodes-base.code",
      "position": [
        1616,
        1872
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "7b52b648-545a-4454-8efa-dbb6d8916dbf",
      "name": "等待",
      "type": "n8n-nodes-base.wait",
      "position": [
        1776,
        1872
      ],
      "webhookId": "6b13bcaf-135f-4a08-9ba7-1b24fb4c0323",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "5546a1e6-568f-428b-b7ae-559b68d0e699",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        992,
        1792
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "7379993b-527e-4fbb-8704-424130404531",
      "name": "生成语音",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1904,
        1536
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "c576e410-b628-4a3d-9e32-c8ee327ef574",
      "name": "结构化输出解析器1",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        224,
        1760
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "10d16f5a-562b-4506-83c3-0d431f981db2",
      "name": "设置文件权限",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2352,
        1536
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "5be6af04-927d-4c9e-af3b-347e19c82f1b",
      "name": "格式化视频链接",
      "type": "n8n-nodes-base.code",
      "position": [
        1232,
        1536
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "98bcf235-c23d-49d8-ba87-d70f88968fcb",
      "name": "创建短视频",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2640,
        1536
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "1c5f1e78-1fb6-4979-aa00-5d2577448297",
      "name": "等待1",
      "type": "n8n-nodes-base.wait",
      "position": [
        2848,
        1536
      ],
      "webhookId": "baa1ec61-20bb-456d-887e-acfe495f0eff",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "31c007d1-8f09-4737-ab4d-835ac5a4d05d",
      "name": "条件判断",
      "type": "n8n-nodes-base.if",
      "position": [
        3216,
        1536
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "e9167028-aaf2-40c5-a5aa-8290465ce460",
      "name": "检查视频状态",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3024,
        1536
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "9a4fcc0a-ef6a-40fe-af8c-321c40f38b15",
      "name": "便签 1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        992,
        1456
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "7959777c-950e-49cb-8e5f-8b191fd14c1a",
      "name": "已完成",
      "type": "n8n-nodes-base.code",
      "position": [
        3616,
        1520
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "f9e586ee-29cc-44e1-8ea4-f4f836719c52",
      "name": "删除音频",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        3424,
        1520
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "21c5c52b-589c-441a-aba6-989b12bc81d5",
      "name": "列出短视频音乐文件",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1456,
        1536
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "2930b3c3-f412-441b-927f-ce6cb58d91f4",
      "name": "便签 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2512,
        1456
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "f784818c-803d-4daa-9152-936e52024b16",
      "name": "便签 3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -224,
        1456
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "c5013b31-c905-4c7b-ba1a-60113297a97d",
      "name": "选择音乐",
      "type": "n8n-nodes-base.code",
      "position": [
        1680,
        1536
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "1641bb48-0799-4af4-a1ad-d3a179a957bb",
      "name": "Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        2128,
        1536
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "1284c0f3-1df6-4b2c-919d-ba723fa632f8",
      "name": "短视频文本",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        48,
        1600
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "6ea60872-6565-4349-b79f-9771b5f48a3f",
      "name": "视频搜索词",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        416,
        1600
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "37073114-b0b4-4586-8bd7-2eab6dff0e2c",
      "name": "表单提交时",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -144,
        1600
      ],
      "webhookId": "8a898bac-9a62-4c88-8e13-d045f20f3a36",
      "parameters": {},
      "typeVersion": 2.3
    },
    {
      "id": "35046ebb-474e-45d5-82fa-a54d7288bedb",
      "name": "便签 4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2000,
        1792
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "48bf7bd5-2ee1-4d89-b5c2-4e8f1b25cd46",
      "name": "便签 5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -816,
        1456
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "8be97e33-c649-4a35-9a8a-d2390e57ea25",
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Delete Audio",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait1": {
      "main": [
        [
          {
            "node": "Check Video Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Short Text": {
      "main": [
        [
          {
            "node": "Video Search Terms",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Choose Music": {
      "main": [
        [
          {
            "node": "Generate Voice",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Short": {
      "main": [
        [
          {
            "node": "Wait1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Delete Audio": {
      "main": [
        [
          {
            "node": "Finished",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive": {
      "main": [
        [
          {
            "node": "Set File Permissions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search Videos": {
      "main": [
        [
          {
            "node": "Get The Video Details",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Voice": {
      "main": [
        [
          {
            "node": "Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [
          {
            "node": "Format Video Links",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Search Videos",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Video Search Terms",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Check Video Status": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Video Links": {
      "main": [
        [
          {
            "node": "List Short Music Files",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "Short Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Video Search Terms": {
      "main": [
        [
          {
            "node": "Format For Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Short Text",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Set File Permissions": {
      "main": [
        [
          {
            "node": "Create Short",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get The Video Details": {
      "main": [
        [
          {
            "node": "Find Smaller Video File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "List Short Music Files": {
      "main": [
        [
          {
            "node": "Choose Music",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Find Smaller Video File": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Video Search Terms",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser1": {
      "ai_outputParser": [
        [
          {
            "node": "Short Text",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Format For Loop Over Items": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

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

需要付费吗?

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

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

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

作者
Matty Reed

Matty Reed

@mattyreed1

Student and Teacher | Designer and Builder | Helping Founders Flourish

外部链接
在 n8n.io 查看

分享此工作流