8
n8n 中文网amn8n.com

使用 GPT、DALL-E、ElevenLabs 和 Hedra 创建动画婴儿播客视频

高级

这是一个AI领域的自动化工作流,包含 27 个节点。主要使用 Code, Merge, FormTrigger, GoogleDrive, HttpRequest 等节点,结合人工智能技术实现智能自动化。 使用 GPT、DALL-E、ElevenLabs 和 Hedra 创建动画婴儿播客视频

前置要求
  • Google Drive API 凭证
  • 可能需要目标 API 的认证凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "2d54f61dfd963457efb86a8690aae457934e92fb9e4b8b6490ca74fc37094458",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "8b5a4bd2-d1a7-4fdd-8c18-5fa70bf7d245",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3940,
        1000
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "4a31dc2b-a72d-4edb-b6f4-ffbb967b17df",
      "name": "便签7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3280,
        1000
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "737d3569-14f4-4b32-b020-a8dd726d75ee",
      "name": "合并",
      "type": "n8n-nodes-base.merge",
      "position": [
        -1880,
        2440
      ],
      "parameters": {},
      "typeVersion": 3.1
    },
    {
      "id": "2c6dc4c6-21ae-4cd4-b274-1649d4a739c3",
      "name": "合并1",
      "type": "n8n-nodes-base.merge",
      "position": [
        -1420,
        1900
      ],
      "parameters": {},
      "typeVersion": 3.1
    },
    {
      "id": "3e3baaf3-3fa0-4cc0-9fc9-852c23e8f734",
      "name": "合并2",
      "type": "n8n-nodes-base.merge",
      "position": [
        -1140,
        2700
      ],
      "parameters": {},
      "typeVersion": 3.1
    },
    {
      "id": "31ba976b-0e53-4a8a-bb69-aa59cb08c369",
      "name": "代码2",
      "type": "n8n-nodes-base.code",
      "position": [
        -1920,
        3040
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "04b27209-3e6c-434a-bf8f-bdef3e9356d2",
      "name": "提取并组合二进制和数组",
      "type": "n8n-nodes-base.code",
      "position": [
        -1120,
        1900
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "0c96872e-1589-4656-a0f6-3c2c5b6ac85f",
      "name": "提取并组合二进制和数组1",
      "type": "n8n-nodes-base.code",
      "position": [
        -1900,
        2720
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "dc3236f8-5842-4a3a-8e96-42bc640bebc9",
      "name": "婴儿图片生成器",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "onError": "continueRegularOutput",
      "position": [
        -3100,
        2460
      ],
      "parameters": {},
      "typeVersion": 1.8,
      "alwaysOutputData": true
    },
    {
      "id": "54cc15cc-6e41-4c1a-913f-ae1ea6c8c18c",
      "name": "OpenAI 生成图片",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -2720,
        2460
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "4a3997c6-3aee-40b0-986a-0c9cdce030b5",
      "name": "生成婴儿播客",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -3000,
        1840
      ],
      "webhookId": "ff55e4d7-6f89-44ed-8b5c-c1f0f309b315",
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "802ff9b4-5147-4112-b9cd-b5a1b1760b98",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3120,
        2340
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "ea68c73c-7285-4564-a03d-cf3549afd67d",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2820,
        1580
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "538063b5-3c2e-4ac9-9b00-96749ce857f0",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1940,
        3260
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "da20cfbc-6dd8-4f48-9577-f81be2d9ac0e",
      "name": "为 Hedra 创建图片资源",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -2120,
        2280
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "d70aeea5-70da-43bf-b40b-7afab8a786f7",
      "name": "为 Hedra 创建音频资源",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1700,
        1760
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "07be74e4-16ee-4810-ab6f-a5b43db3416a",
      "name": "Base64 字符串转文件",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        -2480,
        2460
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "7ce8fa36-18da-4289-9c82-cf406a5d50dd",
      "name": "将 OpenAI 图片发布到 Hedra",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1680,
        2720
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "eafac296-44b4-4c42-b129-21f8ad76e465",
      "name": "生成 Hedra 视频资源",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1660,
        3040
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "6507cd5a-608c-4c33-93f9-9462c9b6921c",
      "name": "从 Hedra 获取我们的婴儿视频文件",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1400,
        3040
      ],
      "parameters": {},
      "typeVersion": 4.2,
      "alwaysOutputData": true
    },
    {
      "id": "10a3558f-7fb1-4c43-92c0-df529f7ad0f6",
      "name": "下载我们的视频",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1140,
        3040
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "8bbfab60-3fb8-46a0-9cb7-2339d33bae60",
      "name": "上传二进制文件到 Google Drive 进行转换",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -900,
        3040
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "7b88e294-e9ba-48e6-9283-d114fc58c67f",
      "name": "下载视频",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -660,
        3040
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "1972d340-51ed-4581-bce8-81a44a81d1f7",
      "name": "便签5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1420,
        1560
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "f7c6845a-aa17-4b7f-8700-916270908970",
      "name": "脚本",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "onError": "continueRegularOutput",
      "position": [
        -2680,
        1840
      ],
      "parameters": {},
      "typeVersion": 1.8,
      "alwaysOutputData": true
    },
    {
      "id": "3dfa2397-7612-4f37-a478-f3767dd43529",
      "name": "音频创建",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -2280,
        1840
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "7db2da63-a00f-4ee8-9170-4c9116cf5087",
      "name": "音频到 Hedra",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -860,
        1900
      ],
      "parameters": {},
      "typeVersion": 4.2
    }
  ],
  "pinData": {},
  "connections": {
    "Code2": {
      "main": [
        [
          {
            "node": "Generate Video Asset Hedra",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "Extract And Combine Binary and Array1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge1": {
      "main": [
        [
          {
            "node": "Extract And Combine Binary and Array",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge2": {
      "main": [
        [
          {
            "node": "Code2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Script": {
      "main": [
        [
          {
            "node": "Audio Creation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Audio Creation": {
      "main": [
        [
          {
            "node": "Create Audio Asset For Hedra",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge1",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Audio To Hedra": {
      "main": [
        [
          {
            "node": "Merge2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "B64 String to File": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          },
          {
            "node": "Create Image Asset For Hedra",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Our Video": {
      "main": [
        [
          {
            "node": "Upload Bin File To Conver In Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Baby Image Generator": {
      "main": [
        [
          {
            "node": "Open AI Generate Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Baby Podcast": {
      "main": [
        [
          {
            "node": "Baby Image Generator",
            "type": "main",
            "index": 0
          },
          {
            "node": "Script",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Open AI Generate Image": {
      "main": [
        [
          {
            "node": "B64 String to File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Video Asset Hedra": {
      "main": [
        [
          {
            "node": "Get Our Baby Video File From Hedra",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Post Open AI Image To Hedra": {
      "main": [
        [
          {
            "node": "Merge2",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Create Audio Asset For Hedra": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Image Asset For Hedra": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Our Baby Video File From Hedra": {
      "main": [
        [
          {
            "node": "Download Our Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract And Combine Binary and Array": {
      "main": [
        [
          {
            "node": "Audio To Hedra",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract And Combine Binary and Array1": {
      "main": [
        [
          {
            "node": "Post Open AI Image To Hedra",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Bin File To Conver In Google Drive": {
      "main": [
        [
          {
            "node": "Download Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 人工智能

需要付费吗?

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

工作流信息
难度等级
高级
节点数量27
分类1
节点类型8
难度说明

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

作者
Adam Crafts

Adam Crafts

@adamcrafts

As an experienced AI Agent Builder, I specialize in creating intelligent solutions tailored to enhance automation, streamline operations, and drive innovation. 🛠️ My passion lies in transforming ideas into functional AI agents that deliver tangible results.

外部链接
在 n8n.io 查看

分享此工作流