| { | |
| "name": "VEO3-Replicate", | |
| "nodes": [ | |
| { | |
| "parameters": {}, | |
| "type": "n8n-nodes-base.manualTrigger", | |
| "typeVersion": 1, | |
| "position": [ | |
| -700, | |
| -120 | |
| ], | |
| "id": "abdb0f59-3e9b-4eb1-939a-61f469885bd3", | |
| "name": "When clicking ‘Test workflow’" | |
| }, | |
| { | |
| "parameters": { | |
| "model": { | |
| "__rl": true, | |
| "value": "gpt-4o", | |
| "mode": "list", | |
| "cachedResultName": "gpt-4o" | |
| }, | |
| "options": {} | |
| }, | |
| "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi", | |
| "typeVersion": 1.2, | |
| "position": [ | |
| -600, | |
| 60 | |
| ], | |
| "id": "40f94fd1-1e68-42fa-befa-061a3ee4a603", | |
| "name": "OpenAI Chat Model", | |
| "credentials": { | |
| "openAiApi": { | |
| "id": "1u2JRbXy4aqbLyDi", | |
| "name": "OpenAi - Somphopjay" | |
| } | |
| } | |
| }, | |
| { | |
| "parameters": { | |
| "method": "POST", | |
| "url": "https://api.replicate.com/v1/models/google/veo-3/predictions", | |
| "authentication": "genericCredentialType", | |
| "genericAuthType": "httpHeaderAuth", | |
| "sendBody": true, | |
| "bodyParameters": { | |
| "parameters": [ | |
| { | |
| "name": "input.prompt", | |
| "value": "={{ $json['Prompt'] }}" | |
| } | |
| ] | |
| }, | |
| "options": {} | |
| }, | |
| "type": "n8n-nodes-base.httpRequest", | |
| "typeVersion": 4.2, | |
| "position": [ | |
| 200, | |
| -120 | |
| ], | |
| "id": "9f8fa133-c29e-49eb-b7b5-92f85ec4b8e7", | |
| "name": "Create Video", | |
| "credentials": { | |
| "httpHeaderAuth": { | |
| "id": "5tBIaASI0Y9QtyJb", | |
| "name": "IMGBB-Header-API v1" | |
| } | |
| } | |
| }, | |
| { | |
| "parameters": { | |
| "amount": 30 | |
| }, | |
| "type": "n8n-nodes-base.wait", | |
| "typeVersion": 1.1, | |
| "position": [ | |
| 360, | |
| -120 | |
| ], | |
| "id": "8247b582-8e7c-40a5-944a-05a7f5376a31", | |
| "name": "Wait", | |
| "webhookId": "795b6581-9efc-4610-8dfc-1e4e3d4ba929" | |
| }, | |
| { | |
| "parameters": { | |
| "conditions": { | |
| "options": { | |
| "caseSensitive": true, | |
| "leftValue": "", | |
| "typeValidation": "strict", | |
| "version": 2 | |
| }, | |
| "conditions": [ | |
| { | |
| "id": "4e8f983a-3b1e-4370-9b58-9ffb56dcff4c", | |
| "leftValue": "={{ $json.status }}", | |
| "rightValue": "succeeded", | |
| "operator": { | |
| "type": "string", | |
| "operation": "equals", | |
| "name": "filter.operator.equals" | |
| } | |
| } | |
| ], | |
| "combinator": "and" | |
| }, | |
| "options": {} | |
| }, | |
| "type": "n8n-nodes-base.if", | |
| "typeVersion": 2.2, | |
| "position": [ | |
| 620, | |
| -120 | |
| ], | |
| "id": "36e1cc2e-41ca-4373-8887-3c5a4e7322e3", | |
| "name": "If" | |
| }, | |
| { | |
| "parameters": { | |
| "promptType": "define", | |
| "text": "create prompt wite capybara riding a road-bike", | |
| "hasOutputParser": true, | |
| "options": { | |
| "systemMessage": "You are a AI designed to create a veo 3 text to video prompt to generate a viral social media video based on the theme you are given. The prompt should describe one camera shot that is 8 seconds long. Include that the camera shot is being done on a selfie stick held by the character. There should only be one main character give a random name similar to the example \n\n\nPrompting Tips (from Google’s Guide) To get the best results, try these prompt strategies:\nShot Composition: “Close-up,” “two shot,” “over-the-shoulder”\nLens & Focus: “Macro lens,” “shallow focus,” “wide-angle lens”\nGenre & Style: “Sci-fi,” “romantic comedy,” “action movie”\nCamera Motion: “Zoom shot,” “dolly shot,” “tracking shot,” “pan shot”\nExample Prompt:\nClose up shot (composition) of melting icicles (subject) on a frozen rock wall (context) with cool blue tones (ambiance), zoomed in (camera motion) maintaining close-up detail of water drips (action).\n\nMake sure that the length of your output is nearly 100 word. Have one sentence start with character name says followed by a sentence of dialogue. " | |
| } | |
| }, | |
| "type": "@n8n/n8n-nodes-langchain.agent", | |
| "typeVersion": 1.8, | |
| "position": [ | |
| -560, | |
| -120 | |
| ], | |
| "id": "24536fef-2914-4dbe-97fc-445406a01f58", | |
| "name": "OpenAI-4o" | |
| }, | |
| { | |
| "parameters": { | |
| "operation": "append", | |
| "documentId": { | |
| "__rl": true, | |
| "value": "1o8Fg2zqlRi4vZmiWWPwXUkoGYbsoSaeiVK4CqMJPqzY", | |
| "mode": "list", | |
| "cachedResultName": "Veo3 Video Generation", | |
| "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1o8Fg2zqlRi4vZmiWWPwXUkoGYbsoSaeiVK4CqMJPqzY/edit?usp=drivesdk" | |
| }, | |
| "sheetName": { | |
| "__rl": true, | |
| "value": "gid=0", | |
| "mode": "list", | |
| "cachedResultName": "Sheet1", | |
| "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1o8Fg2zqlRi4vZmiWWPwXUkoGYbsoSaeiVK4CqMJPqzY/edit#gid=0" | |
| }, | |
| "columns": { | |
| "mappingMode": "defineBelow", | |
| "value": { | |
| "Status": "todo", | |
| "Prompt": "={{ $json.output }}" | |
| }, | |
| "matchingColumns": [], | |
| "schema": [ | |
| { | |
| "id": "Prompt", | |
| "displayName": "Prompt", | |
| "required": false, | |
| "defaultMatch": false, | |
| "display": true, | |
| "type": "string", | |
| "canBeUsedToMatch": true | |
| }, | |
| { | |
| "id": "Status", | |
| "displayName": "Status", | |
| "required": false, | |
| "defaultMatch": false, | |
| "display": true, | |
| "type": "string", | |
| "canBeUsedToMatch": true | |
| }, | |
| { | |
| "id": "URL", | |
| "displayName": "URL", | |
| "required": false, | |
| "defaultMatch": false, | |
| "display": true, | |
| "type": "string", | |
| "canBeUsedToMatch": true | |
| } | |
| ], | |
| "attemptToConvertTypes": false, | |
| "convertFieldsToString": false | |
| }, | |
| "options": {} | |
| }, | |
| "type": "n8n-nodes-base.googleSheets", | |
| "typeVersion": 4.5, | |
| "position": [ | |
| -140, | |
| -120 | |
| ], | |
| "id": "fcab4128-f5dc-4378-a27b-ae1d7fcfbc49", | |
| "name": "Keep Prompt" | |
| }, | |
| { | |
| "parameters": { | |
| "documentId": { | |
| "__rl": true, | |
| "value": "1o8Fg2zqlRi4vZmiWWPwXUkoGYbsoSaeiVK4CqMJPqzY", | |
| "mode": "list", | |
| "cachedResultName": "Veo3 Video Generation", | |
| "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1o8Fg2zqlRi4vZmiWWPwXUkoGYbsoSaeiVK4CqMJPqzY/edit?usp=drivesdk" | |
| }, | |
| "sheetName": { | |
| "__rl": true, | |
| "value": "gid=0", | |
| "mode": "list", | |
| "cachedResultName": "Sheet1", | |
| "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1o8Fg2zqlRi4vZmiWWPwXUkoGYbsoSaeiVK4CqMJPqzY/edit#gid=0" | |
| }, | |
| "filtersUI": { | |
| "values": [ | |
| { | |
| "lookupColumn": "Status", | |
| "lookupValue": "todo" | |
| } | |
| ] | |
| }, | |
| "options": { | |
| "returnFirstMatch": true | |
| } | |
| }, | |
| "type": "n8n-nodes-base.googleSheets", | |
| "typeVersion": 4.5, | |
| "position": [ | |
| -20, | |
| -120 | |
| ], | |
| "id": "ba6560b6-a26e-4bdd-b9ec-24f8db29fc66", | |
| "name": "Load Prompt to workflow" | |
| }, | |
| { | |
| "parameters": { | |
| "url": "={{ $json.urls.get }}", | |
| "authentication": "genericCredentialType", | |
| "genericAuthType": "httpHeaderAuth", | |
| "options": {} | |
| }, | |
| "type": "n8n-nodes-base.httpRequest", | |
| "typeVersion": 4.2, | |
| "position": [ | |
| 480, | |
| -120 | |
| ], | |
| "id": "ec0af760-fc90-4170-83bf-990fceb12754", | |
| "name": "Verify Status", | |
| "credentials": { | |
| "httpHeaderAuth": { | |
| "id": "5tBIaASI0Y9QtyJb", | |
| "name": "IMGBB-Header-API v1" | |
| } | |
| } | |
| }, | |
| { | |
| "parameters": { | |
| "operation": "update", | |
| "documentId": { | |
| "__rl": true, | |
| "value": "1o8Fg2zqlRi4vZmiWWPwXUkoGYbsoSaeiVK4CqMJPqzY", | |
| "mode": "list", | |
| "cachedResultName": "Veo3 Video Generation", | |
| "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1o8Fg2zqlRi4vZmiWWPwXUkoGYbsoSaeiVK4CqMJPqzY/edit?usp=drivesdk" | |
| }, | |
| "sheetName": { | |
| "__rl": true, | |
| "value": "gid=0", | |
| "mode": "list", | |
| "cachedResultName": "Sheet1", | |
| "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1o8Fg2zqlRi4vZmiWWPwXUkoGYbsoSaeiVK4CqMJPqzY/edit#gid=0" | |
| }, | |
| "columns": { | |
| "mappingMode": "defineBelow", | |
| "value": { | |
| "row_number": "={{ $('Load Prompt to workflow').item.json.row_number }}", | |
| "Status": "done", | |
| "URL": "={{ $json.output }}" | |
| }, | |
| "matchingColumns": [ | |
| "row_number" | |
| ], | |
| "schema": [ | |
| { | |
| "id": "Prompt ", | |
| "displayName": "Prompt ", | |
| "required": false, | |
| "defaultMatch": false, | |
| "display": true, | |
| "type": "string", | |
| "canBeUsedToMatch": true | |
| }, | |
| { | |
| "id": "Status", | |
| "displayName": "Status", | |
| "required": false, | |
| "defaultMatch": false, | |
| "display": true, | |
| "type": "string", | |
| "canBeUsedToMatch": true | |
| }, | |
| { | |
| "id": "URL", | |
| "displayName": "URL", | |
| "required": false, | |
| "defaultMatch": false, | |
| "display": true, | |
| "type": "string", | |
| "canBeUsedToMatch": true | |
| }, | |
| { | |
| "id": "row_number", | |
| "displayName": "row_number", | |
| "required": false, | |
| "defaultMatch": false, | |
| "display": true, | |
| "type": "string", | |
| "canBeUsedToMatch": true, | |
| "readOnly": true, | |
| "removed": false | |
| } | |
| ], | |
| "attemptToConvertTypes": false, | |
| "convertFieldsToString": false | |
| }, | |
| "options": {} | |
| }, | |
| "type": "n8n-nodes-base.googleSheets", | |
| "typeVersion": 4.5, | |
| "position": [ | |
| 820, | |
| -100 | |
| ], | |
| "id": "e051db4e-60bb-4ea4-9a62-7aec86de9853", | |
| "name": "Keep VEO3 Video Link" | |
| } | |
| ], | |
| "pinData": { | |
| "Create Video": [ | |
| { | |
| "json": { | |
| "id": "mpk9ymdr0drmc0cq8vv8rqeaw4", | |
| "model": "google/veo-3", | |
| "version": "hidden", | |
| "input": { | |
| "prompt": "A cinematic shot of Elijah (30 year old male, rugged beard, athletic, dressed in traditional flowing robes) filming a selfie video shot on the rocky slopes of a mountain. Elijah says excitedly, \"I'm calling down fire from heaven to light up the sacrifice!\" Camera quick action pans to the sky as dramatic flames roar and descend, illuminating the scene with a divine glow." | |
| }, | |
| "logs": "", | |
| "output": null, | |
| "data_removed": false, | |
| "error": null, | |
| "status": "starting", | |
| "created_at": "2025-06-06T20:37:43.555Z", | |
| "urls": { | |
| "cancel": "https://api.replicate.com/v1/predictions/mpk9ymdr0drmc0cq8vv8rqeaw4/cancel", | |
| "get": "https://api.replicate.com/v1/predictions/mpk9ymdr0drmc0cq8vv8rqeaw4", | |
| "stream": "https://stream.replicate.com/v1/files/bcwr-io5krzzja4tiwxpigx7hpu2k4mjji72smukq5pqpzhj5cxb7kkbq", | |
| "web": "https://replicate.com/p/mpk9ymdr0drmc0cq8vv8rqeaw4" | |
| } | |
| } | |
| } | |
| ], | |
| "OpenAI-4o": [ | |
| { | |
| "json": { | |
| "output": "A cinematic shot of Elijah (30 year old male, rugged beard, athletic, dressed in traditional flowing robes) filming a selfie video shot on the rocky slopes of a mountain. Elijah says excitedly, \"I'm calling down fire from heaven to light up the sacrifice!\" Camera quick action pans to the sky as dramatic flames roar and descend, illuminating the scene with a divine glow." | |
| } | |
| } | |
| ] | |
| }, | |
| "connections": { | |
| "When clicking ‘Test workflow’": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "OpenAI-4o", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "OpenAI Chat Model": { | |
| "ai_languageModel": [ | |
| [ | |
| { | |
| "node": "OpenAI-4o", | |
| "type": "ai_languageModel", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "Create Video": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "Wait", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "Wait": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "Verify Status", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "If": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "Keep VEO3 Video Link", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ], | |
| [ | |
| { | |
| "node": "Wait", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "OpenAI-4o": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "Keep Prompt", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "Keep Prompt": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "Load Prompt to workflow", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "Load Prompt to workflow": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "Create Video", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| }, | |
| "Verify Status": { | |
| "main": [ | |
| [ | |
| { | |
| "node": "If", | |
| "type": "main", | |
| "index": 0 | |
| } | |
| ] | |
| ] | |
| } | |
| }, | |
| "active": false, | |
| "settings": { | |
| "executionOrder": "v1" | |
| }, | |
| "versionId": "09ecd8e8-5000-48ee-8378-fcdb23dd0c5a", | |
| "meta": { | |
| "instanceId": "52186cf1b8efe42bc5d27bbce9c2dedc42f74757c6fd390a78301306ccc29052" | |
| }, | |
| "id": "CrzncEAdA6ttmAzM", | |
| "tags": [] | |
| } |