Heygen

上級

これはContent Creation, Multimodal AI分野の自動化ワークフローで、19個のノードを含みます。主にIf, Wait, HttpRequest, ManualTrigger, Agentなどのノードを使用。 HeyGen AI、Apify、GPT-4.1 Miniを使用したニュース動画の自動生成

前提条件
  • ターゲットAPIの認証情報が必要な場合あり
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "id": "w8QekiNgdTB5djK1",
  "meta": {
    "instanceId": "8cf060ebda3ec45b5ebb6a30779eaf0c03dfba83865feab3f32adb31b82caa08"
  },
  "name": "Heygen",
  "tags": [],
  "nodes": [
    {
      "id": "119f9823-bc06-42fd-85c3-76fe550fa241",
      "name": "「Test workflow」クリック時",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        704,
        720
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "10660213-21c8-4033-bb66-c9117bdcd766",
      "name": "動画生成",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        768,
        384
      ],
      "parameters": {
        "url": "https://api.heygen.com/v2/video/generate",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n  \"video_inputs\": [\n    {\n      \"character\": {\n        \"type\": \"avatar\",\n        \"avatar_id\": \"avatar_id\",\n        \"avatar_style\": \"normal\"\n      },\n      \"voice\": {\n        \"type\": \"text\",\n        \"input_text\": \"Hey AI Automation Society Family. You guys rock.\",\n        \"voice_id\": \"voice_id\",\n        \"speed\": 1.1\n      }\n    }\n  ],\n  \"dimension\": {\n    \"width\": 1280,\n    \"height\": 720\n  }\n}",
        "sendBody": true,
        "sendHeaders": true,
        "specifyBody": "json",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "headerParameters": {
          "parameters": [
            {
              "name": "accept",
              "value": "application/json"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "6822a4a1-44fa-4d7d-bbf1-896467040057",
      "name": "音声取得",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1184,
        112
      ],
      "parameters": {
        "url": "https://api.heygen.com/v2/voices",
        "options": {},
        "sendHeaders": true,
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "headerParameters": {
          "parameters": [
            {
              "name": "accept",
              "value": "application/json"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "23db5e20-fbd7-4b69-93d3-11a7b5143b03",
      "name": "アバター取得",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        768,
        112
      ],
      "parameters": {
        "url": "https://api.heygen.com/v2/avatars",
        "options": {},
        "sendHeaders": true,
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "headerParameters": {
          "parameters": [
            {
              "name": "accept",
              "value": "application/json"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "64cb67a7-7689-4e6d-949e-8f329d6cb7c4",
      "name": "付箋",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        624,
        0
      ],
      "parameters": {
        "color": 7,
        "width": 400,
        "height": 260,
        "content": "# Get Avatar ID\n"
      },
      "typeVersion": 1
    },
    {
      "id": "7dc2273e-3558-4d53-8270-88550e98787c",
      "name": "付箋1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1040,
        0
      ],
      "parameters": {
        "color": 7,
        "width": 400,
        "height": 260,
        "content": "# Get Voice ID\n"
      },
      "typeVersion": 1
    },
    {
      "id": "e961a99e-730a-4765-8fe2-f6b7d8498054",
      "name": "動画取得",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1184,
        384
      ],
      "parameters": {
        "url": "https://api.heygen.com/v1/video_status.get",
        "options": {},
        "sendQuery": true,
        "sendHeaders": true,
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "queryParameters": {
          "parameters": [
            {
              "name": "video_id",
              "value": "={{ $json.data.video_id }}"
            }
          ]
        },
        "headerParameters": {
          "parameters": [
            {
              "name": "accept",
              "value": "application/json"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "0e16f240-5132-4973-a02e-9c89bea17030",
      "name": "付箋2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        624,
        288
      ],
      "parameters": {
        "color": 6,
        "width": 400,
        "height": 300,
        "content": "# Create Video\n"
      },
      "typeVersion": 1
    },
    {
      "id": "58027971-0bb5-41d5-9f85-5a1e226fce58",
      "name": "ニュース",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        864,
        720
      ],
      "parameters": {
        "url": "https://api.apify.com/v2/acts/apify~website-content-crawler/run-sync-get-dataset-items",
        "method": "POST",
        "options": {},
        "jsonBody": "{\n    \"aggressivePrune\": false,\n    \"clickElementsCssSelector\": \"[aria-expanded=\\\"false\\\"]\",\n    \"clientSideMinChangePercentage\": 15,\n    \"crawlerType\": \"playwright:adaptive\",\n    \"debugLog\": false,\n    \"debugMode\": false,\n    \"expandIframes\": true,\n    \"ignoreCanonicalUrl\": false,\n    \"keepUrlFragments\": false,\n    \"proxyConfiguration\": {\n        \"useApifyProxy\": true\n    },\n    \"readableTextCharThreshold\": 100,\n    \"removeCookieWarnings\": true,\n    \"removeElementsCssSelector\": \"nav, footer, script, style, noscript, svg, img[src^='data:'],\\n[role=\\\"alert\\\"],\\n[role=\\\"banner\\\"],\\n[role=\\\"dialog\\\"],\\n[role=\\\"alertdialog\\\"],\\n[role=\\\"region\\\"][aria-label*=\\\"skip\\\" i],\\n[aria-modal=\\\"true\\\"]\",\n    \"renderingTypeDetectionPercentage\": 10,\n    \"respectRobotsTxtFile\": true,\n    \"saveFiles\": false,\n    \"saveHtml\": false,\n    \"saveHtmlAsFile\": false,\n    \"saveMarkdown\": true,\n    \"saveScreenshots\": false,\n    \"startUrls\": [\n        {\n            \"url\": \"https://www.morningbrew.com/issues/latest\",\n            \"method\": \"GET\"\n        }\n    ],\n    \"useSitemaps\": false\n}",
        "sendBody": true,
        "specifyBody": "json"
      },
      "typeVersion": 4.2
    },
    {
      "id": "a16f49b8-db54-4c67-b771-29dbf2d717e1",
      "name": "スクリプト作成",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1024,
        720
      ],
      "parameters": {
        "text": "={{ $json.text }}",
        "options": {
          "systemMessage": "=### 📢 System Prompt: Morning Brew Video Recap Script Generator\n\nYou are a sharp, engaging scriptwriter AI who specializes in converting daily newsletter content into **fast-paced, digestible news recaps** for short-form video. You will be given the full text of a *Morning Brew* issue. Your job is to create a **concise 10–20 second script** (around 40–60 words) summarizing **the top 2–4 most important stories** in an **engaging, headline-driven tone** that sounds natural when spoken aloud.\n\n---\n\n### ✅ Core Requirements:\n- Output a **single paragraph** written for **spoken delivery**, not robotic narration.\n- Cover **only the top 2–4 stories** with the widest impact or highest interest.\n- Use a **punchy, conversational tone** — brief but informative.\n- Do **not include** intros, outros, or calls to action.\n- Keep the total script under **20 seconds of spoken content** (~40–60 words).\n\n---\n\n### 🗣️ Style Example:\n\n\"Stocks jumped after inflation cooled again in April, TikTok sued the US government over its forced sale law, and McDonald’s is dropping AI drive-thrus after too many sauce mishaps.\"\n\n---\n\n### 💡 Notes:\n- Prioritize clarity and relevance.\n- Avoid niche stories unless they’re especially compelling or viral.\n- Think of the recap as something someone could say on a podcast or short TikTok video.\n"
        },
        "promptType": "define"
      },
      "typeVersion": 1.9
    },
    {
      "id": "2c02c01e-8f81-47ed-8a96-21787bae81f0",
      "name": "GPT 4.1 Mini",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        1152,
        864
      ],
      "parameters": {
        "options": {}
      },
      "typeVersion": 1
    },
    {
      "id": "5021e8aa-a5f6-48d2-b5d6-01c120447d70",
      "name": "動画取得1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1008,
        960
      ],
      "parameters": {
        "url": "https://api.heygen.com/v1/video_status.get",
        "options": {},
        "sendQuery": true,
        "sendHeaders": true,
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "queryParameters": {
          "parameters": [
            {
              "name": "video_id",
              "value": "={{ $('Generate Video1').item.json.data.video_id }}"
            }
          ]
        },
        "headerParameters": {
          "parameters": [
            {
              "name": "accept",
              "value": "application/json"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "5fc211f7-a172-45f4-80b4-2daf263a9dc7",
      "name": "30秒",
      "type": "n8n-nodes-base.wait",
      "position": [
        848,
        960
      ],
      "webhookId": "c6346cbc-9d67-4868-80a4-bfc927f0830a",
      "parameters": {
        "amount": 10
      },
      "typeVersion": 1.1
    },
    {
      "id": "9e1fdc59-3f59-4700-87dd-59348f47d328",
      "name": "条件分岐",
      "type": "n8n-nodes-base.if",
      "position": [
        1168,
        960
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "dd44e8b9-64ae-4a91-8d19-966910447f71",
              "operator": {
                "name": "filter.operator.equals",
                "type": "string",
                "operation": "equals"
              },
              "leftValue": "={{ $json.data.status }}",
              "rightValue": "completed"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "11e66f0d-ee78-4079-9354-98ae32c1fd79",
      "name": "待機",
      "type": "n8n-nodes-base.wait",
      "position": [
        1344,
        960
      ],
      "webhookId": "9f7623f7-6605-4455-a927-09b536ee9e99",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "a8ba10ae-eb12-4482-9124-ba853f722407",
      "name": "付箋3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        624,
        608
      ],
      "parameters": {
        "color": 4,
        "width": 960,
        "height": 560,
        "content": "# Create Video w/ Polling\n"
      },
      "typeVersion": 1
    },
    {
      "id": "ffd56330-7fc5-4a8a-90b0-1f852db2ffaf",
      "name": "付箋4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1040,
        288
      ],
      "parameters": {
        "color": 5,
        "width": 400,
        "height": 300,
        "content": "# Get Video\n"
      },
      "typeVersion": 1
    },
    {
      "id": "777c35f3-788a-40ea-abb9-7e109de28dbd",
      "name": "動画生成1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1360,
        720
      ],
      "parameters": {
        "url": "https://api.heygen.com/v2/video/generate",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n  \"video_inputs\": [\n    {\n      \"character\": {\n        \"type\": \"avatar\",\n        \"avatar_id\": \"avatar_id\",\n        \"avatar_style\": \"normal\"\n      },\n      \"voice\": {\n        \"type\": \"text\",\n        \"input_text\": \"Hey AI Automation Society Family. You guys rock.\",\n        \"voice_id\": \"voice_id\",\n        \"speed\": 1.1\n      }\n    }\n  ],\n  \"dimension\": {\n    \"width\": 1280,\n    \"height\": 720\n  }\n}",
        "sendBody": true,
        "sendHeaders": true,
        "specifyBody": "json",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "headerParameters": {
          "parameters": [
            {
              "name": "accept",
              "value": "application/json"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "228d907b-f1fa-4af4-bcc0-3a5d2415bf34",
      "name": "付箋5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "width": 600,
        "height": 600,
        "content": "# 🛠️Setup Guide  \n## **Author: [Jadai Kongolo](https://www.youtube.com/@jadaikongolo)**\n\nFollow these steps to configure your HeyGen + n8n automation workflow:\n\n1. Go to [HeyGen](https://app.heygen.com/), create your AI avatar and voice.  \n   - You can import your [ElevenLabs](https://www.elevenlabs.io/) voice clone, or let HeyGen clone your voice automatically.\n\n2. Connect your **HeyGen API key** to the following nodes:\n   - `Generate Video`\n   - `Get Video`\n   - `Get Avatars`\n   - `Get Voices`\n\n3. If you want to test out the **\"Create video with polling\"** flow:\n   - Connect your [OpenRouter](https://openrouter.ai/) API key.\n   - Connect your **Apify token** in the node called `News`.\n\nMake sure all credentials are properly stored and referenced in your environment or credentials store for best security and reuse.\n"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "1d4c1db2-af0c-402b-979d-ed781eccbe31",
  "connections": {
    "9e1fdc59-3f59-4700-87dd-59348f47d328": {
      "main": [
        [],
        [
          {
            "node": "11e66f0d-ee78-4079-9354-98ae32c1fd79",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "58027971-0bb5-41d5-9f85-5a1e226fce58": {
      "main": [
        [
          {
            "node": "a16f49b8-db54-4c67-b771-29dbf2d717e1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "11e66f0d-ee78-4079-9354-98ae32c1fd79": {
      "main": [
        [
          {
            "node": "5021e8aa-a5f6-48d2-b5d6-01c120447d70",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "5fc211f7-a172-45f4-80b4-2daf263a9dc7": {
      "main": [
        [
          {
            "node": "5021e8aa-a5f6-48d2-b5d6-01c120447d70",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "5021e8aa-a5f6-48d2-b5d6-01c120447d70": {
      "main": [
        [
          {
            "node": "9e1fdc59-3f59-4700-87dd-59348f47d328",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "2c02c01e-8f81-47ed-8a96-21787bae81f0": {
      "ai_languageModel": [
        [
          {
            "node": "a16f49b8-db54-4c67-b771-29dbf2d717e1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "a16f49b8-db54-4c67-b771-29dbf2d717e1": {
      "main": [
        [
          {
            "node": "777c35f3-788a-40ea-abb9-7e109de28dbd",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "10660213-21c8-4033-bb66-c9117bdcd766": {
      "main": [
        [
          {
            "node": "e961a99e-730a-4765-8fe2-f6b7d8498054",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "777c35f3-788a-40ea-abb9-7e109de28dbd": {
      "main": [
        [
          {
            "node": "5fc211f7-a172-45f4-80b4-2daf263a9dc7",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "119f9823-bc06-42fd-85c3-76fe550fa241": {
      "main": [
        [
          {
            "node": "58027971-0bb5-41d5-9f85-5a1e226fce58",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
よくある質問

このワークフローの使い方は?

上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。

このワークフローはどんな場面に適していますか?

上級 - コンテンツ作成, マルチモーダルAI

有料ですか?

このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。

ワークフロー情報
難易度
上級
ノード数19
カテゴリー2
ノードタイプ7
難易度説明

上級者向け、16ノード以上の複雑なワークフロー

作成者

Hi 👋 I'm Jadai kongolo. As an AI Automation Expert, I’m passionate about simplifying tech and empowering small businesses and young coders through AI automation. With my AI agency, Oki, I create efficient, n8n-powered workflows that save time, streamline operations, and boost growth for SMBs.

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34