Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "name": "Scrptly Reel Maker",
- "nodes": [
- {
- "parameters": {},
- "type": "n8n-nodes-base.manualTrigger",
- "typeVersion": 1,
- "position": [
- -1536,
- 416
- ],
- "id": "587d63f9-2471-4260-b7fa-d1a46323fccf",
- "name": "When clicking ‘Execute workflow’"
- },
- {
- "parameters": {
- "prompt": "=You need to generate a portrait video ad of 12 seconds (3 scenes each 4 seconds).\nThe video must showcase the product that is provided in the reference image.\nEach scene should be a b-roll visual effect applied to the product to create an engaging ad.\n\nFocus solely on the product with various camera movements and effects.\n\nThe resulting video must be engaging, fast paced and professionally made.\n\nYou can optionally add a simple & short narration as well.\n\nThe image needs to be fast paced, engaging and exciting.\n\nMake the whole video into a single video section.\n\nDon't add any narration, dialog, voice over, music or sound. The video must be silent.",
- "context": {
- "images": [
- {
- "url": "={{ $('Image Source').item.json.imageUrl }}"
- }
- ]
- },
- "approveUpTo": 20000
- },
- "type": "n8n-nodes-scrptly.scrptly",
- "typeVersion": 1,
- "position": [
- 512,
- 400
- ],
- "id": "c1a81d23-c488-498d-98d4-09ec4326d5b2",
- "name": "Generate Ad Video",
- "credentials": {
- "scrptlyApi": {
- "id": "HRqnt3hUpnerFLhX",
- "name": "Scrptly account"
- }
- },
- "onError": "continueRegularOutput"
- },
- {
- "parameters": {
- "prompt": "=Generate a portrait video of a realistic life-like casual content creator in his studio saying:\n{{ $('AiSetup').item.json.output.commentaryDialog.map(d=>\"- \"+d).join(\"\\n\") }}\n\n(don't change the dialog, use it as is)\n\nOnly generate these simple 2 scenes, nothing else. It should be simply the main character talking chest up in front of the camera in his room. Nothing in his hands, no phone, don't overlay anything on the video, no text and no images. Make the character talk steadily.\n\nThe videos must be high quality and have realistic style. The room should feature some nice neon lights and a gaming PC. The character should be engaging and enthousiastic.\n\nMake sure to position the speaker at the center of the video, to ensure that he is naturally integrated into his environment.",
- "approveUpTo": 20000
- },
- "type": "n8n-nodes-scrptly.scrptly",
- "typeVersion": 1,
- "position": [
- 1232,
- 368
- ],
- "id": "e38f8856-0ea3-40f6-b181-931b66fca4ee",
- "name": "Generate Influencer Showcase",
- "credentials": {
- "scrptlyApi": {
- "id": "HRqnt3hUpnerFLhX",
- "name": "Scrptly account"
- }
- },
- "onError": "continueRegularOutput"
- },
- {
- "parameters": {
- "operation": "sendAndWait",
- "chatId": "1911930587",
- "message": "Upload a product image",
- "responseType": "customForm",
- "formFields": {
- "values": [
- {
- "fieldLabel": "Image URL"
- },
- {
- "fieldLabel": "Image File",
- "fieldType": "file",
- "multipleFiles": false,
- "acceptFileTypes": ".jpg,.png,.jpeg"
- }
- ]
- },
- "options": {
- "limitWaitTime": {
- "values": {
- "resumeAmount": 10,
- "resumeUnit": "minutes"
- }
- },
- "appendAttribution": false
- }
- },
- "type": "n8n-nodes-base.telegram",
- "typeVersion": 1.2,
- "position": [
- -1344,
- 416
- ],
- "id": "56de1622-1bbc-4d0f-b4d6-6e18d4ae4ce0",
- "name": "Send message and wait for response",
- "webhookId": "b94489af-78d0-4682-9e5f-13bd66b1b7e6",
- "credentials": {
- "telegramApi": {
- "id": "A8PIDA9ejtg1ppi1",
- "name": "Scrptly — Telegram account"
- }
- }
- },
- {
- "parameters": {
- "conditions": {
- "options": {
- "caseSensitive": true,
- "leftValue": "",
- "typeValidation": "strict",
- "version": 2
- },
- "conditions": [
- {
- "id": "629e156c-3888-44fb-9afb-961318370203",
- "leftValue": "={{ $input.item.binary.Image_File }}",
- "rightValue": "",
- "operator": {
- "type": "object",
- "operation": "exists",
- "singleValue": true
- }
- }
- ],
- "combinator": "and"
- },
- "options": {}
- },
- "type": "n8n-nodes-base.if",
- "typeVersion": 2.2,
- "position": [
- -1152,
- 416
- ],
- "id": "d81c53d7-88b3-430f-b8bb-6dcdac0cdc87",
- "name": "If Upload"
- },
- {
- "parameters": {
- "modelId": {
- "__rl": true,
- "value": "gpt-5-mini",
- "mode": "list",
- "cachedResultName": "GPT-5-MINI"
- },
- "responses": {
- "values": [
- {
- "role": "system",
- "content": "=You're a video creator. You will be creating a video ad for a product.\nThat product's image will be feed to you and later on to a ai video tool that will generate an ad for it.\n\n[ad]\nOnce the ad is generated, another video will be generated of a content creator promoting Scrptly.com the AI Video Agent that created the original ad.\n\n[commentaty]\nThis second video will showcase the ad of the product and how it was created.\n\nTo help in this whole process, this is what you need to do:\n\nYou will be provided an image of a product and you'll have to generate a JSON output as follows:\n\n{\n \"name\": \"Product Name\",\n \"adDescription\": \"Caption of the original ad video\",\n \"commentaryDialog\": [\n \"Here's how I made an entire luxury ad from this picture of a face cream.\",\n \"I used script lee dot com, wrote a short prompt and uploaded the product picture.\",\n \"Within minutes I got back this professional ad video!\"\n ],\n \"commentaryDescription\": \"caption of the video showcasing scrptly and the ad it was able to generate.\",\n \"commentaryCaption\": [\n \"POV you discovered how to create broll in seconds instead of weeks\"\n ]\n}\n\n- commentaryDialog Adapt the commentary dialog that is provided. Keep relatively the same length as the suggested one. Be engaging. Make sure to mention \"script lee dot com\" and to mention it that way so that the TTS is able to read it properly. Make sure that the dialog is \"TTS-ready\". Keep things simple and straightforward don't use a long complicated product name, instead favor a short description such as \"shampoo\", \"swarovski necklace\"...\n\n- The descriptions will be posted on social media. So you'll have to write interesting descriptions that describe the content and also include hashtags. Choose these to target the right audience and optimise for search keywords.\n\nThe commentaryDescription is for the content creator video that will be posted on scrptly's social accounts. For reference:\nScrptly.com is an AI Video Agent that is able to generate full videos from simple prompts with optional context images. It's able to generate professional B-Roll videos, but also short films, anime videos, viral content, UGC content and much more while keeping the video consistent. Scrptly is not limited to 8-second videos, it can generate multi-minute long content while keeping character / environment / object consistency.\n\nScrptly also provides APIs and tools for automating the video creation process.\n\n- for the commentaryCaption array generate 5 different short text captions that will be added on top of the video. The goal of these is to serve as a hook, be interesting and drive engagement and get the attention and curiosity of the listener. Be creative and fun."
- },
- {
- "type": "image",
- "imageUrl": "={{ $json.imageUrl }}"
- }
- ]
- },
- "builtInTools": {},
- "options": {
- "textFormat": {
- "textOptions": {
- "type": "json_object",
- "verbosity": "low"
- }
- }
- }
- },
- "type": "@n8n/n8n-nodes-langchain.openAi",
- "typeVersion": 2,
- "position": [
- -592,
- 432
- ],
- "id": "9ddce703-3306-449a-9539-74a4912839a4",
- "name": "Setup Prompt",
- "credentials": {
- "openAiApi": {
- "id": "oZDWmifpD73MpnQS",
- "name": "OpenAi account"
- }
- }
- },
- {
- "parameters": {
- "operation": "sendAndWait",
- "chatId": "1911930587",
- "message": "=Ready to create the ad?\n{{ $json.output.name }}\n\n{{ $json.output.commentaryDialog.map(d=>\"- \"+d).join(\"\\n\") }}\n",
- "approvalOptions": {
- "values": {
- "approvalType": "double"
- }
- },
- "options": {
- "limitWaitTime": {
- "values": {
- "resumeAmount": 45,
- "resumeUnit": "minutes"
- }
- },
- "appendAttribution": false
- }
- },
- "type": "n8n-nodes-base.telegram",
- "typeVersion": 1.2,
- "position": [
- -64,
- 416
- ],
- "id": "90e3e7fc-d720-4063-8f50-7ee7f4b1a2b5",
- "name": "Send message and wait for response1",
- "webhookId": "b94489af-78d0-4682-9e5f-13bd66b1b7e6",
- "credentials": {
- "telegramApi": {
- "id": "A8PIDA9ejtg1ppi1",
- "name": "Scrptly — Telegram account"
- }
- }
- },
- {
- "parameters": {
- "conditions": {
- "options": {
- "caseSensitive": true,
- "leftValue": "",
- "typeValidation": "strict",
- "version": 2
- },
- "conditions": [
- {
- "id": "629e156c-3888-44fb-9afb-961318370203",
- "leftValue": "={{ $json.data.approved }}",
- "rightValue": "",
- "operator": {
- "type": "boolean",
- "operation": "true",
- "singleValue": true
- }
- }
- ],
- "combinator": "and"
- },
- "options": {}
- },
- "type": "n8n-nodes-base.if",
- "typeVersion": 2.2,
- "position": [
- 112,
- 416
- ],
- "id": "b415975d-a4eb-436c-9129-189d87db7170",
- "name": "If Upload1"
- },
- {
- "parameters": {
- "chatId": "1911930587",
- "text": "Aborted...",
- "additionalFields": {
- "appendAttribution": false
- }
- },
- "type": "n8n-nodes-base.telegram",
- "typeVersion": 1.2,
- "position": [
- 1968,
- 992
- ],
- "id": "47645dbf-7571-4454-9c9f-7c4b55a7fbc6",
- "name": "Send a text message1",
- "webhookId": "ecc08fa7-7ff1-458e-8b62-53ef9de8cc55",
- "credentials": {
- "telegramApi": {
- "id": "A8PIDA9ejtg1ppi1",
- "name": "Scrptly — Telegram account"
- }
- }
- },
- {
- "parameters": {
- "assignments": {
- "assignments": [
- {
- "id": "e344b90a-567c-417b-945c-b87c6211a18a",
- "name": "output",
- "value": "={{ $json.output[0].content[0].text }}",
- "type": "object"
- }
- ]
- },
- "options": {}
- },
- "type": "n8n-nodes-base.set",
- "typeVersion": 3.4,
- "position": [
- -272,
- 432
- ],
- "id": "54443586-af21-4236-94e6-54db2dfdd060",
- "name": "AiSetup"
- },
- {
- "parameters": {
- "method": "POST",
- "url": "https://api.scrptly.com/renderVideo",
- "authentication": "predefinedCredentialType",
- "nodeCredentialType": "scrptlyApi",
- "sendBody": true,
- "specifyBody": "json",
- "jsonBody": "={\n \"flow\": [\n {\n \"statement\": \"parallel\",\n \"actions\": [\n [\n {\n \"statement\": \"addLayer\",\n \"id\": \"11ee9fda-eb68-47c4-adab-a07e53376eb2\",\n \"type\": \"video\",\n \"settings\": {\n \"source\": \"{{ $('Generate Influencer Showcase').item.json.resultVideoUrl }}\"\n },\n \"properties\": {},\n \"options\": {\n \"waitFor\": \"finish\"\n }\n },\n {\n \"statement\": \"addLayer\",\n \"id\": \"ccbf39e1-3595-4a0a-bd91-bd2e0ac88c30\",\n \"type\": \"video\",\n \"settings\": {\n \"source\": \"{{ $('Generate Ad Video').item.json.resultVideoUrl }}\",\n \"index\": 10\n },\n \"properties\": {\n \"volume\": 0.7\n },\n \"options\": {\n \"waitFor\": \"finish\"\n }\n }\n ],\n [\n {\n \"statement\": \"wait\",\n \"duration\": \"2.5s\"\n },\n {\n \"statement\": \"addLayer\",\n \"id\": \"b466772a-7a71-4a42-a4b6-935f8682c8b5\",\n \"type\": \"image\",\n \"settings\": {\n \"source\": \"{{ $('Image Source').item.json.imageUrl }}\"\n },\n \"properties\": {\n \"position\": [\n 0.5,\n 0.7\n ],\n \"scale\": 0.5,\n \"borderRadius\": 0.05\n },\n \"options\": {}\n },\n {\n \"statement\": \"wait\",\n \"duration\": \"2s\"\n },\n {\n \"statement\": \"removeLayer\",\n \"id\": \"b466772a-7a71-4a42-a4b6-935f8682c8b5\"\n },\n {\n \"statement\": \"wait\",\n \"duration\": \"1s\"\n },\n {\n \"statement\": \"addLayer\",\n \"id\": \"7478e056-8e96-4e74-b9cd-f28ab8320b65\",\n \"type\": \"text\",\n \"settings\": {\n \"text\": \"Scrptly.com\",\n \"zIndex\": 2\n },\n \"properties\": {\n \"position\": [\n 0.5,\n 0.7\n ],\n \"scale\": 0.07,\n \"color\": \"#FFFFFF\",\n \"fontWeight\": \"bold\",\n \"textAlign\": \"center\"\n },\n \"options\": {}\n },\n {\n \"statement\": \"addLayer\",\n \"id\": \"c2bcc014-6816-4888-846b-f4ad746e74fa\",\n \"type\": \"video\",\n \"settings\": {\n \"source\": \"https://assets.scrptly.com/682f42c2bc8b5d35b75d9314/fd5ba114-30aa-4201-98ab-aacfaf8bff49/ScrptlyDemoTimelapse.mp4\"\n },\n \"properties\": {\n \"position\": [\n 0.5,\n 0.75\n ],\n \"scale\": 0.9,\n \"borderRadius\": 0.05,\n \"fit\": \"contain\"\n },\n \"options\": {\n \"waitFor\": \"finish\"\n }\n },\n {\n \"statement\": \"removeLayer\",\n \"id\": \"7478e056-8e96-4e74-b9cd-f28ab8320b65\"\n }\n ]\n ]\n }\n ],\n \"settings\": {\n \"size\": {\n \"width\": 1080,\n \"height\": 1920\n },\n \"frameRate\": 30,\n \"backgroundColor\": \"#000000\",\n \"defaults\": {\n \"easing\": \"easeInOut\"\n }\n }\n}",
- "options": {}
- },
- "type": "n8n-nodes-base.httpRequest",
- "typeVersion": 4.3,
- "position": [
- 1824,
- 336
- ],
- "id": "d8e3394a-31d4-4a5f-a34e-fb61c4a389fa",
- "name": "Edit Final Video",
- "notesInFlow": true,
- "credentials": {
- "scrptlyApi": {
- "id": "HRqnt3hUpnerFLhX",
- "name": "Scrptly account"
- }
- },
- "notes": "The flow / settings can be generated with the \"scrptly\" npm package."
- },
- {
- "parameters": {
- "method": "POST",
- "url": "https://freeimage.host/api/1/upload",
- "authentication": "genericCredentialType",
- "genericAuthType": "httpQueryAuth",
- "sendBody": true,
- "contentType": "multipart-form-data",
- "bodyParameters": {
- "parameters": [
- {
- "parameterType": "formBinaryData",
- "name": "source",
- "inputDataFieldName": "Image_File"
- }
- ]
- },
- "options": {}
- },
- "type": "n8n-nodes-base.httpRequest",
- "typeVersion": 4.2,
- "position": [
- -960,
- 320
- ],
- "id": "51749272-f1d5-45f7-89c8-00ae6d7112d7",
- "name": "Upload1",
- "credentials": {
- "oAuth2Api": {
- "id": "Mj2oppWhSeSuUj7s",
- "name": "ImgUr"
- },
- "httpQueryAuth": {
- "id": "ShLV6C0G0pdxo1dX",
- "name": "FreeImage.Host"
- }
- }
- },
- {
- "parameters": {
- "assignments": {
- "assignments": [
- {
- "id": "a118718b-a59a-495d-9b74-38da17d79d08",
- "name": "imageUrl",
- "value": "={{ $json.image?.url || $json.data[\"Image URL\"] }}",
- "type": "string"
- }
- ]
- },
- "options": {}
- },
- "type": "n8n-nodes-base.set",
- "typeVersion": 3.4,
- "position": [
- -768,
- 432
- ],
- "id": "8b1199df-9070-4784-a9f3-b884864fbf2f",
- "name": "Image Source"
- },
- {
- "parameters": {
- "url": "={{ $('Edit Final Video').item.json.eventsUrl }}",
- "sendHeaders": true,
- "headerParameters": {
- "parameters": [
- {
- "name": "Accept",
- "value": "application/json"
- }
- ]
- },
- "options": {}
- },
- "type": "n8n-nodes-base.httpRequest",
- "typeVersion": 4.3,
- "position": [
- 2240,
- 336
- ],
- "id": "75c9be25-18bd-4f13-83fd-06536e91e5cc",
- "name": "HTTP Request"
- },
- {
- "parameters": {
- "amount": 10
- },
- "type": "n8n-nodes-base.wait",
- "typeVersion": 1.1,
- "position": [
- 2048,
- 336
- ],
- "id": "f7b7d15b-fa7b-4a16-a3e5-b882763a10d2",
- "name": "Wait",
- "webhookId": "59ab7d71-4362-44d3-ac6e-655444ef61ba"
- },
- {
- "parameters": {
- "rules": {
- "values": [
- {
- "conditions": {
- "options": {
- "caseSensitive": true,
- "leftValue": "",
- "typeValidation": "strict",
- "version": 2
- },
- "conditions": [
- {
- "leftValue": "={{ $json.status }}",
- "rightValue": "success",
- "operator": {
- "type": "string",
- "operation": "equals"
- },
- "id": "7178d306-db61-45ae-a0a6-d81c5082c9cf"
- }
- ],
- "combinator": "and"
- },
- "renameOutput": true,
- "outputKey": "Success"
- },
- {
- "conditions": {
- "options": {
- "caseSensitive": true,
- "leftValue": "",
- "typeValidation": "strict",
- "version": 2
- },
- "conditions": [
- {
- "id": "6c69d1f9-da1c-48d0-adcc-ba345bccd270",
- "leftValue": "={{ $json.status }}",
- "rightValue": "failed",
- "operator": {
- "type": "string",
- "operation": "equals",
- "name": "filter.operator.equals"
- }
- }
- ],
- "combinator": "and"
- },
- "renameOutput": true,
- "outputKey": "Failed"
- }
- ]
- },
- "options": {
- "fallbackOutput": "extra"
- }
- },
- "type": "n8n-nodes-base.switch",
- "typeVersion": 3.3,
- "position": [
- 2448,
- 336
- ],
- "id": "4d939495-d157-457e-89ac-a2257d60fc89",
- "name": "Switch"
- },
- {
- "parameters": {
- "chatId": "1911930587",
- "text": "Failed to create final video",
- "additionalFields": {
- "appendAttribution": false
- }
- },
- "type": "n8n-nodes-base.telegram",
- "typeVersion": 1.2,
- "position": [
- 2720,
- 432
- ],
- "id": "94f4c3db-0b3f-469f-8cf5-cf0cb725189e",
- "name": "Send a text message3",
- "webhookId": "b94489af-78d0-4682-9e5f-13bd66b1b7e6",
- "credentials": {
- "telegramApi": {
- "id": "A8PIDA9ejtg1ppi1",
- "name": "Scrptly — Telegram account"
- }
- }
- },
- {
- "parameters": {
- "chatId": "1911930587",
- "text": "=Final video created:\n{{ $json.renderInfo.output.video }}\n",
- "additionalFields": {
- "appendAttribution": false
- }
- },
- "type": "n8n-nodes-base.telegram",
- "typeVersion": 1.2,
- "position": [
- 2784,
- 240
- ],
- "id": "0ef8140f-4fe3-4236-889f-f9adbd993bec",
- "name": "Send a text message4",
- "webhookId": "b94489af-78d0-4682-9e5f-13bd66b1b7e6",
- "credentials": {
- "telegramApi": {
- "id": "A8PIDA9ejtg1ppi1",
- "name": "Scrptly — Telegram account"
- }
- }
- },
- {
- "parameters": {
- "operation": "sendAndWait",
- "chatId": "1911930587",
- "message": "=Ad created:\n{{ $('Generate Ad Video').item.json.resultVideoUrl }}\n\n---\n{{ $('Generate Ad Video').item.json.projectUrl }}\n\n---\nDo you want to continue?",
- "responseType": "customForm",
- "formFields": {
- "values": [
- {
- "fieldLabel": "Do you approve this output?",
- "fieldType": "radio",
- "fieldOptions": {
- "values": [
- {
- "option": "Cancel ❌"
- },
- {
- "option": "Retry 🔁"
- },
- {
- "option": "Approve ✅"
- }
- ]
- }
- }
- ]
- },
- "options": {
- "limitWaitTime": {
- "values": {
- "resumeAmount": 45,
- "resumeUnit": "minutes"
- }
- },
- "appendAttribution": false
- }
- },
- "type": "n8n-nodes-base.telegram",
- "typeVersion": 1.2,
- "position": [
- 688,
- 400
- ],
- "id": "c377bb1c-db05-49ea-8189-31d4c70f5208",
- "name": "Send message and wait for response4",
- "webhookId": "b94489af-78d0-4682-9e5f-13bd66b1b7e6",
- "credentials": {
- "telegramApi": {
- "id": "A8PIDA9ejtg1ppi1",
- "name": "Scrptly — Telegram account"
- }
- }
- },
- {
- "parameters": {
- "rules": {
- "values": [
- {
- "conditions": {
- "options": {
- "caseSensitive": true,
- "leftValue": "",
- "typeValidation": "strict",
- "version": 2
- },
- "conditions": [
- {
- "leftValue": "={{ Object.values($json.data)?.[0].toLowerCase() }}",
- "rightValue": "approve",
- "operator": {
- "type": "string",
- "operation": "contains"
- },
- "id": "5ce787c5-8b78-4a2a-a41f-5cad97b31958"
- }
- ],
- "combinator": "and"
- },
- "renameOutput": true,
- "outputKey": "Approve"
- },
- {
- "conditions": {
- "options": {
- "caseSensitive": true,
- "leftValue": "",
- "typeValidation": "strict",
- "version": 2
- },
- "conditions": [
- {
- "id": "d807467c-ed66-42f7-b4dc-978262066967",
- "leftValue": "={{ Object.values($json.data)?.[0].toLowerCase() }}",
- "rightValue": "retry",
- "operator": {
- "type": "string",
- "operation": "contains"
- }
- }
- ],
- "combinator": "and"
- },
- "renameOutput": true,
- "outputKey": "Retry"
- },
- {
- "conditions": {
- "options": {
- "caseSensitive": true,
- "leftValue": "",
- "typeValidation": "strict",
- "version": 2
- },
- "conditions": [
- {
- "id": "05cbce08-a7e9-44cf-b049-bf55ebac4458",
- "leftValue": "={{ Object.values($json.data)?.[0].toLowerCase() }}",
- "rightValue": "cancel",
- "operator": {
- "type": "string",
- "operation": "contains"
- }
- }
- ],
- "combinator": "and"
- },
- "renameOutput": true,
- "outputKey": "Cancel"
- }
- ]
- },
- "options": {
- "fallbackOutput": "extra"
- }
- },
- "type": "n8n-nodes-base.switch",
- "typeVersion": 3.3,
- "position": [
- 832,
- 384
- ],
- "id": "512ec6fc-b6f2-477c-8e57-ea503be383dd",
- "name": "Switch1"
- },
- {
- "parameters": {
- "operation": "sendAndWait",
- "chatId": "1911930587",
- "message": "=Commentary video created:\n{{ $('Generate Influencer Showcase').item.json.resultVideoUrl }}\n\n---\n{{ $('Generate Influencer Showcase').item.json.projectUrl }}\n\n---\nDo you want to finalize the video?",
- "responseType": "customForm",
- "formFields": {
- "values": [
- {
- "fieldLabel": "Do you approve this output?",
- "fieldType": "radio",
- "fieldOptions": {
- "values": [
- {
- "option": "Cancel ❌"
- },
- {
- "option": "Retry 🔁"
- },
- {
- "option": "Approve ✅"
- }
- ]
- }
- }
- ]
- },
- "options": {
- "limitWaitTime": {
- "values": {
- "resumeAmount": 45,
- "resumeUnit": "minutes"
- }
- },
- "appendAttribution": false
- }
- },
- "type": "n8n-nodes-base.telegram",
- "typeVersion": 1.2,
- "position": [
- 1440,
- 368
- ],
- "id": "7ec715fb-8c22-49ae-88b5-df93cef3a7c1",
- "name": "Send message and wait for response5",
- "webhookId": "b94489af-78d0-4682-9e5f-13bd66b1b7e6",
- "credentials": {
- "telegramApi": {
- "id": "A8PIDA9ejtg1ppi1",
- "name": "Scrptly — Telegram account"
- }
- }
- },
- {
- "parameters": {
- "rules": {
- "values": [
- {
- "conditions": {
- "options": {
- "caseSensitive": true,
- "leftValue": "",
- "typeValidation": "strict",
- "version": 2
- },
- "conditions": [
- {
- "leftValue": "={{ Object.values($json.data)?.[0].toLowerCase() }}",
- "rightValue": "approve",
- "operator": {
- "type": "string",
- "operation": "contains"
- },
- "id": "5ce787c5-8b78-4a2a-a41f-5cad97b31958"
- }
- ],
- "combinator": "and"
- },
- "renameOutput": true,
- "outputKey": "Approve"
- },
- {
- "conditions": {
- "options": {
- "caseSensitive": true,
- "leftValue": "",
- "typeValidation": "strict",
- "version": 2
- },
- "conditions": [
- {
- "id": "d807467c-ed66-42f7-b4dc-978262066967",
- "leftValue": "={{ Object.values($json.data)?.[0].toLowerCase() }}",
- "rightValue": "retry",
- "operator": {
- "type": "string",
- "operation": "contains"
- }
- }
- ],
- "combinator": "and"
- },
- "renameOutput": true,
- "outputKey": "Retry"
- },
- {
- "conditions": {
- "options": {
- "caseSensitive": true,
- "leftValue": "",
- "typeValidation": "strict",
- "version": 2
- },
- "conditions": [
- {
- "id": "05cbce08-a7e9-44cf-b049-bf55ebac4458",
- "leftValue": "={{ Object.values($json.data)?.[0].toLowerCase() }}",
- "rightValue": "cancel",
- "operator": {
- "type": "string",
- "operation": "contains"
- }
- }
- ],
- "combinator": "and"
- },
- "renameOutput": true,
- "outputKey": "Cancel"
- }
- ]
- },
- "options": {
- "fallbackOutput": "extra"
- }
- },
- "type": "n8n-nodes-base.switch",
- "typeVersion": 3.3,
- "position": [
- 1584,
- 352
- ],
- "id": "3dfe8c44-b7a7-449e-b9e4-839c59164ea7",
- "name": "Switch2"
- },
- {
- "parameters": {
- "chatId": "1911930587",
- "text": "Analyzing image...",
- "additionalFields": {
- "appendAttribution": false
- }
- },
- "type": "n8n-nodes-base.telegram",
- "typeVersion": 1.2,
- "position": [
- -1136,
- 560
- ],
- "id": "ecdec295-48bb-4373-bba0-4fe3763eaca8",
- "name": "Send a text message",
- "webhookId": "ecc08fa7-7ff1-458e-8b62-53ef9de8cc55",
- "credentials": {
- "telegramApi": {
- "id": "A8PIDA9ejtg1ppi1",
- "name": "Scrptly — Telegram account"
- }
- }
- },
- {
- "parameters": {
- "chatId": "1911930587",
- "text": "Generating ad video...",
- "additionalFields": {
- "appendAttribution": false
- }
- },
- "type": "n8n-nodes-base.telegram",
- "typeVersion": 1.2,
- "position": [
- 352,
- 400
- ],
- "id": "438d02f7-b91c-469e-bd21-b271c2373430",
- "name": "Send a text message2",
- "webhookId": "ecc08fa7-7ff1-458e-8b62-53ef9de8cc55",
- "credentials": {
- "telegramApi": {
- "id": "A8PIDA9ejtg1ppi1",
- "name": "Scrptly — Telegram account"
- }
- }
- },
- {
- "parameters": {
- "chatId": "1911930587",
- "text": "Generating Influencer Video...",
- "additionalFields": {
- "appendAttribution": false
- }
- },
- "type": "n8n-nodes-base.telegram",
- "typeVersion": 1.2,
- "position": [
- 1040,
- 368
- ],
- "id": "926c4102-0925-43bb-8272-ad9b982bcc84",
- "name": "Send a text message5",
- "webhookId": "ecc08fa7-7ff1-458e-8b62-53ef9de8cc55",
- "credentials": {
- "telegramApi": {
- "id": "A8PIDA9ejtg1ppi1",
- "name": "Scrptly — Telegram account"
- }
- }
- }
- ],
- "pinData": {
- "When clicking ‘Execute workflow’": [
- {
- "json": {}
- }
- ]
- },
- "connections": {
- "When clicking ‘Execute workflow’": {
- "main": [
- [
- {
- "node": "Send message and wait for response",
- "type": "main",
- "index": 0
- }
- ]
- ]
- },
- "Send message and wait for response": {
- "main": [
- [
- {
- "node": "If Upload",
- "type": "main",
- "index": 0
- },
- {
- "node": "Send a text message",
- "type": "main",
- "index": 0
- }
- ]
- ]
- },
- "If Upload": {
- "main": [
- [
- {
- "node": "Upload1",
- "type": "main",
- "index": 0
- }
- ],
- [
- {
- "node": "Image Source",
- "type": "main",
- "index": 0
- }
- ]
- ]
- },
- "Setup Prompt": {
- "main": [
- [
- {
- "node": "AiSetup",
- "type": "main",
- "index": 0
- }
- ]
- ]
- },
- "Generate Ad Video": {
- "main": [
- [
- {
- "node": "Send message and wait for response4",
- "type": "main",
- "index": 0
- }
- ]
- ]
- },
- "Send message and wait for response1": {
- "main": [
- [
- {
- "node": "If Upload1",
- "type": "main",
- "index": 0
- }
- ]
- ]
- },
- "If Upload1": {
- "main": [
- [
- {
- "node": "Send a text message2",
- "type": "main",
- "index": 0
- }
- ],
- [
- {
- "node": "Send a text message1",
- "type": "main",
- "index": 0
- }
- ]
- ]
- },
- "AiSetup": {
- "main": [
- [
- {
- "node": "Send message and wait for response1",
- "type": "main",
- "index": 0
- }
- ]
- ]
- },
- "Generate Influencer Showcase": {
- "main": [
- [
- {
- "node": "Send message and wait for response5",
- "type": "main",
- "index": 0
- }
- ]
- ]
- },
- "Edit Final Video": {
- "main": [
- [
- {
- "node": "Wait",
- "type": "main",
- "index": 0
- }
- ]
- ]
- },
- "Upload1": {
- "main": [
- [
- {
- "node": "Image Source",
- "type": "main",
- "index": 0
- }
- ]
- ]
- },
- "Image Source": {
- "main": [
- [
- {
- "node": "Setup Prompt",
- "type": "main",
- "index": 0
- }
- ]
- ]
- },
- "HTTP Request": {
- "main": [
- [
- {
- "node": "Switch",
- "type": "main",
- "index": 0
- }
- ]
- ]
- },
- "Wait": {
- "main": [
- [
- {
- "node": "HTTP Request",
- "type": "main",
- "index": 0
- }
- ]
- ]
- },
- "Switch": {
- "main": [
- [
- {
- "node": "Send a text message4",
- "type": "main",
- "index": 0
- }
- ],
- [
- {
- "node": "Send a text message3",
- "type": "main",
- "index": 0
- }
- ],
- [
- {
- "node": "Wait",
- "type": "main",
- "index": 0
- }
- ]
- ]
- },
- "Send message and wait for response4": {
- "main": [
- [
- {
- "node": "Switch1",
- "type": "main",
- "index": 0
- }
- ]
- ]
- },
- "Switch1": {
- "main": [
- [
- {
- "node": "Send a text message5",
- "type": "main",
- "index": 0
- }
- ],
- [
- {
- "node": "Send a text message2",
- "type": "main",
- "index": 0
- }
- ],
- [
- {
- "node": "Send a text message1",
- "type": "main",
- "index": 0
- }
- ],
- [
- {
- "node": "Send message and wait for response4",
- "type": "main",
- "index": 0
- }
- ]
- ]
- },
- "Send message and wait for response5": {
- "main": [
- [
- {
- "node": "Switch2",
- "type": "main",
- "index": 0
- }
- ]
- ]
- },
- "Switch2": {
- "main": [
- [
- {
- "node": "Edit Final Video",
- "type": "main",
- "index": 0
- }
- ],
- [
- {
- "node": "Send a text message5",
- "type": "main",
- "index": 0
- }
- ],
- [
- {
- "node": "Send a text message1",
- "type": "main",
- "index": 0
- }
- ],
- [
- {
- "node": "Send message and wait for response5",
- "type": "main",
- "index": 0
- }
- ]
- ]
- },
- "Send a text message2": {
- "main": [
- [
- {
- "node": "Generate Ad Video",
- "type": "main",
- "index": 0
- }
- ]
- ]
- },
- "Send a text message5": {
- "main": [
- [
- {
- "node": "Generate Influencer Showcase",
- "type": "main",
- "index": 0
- }
- ]
- ]
- }
- },
- "active": false,
- "settings": {
- "executionOrder": "v1"
- },
- "versionId": "9205486b-a5fa-4c0b-8949-6b8d1a1c3cb6",
- "meta": {
- "templateCredsSetupCompleted": true,
- "instanceId": "07dda7f8052f147e9fafffbd11dc97f994cf3853a6a04046a8dc74660634f249"
- },
- "id": "Vpno4KLyMZd5dpJG",
- "tags": []
- }
Advertisement
Add Comment
Please, Sign In to add comment