-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproduct_video_workflow.json
More file actions
2685 lines (2685 loc) · 85.4 KB
/
product_video_workflow.json
File metadata and controls
2685 lines (2685 loc) · 85.4 KB
1
2
3
4
5
6
7
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
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"id": "hrgSQUE3cV26S7rB",
"meta": {
"name": "Product to Social Media Video Generator (TR)",
"id": 8318,
"owner": "xCodeWraith DEV.",
"description": "Profesyonel AI Video \u00dcretim \u0130\u015f Ak\u0131\u015f\u0131 - xCodeWraith Edition",
"update_time": "2026-01-25"
},
"name": "Product to Social Video (xCodeWraith Edition)",
"tags": [],
"nodes": [
{
"id": "b6bb9d1b-b5a5-4fd7-9d37-e2c303c77682",
"name": "Ask Approval (Images)",
"type": "n8n-nodes-base.telegram",
"position": [
800,
1216
],
"webhookId": "be1fb782-8320-429e-8b40-4c87b9b53b80",
"parameters": {
"chatId": "={{ $('Set: Chat Vars').first().json.chat_id }}",
"message": "\u00d6nizlemeleri onayl\u0131yor musunuz? (Onaylarsan\u0131z video i\u015flenecek)",
"options": {
"appendAttribution": false
},
"operation": "sendAndWait",
"approvalOptions": {
"values": {
"approvalType": "double"
}
}
},
"credentials": {
"telegramApi": {
"id": "683oEZNRDT4dUD1i",
"name": "My Credential"
}
},
"typeVersion": 1.2
},
{
"id": "9b0f65b5-1a6c-4892-af4d-6ae55c662f42",
"name": "Approved?",
"type": "n8n-nodes-base.if",
"position": [
1024,
1216
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "loose"
},
"combinator": "or",
"conditions": [
{
"id": "approved-single",
"operator": {
"name": "filter.operator.equals",
"type": "boolean",
"operation": "isTrue"
},
"leftValue": "={{ $json.approved || $json.data?.approved || $json.payload?.approved }}"
},
{
"id": "073d95f4-202e-4116-8b54-5bd8b24c68f9",
"operator": {
"type": "boolean",
"operation": "true",
"singleValue": true
},
"leftValue": "={{ $json.data?.approved ?? $json.approved ?? $json.payload?.approved }}",
"rightValue": "={{ true }}"
}
]
},
"looseTypeValidation": true
},
"typeVersion": 2.2
},
{
"id": "a254cb1e-0b87-4fcf-b196-fe6f4b7c540d",
"name": "Motion designer",
"type": "@n8n/n8n-nodes-langchain.agentTool",
"position": [
-1728,
1504
],
"parameters": {
"text": "={{ $fromAI('Prompt__User_Message_', ``, 'string') }}",
"options": {
"maxIterations": 2,
"systemMessage": "## Role: Master Motion Designer for Pro Video Animation. From ONE provided product image (and the Art Director's sophisticated context), craft two cinematic, kling-optimized animation sequences.\n\nDeliverables (JSON only):\n{\n \"kling_prompt1\": \"<sophisticated cinematic sequence: multi-dimensional camera choreography + dynamic lighting orchestration + atmospheric integration; 9:16; 4\u20135s; 24fps; premium ease curves; no morphing>\",\n \"kling_prompt2\": \"<complementary advanced movement: complex spatial transitions + environmental animation + focus dynamics; 9:16; 4\u20135s; 24fps; cinematic timing; no morphing>\"\n}\n\n## Advanced Motion Vocabulary:\n**Camera Choreography**: Fluid multi-axis push-in with simultaneous tilt reveal, sweeping orbital arc with depth transition, ascending crane movement with parallax layers, rotating reveal with rack-focus integration, floating dolly with environmental immersion\n\n**Lighting Dynamics**: Directional rim light sweep across surface, graduated shadow transition with atmospheric haze, reflective surface choreography with highlight migration, ambient temperature shift with color grading, volumetric light penetration with depth enhancement\n\n**Focus & Depth**: Selective rack-focus pull from foreground to product, depth-layered reveal with bokeh transition, multi-plane parallax with focus shift, foreground-to-background focus sweep, shallow depth breathing with product isolation\n\n**Environmental Integration**: Subtle atmospheric particle animation, spatial breathing effects with ambient movement, surface reflection dynamics, controlled environmental disturbance, ambient light temperature evolution\n\n## Enhanced Rules:\n- Image-only analysis with cinematic vision. No new objects/text. Preserve product identity with luxury standards.\n- Select ONE sophisticated sequence per beat: advanced camera choreography, dynamic lighting design, atmospheric integration, focus dynamics. Premium easing with cinematic timing.\n- Technical specs: 9:16, 24fps, 4\u20135s duration.\n- Combine movement types for elevated sequences: camera + lighting + focus or camera + environment + depth.\n\n## Quality Standards:\n- Avoid basic linear movements (simple push/pull/pan)\n- Integrate multiple motion elements per sequence\n- Use professional cinematography language\n- Ensure smooth acceleration curves with premium timing\n- Create complementary but distinct sequences\n\n## Output: Single compact JSON with sophisticated motion sequences.\n## Output strictly JSON (no backticks).\n"
},
"toolDescription": "Motion prompts generator"
},
"typeVersion": 2.2
},
{
"id": "68ebece7-fc44-4748-afb3-c8c18b4b437d",
"name": "Art Director",
"type": "@n8n/n8n-nodes-langchain.agentTool",
"position": [
-1424,
1504
],
"parameters": {
"text": "={{ $fromAI('Prompt__User_Message_', ``, 'string') }}",
"options": {
"maxIterations": 2,
"systemMessage": "## Role: Master Art Director for Pro Video Animation. From ONE provided product image, design two sophisticated, elegant visual concepts suitable for premium vertical (9:16) brand animations.\n\nDeliverables (JSON only):\n{\n \"title\": \"<compelling brand narrative; luxury positioning; \u226460 chars>\",\n \"prompt1\": \"<refined edit of SAME image; cinematic lighting design/atmospheric depth/color grading mastery; 9:16>\",\n \"prompt2\": \"<sophisticated variation; premium gradient environments/luxury solid backgrounds/atmospheric integration; 9:16>\",\n \"environment\": \"<luxury production aesthetic with atmospheric details; \u226425 words>\",\n \"sound\": \"<premium audio landscape; sophisticated brand alignment; ambient/instrumental; \u226420 words>\"\n}\n\n## Enhanced Visual Standards:\n**Lighting Design**: Cinematic three-point lighting, dramatic rim lighting, soft volumetric illumination, atmospheric haze integration, color temperature sophistication\n\n**Background Concepts**: Luxury gradient transitions, premium solid environments, atmospheric depth layers, sophisticated color palettes, ambient environmental integration\n\n**Color Grading**: Professional color correction, cinematic color palettes, brand-appropriate temperature, sophisticated contrast management, luxury aesthetic enhancement\n\n**Atmospheric Effects**: Subtle environmental haze, soft focus backgrounds, depth-of-field enhancement, ambient lighting effects, premium visual texture\n\n## Quality Guidelines:\n- Elevate beyond simple edits to sophisticated visual design\n- Maintain product identity while enhancing luxury perception\n- Use professional photography and cinematography language\n- Create premium brand positioning through visual sophistication\n- Ensure complementary but distinct aesthetic approaches\n\n## Strict Rules:\n- Image-only analysis, preserve exact product identity, no people/text/UI elements\n- Focus on premium visual enhancement rather than minimal changes\n- Both concepts must reflect luxury brand standards\n\nOutput: Single compact JSON with exact keys reflecting sophisticated visual design.\n\n## Output strictly JSON (no backticks).\n"
},
"toolDescription": "Still image edit prompts"
},
"typeVersion": 2.2
},
{
"id": "a3a053b8-14fb-4772-b9c7-ebb1354e8bac",
"name": "Telegram Trigger",
"type": "n8n-nodes-base.telegramTrigger",
"position": [
-2480,
944
],
"webhookId": "8fe506fe-eb5a-42a8-9315-3de80685b204",
"parameters": {
"updates": [
"message"
],
"additionalFields": {
"download": true
}
},
"credentials": {
"telegramApi": {
"id": "683oEZNRDT4dUD1i",
"name": "My Credential"
}
},
"typeVersion": 1.2
},
{
"id": "92578418-3400-4810-969b-3c5287a28e8a",
"name": "Request Photo",
"type": "n8n-nodes-base.telegram",
"position": [
-2256,
800
],
"webhookId": "2c581fc1-9f82-41d4-be73-4fd46dbf9178",
"parameters": {
"chatId": "={{ $json.message.chat.id }}",
"message": "Pro Video Animation sistemine ho\u015f geldiniz \ud83d\udc4b\nL\u00fctfen bir \u00fcr\u00fcn foto\u011fraf\u0131 y\u00fckleyin (jpg/jpeg/webp).",
"options": {
"appendAttribution": false,
"messageButtonLabel": "Respond"
},
"operation": "sendAndWait",
"formFields": {
"values": [
{
"fieldType": "file",
"fieldLabel": "L\u00fctfen \u00fcr\u00fcn foto\u011fraf\u0131n\u0131 g\u00f6nderin",
"multipleFiles": false,
"requiredField": true,
"acceptFileTypes": "jpg, jpeg, webp"
}
]
},
"responseType": "customForm"
},
"credentials": {
"telegramApi": {
"id": "683oEZNRDT4dUD1i",
"name": "My Credential"
}
},
"typeVersion": 1.2
},
{
"id": "92c24fc7-03fd-4759-a03f-c7fc75116fbe",
"name": "Set: Chat Vars",
"type": "n8n-nodes-base.set",
"position": [
-2256,
1168
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"name": "chat_id",
"type": "number",
"value": "={{ $('Telegram Trigger').first().json.message.chat.id }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "20523084-5894-4830-86fc-28db3aae10bf",
"name": "Upload Original Image (imgbb)",
"type": "n8n-nodes-base.httpRequest",
"position": [
-768,
784
],
"parameters": {
"url": "https://api.imgbb.com/1/upload",
"method": "POST",
"options": {},
"sendBody": true,
"contentType": "multipart-form-data",
"bodyParameters": {
"parameters": [
{
"name": "image",
"parameterType": "formBinaryData",
"inputDataFieldName": "Please_send__a_product_photo"
},
{
"name": "key",
"value": "={{ $json.imgbb_api_key }}"
}
]
}
},
"retryOnFail": true,
"typeVersion": 4.2
},
{
"id": "7080c6dd-cc6f-4550-b73f-7a23def70629",
"name": "Google Gemini Chat Model16",
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"position": [
-1696,
1328
],
"parameters": {
"options": {},
"modelName": "models/gemini-2.5-pro"
},
"credentials": {
"googlePalmApi": {
"id": "09LBWZsfNfbTnVrk",
"name": "My Credential"
}
},
"typeVersion": 1
},
{
"id": "e8cd8fda-fab3-4f01-8696-58468743674d",
"name": "Structured Output Parser",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
-1168,
1344
],
"parameters": {
"jsonSchemaExample": "{\n \"title\": \"Ethereal Bloom \u2014 Celestial Awakening\",\n \"prompt1\": \"Vertical 9:16; premium skincare jar suspended in weightless space; crystalline surface catching prismatic light; whisper-soft aurora backdrop; volumetric rays threading through translucent mist; liquid mercury reflections dancing beneath; no faces, hands, text, logos, numbers.\",\n \"prompt2\": \"Vertical 9:16; same ethereal vessel; floating within gradient cosmos of deep amethyst dissolving to pearl luminescence; stardust particles swirling in slow motion; opalescent platform materializing from light itself; gossamer veils of energy embracing the form; no faces, hands, text, logos, numbers.\",\n \"kling_prompt1\": \"Celestial revelation: fluid three-dimensional spiral ascent with synchronized tilt-reveal choreography; cascading light frequencies sweep across surfaces while atmospheric particles perform orbital dance; micro-parallax depth breathing with focus pull from infinite to intimate; 9:16; 4s; 24fps; no morphing.\",\n \"kling_prompt2\": \"Transcendent orbit: weightless camera floating in figure-eight trajectory around suspended subject; dynamic rim lighting migration creates halo evolution; depth-of-field breathing with bokeh constellation transformation; environmental luminescence pulse synchronized with gentle rotation; 9:16; 4s; 24fps; no morphing.\",\n \"environment\": \"Ethereal void studio with controlled aurora projections, crystalline pedestals, atmospheric haze generators, prismatic lighting arrays.\",\n \"sound\": \"Crystalline harmonics layered with ambient cosmic whispers, subtle glass resonance, weightless atmospheric emergence.\"\n}"
},
"typeVersion": 1.2
},
{
"id": "86873903-6ce5-4359-a39d-4ff6012c6bba",
"name": "Creative Director (Orchestrator) agent",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
-1536,
1120
],
"parameters": {
"text": "## Project: Pro Video Animation \u2014 Premium 2-beat cinematic opener from ONE product image\n\n## Assets: Use ONLY the attached product image(s). No text description is provided.\n\n## Your job: Coordinate the Art Director and Motion Designer to produce a sophisticated, social-ready (IG/TikTok) opener with elevated cinematic quality. First get two refined edit prompts for image previews (from Art Director). Then get two matching premium animation prompts (from Motion Designer). Ensure everything is kling-optimized and preserves product integrity.\n\n## Enhanced constraints (apply to both sub-agents):\nPreserve product identity (shape/materials/colors/logo/brand essence). No morphing/warping/distortion.\nNo hands/faces/people. No on-screen text/letters/numbers/UI/watermarks.\nVertical 9:16 framing. Sophisticated, premium, luxury aesthetic.\nRefined image edits only (cinematic lighting design, atmospheric depth, elegant gradients/environments, color grading mastery).\nAdvanced pro moves for video (one sophisticated sequence per beat): \n- Fluid camera choreography: multi-axis push-in with tilt reveal, sweeping orbital arcs with depth transitions, ascending crane movements with parallax layers\n- Dynamic lighting: directional light sweeps, atmospheric rim lighting, graduated shadow transitions, reflective surface choreography\n- Focus dynamics: selective rack-focus pulls, depth-layered reveals, bokeh transition effects, foreground-to-background focus shifts\n- Environmental integration: subtle atmospheric animation, spatial breathing effects, ambient particle movement\n\nCinematic timing with premium ease curves; no basic linear movements or abrupt transitions.\n\n## What to collect and return (one object):\n\"title\", \"prompt1\", \"prompt2\", \"kling_prompt1\", \"kling_prompt2\", \"environment\", \"sound\"\n\n## Output format:\nReturn exactly one compact JSON object with only these keys (no prose, no markdown, no trailing commas).\nLanguage: English.\n",
"options": {
"maxIterations": 6,
"systemMessage": "## Role: Elite Creative Director for Pro Video Animation. You are the master orchestrator who coordinates two specialized sub-agents: Art Director and Motion Designer to create sophisticated cinematic experiences.\n\n## Goal: From ONE provided product image, deliver a premium 2-beat cinematic micro-story (vertical 9:16) for luxury brand animation by intelligently merging sub-agents' outputs into ONE sophisticated JSON.\n\n## Tools:\n- Think: analyze image composition, brand essence, and cinematic potential; decide optimal routing and quality validation.\n\n## Input:\n- Exactly one product image (deep visual analysis only; text description may be absent).\n\n## Enhanced Rules:\n- Analyze ONLY the provided image with cinematic vision. Do not invent objects, text, logos, or UI.\n- Preserve product identity with luxury brand standards (shape, materials, colors, logo, brand essence). No morphing/warping/distortion.\n- No hands/faces/people. No on-screen text, letters, numbers, or watermarks.\n- Elevate motion to cinematic standards: sophisticated camera choreography, dynamic lighting design, atmospheric integration (no basic physics/VFX).\n- Language: English. Output must be strictly valid JSON (double quotes, no trailing commas).\n\n## Sophisticated Routing Strategy:\n1) Send image to **Art Director** with luxury aesthetic brief \u2192 obtain: { title, prompt1, prompt2, environment, sound }.\n2) Send same image + Art Director's sophisticated context to **Motion Designer** with cinematic motion brief \u2192 obtain: { kling_prompt1, kling_prompt2 }.\n3) Intelligently merge results with quality enhancement into EXACT schema. Elevate any basic elements to premium standards.\n\n## Quality Standards:\n- Title: Compelling brand narrative (luxury positioning)\n- Visual prompts: Cinematic lighting design, atmospheric depth\n- Motion prompts: Advanced camera choreography, dynamic lighting, sophisticated timing\n- Environment: Premium production aesthetic\n- Sound: Sophisticated audio landscape matching brand elevation\n\n## Tool Calling Protocol:\n- When invoking tools, pass comprehensive context as single string to parameter `input`.\n- Include quality expectations and cinematic vision in agent briefs.\n\n## Output Protocol:\n- Return final result as STRICT compact JSON with keys: title, prompt1, prompt2, kling_prompt1, kling_prompt2, environment, sound.\n- No backticks, no markdown, no additional text.\n\n### PREMIUM CINEMATIC JSON ONLY\nReturn one elevated JSON object reflecting sophisticated brand animation standards.",
"passthroughBinaryImages": true
},
"promptType": "define",
"hasOutputParser": true
},
"typeVersion": 1.9
},
{
"id": "9c0c0fc5-fadf-4618-a989-44e304f8860f",
"name": "Set Storyboard Vars",
"type": "n8n-nodes-base.set",
"position": [
-768,
1024
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "6c72af85-66d8-4b34-be63-b7467bb2681a",
"name": "title",
"type": "string",
"value": "={{ $json.output.title }}"
},
{
"id": "f1633989-a547-4582-afae-a4d62591b47a",
"name": "prompt1",
"type": "string",
"value": "={{ $json.output.prompt1 }}"
},
{
"id": "cb3a586a-2b6e-412e-b9ff-6f79af6efc4b",
"name": "prompt2",
"type": "string",
"value": "={{ $json.output.prompt2 }}"
},
{
"id": "1dbf84a7-9327-435c-91af-1fd942d0b59e",
"name": "kling_prompt1",
"type": "string",
"value": "={{ $json.output.kling_prompt1 }}"
},
{
"id": "4db5aec6-7f0c-412d-acea-95812943380d",
"name": "kling_prompt2",
"type": "string",
"value": "={{ $json.output.kling_prompt2 }}"
},
{
"id": "4f9bcdea-6370-43f8-993e-99f1df59c640",
"name": "sound",
"type": "string",
"value": "={{ $json.output.sound }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "c03e9283-e1c1-46bb-854e-b0414de76f4f",
"name": "Merge Vars + Photo",
"type": "n8n-nodes-base.merge",
"position": [
-544,
1008
],
"parameters": {
"mode": "combine",
"options": {},
"combineBy": "combineByPosition",
"numberInputs": 3
},
"typeVersion": 3.1
},
{
"id": "6546589a-a0f1-4f16-bc88-c15761fd4b83",
"name": "Gen Image A",
"type": "n8n-nodes-base.httpRequest",
"position": [
-320,
640
],
"parameters": {
"url": "https://fal.run/fal-ai/gemini-25-flash-image/edit",
"body": "={\"prompt\":\"{{ $json.prompt1 }}\",\"image_urls\":[\"{{ $json.data.url }}\"],\"num_images\":1}",
"method": "POST",
"options": {},
"sendBody": true,
"contentType": "raw",
"authentication": "genericCredentialType",
"rawContentType": "application/json",
"genericAuthType": "httpHeaderAuth"
},
"credentials": {
"httpHeaderAuth": {
"id": "0abiYbH6rCtyBHlY",
"name": "My Credential"
}
},
"typeVersion": 4.2,
"retryOnFail": true
},
{
"id": "6b7e3fd6-b4e7-4426-ad20-5cda42fc0ba0",
"name": "Split Image A",
"type": "n8n-nodes-base.splitOut",
"position": [
-96,
640
],
"parameters": {
"options": {},
"fieldToSplitOut": "images"
},
"typeVersion": 1
},
{
"id": "3ebd8c3d-180e-48a9-817d-408ed0a7404a",
"name": "Download Image A",
"type": "n8n-nodes-base.httpRequest",
"options": {
"response": {
"response": {
"responseFormat": "file"
}
}
},
"position": [
128,
640
],
"parameters": {
"url": "={{ $json.url }}",
"options": {}
},
"typeVersion": 4.2,
"retryOnFail": true
},
{
"id": "faeb02b4-a851-4234-a929-707c437e8d5d",
"name": "Upload Edited A (imgbb)",
"type": "n8n-nodes-base.httpRequest",
"position": [
576,
704
],
"parameters": {
"url": "https://api.imgbb.com/1/upload",
"method": "POST",
"options": {},
"sendBody": true,
"contentType": "multipart-form-data",
"bodyParameters": {
"parameters": [
{
"name": "image",
"parameterType": "formBinaryData",
"inputDataFieldName": "photo2"
},
{
"name": "key",
"value": "={{ $('Set: YOUR API KEY (ImgBB)').item.json.imgbb_api_key }}"
}
]
}
},
"retryOnFail": true,
"typeVersion": 4.2
},
{
"id": "6298ccea-a6f2-4905-9f10-481825db5bb0",
"name": "Gen Image B",
"type": "n8n-nodes-base.httpRequest",
"position": [
-320,
1216
],
"parameters": {
"url": "https://fal.run/fal-ai/gemini-25-flash-image/edit",
"body": "={\"prompt\":\"{{ $json.prompt2 }}\",\"image_urls\":[\"{{ $json.data.url }}\"],\"num_images\":1}",
"method": "POST",
"options": {},
"sendBody": true,
"contentType": "raw",
"authentication": "genericCredentialType",
"rawContentType": "application/json",
"genericAuthType": "httpHeaderAuth"
},
"credentials": {
"httpHeaderAuth": {
"id": "0abiYbH6rCtyBHlY",
"name": "My Credential"
}
},
"typeVersion": 4.2,
"retryOnFail": true
},
{
"id": "4186e701-368b-4e8c-ab9b-0a1d3097f654",
"name": "Split Image B",
"type": "n8n-nodes-base.splitOut",
"position": [
-96,
1216
],
"parameters": {
"options": {},
"fieldToSplitOut": "images"
},
"typeVersion": 1
},
{
"id": "322e1015-41d8-4bb5-8735-5a79e71aebeb",
"name": "Download Image B",
"type": "n8n-nodes-base.httpRequest",
"options": {
"response": {
"response": {
"responseFormat": "file"
}
}
},
"position": [
128,
1216
],
"parameters": {
"url": "={{ $json.url }}",
"options": {}
},
"typeVersion": 4.2,
"retryOnFail": true
},
{
"id": "9064983c-7285-4c87-8ed3-54aae6dc3746",
"name": "Upload Edited B (imgbb)",
"type": "n8n-nodes-base.httpRequest",
"position": [
576,
896
],
"parameters": {
"url": "https://api.imgbb.com/1/upload",
"method": "POST",
"options": {},
"sendBody": true,
"contentType": "multipart-form-data",
"bodyParameters": {
"parameters": [
{
"name": "image",
"parameterType": "formBinaryData",
"inputDataFieldName": "photo3"
},
{
"name": "key",
"value": "={{ $('Set: YOUR API KEY (ImgBB)').item.json.imgbb_api_key }}"
}
]
}
},
"retryOnFail": true,
"typeVersion": 4.2
},
{
"id": "cc2b98a1-0413-4afe-bfb6-43e5c2a061c7",
"name": "Merge Edited URLs",
"type": "n8n-nodes-base.merge",
"position": [
800,
832
],
"parameters": {},
"typeVersion": 3.1
},
{
"id": "6a65a9a6-454e-4caa-b56f-1dcbe2a5b423",
"name": "Aggregate Edited URLs",
"type": "n8n-nodes-base.aggregate",
"position": [
1024,
832
],
"parameters": {
"options": {},
"aggregate": "aggregateAllItemData"
},
"typeVersion": 1
},
{
"id": "f0ce04c4-ace4-4eb5-bdfe-afad2f9338db",
"name": "Wait A",
"type": "n8n-nodes-base.wait",
"position": [
1696,
704
],
"webhookId": "d573599c-ba00-48ad-b6e2-73f054044c3c",
"parameters": {
"amount": 40
},
"typeVersion": 1.1
},
{
"id": "aada3fbb-2c09-43c1-a3d4-49c383cfe3a0",
"name": "Animation Completed? A",
"type": "n8n-nodes-base.if",
"position": [
2144,
704
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "animation-completed-a",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.status }}",
"rightValue": "COMPLETED"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "363f1aa3-7aaa-4be4-9b90-cc65db1dc9bb",
"name": "Wait B",
"type": "n8n-nodes-base.wait",
"position": [
1696,
992
],
"webhookId": "f65f2d3c-5b42-427a-8dc6-772c44285f18",
"parameters": {
"amount": 40
},
"typeVersion": 1.1
},
{
"id": "a073a747-5ec7-478a-8f59-2f7a07c2e0d3",
"name": "Animation Completed? B",
"type": "n8n-nodes-base.if",
"position": [
2144,
992
],
"parameters": {
"options": {},
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "animation-completed-b",
"operator": {
"name": "filter.operator.equals",
"type": "string",
"operation": "equals"
},
"leftValue": "={{ $json.status }}",
"rightValue": "COMPLETED"
}
]
}
},
"typeVersion": 2.2
},
{
"id": "b7e3bbca-60d8-4916-9fb8-a01df36ec1e1",
"name": "FFmpeg Compose",
"type": "n8n-nodes-base.httpRequest",
"position": [
3488,
848
],
"parameters": {
"url": "https://queue.fal.run/fal-ai/ffmpeg-api/compose",
"body": "={\n \"tracks\": [\n {\n \"id\": \"v1\",\n \"type\": \"video\",\n \"keyframes\": [\n {\n \"url\": \"{{$json.data[0].video.url}}\",\n \"timestamp\": 0,\n \"duration\": 5\n },\n {\n \"url\": \"{{$json.data[1].video.url}}\",\n \"timestamp\": 5,\n \"duration\": 5\n }\n ]\n }\n ]\n}\n",
"method": "POST",
"options": {},
"sendBody": true,
"contentType": "raw",
"authentication": "genericCredentialType",
"rawContentType": "application/json",
"genericAuthType": "httpHeaderAuth"
},
"credentials": {
"httpHeaderAuth": {
"id": "0abiYbH6rCtyBHlY",
"name": "My Credential"
}
},
"typeVersion": 4.2,
"retryOnFail": true
},
{
"id": "e4c1ee8c-cd99-4d44-8f8c-ff736b4225b7",
"name": "Notify: Stitching",
"type": "n8n-nodes-base.telegram",
"position": [
3712,
752
],
"webhookId": "9b2c824d-3318-4256-bb22-86059a17c5a3",
"parameters": {
"text": "Tamamlan\u0131yor... klipler birle\u015ftiriliyor. \u00c7ok az kald\u0131!",
"chatId": "={{ $('Set: Chat Vars').first().json.chat_id }}",
"additionalFields": {
"appendAttribution": false
}
},
"credentials": {
"telegramApi": {
"id": "683oEZNRDT4dUD1i",
"name": "My Credential"
}
},
"typeVersion": 1.2
},
{
"id": "b6be2028-a699-4526-895a-52a69e3ac6b3",
"name": "Wait Compose",
"type": "n8n-nodes-base.wait",
"position": [
3712,
944
],
"webhookId": "a6047fa0-a1af-4b65-9c1b-7576c8a614da",
"parameters": {
"amount": 30
},
"typeVersion": 1.1
},
{
"id": "fe0fd1d8-3c7a-4aa4-a8d4-9c791c74a04e",
"name": "Create Soundtrack",
"type": "n8n-nodes-base.httpRequest",
"position": [
4176,
944
],
"parameters": {
"url": "https://queue.fal.run/fal-ai/mmaudio-v2",
"body": "={\n \"prompt\": \"Premium ambient soundscape for luxury brand with characteristics: {{ $('Set Storyboard Vars').first().json.sound }}\",\n \"video_url\": \"{{ $json.video_url }}\",\n \"num_steps\": 25,\n \"duration\": 10,\n \"cfg_strength\": 10.5,\n \"negative_prompt\": \"no voice\"\n}\n",
"method": "POST",
"options": {
"batching": {
"batch": {
"batchSize": 1,
"batchInterval": 2000
}
}
},
"sendBody": true,
"contentType": "raw",
"authentication": "genericCredentialType",
"rawContentType": "application/json",
"genericAuthType": "httpHeaderAuth"
},
"credentials": {
"httpHeaderAuth": {
"id": "0abiYbH6rCtyBHlY",
"name": "My Credential"
}
},
"typeVersion": 4.2,
"retryOnFail": true
},
{
"id": "ceaf16d0-4742-4208-aecf-4d26699cf876",
"name": "Wait Soundtrack",
"type": "n8n-nodes-base.wait",
"position": [
4384,
944
],
"webhookId": "9be6715a-5691-477f-93f6-b0ab1274db35",
"parameters": {
"amount": 100
},
"typeVersion": 1.1
},
{
"id": "0e374488-129a-490b-a191-4d1eb1c38ca2",
"name": "Get Soundtrack",
"type": "n8n-nodes-base.httpRequest",
"position": [
4608,
944
],
"parameters": {
"url": "=https://queue.fal.run/fal-ai/mmaudio-v2/requests/{{ $json.request_id }}",
"options": {},
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth"
},
"credentials": {
"httpHeaderAuth": {
"id": "0abiYbH6rCtyBHlY",
"name": "My Credential"
}
},
"typeVersion": 4.2,
"retryOnFail": true
},
{
"id": "80361d91-d5a5-4859-a0c6-5cff03c87dbe",
"name": "Wait",
"type": "n8n-nodes-base.wait",
"position": [
6416,
1184
],
"webhookId": "d5efa83b-d035-47b1-bc77-d72235d4e1a2",
"parameters": {},
"typeVersion": 1.1
},
{
"id": "776907a2-89b5-40cc-9528-d469659d2b8d",
"name": "Send message and wait for response",
"type": "n8n-nodes-base.telegram",
"position": [
6432,
1344
],
"webhookId": "0d359487-bfe2-4079-a16a-794d1c9f747e",
"parameters": {
"chatId": "={{ $('Set: Chat Vars').first().json.chat_id }}",
"message": "Would you like me to share this on your social channels (late.dev) ?",
"options": {
"appendAttribution": false
},
"operation": "sendAndWait",
"approvalOptions": {
"values": {
"approvalType": "double"
}
}
},
"credentials": {
"telegramApi": {
"id": "683oEZNRDT4dUD1i",
"name": "My Credential"
}
},
"typeVersion": 1.2
},
{
"id": "d519447b-791f-4087-982a-ba570963a60a",
"name": "Send Image A",
"type": "n8n-nodes-base.telegram",
"position": [
576,
512
],
"webhookId": "43f63613-b2b8-4786-b495-48601ceb0bdf",
"parameters": {
"chatId": "={{ $('Set: Chat Vars').first().json.chat_id }}",
"operation": "sendPhoto",
"binaryData": true,
"additionalFields": {
"caption": "Concept A"
},
"binaryPropertyName": "photo2"
},
"credentials": {
"telegramApi": {
"id": "683oEZNRDT4dUD1i",
"name": "My Credential"
}
},
"typeVersion": 1.2
},
{
"id": "94381793-b216-4c3d-ab8e-7ef15c9c26ed",
"name": "Think",
"type": "@n8n/n8n-nodes-langchain.toolThink",
"position": [
-1280,
1360
],
"parameters": {},
"typeVersion": 1.1
},
{
"id": "50ad1d69-3ad4-4fd3-9aa8-66c89723bd1d",
"name": "start processing",
"type": "n8n-nodes-base.telegram",
"position": [
-768,
1216
],
"webhookId": "5af4fb6d-4ddf-41b3-93d0-0bd942a7e049",
"parameters": {
"text": "=\u2705 Got it \u2014 we'll start processing now.\n\ud83c\udfac Title: {{ $json.output.title }}\n\n\ud83d\udcdd Here are the prompts we'll proceed with:\n\n\ud83c\udfa8 Prompt 1: {{ $json.output.prompt1 }}\n\n\ud83c\udfad Prompt 2: {{ $json.output.prompt2 }}",
"chatId": "={{ $('Set: Chat Vars').first().json.chat_id }}",
"additionalFields": {
"appendAttribution": false
}
},
"credentials": {
"telegramApi": {
"id": "683oEZNRDT4dUD1i",
"name": "My Credential"
}
},
"typeVersion": 1.2
},
{
"id": "2696b816-976c-42f7-af26-9c4ca0b3dc98",
"name": "Send video Concept A",
"type": "n8n-nodes-base.telegram",
"position": [
2816,
640
],
"webhookId": "a2048395-5519-400b-82cb-99608fb45400",
"parameters": {
"chatId": "={{ $('Telegram Trigger').first().json.message.chat.id }}",
"operation": "sendVideo",
"binaryData": true,
"additionalFields": {
"caption": "Video Concept A"
}
},
"credentials": {
"telegramApi": {
"id": "683oEZNRDT4dUD1i",
"name": "My Credential"
}
},
"typeVersion": 1.2
},
{
"id": "6b944b22-90d7-44d4-bc14-1fa2330aa728",
"name": "Send video Concept B",
"type": "n8n-nodes-base.telegram",
"position": [
2816,
1072
],
"webhookId": "f4701f47-ef65-4745-b007-0ad842798667",
"parameters": {
"chatId": "={{ $('Telegram Trigger').first().json.message.chat.id }}",
"operation": "sendVideo",
"binaryData": true,
"additionalFields": {
"caption": "Send video Concept B"
}
},
"credentials": {
"telegramApi": {
"id": "683oEZNRDT4dUD1i",
"name": "My Credential"
}
},
"typeVersion": 1.2
},
{
"id": "dd1bb4d3-f2c0-4f25-8b4a-2487da5ca0a9",
"name": "Send Full Video (No Upscale)",
"type": "n8n-nodes-base.telegram",
"position": [
5072,
1072
],
"webhookId": "16755f34-dc38-4f71-96b2-24c913191fee",
"parameters": {
"chatId": "={{ $('Telegram Trigger').first().json.message.chat.id }}",
"operation": "sendVideo",
"binaryData": true,
"additionalFields": {
"caption": "Full video (no upscale)"
}
},
"credentials": {
"telegramApi": {
"id": "683oEZNRDT4dUD1i",
"name": "My Credential"
}
},
"typeVersion": 1.2
},
{
"id": "654cd746-c509-4d12-81e3-4772f6d738a7",
"name": "kling Queue A",
"type": "n8n-nodes-base.httpRequest",
"position": [
1472,
704
],
"parameters": {
"url": "https://queue.fal.run/fal-ai/kling-video/v1.6/pro/image-to-video",
"body": "={\"image_url\":\"{{ $('Aggregate Edited URLs').item.json.data[0].data.url }}\",\"prompt\":\"{{$('Set Storyboard Vars').first().json.kling_prompt1 }}\",\"aspect_ratio\":\"9:16\",\"duration\": \"5\"}",
"method": "POST",
"options": {},