8
n8n 中文网amn8n.com

AI 电影短片生成器

高级

这是一个Content Creation, Multimodal AI领域的自动化工作流,包含 48 个节点。主要使用 If, Jwt, Set, Code, Wait 等节点。 使用 Gemini、GPT 和 ElevenLabs 将名言转换为社交媒体热门视频

前置要求
  • 可能需要目标 API 的认证凭证
  • Google Sheets API 凭证
  • OpenAI API Key
  • Google Gemini API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "LxwLb64jWmSdsJNI",
  "meta": {
    "instanceId": "c66762406062d6f96baac676fbcb1ad043cf6c0875d0fc4a63da087ec2d9f92e",
    "templateCredsSetupCompleted": true
  },
  "name": "AI 电影短片生成器",
  "tags": [],
  "nodes": [
    {
      "id": "6c616de6-31bb-46ac-88ea-cada14cc0f03",
      "name": "提示智能体",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -16,
        -384
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "0e1c2a88-7e30-4c07-87e4-f2d303ca742f",
      "name": "当点击\"执行工作流\"时",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -1088,
        -384
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "06a39edb-65b0-4280-9e02-2c3d909ff6c9",
      "name": "上传视频到 Postiz",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1184,
        1136
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "d23bf502-e427-4b10-a8fd-1e415cda9cfe",
      "name": "获取 Postiz 集成",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1360,
        1136
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "9453b684-ab61-40ab-bf12-96f2d46684aa",
      "name": "开关1",
      "type": "n8n-nodes-base.switch",
      "position": [
        1584,
        1120
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "b8623b30-5635-46c8-a25d-baca27954d17",
      "name": "安排 YouTube",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1856,
        1136
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "6c5cc219-4044-4088-8ad4-3aef19662da6",
      "name": "安排 TikTok",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1856,
        944
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "639ac259-fc5b-4903-96af-fa70d62d7341",
      "name": "安排 Instagram",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1856,
        1328
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "78405562-2c73-4268-adc7-dff9f57708f9",
      "name": "转换为文件",
      "type": "n8n-nodes-base.convertToFile",
      "notes": "At this step, the video should be generated and ready to convert to 9:16 aspect ratio",
      "position": [
        2544,
        -128
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 1.1
    },
    {
      "id": "e085ef01-6075-4f10-b5f6-e3f352df9252",
      "name": "获取状态",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2672,
        -384
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "57e4980b-4689-4653-a790-6df541a4b0ca",
      "name": "生成视频1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2224,
        -384
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "556df574-a232-439f-9f5f-17bf34f6cd36",
      "name": "JWT",
      "type": "n8n-nodes-base.jwt",
      "position": [
        1632,
        -384
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "9b55f38b-3c8b-4e59-a329-6b8901da0526",
      "name": "分支",
      "type": "n8n-nodes-base.switch",
      "position": [
        2896,
        -384
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "dc042079-6e93-46a8-a5c4-c92dfef0d40e",
      "name": "Google Gemini聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -32,
        -144
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "9d5cc2d6-36db-4105-ab0a-4cf9133e39bf",
      "name": "合并 - Creatomate",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -624,
        1104
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "87880974-7d1f-449f-9a65-fc456507da1d",
      "name": "条件判断3",
      "type": "n8n-nodes-base.if",
      "position": [
        -48,
        1104
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "20a3b313-c095-4381-aaa5-5cbf96986f7d",
      "name": "Creatomate HTTP 请求体",
      "type": "n8n-nodes-base.code",
      "position": [
        -848,
        1104
      ],
      "parameters": {},
      "executeOnce": true,
      "typeVersion": 2
    },
    {
      "id": "7df5fc8f-fc17-42e9-9b54-e0aa307c447c",
      "name": "文本转语音",
      "type": "@elevenlabs/n8n-nodes-elevenlabs.elevenLabs",
      "position": [
        896,
        -384
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "08da1696-4102-4b6e-8de9-53dbf1db05b9",
      "name": "上传音频到 GCS",
      "type": "n8n-nodes-base.googleCloudStorage",
      "position": [
        1104,
        -384
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 1,
      "waitBetweenTries": 2000
    },
    {
      "id": "398db09a-f08d-4409-ae9d-8415ca6a6e9b",
      "name": "上传视频到 GCS",
      "type": "n8n-nodes-base.googleCloudStorage",
      "position": [
        2768,
        -128
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 1,
      "waitBetweenTries": 2000
    },
    {
      "id": "c8e9665f-59ce-498b-a323-0adb686098b0",
      "name": "结构化输出解析器",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        608,
        -128
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "ba525637-e0f0-4477-81ed-262c4f8b4b28",
      "name": "OpenAI 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        400,
        -128
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "abfccfae-8b70-4958-9e1b-f1a345ebab61",
      "name": "获取表格中的行",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -800,
        -384
      ],
      "parameters": {},
      "typeVersion": 4.6
    },
    {
      "id": "cd860278-6865-47e1-9f1c-f4460f2a0100",
      "name": "限制",
      "type": "n8n-nodes-base.limit",
      "position": [
        -560,
        -384
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "51d7ba61-034d-4338-a766-235466620903",
      "name": "设置输入数据",
      "type": "n8n-nodes-base.set",
      "position": [
        -336,
        -384
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "0f545222-0ec7-4d11-b310-582d1b2ed8fe",
      "name": "内容撰写器",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        416,
        -384
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "2a4605c9-8ec6-41e5-b88e-a4eee1efa4fb",
      "name": "设置凭据",
      "type": "n8n-nodes-base.set",
      "position": [
        1408,
        -384
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "bfa6e175-d316-4401-905e-be57ed4d7723",
      "name": "获取令牌",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1856,
        -384
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "5a8eb7d5-c438-4744-8d2e-14256516cf9b",
      "name": "等待视频",
      "type": "n8n-nodes-base.wait",
      "position": [
        2448,
        -384
      ],
      "webhookId": "b5744e7c-de0a-4ba7-bcff-a0e89f2fe62e",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "ddbe8493-f8ae-453b-a8c5-c30d9ece8f04",
      "name": "等待渲染",
      "type": "n8n-nodes-base.wait",
      "position": [
        -448,
        1104
      ],
      "webhookId": "abc682f5-1205-4c8a-a713-bad81828ea65",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "4d68595a-e579-4e22-baad-c470751a40a4",
      "name": "检查渲染状态",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -240,
        1104
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "50750a8e-7899-4dcd-a9c7-bd510d2821fe",
      "name": "下载最终视频",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        560,
        1312
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "5f246fe9-9cc9-4986-9d5b-ad72fd90ee90",
      "name": "标记配额为已完成",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2640,
        1056
      ],
      "parameters": {},
      "typeVersion": 4.6
    },
    {
      "id": "d19df22b-9acb-44f2-96a8-8031e72f13bb",
      "name": "定时触发器",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -1088,
        -176
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "3bf99c45-d62b-4db1-ba3a-00f329696118",
      "name": "从 Cloudinary 下载文件",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        784,
        1088
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "2185058d-a215-4b76-8d6c-19998c48ad0c",
      "name": "生成放大后的 URL",
      "type": "n8n-nodes-base.code",
      "position": [
        576,
        1088
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "ba62719c-c46e-4da0-8925-e2612ffd61cf",
      "name": "发送到 Cloudinary",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        368,
        1088
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "ffc3ef56-dee2-48f3-aadf-f033f22aa464",
      "name": "便签说明1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1008,
        400
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "83a75c10-cecc-4a6f-9d35-e3efc42839ec",
      "name": "便签说明2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        240,
        400
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "84e06956-cd8c-4f82-91d3-afae446f3741",
      "name": "便签说明3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -960,
        400
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "6378f014-3131-406d-95bb-f17ff1b9c7b1",
      "name": "便签说明4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2080,
        -1184
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "c067d1b1-64de-418d-8ae2-1159b6b6c716",
      "name": "便签说明5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1248,
        -1184
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "ea398ed4-b3a6-45b5-9875-c53534e5f0d3",
      "name": "便签 6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -112,
        -1184
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "8ee4111f-51a0-4484-9585-323daf63aa82",
      "name": "便签 7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        800,
        -1184
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "5db3ef28-011b-4300-a3fa-6e3ad159a226",
      "name": "便签8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1312,
        -1184
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "2d96a406-a6de-4245-9e3e-91436f770e47",
      "name": "便签 9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2320,
        400
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "182ec8f7-3b37-45dc-9171-e1e91650dedd",
      "name": "便签说明",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3408,
        -1184
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "67f8dc5d-12dd-4e61-96ee-d0d6bd47f83f",
      "name": "便签10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4576,
        -1184
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "fcdfc603-b894-45ec-a099-544e77cc7100",
  "connections": {
    "If3": {
      "main": [
        [
          {
            "node": "Send to Cloudianry",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait for Rendering",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "JWT": {
      "main": [
        [
          {
            "node": "GET Token",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Limit": {
      "main": [
        [
          {
            "node": "Set Input Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch": {
      "main": [
        [
          {
            "node": "Convert to File",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait for Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch1": {
      "main": [
        [
          {
            "node": "Schedule TikTok",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Schedule YouTube",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Schedule Instagram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GET Token": {
      "main": [
        [
          {
            "node": "Generate Video1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Status": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prompt Agent": {
      "main": [
        [
          {
            "node": "Content writer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Content writer": {
      "main": [
        [
          {
            "node": "Convert text to speech",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Input Data": {
      "main": [
        [
          {
            "node": "Prompt Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait for Video": {
      "main": [
        [
          {
            "node": "Fetch Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert to File": {
      "main": [
        [
          {
            "node": "Upload to GCS Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Video1": {
      "main": [
        [
          {
            "node": "Wait for Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "SET Credentials": {
      "main": [
        [
          {
            "node": "JWT",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule TikTok": {
      "main": [
        []
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get row(s) in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Make upscaled URL": {
      "main": [
        [
          {
            "node": "Download file Cloudinary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Content writer",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Mark Quota as Done": {
      "main": [
        []
      ]
    },
    "Merge - Creatomate": {
      "main": [
        [
          {
            "node": "Wait for Rendering",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Instagram": {
      "main": [
        [
          {
            "node": "Mark Quota as Done",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send to Cloudianry": {
      "main": [
        [
          {
            "node": "Make upscaled URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait for Rendering": {
      "main": [
        [
          {
            "node": "Check status of render",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet": {
      "main": [
        [
          {
            "node": "Limit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload to GCS Video": {
      "main": [
        [
          {
            "node": "Creatomate HTTP Body",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Creatomate HTTP Body": {
      "main": [
        [
          {
            "node": "Merge - Creatomate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download final video": {
      "main": [
        []
      ]
    },
    "Upload to GCS  Audio": {
      "main": [
        [
          {
            "node": "SET Credentials",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check status of render": {
      "main": [
        [
          {
            "node": "If3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert text to speech": {
      "main": [
        [
          {
            "node": "Upload to GCS  Audio",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload video to Postiz": {
      "main": [
        [
          {
            "node": "Get Postiz integrations",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Postiz integrations": {
      "main": [
        [
          {
            "node": "Switch1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download file Cloudinary": {
      "main": [
        [
          {
            "node": "Upload video to Postiz",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Prompt Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Content writer",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Get row(s) in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

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

需要付费吗?

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

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

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

作者
LukaszB

LukaszB

@lukaszb

AI Automation Expert | Web & Mobile App Integrator With 2+ years of experience, I build smart automations, web & mobile app workflows, and scalable platforms using tools like n8n, Make, and more. I help businesses reduce operational costs, save time, and scale faster with AI-powered solutions. For business enquiries, send me an email at kontakt@lumizone.pl

外部链接
在 n8n.io 查看

分享此工作流