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8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
{
  "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": []
}