{
"name": "Episode 11: AI shorts factory app",
"nodes": [
{
"parameters": {},
"type": "n8n-nodes-base.limit",
"typeVersion": 1,
"position": [
2440,
-600
],
"id": "c8bcb106-e8e7-4b0b-a056-c18027d0f89a",
"name": "Limit"
},
{
"parameters": {
"options": {}
},
"type": "n8n-nodes-base.splitInBatches",
"typeVersion": 3,
"position": [
2060,
-220
],
"id": "78c54309-ffb1-4b8a-81c9-38708cef35e2",
"name": "Loop Over Items"
},
{
"parameters": {
"method": "POST",
"url": "https://api.together.xyz/v1/images/generations",
"authentication": "genericCredentialType",
"genericAuthType": "httpBearerAuth",
"sendBody": true,
"bodyParameters": {
"parameters": [
{
"name": "model",
"value": "black-forest-labs/FLUX.1-schnell-Free"
},
{
"name": "prompt",
"value": "={{ $json.image_prompt }}"
},
{
"name": "width",
"value": "={{ 720 }}"
},
{
"name": "height",
"value": "={{ 1280 }}"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
2380,
-220
],
"id": "2cb31f5c-2bd2-4e6e-9f2f-5db2ecc8ea95",
"name": "Generate AI image",
"alwaysOutputData": false,
"credentials": {
"httpBearerAuth": {
"id": "Y58EiorQxBVC7D3s",
"name": "Together AI"
}
},
"onError": "continueErrorOutput"
},
{
"parameters": {
"method": "POST",
"url": "={{ $('Configure me').item.json.ai_agents_no_code_tools_url }}/api/v1/media/storage",
"sendBody": true,
"contentType": "multipart-form-data",
"bodyParameters": {
"parameters": [
{
"name": "url",
"value": "={{ $json.data[0].url }}"
},
{
"name": "media_type",
"value": "image"
}
]
},
"options": {
"timeout": 10000
}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
2620,
-280
],
"id": "6067fa48-0fa0-421e-8956-c016520b6163",
"name": "Upload image to server",
"retryOnFail": true
},
{
"parameters": {
"url": "={{ $('Configure me').item.json.ai_agents_no_code_tools_url }}/api/v1/media/storage/{{ $('Start generating TTS (chatterbox)').item.json.file_id }}/status",
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
3520,
-100
],
"id": "f4a27732-2672-449b-922d-add8306c31aa",
"name": "Get status of TTS generation",
"retryOnFail": true
},
{
"parameters": {
"rules": {
"values": [
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"leftValue": "={{ $json.status }}",
"rightValue": "ready",
"operator": {
"type": "string",
"operation": "equals"
},
"id": "91402596-3978-4dfc-91b7-9ffe3521b862"
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "ready"
},
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "0c29765e-4213-434c-9bf3-c5e854dd6ee8",
"leftValue": "={{ $json.status }}",
"rightValue": "processing",
"operator": {
"type": "string",
"operation": "equals",
"name": "filter.operator.equals"
}
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "processing"
},
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "4a6cfd86-e690-417e-aa6d-ae497e1177ae",
"leftValue": "={{ $json.status }}",
"rightValue": "not_found",
"operator": {
"type": "string",
"operation": "equals",
"name": "filter.operator.equals"
}
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "failed"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.switch",
"typeVersion": 3.2,
"position": [
3680,
-100
],
"id": "152d7c6d-a3cf-49bb-bdf5-17dd888ffc4e",
"name": "TTS status switch"
},
{
"parameters": {
"method": "POST",
"url": "={{ $('Configure me').item.json.ai_agents_no_code_tools_url }}/api/v1/media/video-tools/generate/tts-captioned-video",
"sendBody": true,
"contentType": "form-urlencoded",
"specifyBody": "string",
"body": "={{ \n\n[\n `background_id=${$('Upload image to server').item.json.file_id}`,\n $json.tts_audio_id ? `audio_id=${$json.tts_audio_id}` : false,\n $json.tts_audio_id ? '' : `text=${encodeURIComponent($('Loop Over Items').item.json.text)}`,\n $json.tts_audio_id ? '' : `kokoro_voice=${$('Configure TTS').item.json.kokoro_voice}`,\n $json.tts_audio_id ? '' : `kokoro_speed=${$('Configure TTS').item.json.kokoro_speed}`\n].filter(Boolean).join('&') \n\n}}",
"options": {
"redirect": {
"redirect": {}
}
}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
4380,
-300
],
"id": "2cae7eed-1f1c-41f4-b628-e55d6dbab50b",
"name": "Start generating captioned TTS video"
},
{
"parameters": {
"url": "={{ $('Configure me').item.json.ai_agents_no_code_tools_url }}/api/v1/media/storage/{{ $('Start generating captioned TTS video').item.json.file_id }}/status",
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
4780,
-300
],
"id": "590d2efa-563e-425e-963c-8f9d8722334e",
"name": "Get video generation status",
"retryOnFail": true
},
{
"parameters": {
"rules": {
"values": [
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"leftValue": "={{ $json.status }}",
"rightValue": "ready",
"operator": {
"type": "string",
"operation": "equals"
},
"id": "91402596-3978-4dfc-91b7-9ffe3521b862"
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "ready"
},
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "0c29765e-4213-434c-9bf3-c5e854dd6ee8",
"leftValue": "={{ $json.status }}",
"rightValue": "processing",
"operator": {
"type": "string",
"operation": "equals",
"name": "filter.operator.equals"
}
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "processing"
},
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "4a6cfd86-e690-417e-aa6d-ae497e1177ae",
"leftValue": "={{ $json.status }}",
"rightValue": "not_found",
"operator": {
"type": "string",
"operation": "equals",
"name": "filter.operator.equals"
}
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "failed"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.switch",
"typeVersion": 3.2,
"position": [
4960,
-300
],
"id": "69617e40-7b27-4d51-9618-f46517572a44",
"name": "Video generation switch"
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "a7fdacca-749e-4f69-84fd-50075e0e3409",
"name": "video_id",
"value": "={{ $('Start generating captioned TTS video').item.json.file_id }}",
"type": "string"
},
{
"id": "6c99c267-5c41-4697-ba19-b51d9e8c9a4e",
"name": "tts_id",
"value": "={{ $('Global TTS audio id').item.json.tts_audio_id }}",
"type": "string"
},
{
"id": "21dd08a7-f785-4829-8609-a99950f21572",
"name": "image_id",
"value": "={{ $('Upload image to server').item.json.file_id }}",
"type": "string"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
5220,
-40
],
"id": "ffa78367-acfb-4825-b0cf-c748ac1f7aeb",
"name": "Setup media fields"
},
{
"parameters": {
"aggregate": "aggregateAllItemData",
"options": {}
},
"type": "n8n-nodes-base.aggregate",
"typeVersion": 1,
"position": [
2380,
300
],
"id": "08dc73cd-fcce-49e8-b876-874335730b21",
"name": "Combine loop items"
},
{
"parameters": {
"method": "POST",
"url": "={{ $('Configure me').item.json.ai_agents_no_code_tools_url }}/api/v1/media/video-tools/merge",
"sendBody": true,
"contentType": "form-urlencoded",
"bodyParameters": {
"parameters": [
{
"name": "video_ids",
"value": "={{ $json.data.map(item => item.video_id).join(',') }}"
},
{
"name": "background_music_id",
"value": "={{ $('Background music results').item.json.background_music_id }}"
},
{
"name": "background_music_volume",
"value": "={{ $('Background music results').item.json.background_music_volume }}"
}
]
},
"options": {
"redirect": {
"redirect": {}
}
}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
2580,
300
],
"id": "3fde82bc-b92c-4628-bf7e-171fd97ef7ba",
"name": "Start merging the videos"
},
{
"parameters": {
"url": "={{ $('Configure me').item.json.ai_agents_no_code_tools_url }}/api/v1/media/storage/{{ $('Start merging the videos').item.json.file_id }}/status",
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
3000,
300
],
"id": "61d7ca62-a873-4a62-bd1a-c097fec8597f",
"name": "Get status of the video merge"
},
{
"parameters": {
"rules": {
"values": [
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"leftValue": "={{ $json.status }}",
"rightValue": "ready",
"operator": {
"type": "string",
"operation": "equals"
},
"id": "91402596-3978-4dfc-91b7-9ffe3521b862"
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "ready"
},
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "0c29765e-4213-434c-9bf3-c5e854dd6ee8",
"leftValue": "={{ $json.status }}",
"rightValue": "processing",
"operator": {
"type": "string",
"operation": "equals",
"name": "filter.operator.equals"
}
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "processing"
},
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "4a6cfd86-e690-417e-aa6d-ae497e1177ae",
"leftValue": "={{ $json.status }}",
"rightValue": "not_found",
"operator": {
"type": "string",
"operation": "equals",
"name": "filter.operator.equals"
}
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "failed"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.switch",
"typeVersion": 3.2,
"position": [
3180,
300
],
"id": "eba2ed7e-e1a2-42e5-b274-926edb995f80",
"name": "Video merge status switch"
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "13b0dde8-b067-41d2-b7c2-fa5addf56a25",
"name": "download_url",
"value": "={{ $('Configure me').item.json.ai_agents_no_code_tools_url }}/api/v1/media/storage/{{ $('Start merging the videos').item.json.file_id }}",
"type": "string"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
3980,
300
],
"id": "6ee81c36-e169-4884-b2b0-082927c1a25c",
"name": "Setup final video download URL"
},
{
"parameters": {
"amount": 10
},
"type": "n8n-nodes-base.wait",
"typeVersion": 1.1,
"position": [
2620,
-120
],
"id": "11fc118f-7551-4a0c-bca3-7a60de327b39",
"name": "Wait for the error / rate limit to go away",
"webhookId": "660ade8c-7fef-4067-893c-9e5c69690b2c"
},
{
"parameters": {
"amount": 1
},
"type": "n8n-nodes-base.wait",
"typeVersion": 1.1,
"position": [
3340,
-100
],
"id": "2179d4c3-97f8-4048-810f-3cefb8676f02",
"name": "Wait until the TTS gets generated",
"webhookId": "15a948c1-85b4-4534-8d90-2ad7301f50fa"
},
{
"parameters": {
"method": "POST",
"url": "={{ $('Configure me').item.json.ai_agents_no_code_tools_url }}/api/v1/media/audio-tools/tts/chatterbox",
"sendBody": true,
"contentType": "multipart-form-data",
"bodyParameters": {
"parameters": [
{
"name": "text",
"value": "={{ $('Loop Over Items').item.json.text }}"
},
{
"name": "sample_audio_id",
"value": "={{ $('Configure TTS').item.json.chatterbox_clone_voice_id ?? '' }}"
},
{
"name": "exaggeration",
"value": "={{ $('Configure TTS').item.json.chatterbox_exaggeration }}"
},
{
"name": "cfg_weight",
"value": "={{ $('Configure TTS').item.json.chatterbox_cfg_weight }}"
},
{
"name": "temperature",
"value": "={{ $('Configure TTS').item.json.chatterbox_temperature }}"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
3160,
-100
],
"id": "8875949b-8c20-4341-96c8-c43419adebb1",
"name": "Start generating TTS (chatterbox)"
},
{
"parameters": {
"amount": 1
},
"type": "n8n-nodes-base.wait",
"typeVersion": 1.1,
"position": [
4580,
-300
],
"id": "3a64a8cf-1711-43ab-80a9-73e7b559e162",
"name": "Wait until the video gets generated",
"webhookId": "7179f710-9124-4c8e-97b9-23dd726158ae"
},
{
"parameters": {
"amount": 1
},
"type": "n8n-nodes-base.wait",
"typeVersion": 1.1,
"position": [
2800,
300
],
"id": "0a61605b-2271-4e0f-99d6-9f822538dc59",
"name": "Wait until the videos gets merged together",
"webhookId": "bc245528-7953-478b-87fd-5e3e016239dd"
},
{
"parameters": {
"documentId": {
"__rl": true,
"value": "12roXp7Ds8S0nA_Us2MjdKkAldJYUdTV80A7vcjwR6yI",
"mode": "list",
"cachedResultName": "reddit stories",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/12roXp7Ds8S0nA_Us2MjdKkAldJYUdTV80A7vcjwR6yI/edit?usp=drivesdk"
},
"sheetName": {
"__rl": true,
"value": "gid=0",
"mode": "list",
"cachedResultName": "Sheet1",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/12roXp7Ds8S0nA_Us2MjdKkAldJYUdTV80A7vcjwR6yI/edit#gid=0"
},
"filtersUI": {
"values": [
{
"lookupColumn": "video_id"
}
]
},
"options": {
"returnFirstMatch": true
}
},
"type": "n8n-nodes-base.googleSheets",
"typeVersion": 4.6,
"position": [
2320,
-600
],
"id": "fc6e9bfa-28b8-4d5f-b7e6-b56d38b00dcd",
"name": "Get story",
"alwaysOutputData": true,
"credentials": {
"googleSheetsOAuth2Api": {
"id": "y3SQnJ2q0kAJw5OI",
"name": "Google Sheets account"
}
}
},
{
"parameters": {
"rules": {
"values": [
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"leftValue": "={{ $('Configure TTS').item.json.tts_engine }}",
"rightValue": "kokoro",
"operator": {
"type": "string",
"operation": "equals"
},
"id": "5ae108d7-13b2-41aa-ab18-45a80515ad51"
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "kokoro"
},
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "a3dbceb9-96f7-4f78-b5e4-81bd6cb9a422",
"leftValue": "={{ $('Configure TTS').item.json.tts_engine }}",
"rightValue": "chatterbox",
"operator": {
"type": "string",
"operation": "equals",
"name": "filter.operator.equals"
}
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "chatterbox"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.switch",
"typeVersion": 3.2,
"position": [
2940,
-280
],
"id": "35342540-eb5e-4ced-83c0-a53413abbad4",
"name": "TTS switch"
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "d41f1ef6-7591-41b7-805d-94b58caba5c4",
"name": "tts_audio_id",
"value": "={{ $('Start generating TTS (chatterbox)').item.json.file_id }}",
"type": "string"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
3940,
-120
],
"id": "53ac3c61-abb9-4548-bfb8-2b9318b7fbf8",
"name": "Setup TTS file_id"
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "87d65a77-d25e-42b2-86ac-7b1c4efb2990",
"name": "text",
"value": "={{ $json.text.includes(\"<think>\") ? $json.text.split(\"</think>\")[1].trim() : $json.text.trim() }}",
"type": "string"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
3240,
-600
],
"id": "30b3f8f2-619e-4748-8150-aeea60caa87f",
"name": "Cleanup text"
},
{
"parameters": {
"model": {
"__rl": true,
"value": "gpt-4.1-mini",
"mode": "list",
"cachedResultName": "gpt-4.1-mini"
},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"typeVersion": 1.2,
"position": [
2080,
-1080
],
"id": "50100cb0-cee8-4a23-8e28-fd7c237b53ef",
"name": "OpenAI Chat Model",
"credentials": {
"openAiApi": {
"id": "tGvJRP2th9CbI2oq",
"name": "OpenAi account 2"
}
}
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "68de9e0e-e234-4509-a57a-4c4c42590620",
"name": "tts_audio_id",
"value": "={{ $json.tts_audio_id }}",
"type": "string"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
4200,
-300
],
"id": "79af5a2e-20f3-4558-a10f-77f5e21eaf32",
"name": "Global TTS audio id"
},
{
"parameters": {
"content": "# Pick your choice of LLM ⚠️",
"height": 700,
"width": 700,
"color": 3
},
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
1540,
-1560
],
"id": "10fff934-e552-4074-b0bf-a28a8c4013a2",
"name": "Sticky Note2"
},
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatOllama",
"typeVersion": 1,
"position": [
1620,
-1420
],
"id": "24a5a896-47fd-4b2b-94f2-9146cb9f2a87",
"name": "Ollama Chat Model",
"credentials": {
"ollamaApi": {
"id": "cWXUsJ0LsqnzOEx0",
"name": "Ollama account"
}
}
},
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatDeepSeek",
"typeVersion": 1,
"position": [
1940,
-1420
],
"id": "1edc786e-6c30-4130-b3fb-19eb240afedc",
"name": "DeepSeek Chat Model"
},
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
"typeVersion": 1,
"position": [
2080,
-1420
],
"id": "bb61849d-53ee-4b44-a4a6-7969360df560",
"name": "OpenRouter Chat Model"
},
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
"typeVersion": 1,
"position": [
1620,
-1080
],
"id": "3ae2da78-5dc7-4253-8c56-175aa031b2d2",
"name": "Google Gemini Chat Model"
},
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatAzureOpenAi",
"typeVersion": 1,
"position": [
1620,
-1260
],
"id": "c75bcf77-c21f-4653-926e-37fdcec0f09f",
"name": "Azure OpenAI Chat Model"
},
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatXAiGrok",
"typeVersion": 1,
"position": [
1780,
-1260
],
"id": "e2725813-5a43-436c-af34-2fe52c9524e0",
"name": "xAI Grok Chat Model"
},
{
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "claude-sonnet-4-20250514",
"cachedResultName": "Claude 4 Sonnet"
},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
"typeVersion": 1.3,
"position": [
1940,
-1260
],
"id": "ec015205-4e8a-4342-8817-53a0d33f9fc9",
"name": "Anthropic Chat Model"
},
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatXAiGrok",
"typeVersion": 1,
"position": [
2080,
-1260
],
"id": "627f0061-1395-471e-b3bb-e347028c6ed9",
"name": "xAI Grok Chat Model1"
},
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatGroq",
"typeVersion": 1,
"position": [
1940,
-1080
],
"id": "51bf836a-eb46-44fa-a089-9629906a41a5",
"name": "Groq Chat Model"
},
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatAwsBedrock",
"typeVersion": 1,
"position": [
1780,
-1420
],
"id": "7e9c7d7a-3545-4ea3-a5d6-6ddc4d03f5eb",
"name": "AWS Bedrock Chat Model"
},
{
"parameters": {
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatMistralCloud",
"typeVersion": 1,
"position": [
1780,
-1080
],
"id": "187ad812-734c-4aca-b3e8-f2bb4f91fdec",
"name": "Mistral Cloud Chat Model"
},
{
"parameters": {
"content": "# 4. Pick a story ⚠️\nmake sure to add the `video_id` filter with an empty value",
"height": 400,
"width": 600
},
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
2280,
-820
],
"id": "1ff4a376-73b7-4c88-9b3e-acb1aeeaa47a",
"name": "Sticky Note4"
},
{
"parameters": {
"content": "# 5. Create script from the story",
"height": 400,
"width": 880
},
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
2920,
-820
],
"id": "28de4a46-e4e8-442c-b437-c85ad2657c67",
"name": "Sticky Note5"
},
{
"parameters": {
"content": "# 9. Merge the videos",
"height": 360,
"width": 1180
},
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
2280,
180
],
"id": "9e4fa47a-f004-4955-b89e-cf4b44085dc3",
"name": "Sticky Note6"
},
{
"parameters": {
"operation": "update",
"documentId": {
"__rl": true,
"value": "12roXp7Ds8S0nA_Us2MjdKkAldJYUdTV80A7vcjwR6yI",
"mode": "list",
"cachedResultName": "reddit stories",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/12roXp7Ds8S0nA_Us2MjdKkAldJYUdTV80A7vcjwR6yI/edit?usp=drivesdk"
},
"sheetName": {
"__rl": true,
"value": "gid=0",
"mode": "list",
"cachedResultName": "Sheet1",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/12roXp7Ds8S0nA_Us2MjdKkAldJYUdTV80A7vcjwR6yI/edit#gid=0"
},
"columns": {
"mappingMode": "defineBelow",
"value": {
"id": "={{ $('Get story').item.json.id }}",
"video_id": "={{ $('Start merging the videos').item.json.file_id }}"
},
"matchingColumns": [
"id"
],
"schema": [
{
"id": "id",
"displayName": "id",
"required": false,
"defaultMatch": true,
"display": true,
"type": "string",
"canBeUsedToMatch": true,
"removed": false
},
{
"id": "title",
"displayName": "title",
"required": false,
"defaultMatch": false,
"display": true,
"type": "string",
"canBeUsedToMatch": true,
"removed": true
},
{
"id": "content",
"displayName": "content",
"required": false,
"defaultMatch": false,
"display": true,
"type": "string",
"canBeUsedToMatch": true,
"removed": true
},
{
"id": "video_id",
"displayName": "video_id",
"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": true
}
],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {}
},
"type": "n8n-nodes-base.googleSheets",
"typeVersion": 4.6,
"position": [
3620,
300
],
"id": "725188a0-37ba-4cfd-9526-4cd560e17154",
"name": "Save the video id",
"credentials": {
"googleSheetsOAuth2Api": {
"id": "y3SQnJ2q0kAJw5OI",
"name": "Google Sheets account"
}
}
},
{
"parameters": {
"content": "# 6. Generate an image with Flux ⚠️",
"height": 520,
"width": 580
},
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
2280,
-380
],
"id": "00dfbbe2-8567-466e-9156-7990a290cef1",
"name": "Sticky Note7"
},
{
"parameters": {
"content": "# 7. Create speech from text",
"height": 520,
"width": 1200
},
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
2900,
-380
],
"id": "38a1b40a-2c5c-4fa8-a222-9348a72fb595",
"name": "Sticky Note8"
},
{
"parameters": {
"content": "# 8. Generate captioned video",
"height": 520,
"width": 1240
},
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
4140,
-380
],
"id": "982b4ed9-6efa-4d00-bad4-a337c08037c8",
"name": "Sticky Note9"
},
{
"parameters": {
"content": "# 10. Save to Sheets ⚠️",
"height": 360,
"width": 380
},
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
3500,
180
],
"id": "da1993b8-0193-414c-8fc3-34732fb3c5e6",
"name": "Sticky Note11"
},
{
"parameters": {
"url": "={{ $('Setup final video download URL').item.json.download_url }}",
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
4380,
300
],
"id": "1a3500c4-094a-4e29-8108-76037ca6ee0f",
"name": "Download the video"
},
{
"parameters": {
"text": "=<Instructions>\nBreak up the text to multiple chunks that I can use for generating a youtube video, and for each chunk add an image generation prompt.\n\nAlso create a title and a description for the video.\n\nUse the following art style for the image prompts:\n\nArt style:\n{{ $('Configure me').item.json.art_style }}\n\n</Instructions>\n\n<Text>\n{{ $json.text }}\n</Text>\n\n/nothink",
"schemaType": "manual",
"inputSchema": "{\n \"type\": \"object\",\n \"properties\": {\n \"scenes\": {\n \"type\": \"array\",\n \"description\": \"user name\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"text\": {\n \"type\": \"string\",\n \"description\": \"the text of the scene, it will be used for TTS\"\n },\n \"image_prompt\": {\n \"type\": \"string\",\n \"description\": \"prompt for image generation\"\n }\n },\n \"required\": [\n \"text\",\n \"image_prompt\"\n ]\n }\n },\n \"title\": {\n \"type\": \"string\",\n \"description\": \"the title of the youtube video\"\n },\n \"description\": {\n \"type\": \"string\",\n \"description\": \"the description of the youtube video\"\n }\n },\n \"required\": [\n \"scenes\",\n \"title\",\n \"description\"\n ]\n}",
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.informationExtractor",
"typeVersion": 1.1,
"position": [
3360,
-600
],
"id": "ca6d8393-efd4-402a-af0d-aca78d92594a",
"name": "Create the script"
},
{
"parameters": {
"promptType": "define",
"text": "=<Instructions>\nUsing the below content, create 10s-60s long {{ $('Configure me').item.json.content_type }}.\nThe generated script will be used in a YouTube video.\nReturn clear text, no markdowns or any other styling is needed.\n</Instructions>\n\n<Post>\n{{ $('Limit').item.json.title }}\n\n{{ $('Limit').item.json.content }}\n</Post>\n\n/nothink",
"batching": {}
},
"type": "@n8n/n8n-nodes-langchain.chainLlm",
"typeVersion": 1.7,
"position": [
2960,
-600
],
"id": "db837a21-6232-4827-bd63-ddc005ba0099",
"name": "Create the motivational speech"
},
{
"parameters": {
"fieldToSplitOut": "output.scenes",
"options": {}
},
"type": "n8n-nodes-base.splitOut",
"typeVersion": 1,
"position": [
3640,
-600
],
"id": "cf072a94-0c12-4eb0-a3e4-89b26bb863d3",
"name": "Split Out"
},
{
"parameters": {
"content": "# 11. Upload to YouTube ⚠️",
"height": 360,
"width": 900,
"color": 4
},
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
3920,
180
],
"id": "c3c9866d-7717-4ea3-9685-b3d68bed8907",
"name": "Sticky Note13"
},
{
"parameters": {
"method": "POST",
"url": "https://www.googleapis.com/upload/youtube/v3/videos?part=snippet,status&uploadType=resumable",
"authentication": "predefinedCredentialType",
"nodeCredentialType": "youTubeOAuth2Api",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Content-Type",
"value": "application/json"
},
{
"name": "X-Upload-Content-Type",
"value": "video/mp4"
}
]
},
"sendBody": true,
"contentType": "raw",
"rawContentType": "RAW/JSON",
"body": "={\n \"snippet\": {\n \"title\": \"{{ $('Create the script').item.json.output.title }}\",\n \"description\": \"{{ $('Create the script').item.json.output.description }}\",\n \"tags\": \"\",\n \"categoryId\": \"24\",\n \"defaultLanguage\": \"en\",\n \"defaultAudioLanguage\": \"en\"\n },\n \"status\": {\n \"privacyStatus\": \"public\",\n \"license\": \"youtube\",\n \"embeddable\": true,\n \"publicStatsViewable\": true,\n \"madeForKids\": false\n }\n}\n",
"options": {
"response": {
"response": {
"fullResponse": true
}
}
}
},
"id": "503f1fc6-3ee8-4793-a4fb-f468e5ba58ae",
"name": "Start Youtube upload",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.1,
"position": [
4180,
300
],
"credentials": {
"youTubeOAuth2Api": {
"id": "EvIEz3KvgFMPW9Ap",
"name": "YouTube account"
}
},
"disabled": true
},
{
"parameters": {
"method": "PUT",
"url": "={{ $('Download the video').item.json.headers.location }}",
"authentication": "predefinedCredentialType",
"nodeCredentialType": "youTubeOAuth2Api",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Content-Type",
"value": "video/mp4"
}
]
},
"sendBody": true,
"contentType": "binaryData",
"inputDataFieldName": "data",
"options": {}
},
"id": "200ceb8b-ab0c-431f-9d5f-6ad9138723c4",
"name": "Upload video to YouTube",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.1,
"position": [
4580,
300
],
"credentials": {
"youTubeOAuth2Api": {
"id": "EvIEz3KvgFMPW9Ap",
"name": "YouTube account"
}
},
"disabled": true
},
{
"parameters": {
"content": "# How to set up this automation?\n\n## 1. Make a copy of the [Reddit Google Spreadsheet template](https://docs.google.com/spreadsheets/d/1W3BP1fxhmWqJGmhaYTflLnd7l0N1RaQUzXeI3Y5b7Fo/edit?usp=sharing) to your Google Drive\n## 2. Modify the Google Sheets nodes, select the one you just created\n## 3. Start the `AI Agents No-Code Tools` server\n## 4. Open the `Configure me` node, and setup the server url. You can also edit the subreddit, content type and art style if you want\n## 5. Create a free account on [Together AI](http://together.ai/), [create and API key](https://api.together.ai/settings/api-keys) and copy it\n## 6. Set up the `Generate AI Image` Node - create a new Bearer Auth credential and paste the API key from Together AI\n## 7. Set up the `Start YouTube upload` and `Upload video to YouTube` nodes - select/setup your YouTube credentials\n",
"height": 400,
"width": 1640,
"color": 6
},
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
2280,
-2560
],
"id": "382b4677-edf5-4991-a988-462dc90e0ede",
"name": "Sticky Note14"
},
{
"parameters": {
"url": "=https://www.reddit.com/r/{{ $('Configure me').item.json.subreddit }}/top.json?t=month&limit=100",
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
2740,
-1200
],
"id": "ab96a05d-5595-4861-ae8b-bab0ab84a627",
"name": "Get stories from reddit"
},
{
"parameters": {
"fieldToSplitOut": "data.children",
"options": {}
},
"type": "n8n-nodes-base.splitOut",
"typeVersion": 1,
"position": [
2900,
-1200
],
"id": "01527db1-5efc-4e02-8b64-5f40e5aefa1d",
"name": "For Each story"
},
{
"parameters": {
"operation": "appendOrUpdate",
"documentId": {
"__rl": true,
"value": "12roXp7Ds8S0nA_Us2MjdKkAldJYUdTV80A7vcjwR6yI",
"mode": "list",
"cachedResultName": "reddit stories",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/12roXp7Ds8S0nA_Us2MjdKkAldJYUdTV80A7vcjwR6yI/edit?usp=drivesdk"
},
"sheetName": {
"__rl": true,
"value": "gid=0",
"mode": "list",
"cachedResultName": "Sheet1",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/12roXp7Ds8S0nA_Us2MjdKkAldJYUdTV80A7vcjwR6yI/edit#gid=0"
},
"columns": {
"mappingMode": "defineBelow",
"value": {
"title": "={{ $json.data.title }}",
"content": "={{ $json.data.selftext }}",
"id": "={{ $json.data.id }}"
},
"matchingColumns": [
"id"
],
"schema": [
{
"id": "id",
"displayName": "id",
"required": false,
"defaultMatch": true,
"display": true,
"type": "string",
"canBeUsedToMatch": true,
"removed": false
},
{
"id": "title",
"displayName": "title",
"required": false,
"defaultMatch": false,
"display": true,
"type": "string",
"canBeUsedToMatch": true
},
{
"id": "content",
"displayName": "content",
"required": false,
"defaultMatch": false,
"display": true,
"type": "string",
"canBeUsedToMatch": true
},
{
"id": "video_id",
"displayName": "video_id",
"required": false,
"defaultMatch": false,
"display": true,
"type": "string",
"canBeUsedToMatch": true,
"removed": false
}
],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {}
},
"type": "n8n-nodes-base.googleSheets",
"typeVersion": 4.6,
"position": [
3060,
-1200
],
"id": "035dde32-1ece-4119-bcc5-dadeba1b81af",
"name": "Save it to Google Sheets",
"retryOnFail": true,
"credentials": {
"googleSheetsOAuth2Api": {
"id": "y3SQnJ2q0kAJw5OI",
"name": "Google Sheets account"
}
}
},
{
"parameters": {
"content": "# 2. Update reddit stories ⚠️",
"height": 460,
"width": 1080
},
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
2280,
-1320
],
"id": "e705aaca-eeae-4664-86cb-7ac23130a593",
"name": "Sticky Note17"
},
{
"parameters": {
"formTitle": "AI Agents A-Z Shorts Factory",
"formFields": {
"values": [
{
"fieldLabel": "Would you like to update the sheet by downloading the stories from reddit?",
"fieldType": "dropdown",
"fieldOptions": {
"values": [
{
"option": "no"
},
{
"option": "yes"
}
]
},
"requiredField": true
},
{
"fieldLabel": "Would you like to use background music in the final video?",
"fieldType": "dropdown",
"fieldOptions": {
"values": [
{
"option": "no"
},
{
"option": "yes"
}
]
},
"requiredField": true
},
{
"fieldType": "html",
"elementName": "warning",
"html": "<h2>Make sure the server has enough resources!</h1>\n<h3>Minimum 4vCPUs are recommended (more is better)</h3>\n<h3>Chatterbox requires at least 8gb free ram</h2>\n<h3>Kokoro requires at least 5gb free ram</h2>"
},
{
"fieldLabel": "Which TTS engine would you like to use?",
"fieldType": "dropdown",
"fieldOptions": {
"values": [
{
"option": "kokoro"
},
{
"option": "chatterbox"
}
]
},
"requiredField": true
}
]
},
"options": {}
},
"type": "n8n-nodes-base.formTrigger",
"typeVersion": 2.2,
"position": [
1300,
-1900
],
"id": "33977dfb-72bc-4461-9b9e-ec1ad4dd0008",
"name": "On form submission1",
"webhookId": "696fac84-849b-4fcf-a771-0174b5804577"
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "673ecb92-5253-45ae-ab8b-17d673845442",
"leftValue": "={{ $('On form submission1').item.json['Would you like to update the sheet by downloading the stories from reddit?'] }}",
"rightValue": "yes",
"operator": {
"type": "string",
"operation": "equals"
}
},
{
"id": "9a8bc757-1144-451d-b36a-18e74140a30e",
"leftValue": "={{ !$('Aggregate').item.json.data?.[0] }}",
"rightValue": 1,
"operator": {
"type": "boolean",
"operation": "true",
"singleValue": true
}
}
],
"combinator": "or"
},
"options": {}
},
"type": "n8n-nodes-base.if",
"typeVersion": 2.2,
"position": [
2600,
-1060
],
"id": "ba4da449-454e-47b9-b9ec-ff6cde85df85",
"name": "Update reddit stories?"
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "0cde6e03-a8da-4f1a-91c7-4adee90614c9",
"leftValue": "={{ $('On form submission1').item.json['Would you like to use background music in the final video?'] }}",
"rightValue": "yes",
"operator": {
"type": "string",
"operation": "equals"
}
}
],
"combinator": "and"
},
"options": {}
},
"type": "n8n-nodes-base.if",
"typeVersion": 2.2,
"position": [
3500,
-1040
],
"id": "d3bd8b4b-88a9-40c7-a6ef-0c9e333e7ec9",
"name": "Background music?"
},
{
"parameters": {
"formFields": {
"values": [
{
"fieldLabel": "Voice sample",
"fieldType": "file",
"multipleFiles": false,
"acceptFileTypes": ".mp3, .wav",
"requiredField": true
}
]
},
"options": {}
},
"type": "n8n-nodes-base.form",
"typeVersion": 1,
"position": [
3520,
-2060
],
"id": "49ba6c34-841d-44d3-be57-847861c304e2",
"name": "Upload voice sample",
"webhookId": "b558bcad-3378-4695-92a8-1f243c8e5292"
},
{
"parameters": {
"method": "POST",
"url": "={{ $('Configure me').item.json.ai_agents_no_code_tools_url }}/api/v1/media/storage",
"sendBody": true,
"contentType": "multipart-form-data",
"bodyParameters": {
"parameters": [
{
"parameterType": "formBinaryData",
"name": "file",
"inputDataFieldName": "=Voice_sample"
},
{
"name": "media_type",
"value": "audio"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
3540,
-1840
],
"id": "f0b67be6-be95-4009-93f0-4338b64d60a9",
"name": "Upload voice sample to the server"
},
{
"parameters": {
"method": "POST",
"url": "={{ $('Configure me').item.json.ai_agents_no_code_tools_url }}/api/v1/media/storage",
"sendBody": true,
"contentType": "multipart-form-data",
"bodyParameters": {
"parameters": [
{
"parameterType": "formBinaryData",
"name": "file",
"inputDataFieldName": "=Background_music"
},
{
"name": "media_type",
"value": "audio"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
3900,
-1200
],
"id": "2b82bf2e-9a8e-41c4-917c-70f137be38a6",
"name": "Upload background music to the server"
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "7bbb518a-c4f1-49a5-9e72-3e9d939b131b",
"name": "ai_agents_no_code_tools_url",
"value": "http://192.168.68.60:8000",
"type": "string"
},
{
"id": "485a5788-cda6-4015-aa8d-d7b7ff012266",
"name": "subreddit",
"value": "selfimprovement",
"type": "string"
},
{
"id": "afa3df27-f529-452f-8976-63a0af466584",
"name": "content_type",
"value": "motivational speech",
"type": "string"
},
{
"id": "ddd725fb-b9f6-45d6-90df-88c50ba53a20",
"name": "art_style",
"value": "=Use the following prompt as a template for the image generation prompt, use the content to create a unique image for the scene.\n\nCreate a cinematic image in a dramatic, high-contrast photographic style, with a cool blue color grading. The subject is a figure [doing something, like walking under a waterfall, sitting under a tree, watching the sunset, whatever makes sense from the content's perspective], captured from a distance. The foreground should be softly blurred to focus attention on the landscape details. The mood should convey strength, wisdom, and a sense of calm determination. The overall visual should feel inspirational and dignified, resembling a powerful nature documentary scene.",
"type": "string"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
1640,
-1900
],
"id": "1317b2ea-97b2-450b-a209-8b23b5a30e90",
"name": "Configure me"
},
{
"parameters": {
"rules": {
"values": [
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "b538c801-3185-4763-b9d5-5a38088325fa",
"leftValue": "={{ $('On form submission1').item.json['Which TTS engine would you like to use?'] }}",
"rightValue": "chatterbox",
"operator": {
"type": "string",
"operation": "equals",
"name": "filter.operator.equals"
}
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "chatterbox"
},
{
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"leftValue": "={{ $('On form submission1').item.json['Which TTS engine would you like to use?'] }}",
"rightValue": "kokoro",
"operator": {
"type": "string",
"operation": "equals"
},
"id": "9643d386-ce0c-4543-99d6-2eaebe2f0c2e"
}
],
"combinator": "and"
},
"renameOutput": true,
"outputKey": "kokoro"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.switch",
"typeVersion": 3.2,
"position": [
2340,
-1820
],
"id": "12cb8201-eddd-4229-97f6-45aac39f8d65",
"name": "Switch"
},
{
"parameters": {
"url": "={{ $('Configure me').item.json.ai_agents_no_code_tools_url }}/api/v1/media/audio-tools/tts/kokoro/voices",
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
2560,
-1540
],
"id": "fe182de1-b1fc-41a7-8382-1f1ad43f0bf1",
"name": "Get supported kokoro voices"
},
{
"parameters": {
"defineForm": "json",
"jsonOutput": "=[\n {\n \"fieldLabel\": \"Voice\",\n \"requiredField\": true,\n \"fieldType\": \"dropdown\",\n \"fieldOptions\": {\n \"values\": {{ $json.voices.map(item => { return {option: `${item}`} }) }}\n }\n },\n {\n \"fieldLabel\": \"Speed\",\n \"fieldType\": \"number\",\n \"placeholder\": \"The default is 1\",\n \"requiredField\": true\n }\n]",
"options": {}
},
"type": "n8n-nodes-base.form",
"typeVersion": 1,
"position": [
2720,
-1540
],
"id": "63a21795-78d8-44c6-8cca-2f3d490d57d8",
"name": "Setup kokoro",
"webhookId": "c39345f2-1e0d-4ddf-8aa7-3640b6356e4f"
},
{
"parameters": {
"formFields": {
"values": [
{
"fieldLabel": "Clone voice?",
"fieldType": "dropdown",
"fieldOptions": {
"values": [
{
"option": "no"
},
{
"option": "yes"
}
]
},
"requiredField": true
},
{
"fieldLabel": "Setup advanced options?",
"fieldType": "dropdown",
"fieldOptions": {
"values": [
{
"option": "no"
},
{
"option": "yes"
}
]
},
"requiredField": true
}
]
},
"options": {}
},
"type": "n8n-nodes-base.form",
"typeVersion": 1,
"position": [
2560,
-1840
],
"id": "abe6e69b-caac-4798-b412-a5e860d4af36",
"name": "Setup chatterbox",
"webhookId": "3fd9df20-b393-480d-a854-b823157a58a7"
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "7f58fc2c-48a2-4bed-b21a-84a080c84daf",
"name": "tts_engine",
"value": "={{ $('On form submission1').item.json['Which TTS engine would you like to use?'] }}",
"type": "string"
},
{
"id": "351324cf-a658-48f5-9150-0c8a9304fb41",
"name": "kokoro_voice",
"value": "={{ $json.Voice }}",
"type": "string"
},
{
"id": "f094be8b-c33a-44ba-8fc9-cb08d9cce918",
"name": "kokoro_speed",
"value": "={{ $json.Speed }}",
"type": "number"
},
{
"id": "4b98a5f0-83c9-46c9-b7dd-10a4e7633577",
"name": "chatterbox_exaggeration",
"value": "={{ $json.chatterbox_exaggeration }}",
"type": "number"
},
{
"id": "95751284-1328-4522-b4b2-cb00002db8e2",
"name": "chatterbox_cfg_weight",
"value": "={{ $json.chatterbox_cfg_weight }}",
"type": "string"
},
{
"id": "099815a4-0abb-4368-83ac-53f2213d88d5",
"name": "chatterbox_temperature",
"value": "={{ $json.chatterbox_temperature }}",
"type": "string"
},
{
"id": "637133d4-83eb-4535-b7c3-233009ab5208",
"name": "chatterbox_clone_voice_id",
"value": "={{ $json.chatterbox_voice_sample_id }}",
"type": "string"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
3760,
-1540
],
"id": "d7eeded4-9399-4a0f-96dd-180be6bc2582",
"name": "Configure TTS"
},
{
"parameters": {
"formFields": {
"values": [
{
"fieldLabel": "Exaggeration",
"fieldType": "number",
"placeholder": "Default: 0.5",
"requiredField": true
},
{
"fieldLabel": "CFG Weight",
"fieldType": "number",
"placeholder": "Default: 0.5",
"requiredField": true
},
{
"fieldLabel": "Temperature",
"fieldType": "number",
"placeholder": "Default: 0.8",
"requiredField": true
}
]
},
"options": {}
},
"type": "n8n-nodes-base.form",
"typeVersion": 1,
"position": [
2940,
-1940
],
"id": "47709509-0e56-4148-acfd-cf18e64a772b",
"name": "Chatterbox advanced settings",
"webhookId": "f1a5f072-29a1-4f53-8b4e-51786faf9117"
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "b0631c0c-3454-4d17-8216-6c917bb3537d",
"name": "chatterbox_temperature",
"value": 0.8,
"type": "number"
},
{
"id": "7a1f62fe-5cd1-4aae-b9d8-417b2e9c5c1f",
"name": "chatterbox_cfg_weight",
"value": 0.5,
"type": "number"
},
{
"id": "ac09bebe-57f4-457e-9a54-6eded76795b1",
"name": "chatterbox_exaggeration",
"value": 0.5,
"type": "number"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
2940,
-1740
],
"id": "c539d2c5-2ff6-483f-a07f-8e7e0261e2c0",
"name": "Chatterbox advanced defaults"
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "f0d8d774-5a71-4f45-865c-38609d2f2ad4",
"name": "chatterbox_exaggeration",
"value": "={{ $json.Exaggeration || $json.chatterbox_exaggeration }}",
"type": "number"
},
{
"id": "33628ea7-6251-46db-96dc-2024f532ceff",
"name": "chatterbox_cfg_weight",
"value": "={{ $json['CFG Weight'] || $json.chatterbox_cfg_weight }}",
"type": "number"
},
{
"id": "3f65feeb-ffce-48a4-95a4-03b4eeef57e3",
"name": "chatterbox_temperature",
"value": "={{ $json.Temperature || $json.chatterbox_temperature }}",
"type": "number"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
3120,
-1840
],
"id": "4d192e96-30e1-467b-83c8-0655b6229291",
"name": "Setup advanced chatterbox values"
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "4ed7383d-4268-414a-97a9-04f2d77a7898",
"leftValue": "={{ $json['Setup advanced options?'] }}",
"rightValue": "yes",
"operator": {
"type": "string",
"operation": "equals",
"name": "filter.operator.equals"
}
}
],
"combinator": "and"
},
"options": {}
},
"type": "n8n-nodes-base.if",
"typeVersion": 2.2,
"position": [
2720,
-1840
],
"id": "e64e9dc6-46a4-47f9-b67f-6ce0bf53db4e",
"name": "Advanced?"
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "7aec0c26-8c27-4aa6-bec7-1f65d9fe3aaf",
"name": "chatterbox_voice_sample_id",
"value": "={{ $json.file_id }}",
"type": "string"
},
{
"id": "b9d90334-4301-430f-a7a2-282d6efe9956",
"name": "chatterbox_exaggeration",
"value": "={{ $('Setup advanced chatterbox values').item.json.chatterbox_exaggeration }}",
"type": "number"
},
{
"id": "bef31658-4318-40e6-830e-69e9b72ad638",
"name": "chatterbox_cfg_weight",
"value": "={{ $('Setup advanced chatterbox values').item.json.chatterbox_cfg_weight }}",
"type": "number"
},
{
"id": "d9db3aea-3840-486a-ba0c-c40e05c49ae3",
"name": "chatterbox_temperature",
"value": "={{ $('Setup advanced chatterbox values').item.json.chatterbox_temperature }}",
"type": "number"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
3540,
-1620
],
"id": "ae01b312-2d01-41e2-9d9f-8dd6d5c64572",
"name": "Setup chatterbox results"
},
{
"parameters": {
"content": "# 1. TTS configuration (form)",
"height": 760,
"width": 1640
},
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
2280,
-2120
],
"id": "980fabe6-13e7-4c69-966f-8976d042020e",
"name": "Sticky Note10"
},
{
"parameters": {
"content": "# Configure me ⚠️",
"height": 520,
"width": 300,
"color": 3
},
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
1540,
-2120
],
"id": "c664cd84-fa25-4b74-a197-9b4a3388b7c4",
"name": "Sticky Note12"
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "f5316cd3-b774-4688-808a-69385b647380",
"name": "background_music_id",
"value": "={{ $json.background_music_id }}",
"type": "string"
},
{
"id": "0dcb72fa-a800-498a-a89a-66cfbff62d9b",
"name": "background_music_volume",
"value": "={{ $json.background_music_volume }}",
"type": "string"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
4300,
-1040
],
"id": "009b8653-62b4-4412-88b2-55d4815c2b6b",
"name": "Background music results"
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "329c828e-bddf-45a1-b9dd-62e8d0080e0e",
"name": "background_music_id",
"value": "={{ $json.file_id }}",
"type": "string"
},
{
"id": "c3b266d6-5cca-479c-90b3-9c081473864f",
"name": "background_music_volume",
"value": "={{ $('Select background music').item.json.background_music_volume }}",
"type": "number"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
4100,
-1200
],
"id": "baac13f3-5bbc-43dd-a231-55962ed03d64",
"name": "Set background music output"
},
{
"parameters": {
"content": "# 3. Upload background music",
"height": 460,
"width": 1260
},
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
3400,
-1320
],
"id": "ba865036-e289-4393-9346-ba1f5402831d",
"name": "Sticky Note18"
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "c907e9e3-e9e4-4d6a-a8ae-503d3282fc2f",
"leftValue": "={{ $('Setup chatterbox').item.json['Clone voice?'] }}",
"rightValue": "yes",
"operator": {
"type": "string",
"operation": "equals",
"name": "filter.operator.equals"
}
}
],
"combinator": "and"
},
"options": {}
},
"type": "n8n-nodes-base.if",
"typeVersion": 2.2,
"position": [
3280,
-1840
],
"id": "904f23dc-783e-4fbd-92d6-ab5cb2ce930e",
"name": "Clone voice?"
},
{
"parameters": {
"operation": "completion",
"completionTitle": "The video is being generated",
"completionMessage": "Depending on your computer, this could take a while",
"options": {}
},
"type": "n8n-nodes-base.form",
"typeVersion": 1,
"position": [
4500,
-1040
],
"id": "198e762a-300b-4de7-af77-5e0f7527c0c1",
"name": "Close form",
"webhookId": "911430e3-864e-430a-8839-541d18712a0a"
},
{
"parameters": {
"formFields": {
"values": [
{
"fieldLabel": "Background music",
"fieldType": "file",
"multipleFiles": false,
"acceptFileTypes": ".mp3",
"requiredField": true
},
{
"fieldLabel": "background_music_volume",
"fieldType": "number",
"placeholder": "number between 0.1 and 1 - I recommend 0.2",
"requiredField": true
}
]
},
"options": {}
},
"type": "n8n-nodes-base.form",
"typeVersion": 1,
"position": [
3720,
-1200
],
"id": "811b45ca-46f2-4703-b29d-ef5d9934f467",
"name": "Select background music",
"webhookId": "d094e96d-52a7-4743-8cb8-50d1469531d5"
},
{
"parameters": {
"documentId": {
"__rl": true,
"value": "12roXp7Ds8S0nA_Us2MjdKkAldJYUdTV80A7vcjwR6yI",
"mode": "list",
"cachedResultName": "reddit stories",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/12roXp7Ds8S0nA_Us2MjdKkAldJYUdTV80A7vcjwR6yI/edit?usp=drivesdk"
},
"sheetName": {
"__rl": true,
"value": "gid=0",
"mode": "list",
"cachedResultName": "Sheet1",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/12roXp7Ds8S0nA_Us2MjdKkAldJYUdTV80A7vcjwR6yI/edit#gid=0"
},
"options": {}
},
"type": "n8n-nodes-base.googleSheets",
"typeVersion": 4.6,
"position": [
2320,
-1060
],
"id": "595e2358-b710-4a03-9830-6804abb8321f",
"name": "Get one row from Sheets",
"alwaysOutputData": true,
"credentials": {
"googleSheetsOAuth2Api": {
"id": "y3SQnJ2q0kAJw5OI",
"name": "Google Sheets account"
}
}
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "9aa0ae35-303b-40f5-8556-2af39e621abf",
"leftValue": "={{ $('Get story').item.json.keys().length }}",
"rightValue": 0,
"operator": {
"type": "number",
"operation": "equals"
}
}
],
"combinator": "and"
},
"options": {}
},
"type": "n8n-nodes-base.if",
"typeVersion": 2.2,
"position": [
2560,
-600
],
"id": "109548ce-9b87-4583-a875-fff5b340e2ba",
"name": "If"
},
{
"parameters": {
"errorMessage": "No more stories! Please download more"
},
"type": "n8n-nodes-base.stopAndError",
"typeVersion": 1,
"position": [
2740,
-760
],
"id": "c0a127dc-bc8a-4173-a668-b6b96690fa3c",
"name": "No more stories"
},
{
"parameters": {
"aggregate": "aggregateAllItemData",
"options": {}
},
"type": "n8n-nodes-base.aggregate",
"typeVersion": 1,
"position": [
2460,
-1060
],
"id": "038dfd5d-f6f4-46a3-ae6c-36b37c5547e1",
"name": "Aggregate"
},
{
"parameters": {
"url": "={{ $json.ai_agents_no_code_tools_url }}/health",
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
2000,
-1960
],
"id": "0c43b366-02f5-4bef-9a67-22dcac3d998a",
"name": "HTTP Request",
"onError": "continueErrorOutput"
},
{
"parameters": {
"errorMessage": "The server is not running or isn't configured"
},
"type": "n8n-nodes-base.stopAndError",
"typeVersion": 1,
"position": [
2000,
-1740
],
"id": "7a6cb4eb-0f29-42ff-8e2d-db512c92da38",
"name": "Server isn't ready"
},
{
"parameters": {
"content": "# Test connection",
"height": 520,
"width": 360
},
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
1880,
-2120
],
"id": "7d67736e-db2d-41c8-818f-290d51e483e1",
"name": "Sticky Note15"
},
{
"parameters": {
"aggregate": "aggregateAllItemData",
"options": {}
},
"type": "n8n-nodes-base.aggregate",
"typeVersion": 1,
"position": [
3220,
-1200
],
"id": "f97fd74c-5e66-40bc-9ec0-0aa619fad1d8",
"name": "Combine"
},
{
"parameters": {
"content": "# cleanup (removing tmp files)\nif you want to delete the generated video too, add it's id to the array",
"height": 360,
"width": 540
},
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
4860,
180
],
"id": "2cf4918c-dd4b-4724-b556-c48ced9b792b",
"name": "Sticky Note"
},
{
"parameters": {
"assignments": {
"assignments": [
{
"id": "27bcaf96-fcaa-41cb-8a51-436870ce2110",
"name": "file_ids",
"value": "={{ [...$('Combine loop items').item.json.data.map(item => [item.video_id, item.tts_id, item.image_id]).flat(), $('Configure TTS').item.json.chatterbox_clone_voice_id, $('Background music results').item.json.background_music_id].filter(Boolean) }}",
"type": "array"
},
{
"id": "ff26af44-84ff-46a0-8532-5eeca8dbb099",
"name": "",
"value": "",
"type": "string"
}
]
},
"options": {}
},
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [
4900,
300
],
"id": "f604fe1e-50d1-4b57-a2ad-e20bbe4fa25c",
"name": "Set file ids to delete"
},
{
"parameters": {
"method": "DELETE",
"url": "={{ $('Configure me').item.json.ai_agents_no_code_tools_url }}/api/v1/media/storage/{{ $json.file_ids }}",
"options": {}
},
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
5220,
300
],
"id": "4e295ab4-ae1e-4b03-8c1d-137f22048973",
"name": "Delete tmp files"
},
{
"parameters": {
"fieldToSplitOut": "file_ids",
"options": {}
},
"type": "n8n-nodes-base.splitOut",
"typeVersion": 1,
"position": [
5060,
300
],
"id": "0fc347ff-9520-4ecf-9f9a-b9b520d19abd",
"name": "For each file"
},
{
"parameters": {
"content": "# 📚 [Join our Skool community for support, premium content and more!](https://www.skool.com/ai-agents-az/about?w9)\n\n## Be part of a growing community and help us create more content like this",
"height": 260,
"width": 700,
"color": 6
},
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
1540,
-2420
],
"id": "ed678e2b-b3fa-4ec3-b7ec-fc523e24e840",
"name": "Sticky Note16"
}
],
"pinData": {},
"connections": {
"Limit": {
"main": [
[
{
"node": "If",
"type": "main",
"index": 0
}
]
]
},
"Loop Over Items": {
"main": [
[
{
"node": "Combine loop items",
"type": "main",
"index": 0
}
],
[
{
"node": "Generate AI image",
"type": "main",
"index": 0
}
]
]
},
"Generate AI image": {
"main": [
[
{
"node": "Upload image to server",
"type": "main",
"index": 0
}
],
[
{
"node": "Wait for the error / rate limit to go away",
"type": "main",
"index": 0
}
]
]
},
"Upload image to server": {
"main": [
[
{
"node": "TTS switch",
"type": "main",
"index": 0
}
]
]
},
"Get status of TTS generation": {
"main": [
[
{
"node": "TTS status switch",
"type": "main",
"index": 0
}
]
]
},
"TTS status switch": {
"main": [
[
{
"node": "Setup TTS file_id",
"type": "main",
"index": 0
}
],
[
{
"node": "Wait until the TTS gets generated",
"type": "main",
"index": 0
}
],
[
{
"node": "Start generating TTS (chatterbox)",
"type": "main",
"index": 0
}
]
]
},
"Start generating captioned TTS video": {
"main": [
[
{
"node": "Wait until the video gets generated",
"type": "main",
"index": 0
}
]
]
},
"Get video generation status": {
"main": [
[
{
"node": "Video generation switch",
"type": "main",
"index": 0
}
]
]
},
"Video generation switch": {
"main": [
[
{
"node": "Setup media fields",
"type": "main",
"index": 0
}
],
[
{
"node": "Wait until the video gets generated",
"type": "main",
"index": 0
}
]
]
},
"Setup media fields": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Combine loop items": {
"main": [
[
{
"node": "Start merging the videos",
"type": "main",
"index": 0
}
]
]
},
"Start merging the videos": {
"main": [
[
{
"node": "Wait until the videos gets merged together",
"type": "main",
"index": 0
}
]
]
},
"Get status of the video merge": {
"main": [
[
{
"node": "Video merge status switch",
"type": "main",
"index": 0
}
]
]
},
"Video merge status switch": {
"main": [
[
{
"node": "Save the video id",
"type": "main",
"index": 0
}
],
[
{
"node": "Wait until the videos gets merged together",
"type": "main",
"index": 0
}
]
]
},
"Wait for the error / rate limit to go away": {
"main": [
[
{
"node": "Generate AI image",
"type": "main",
"index": 0
}
]
]
},
"Wait until the TTS gets generated": {
"main": [
[
{
"node": "Get status of TTS generation",
"type": "main",
"index": 0
}
]
]
},
"Start generating TTS (chatterbox)": {
"main": [
[
{
"node": "Wait until the TTS gets generated",
"type": "main",
"index": 0
}
]
]
},
"Wait until the video gets generated": {
"main": [
[
{
"node": "Get video generation status",
"type": "main",
"index": 0
}
]
]
},
"Wait until the videos gets merged together": {
"main": [
[
{
"node": "Get status of the video merge",
"type": "main",
"index": 0
}
]
]
},
"Get story": {
"main": [
[
{
"node": "Limit",
"type": "main",
"index": 0
}
]
]
},
"Setup final video download URL": {
"main": [
[
{
"node": "Start Youtube upload",
"type": "main",
"index": 0
}
]
]
},
"TTS switch": {
"main": [
[
{
"node": "Global TTS audio id",
"type": "main",
"index": 0
}
],
[
{
"node": "Start generating TTS (chatterbox)",
"type": "main",
"index": 0
}
]
]
},
"Setup TTS file_id": {
"main": [
[
{
"node": "Global TTS audio id",
"type": "main",
"index": 0
}
]
]
},
"Cleanup text": {
"main": [
[
{
"node": "Create the script",
"type": "main",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "Create the motivational speech",
"type": "ai_languageModel",
"index": 0
},
{
"node": "Create the script",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Global TTS audio id": {
"main": [
[
{
"node": "Start generating captioned TTS video",
"type": "main",
"index": 0
}
]
]
},
"Save the video id": {
"main": [
[
{
"node": "Setup final video download URL",
"type": "main",
"index": 0
}
]
]
},
"Download the video": {
"main": [
[
{
"node": "Upload video to YouTube",
"type": "main",
"index": 0
}
]
]
},
"Create the script": {
"main": [
[
{
"node": "Split Out",
"type": "main",
"index": 0
}
]
]
},
"Create the motivational speech": {
"main": [
[
{
"node": "Cleanup text",
"type": "main",
"index": 0
}
]
]
},
"Split Out": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Start Youtube upload": {
"main": [
[
{
"node": "Download the video",
"type": "main",
"index": 0
}
]
]
},
"Upload video to YouTube": {
"main": [
[
{
"node": "Set file ids to delete",
"type": "main",
"index": 0
}
]
]
},
"Get stories from reddit": {
"main": [
[
{
"node": "For Each story",
"type": "main",
"index": 0
}
]
]
},
"For Each story": {
"main": [
[
{
"node": "Save it to Google Sheets",
"type": "main",
"index": 0
}
]
]
},
"On form submission1": {
"main": [
[
{
"node": "Configure me",
"type": "main",
"index": 0
}
]
]
},
"Update reddit stories?": {
"main": [
[
{
"node": "Get stories from reddit",
"type": "main",
"index": 0
}
],
[
{
"node": "Background music?",
"type": "main",
"index": 0
}
]
]
},
"Save it to Google Sheets": {
"main": [
[
{
"node": "Combine",
"type": "main",
"index": 0
}
]
]
},
"Background music?": {
"main": [
[
{
"node": "Select background music",
"type": "main",
"index": 0
}
],
[
{
"node": "Background music results",
"type": "main",
"index": 0
}
]
]
},
"Upload voice sample": {
"main": [
[
{
"node": "Upload voice sample to the server",
"type": "main",
"index": 0
}
]
]
},
"Upload voice sample to the server": {
"main": [
[
{
"node": "Setup chatterbox results",
"type": "main",
"index": 0
}
]
]
},
"Upload background music to the server": {
"main": [
[
{
"node": "Set background music output",
"type": "main",
"index": 0
}
]
]
},
"Configure me": {
"main": [
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
]
]
},
"Switch": {
"main": [
[
{
"node": "Setup chatterbox",
"type": "main",
"index": 0
}
],
[
{
"node": "Get supported kokoro voices",
"type": "main",
"index": 0
}
]
]
},
"Get supported kokoro voices": {
"main": [
[
{
"node": "Setup kokoro",
"type": "main",
"index": 0
}
]
]
},
"Setup kokoro": {
"main": [
[
{
"node": "Configure TTS",
"type": "main",
"index": 0
}
]
]
},
"Setup chatterbox": {
"main": [
[
{
"node": "Advanced?",
"type": "main",
"index": 0
}
]
]
},
"Configure TTS": {
"main": [
[
{
"node": "Get one row from Sheets",
"type": "main",
"index": 0
}
]
]
},
"Chatterbox advanced settings": {
"main": [
[
{
"node": "Setup advanced chatterbox values",
"type": "main",
"index": 0
}
]
]
},
"Chatterbox advanced defaults": {
"main": [
[
{
"node": "Setup advanced chatterbox values",
"type": "main",
"index": 0
}
]
]
},
"Setup advanced chatterbox values": {
"main": [
[
{
"node": "Clone voice?",
"type": "main",
"index": 0
}
]
]
},
"Advanced?": {
"main": [
[
{
"node": "Chatterbox advanced settings",
"type": "main",
"index": 0
}
],
[
{
"node": "Chatterbox advanced defaults",
"type": "main",
"index": 0
}
]
]
},
"Setup chatterbox results": {
"main": [
[
{
"node": "Configure TTS",
"type": "main",
"index": 0
}
]
]
},
"Background music results": {
"main": [
[
{
"node": "Close form",
"type": "main",
"index": 0
}
]
]
},
"Set background music output": {
"main": [
[
{
"node": "Background music results",
"type": "main",
"index": 0
}
]
]
},
"Clone voice?": {
"main": [
[
{
"node": "Upload voice sample",
"type": "main",
"index": 0
}
],
[
{
"node": "Setup chatterbox results",
"type": "main",
"index": 0
}
]
]
},
"Close form": {
"main": [
[
{
"node": "Get story",
"type": "main",
"index": 0
}
]
]
},
"Select background music": {
"main": [
[
{
"node": "Upload background music to the server",
"type": "main",
"index": 0
}
]
]
},
"Get one row from Sheets": {
"main": [
[
{
"node": "Aggregate",
"type": "main",
"index": 0
}
]
]
},
"If": {
"main": [
[
{
"node": "No more stories",
"type": "main",
"index": 0
}
],
[
{
"node": "Create the motivational speech",
"type": "main",
"index": 0
}
]
]
},
"Aggregate": {
"main": [
[
{
"node": "Update reddit stories?",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request": {
"main": [
[
{
"node": "Switch",
"type": "main",
"index": 0
}
],
[
{
"node": "Server isn't ready",
"type": "main",
"index": 0
}
]
]
},
"Combine": {
"main": [
[
{
"node": "Background music?",
"type": "main",
"index": 0
}
]
]
},
"Set file ids to delete": {
"main": [
[
{
"node": "For each file",
"type": "main",
"index": 0
}
]
]
},
"For each file": {
"main": [
[
{
"node": "Delete tmp files",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "eab4cc86-aecb-4174-91d2-737aef2bd019",
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "636db6b6ab21a21c6458e2137f340e33dc3e49f5a1c560c8d1e2372c227cf40e"
},
"id": "bU1Fx4BF7LQzXNY9",
"tags": []
}