Générateur de vidéos publicitaires
Ceci est unContent Creation, Multimodal AIworkflow d'automatisation du domainecontenant 20 nœuds.Utilise principalement des nœuds comme If, Set, Wait, Telegram, HttpRequest. Intégration transparente avec Veo3.1 API de Kie.ai via Telegram et Gemini
- •Token Bot Telegram
- •Peut nécessiter les informations d'identification d'authentification de l'API cible
- •Clé API Google Gemini
Nœuds utilisés (20)
Catégorie
{
"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": "Recevoir le message",
"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": "Extraire l'image et la légende",
"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": "Télécharger l'image 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": "Générer le script",
"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": "Créer la tâche de génération vidéo",
"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": "La vidéo est-elle prête ?",
"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": "Attendre 30 secondes",
"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": "Obtenir l'URL de la vidéo HD",
"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": "Télécharger la vidéo générée",
"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": "Envoyer la vidéo à l'utilisateur",
"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": "Note adhésive",
"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": "Note adhésive 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": "Téléverser l'image vers Kie Storage",
"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": "Note adhésive 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": "Note adhésive 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": "Vérifier l'état de la vidéo",
"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": "Note adhésive 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": "Note adhésive 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": "Note adhésive 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
}
]
]
}
}
}Comment utiliser ce workflow ?
Copiez le code de configuration JSON ci-dessus, créez un nouveau workflow dans votre instance n8n et sélectionnez "Importer depuis le JSON", collez la configuration et modifiez les paramètres d'authentification selon vos besoins.
Dans quelles scénarios ce workflow est-il adapté ?
Avancé - Création de contenu, IA Multimodale
Est-ce payant ?
Ce workflow est entièrement gratuit et peut être utilisé directement. Veuillez noter que les services tiers utilisés dans le workflow (comme l'API OpenAI) peuvent nécessiter un paiement de votre part.
Workflows recommandés
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.
Partager ce workflow