広告ビデオジェネレーター
上級
これはContent Creation, Multimodal AI分野の自動化ワークフローで、20個のノードを含みます。主にIf, Set, Wait, Telegram, HttpRequestなどのノードを使用。 TelegramとGeminiを利用し、Kie.aiのVeo3.1 APIでシームレスな統合を実現
前提条件
- •Telegram Bot Token
- •ターゲットAPIの認証情報が必要な場合あり
- •Google Gemini API Key
ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
"id": "MBRhvliMi5xlWUlx",
"meta": {
"instanceId": "7f9905f3b9fa1f8e9067942d39545bd5ebc4f8d5708704da67789fbda9e791d7",
"templateCredsSetupCompleted": true
},
"name": "AD Video Generator",
"tags": [],
"nodes": [
{
"id": "f89797fa-685e-412e-b186-b117c353d15e",
"name": "Google Gemini Chat Model",
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"position": [
208,
-416
],
"parameters": {
"options": {}
},
"credentials": {
"googlePalmApi": {
"id": "dcLzqJ0anvB782nu",
"name": "Google Gemini(PaLM) Api account"
}
},
"typeVersion": 1
},
{
"id": "0fbdf6cb-a5a9-42fd-ada3-537d57e1c53b",
"name": "メッセージ受信",
"type": "n8n-nodes-base.telegramTrigger",
"position": [
-384,
-544
],
"webhookId": "81a497f1-32b6-4db0-aa84-850c32551e95",
"parameters": {
"updates": [
"message"
],
"additionalFields": {}
},
"credentials": {
"telegramApi": {
"id": "30g8OVx09FW7rRSM",
"name": "Telegram account"
}
},
"typeVersion": 1.2
},
{
"id": "684d32b1-f04f-42fb-a11c-5a67ca378ae3",
"name": "画像とキャプションを抽出",
"type": "n8n-nodes-base.set",
"position": [
-160,
-544
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "3911fb54-cca0-43bb-9482-c6da7641dc92",
"name": "message.caption",
"type": "string",
"value": "={{ $json.message.caption }}"
},
{
"id": "4edb62f8-7aa3-4a96-b0a2-2dfc702e0d45",
"name": "message.photo[3].file_id",
"type": "string",
"value": "={{ $json.message.photo[2].file_id }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "bacc3d5a-7b28-46a9-bdd7-57b6089ad91b",
"name": "Telegram画像をダウンロード",
"type": "n8n-nodes-base.telegram",
"position": [
64,
-544
],
"webhookId": "310b5f86-fa8f-46e9-8a3d-573fe949266e",
"parameters": {
"fileId": "={{ $json.message.photo[3].file_id }}",
"resource": "file",
"additionalFields": {}
},
"credentials": {
"telegramApi": {
"id": "30g8OVx09FW7rRSM",
"name": "Telegram account"
}
},
"typeVersion": 1.2
},
{
"id": "fb4a2389-db12-4cf3-9134-90e7d8a54165",
"name": "スクリプト生成",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
224,
-544
],
"parameters": {
"text": "=Follow System Message",
"options": {
"systemMessage": "=You are a professional UGC ad scriptwriter. \nGenerate a 30-second UGC-style video script for Instagram Reels or TikTok \nthat sounds authentic, friendly, and relatable. \nIt should describe the product in a natural human tone, like a real person \nsharing their experience.\n\nProduct details:\n{{ $('Extract Image & Caption').item.json.message.caption }}\n{{ $json.result.file_path }}\n\nIf possible, mention benefits, sensory details, and an emotional payoff. \nEnd with a short, clear call to action like \"link in bio\" or \"try it yourself\".\n"
},
"promptType": "define"
},
"typeVersion": 3
},
{
"id": "2c512f38-67d3-4c3f-a8b6-6a5fe8f6ecfe",
"name": "動画生成タスク作成",
"type": "n8n-nodes-base.httpRequest",
"position": [
800,
-544
],
"parameters": {
"url": "https://api.kie.ai/api/v1/veo/generate",
"method": "POST",
"options": {},
"sendBody": true,
"sendHeaders": true,
"bodyParameters": {
"parameters": [
{
"name": "prompt",
"value": "={{ $('Generate Script').item.json.output }}"
},
{
"name": "imageUrls",
"value": "={{ $json.data.downloadUrl }}"
},
{
"name": "model",
"value": "veo3_fast"
},
{
"name": "aspectRatio",
"value": "9:16"
},
{
"name": "seeds",
"value": "12345"
},
{
"name": "enableFallback",
"value": "false"
},
{
"name": "enableTranslation",
"value": "true"
},
{
"name": "generationType",
"value": "TEXT_2_VIDEO"
}
]
},
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "Bearer <TOKEN>"
}
]
}
},
"typeVersion": 4.3
},
{
"id": "745edc27-4b5e-4ce2-a629-636448cea7da",
"name": "動画準備完了確認",
"type": "n8n-nodes-base.if",
"position": [
1232,
-688
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "48af49b6-272a-41d6-bc92-af8aaa2d4dd5",
"operator": {
"type": "number",
"operation": "empty",
"singleValue": true
},
"leftValue": "={{ $json.data.completeTime }}",
"rightValue": ""
}
]
}
},
"typeVersion": 2.2
},
{
"id": "47a51398-cf01-4e8a-8489-60931fbc2fb9",
"name": "30秒待機",
"type": "n8n-nodes-base.wait",
"position": [
1440,
-704
],
"webhookId": "1958d2df-5d70-4c70-b4dc-a34bee3bc94e",
"parameters": {
"amount": 30
},
"typeVersion": 1.1
},
{
"id": "cbb402a4-bf3c-4312-892d-c833972f44dc",
"name": "HD動画URL取得",
"type": "n8n-nodes-base.httpRequest",
"position": [
1488,
-352
],
"parameters": {
"url": "https://api.kie.ai/api/v1/veo/get-1080p-video",
"options": {},
"sendQuery": true,
"sendHeaders": true,
"queryParameters": {
"parameters": [
{
"name": " taskId",
"value": "={{ $json.data.taskId }}"
}
]
},
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "Bearer <TOKEN>"
}
]
}
},
"typeVersion": 4.3
},
{
"id": "dc079bec-5a2e-4b0c-a009-73799d99d3fc",
"name": "生成動画をダウンロード",
"type": "n8n-nodes-base.httpRequest",
"position": [
1664,
-352
],
"parameters": {
"url": "={{ $('Check Video Status').item.json.data.response.resultUrls[0] }}",
"options": {}
},
"typeVersion": 4.3
},
{
"id": "f27ca815-8a24-4d06-9d43-49444c8edc19",
"name": "ユーザーへ動画送信",
"type": "n8n-nodes-base.telegram",
"position": [
1840,
-352
],
"webhookId": "1b38fa9e-79f5-4b18-98ce-92865e0c0c06",
"parameters": {
"chatId": "={{ $('Receive Message').item.json.message.chat.id }}",
"operation": "sendVideo",
"binaryData": true,
"additionalFields": {}
},
"credentials": {
"telegramApi": {
"id": "30g8OVx09FW7rRSM",
"name": "Telegram account"
}
},
"typeVersion": 1.2
},
{
"id": "18a58bee-1516-49a2-8e42-eea638feca20",
"name": "付箋",
"type": "n8n-nodes-base.stickyNote",
"position": [
192,
-688
],
"parameters": {
"color": 3,
"width": 272,
"height": 416,
"content": "## 📝 Generate Script \nThis node creates a highly engaging ad script for the product using AI, written in a natural, UGC-style tone."
},
"typeVersion": 1
},
{
"id": "431166b0-9f45-4ee8-879e-b41b95b8830c",
"name": "付箋2",
"type": "n8n-nodes-base.stickyNote",
"position": [
512,
-720
],
"parameters": {
"color": 4,
"width": 192,
"height": 368,
"content": "## ☁️ Upload to Kie Storage\nUploads the downloaded Telegram image to Kie.ai storage via API for further video generation."
},
"typeVersion": 1
},
{
"id": "e40711bb-7d2f-42c9-a24c-4777ba2c6d67",
"name": "Kieストレージへ画像アップロード",
"type": "n8n-nodes-base.httpRequest",
"position": [
560,
-544
],
"parameters": {
"url": "https://kieai.redpandaai.co/api/file-url-upload",
"method": "POST",
"options": {},
"sendBody": true,
"sendHeaders": true,
"bodyParameters": {
"parameters": [
{
"name": "fileUrl",
"value": "=https://api.telegram.org/file/bot7759143820:AAHyXBFghzJd5OksfEmOfPYxz6THes5-c6o/{{ $('Download Telegram Image').item.json.result.file_path }}"
},
{
"name": "uploadPath",
"value": "images/downloaded"
},
{
"name": "fileName",
"value": "my-downloaded-image.jpg"
}
]
},
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "Bearer <TOKEN>"
}
]
}
},
"typeVersion": 4.3
},
{
"id": "1f446bb2-0f14-4bd8-a372-cbb947487f9e",
"name": "付箋3",
"type": "n8n-nodes-base.stickyNote",
"position": [
752,
-736
],
"parameters": {
"color": 7,
"width": 192,
"height": 384,
"content": "## 🎥 Create Video Task\nSends the script and image URL to Kie.ai’s Veo3 API to start the UGC video generation process."
},
"typeVersion": 1
},
{
"id": "0cb432ee-2e9d-4338-b262-44f6219cbe8e",
"name": "付箋4",
"type": "n8n-nodes-base.stickyNote",
"position": [
992,
-848
],
"parameters": {
"color": 4,
"width": 192,
"height": 336,
"content": "## 🛰️ Check Video Status\nChecks the current generation progress of the video on Kie.ai Veo3 using the task ID."
},
"typeVersion": 1
},
{
"id": "57ca7b44-1e55-4f01-a43f-f9fd1adced3d",
"name": "動画ステータス確認",
"type": "n8n-nodes-base.httpRequest",
"position": [
1040,
-672
],
"parameters": {
"url": "https://api.kie.ai/api/v1/veo/record-info",
"options": {},
"sendQuery": true,
"sendHeaders": true,
"queryParameters": {
"parameters": [
{
"name": "taskId",
"value": "={{ $json.data.taskId }}"
}
]
},
"headerParameters": {
"parameters": [
{
"name": "Authorization",
"value": "Bearer <TOKEN>"
}
]
}
},
"typeVersion": 4.3
},
{
"id": "c8417ecb-fa5a-4d9e-beb1-66b0a1f09ae0",
"name": "付箋5",
"type": "n8n-nodes-base.stickyNote",
"position": [
1216,
-816
],
"parameters": {
"color": 5,
"width": 352,
"height": 272,
"content": "## 🔄 Video Status Loop\nChecks if the video generation is complete.\nIf not, waits 30 seconds before rechecking until it’s ready."
},
"typeVersion": 1
},
{
"id": "12f57a10-da0f-436d-8999-2b602045ff76",
"name": "付箋6",
"type": "n8n-nodes-base.stickyNote",
"position": [
1424,
-496
],
"parameters": {
"color": 4,
"width": 608,
"height": 304,
"content": "## 🎬 Retrieve & Send Video\n\nFetches the HD video URL from Kie.ai, downloads the generated video, and sends it back to the user on Telegram."
},
"typeVersion": 1
},
{
"id": "8d4cfb49-5bf7-43a0-bae2-1c7398f015c7",
"name": "付箋1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-224,
-736
],
"parameters": {
"height": 352,
"content": "## 🖼️ Extract Image & Caption\nThis node extracts the product image file ID and its caption text from the Telegram message input for use in later workflow steps."
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "76908e76-902b-414a-870a-60c854d05106",
"connections": {
"fb4a2389-db12-4cf3-9134-90e7d8a54165": {
"main": [
[
{
"node": "e40711bb-7d2f-42c9-a24c-4777ba2c6d67",
"type": "main",
"index": 0
}
]
]
},
"745edc27-4b5e-4ce2-a629-636448cea7da": {
"main": [
[
{
"node": "47a51398-cf01-4e8a-8489-60931fbc2fb9",
"type": "main",
"index": 0
}
],
[
{
"node": "cbb402a4-bf3c-4312-892d-c833972f44dc",
"type": "main",
"index": 0
}
]
]
},
"0fbdf6cb-a5a9-42fd-ada3-537d57e1c53b": {
"main": [
[
{
"node": "684d32b1-f04f-42fb-a11c-5a67ca378ae3",
"type": "main",
"index": 0
}
]
]
},
"47a51398-cf01-4e8a-8489-60931fbc2fb9": {
"main": [
[
{
"node": "57ca7b44-1e55-4f01-a43f-f9fd1adced3d",
"type": "main",
"index": 0
}
]
]
},
"cbb402a4-bf3c-4312-892d-c833972f44dc": {
"main": [
[
{
"node": "dc079bec-5a2e-4b0c-a009-73799d99d3fc",
"type": "main",
"index": 0
}
]
]
},
"57ca7b44-1e55-4f01-a43f-f9fd1adced3d": {
"main": [
[
{
"node": "745edc27-4b5e-4ce2-a629-636448cea7da",
"type": "main",
"index": 0
}
]
]
},
"bacc3d5a-7b28-46a9-bdd7-57b6089ad91b": {
"main": [
[
{
"node": "fb4a2389-db12-4cf3-9134-90e7d8a54165",
"type": "main",
"index": 0
}
]
]
},
"684d32b1-f04f-42fb-a11c-5a67ca378ae3": {
"main": [
[
{
"node": "bacc3d5a-7b28-46a9-bdd7-57b6089ad91b",
"type": "main",
"index": 0
}
]
]
},
"dc079bec-5a2e-4b0c-a009-73799d99d3fc": {
"main": [
[
{
"node": "f27ca815-8a24-4d06-9d43-49444c8edc19",
"type": "main",
"index": 0
}
]
]
},
"f89797fa-685e-412e-b186-b117c353d15e": {
"ai_languageModel": [
[
{
"node": "fb4a2389-db12-4cf3-9134-90e7d8a54165",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"e40711bb-7d2f-42c9-a24c-4777ba2c6d67": {
"main": [
[
{
"node": "2c512f38-67d3-4c3f-a8b6-6a5fe8f6ecfe",
"type": "main",
"index": 0
}
]
]
},
"2c512f38-67d3-4c3f-a8b6-6a5fe8f6ecfe": {
"main": [
[
{
"node": "57ca7b44-1e55-4f01-a43f-f9fd1adced3d",
"type": "main",
"index": 0
}
]
]
}
}
}よくある質問
このワークフローの使い方は?
上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。
このワークフローはどんな場面に適していますか?
上級 - コンテンツ作成, マルチモーダルAI
有料ですか?
このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。
関連ワークフロー
LinkedInおよびXウイルスのなコンテンツ自動エンジン
AIを使ってLinkedInとXにウイルスのなコンテンツを自動生成して公開する
If
Set
Wait
+
If
Set
Wait
156 ノードDiptamoy Barman
コンテンツ作成
成分分析
TelegramとGemini 2.5 Flashを使用して製品の成分写真を分析する
If
Switch
Telegram
+
If
Switch
Telegram
17 ノードParth Pansuriya
コンテンツ作成
Veo-3、Perplexity、FFmpegを使って1080pの短い動画を自動生成して投稿
Veo-3、Perplexity、FFmpegを使って1080pの短い動画を自動生成して投稿する
If
Set
Wait
+
If
Set
Wait
21 ノードSulieman Said
コンテンツ作成
💥 HeyGen II - 私をクローン - アイデアからリリースまで:YouTube、TikTok、Instagram向けのChatGPT-5ビデオ自動化 - ビデオ
HeyGen、GPT-5、そしてソーシャル自動投稿を使って、音声入力による動画制作を自動化する
If
Set
Wait
+
If
Set
Wait
41 ノードDr. Firas
コンテンツ作成
再生リスト詳細設定ボットコピー
Suno、GPT-4、Runway、Creatomate を使って AI 生成の YouTube ミュージックプレイリストを作成
If
Set
Code
+
If
Set
Code
203 ノードJoseph
コンテンツ作成
UGC広告クリエイター ✅
Telegram そして GPT-4 を使って AI 生成の UGC マーケティングビデオを作成
If
Set
Wait
+
If
Set
Wait
33 ノードDeniz
コンテンツ作成
ワークフロー情報
難易度
上級
ノード数20
カテゴリー2
ノードタイプ9
作成者
Parth Pansuriya
@parthpansuriyaI build smart and scalable automation workflows using n8n to simplify tasks, connect apps, and boost productivity. From WhatsApp bots to AI-powered systems, I create seamless automations tailored for business and creators.
外部リンク
n8n.ioで表示 →
このワークフローを共有