08 - AIビデオ生成

中級

これはContent Creation, Miscellaneous, Multimodal AI分野の自動化ワークフローで、14個のノードを含みます。主にIf, Wait, Gmail, HttpRequest, ScheduleTriggerなどのノードを使用。 OpenAI、Veo 3、Gmailを使用して任意のテーマの短い動画を作成

前提条件
  • Googleアカウント + Gmail API認証情報
  • ターゲットAPIの認証情報が必要な場合あり
  • OpenAI API Key
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "id": "PLACEHOLDER_WORKFLOW_ID",
  "meta": {
    "instanceId": "PLACEHOLDER_INSTANCE_ID",
    "templateCredsSetupCompleted": true
  },
  "name": "08 - AI Video generation",
  "tags": [
    {
      "id": "PLACEHOLDER_TAG_ID",
      "name": "Sample Tag",
      "createdAt": "2025-09-08T06:03:03.283Z",
      "updatedAt": "2025-09-08T06:03:03.283Z"
    }
  ],
  "nodes": [
    {
      "id": "ae08743a-ff04-4daf-85fc-a8c91dcb8c34",
      "name": "ステータス",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        896,
        736
      ],
      "parameters": {
        "url": "=https://generativelanguage.googleapis.com/v1beta/{{ $json.name }}",
        "options": {},
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "key"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "d25f07e3-e6bf-4973-94ba-d90fd3eff5ab",
      "name": "メッセージ送信",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1712,
        720
      ],
      "webhookId": "WEBHOOK_ID_PLACEHOLDER",
      "parameters": {
        "sendTo": "YOUR_EMAIL_HERE",
        "message": "=Description:{{ $json.message.content }}",
        "options": {
          "attachmentsUi": {
            "attachmentsBinary": [
              {}
            ]
          }
        },
        "subject": "The video is ready to share on social media."
      },
      "credentials": {
        "gmailOAuth2": {
          "id": "GMAIL_CREDENTIAL_ID",
          "name": "Gmail Account"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "1bfc7578-fe4a-4028-b442-bce9be1f9d8c",
      "name": "ソーシャルメディア説明文",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        160,
        432
      ],
      "parameters": {
        "modelId": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini",
          "cachedResultName": "GPT-4.1-MINI"
        },
        "options": {},
        "messages": {
          "values": [
            {
              "content": "={\n  \"prompt\": \"You are a social media content assistant. Take the following 8-second financial news script and create an engaging, SEO-friendly social media description suitable for LinkedIn, Instagram, and YouTube. The description should summarize the key points of the script, be concise, and written in a professional yet approachable tone. Include relevant hashtags for finance, stock market, and trading trends. Make it attention-grabbing to encourage viewers to watch the video. Keep the description between 50-150 words. Here is the script: {{ $json.message.content }}\"\n}\n"
            }
          ]
        }
      },
      "credentials": {
        "openAiApi": {
          "id": "OPENAI_CREDENTIAL_ID",
          "name": "OpenAI Account"
        }
      },
      "typeVersion": 1.8
    },
    {
      "id": "e21f4324-6f82-453d-96db-12d7ea124cdf",
      "name": "ニュース原稿生成",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -256,
        592
      ],
      "parameters": {
        "modelId": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini",
          "cachedResultName": "GPT-4.1-MINI"
        },
        "options": {},
        "messages": {
          "values": [
            {
              "content": "={\n  \"prompt\": \"You are a financial news assistant. Create an 8-second spoken-style script that delivers the latest globally trending stock market and trading news. Focus on the most impactful and recent global market movements such as major index shifts (S&P 500, Nasdaq, Dow Jones, FTSE, Nikkei), commodities (oil, gold), forex, or crypto. The script should be concise, engaging, and easy for a general audience to understand. Keep the tone urgent and informative, suitable for a quick news reel. Limit output to 3-4 short sentences, no bullet points.\"\n}\n"
            }
          ]
        }
      },
      "credentials": {
        "openAiApi": {
          "id": "OPENAI_CREDENTIAL_ID",
          "name": "OpenAI Account"
        }
      },
      "typeVersion": 1.8
    },
    {
      "id": "21f202fd-c92f-4adb-944d-3a791af6edcc",
      "name": "Veo3プロンプト生成",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        160,
        736
      ],
      "parameters": {
        "modelId": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini",
          "cachedResultName": "GPT-4.1-MINI"
        },
        "options": {},
        "messages": {
          "values": [
            {
              "content": "={\n  \"prompt\": \"You are a video prompt generator for Veo 3. Convert the following financial news script into a clear, descriptive video generation prompt. The goal is to help Veo 3 create an engaging 8-second news-style video. Translate the spoken script into visuals: describe a professional news anchor, newsroom or studio setting, relevant background visuals (stock tickers, charts, global maps, trading floors), and overall mood (urgent, professional, engaging). Ensure the prompt is cinematic, easy for Veo 3 to understand, and matches the script's content and tone. Do not repeat the script text, only describe the visuals and style. Here is the script:{{ $json.message.content }} \"\n}\n"
            }
          ]
        }
      },
      "credentials": {
        "openAiApi": {
          "id": "OPENAI_CREDENTIAL_ID",
          "name": "OpenAI Account"
        }
      },
      "typeVersion": 1.8
    },
    {
      "id": "e34f64e6-eb4d-4ac4-8897-65bce3e05800",
      "name": "動画作成",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        496,
        736
      ],
      "parameters": {
        "url": "https://generativelanguage.googleapis.com/v1beta/models/veo-3.0-fast-generate-preview:predictLongRunning",
        "method": "POST",
        "options": {},
        "jsonBody": "={\n  \"instances\": [\n    { \"prompt\":{{ $json.message.content }}  }\n  ],\n  \"parameters\": { \"aspectRatio\": \"16:9\" }\n}",
        "sendBody": true,
        "sendQuery": true,
        "specifyBody": "json",
        "queryParameters": {
          "parameters": [
            {
              "name": "key"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "37ad9efc-e986-46c8-ae27-ea51c7135c1b",
      "name": "動画完了待機",
      "type": "n8n-nodes-base.wait",
      "position": [
        704,
        736
      ],
      "webhookId": "WEBHOOK_ID_PLACEHOLDER",
      "parameters": {
        "amount": 30
      },
      "typeVersion": 1.1
    },
    {
      "id": "efb7c8d0-2177-4864-acdf-bc7cbe69d193",
      "name": "条件分岐",
      "type": "n8n-nodes-base.if",
      "position": [
        1136,
        736
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "a978781f-9dfc-4220-8b30-aafa1d6b9f6f",
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              },
              "leftValue": "={{ $json.done }}",
              "rightValue": "true"
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "cb6f8d34-5b14-4c30-9a75-47c4a78d97b6",
      "name": "動画ダウンロード",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1408,
        720
      ],
      "parameters": {
        "url": "={{ $json.response.generateVideoResponse.generatedSamples[0].video.uri }}",
        "options": {},
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "key"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "e5bcc0b4-ae94-4c1b-bead-7e748dffcb3f",
      "name": "付箋",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -608,
        272
      ],
      "parameters": {
        "width": 320,
        "height": 720,
        "content": "## Step 1: Trigger Workflow  \n- Node: Daily Trigger  \n- Starts the workflow automatically every day.  "
      },
      "typeVersion": 1
    },
    {
      "id": "6130da6c-80d7-45a6-9d5b-1e1355bf2b54",
      "name": "付箋1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -272,
        272
      ],
      "parameters": {
        "color": 4,
        "width": 752,
        "height": 720,
        "content": "## Step 2: Generate Content \n- Nodes: Generate News Script, Generate Veo3 Prompt, Social Media Description  \n- Creates 8-sec financial news script, video prompt for Veo3, and social media description.  "
      },
      "typeVersion": 1
    },
    {
      "id": "d8aa7775-279f-40a8-9c47-f4eebd044bf4",
      "name": "付箋2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        496,
        272
      ],
      "parameters": {
        "color": 3,
        "width": 816,
        "height": 720,
        "content": "## Step 3: Generate Video \n- Nodes: Create Video, Wait for Video, Status, If  \n- Generates the video, waits for it to finish, checks status, and loops if not ready.  \n"
      },
      "typeVersion": 1
    },
    {
      "id": "403a21d2-0fe9-4d13-b187-bd321b5effea",
      "name": "付箋3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1328,
        272
      ],
      "parameters": {
        "color": 6,
        "width": 560,
        "height": 720,
        "content": "## Step 4: Download and Share Video \n- Nodes: Download Video, Send a message  \n- Downloads the generated video and sends an email with description and attachment."
      },
      "typeVersion": 1
    },
    {
      "id": "942eb771-663a-4109-bb45-fba71caf29fa",
      "name": "デイリートリガー",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -480,
        592
      ],
      "parameters": {
        "rule": {
          "interval": [
            {}
          ]
        }
      },
      "typeVersion": 1.2
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "PLACEHOLDER_VERSION_ID",
  "connections": {
    "efb7c8d0-2177-4864-acdf-bc7cbe69d193": {
      "main": [
        [
          {
            "node": "cb6f8d34-5b14-4c30-9a75-47c4a78d97b6",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "37ad9efc-e986-46c8-ae27-ea51c7135c1b",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "ae08743a-ff04-4daf-85fc-a8c91dcb8c34": {
      "main": [
        [
          {
            "node": "efb7c8d0-2177-4864-acdf-bc7cbe69d193",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "e34f64e6-eb4d-4ac4-8897-65bce3e05800": {
      "main": [
        [
          {
            "node": "37ad9efc-e986-46c8-ae27-ea51c7135c1b",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "942eb771-663a-4109-bb45-fba71caf29fa": {
      "main": [
        [
          {
            "node": "e21f4324-6f82-453d-96db-12d7ea124cdf",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "cb6f8d34-5b14-4c30-9a75-47c4a78d97b6": {
      "main": [
        [
          {
            "node": "d25f07e3-e6bf-4973-94ba-d90fd3eff5ab",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "37ad9efc-e986-46c8-ae27-ea51c7135c1b": {
      "main": [
        [
          {
            "node": "ae08743a-ff04-4daf-85fc-a8c91dcb8c34",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "e21f4324-6f82-453d-96db-12d7ea124cdf": {
      "main": [
        [
          {
            "node": "21f202fd-c92f-4adb-944d-3a791af6edcc",
            "type": "main",
            "index": 0
          },
          {
            "node": "1bfc7578-fe4a-4028-b442-bce9be1f9d8c",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "21f202fd-c92f-4adb-944d-3a791af6edcc": {
      "main": [
        [
          {
            "node": "e34f64e6-eb4d-4ac4-8897-65bce3e05800",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "1bfc7578-fe4a-4028-b442-bce9be1f9d8c": {
      "main": [
        [
          {
            "node": "d25f07e3-e6bf-4973-94ba-d90fd3eff5ab",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
よくある質問

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

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

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

中級 - コンテンツ作成, その他, マルチモーダルAI

有料ですか?

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

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

経験者向け、6-15ノードの中程度の複雑さのワークフロー

作成者
Avkash Kakdiya

Avkash Kakdiya

@itechnotion

🚀 Founder of iTechNotion — we build custom AI-powered automation workflows for startups, agencies, and founders. 💡 Specializing in agentic AI systems, content automation, sales funnels, and digital workers. 🔧 14+ years in tech | Building scalable no-code/low-code solutions using n8n, OpenAI, and other API-first tools. 📬 Let’s automate what slows you down.

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34