fix episode 13 for older n8n versions
David1b4ebcd0bb68
diff --git a/episode_13/ai_video_with_hailuo.json b/episode_13/ai_video_with_hailuo.jsonindex b0ce71c..b8016dc 100644--- a/episode_13/ai_video_with_hailuo.json+++ b/episode_13/ai_video_with_hailuo.json@@ -12,10 +12,7 @@},"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi","typeVersion": 1.2,- "position": [- 500,- 1040- ],+ "position": [500, 1040],"id": "19f7f7b3-ecea-4b85-bf97-dff0af0e3e85","name": "OpenAI Chat Model","credentials": {@@ -48,10 +45,7 @@},"type": "n8n-nodes-base.httpRequest","typeVersion": 4.2,- "position": [- -680,- 1540- ],+ "position": [-680, 1540],"id": "55af639b-f647-4561-b3eb-8348db09abb4","name": "Generate image","credentials": {@@ -100,10 +94,7 @@},"type": "n8n-nodes-base.httpRequest","typeVersion": 4.2,- "position": [- -680,- 2100- ],+ "position": [-680, 2100],"id": "0eee7ccd-8723-47da-a0c4-32b14f151a55","name": "Start video generation","credentials": {@@ -122,10 +113,7 @@},"type": "@n8n/n8n-nodes-langchain.agent","typeVersion": 2,- "position": [- -600,- 1060- ],+ "position": [-600, 1060],"id": "8475a30c-7217-471a-9738-38710ab14edb","name": "Generate scenes"},@@ -138,10 +126,7 @@},"type": "n8n-nodes-base.httpRequest","typeVersion": 4.2,- "position": [- -180,- 1540- ],+ "position": [-180, 1540],"id": "15dfa1e7-5982-49dc-8288-1279e15b37f9","name": "Get image status","credentials": {@@ -160,10 +145,7 @@},"type": "n8n-nodes-base.httpRequest","typeVersion": 4.2,- "position": [- 460,- 1620- ],+ "position": [460, 1620],"id": "59fe63ce-9913-48ee-aaa4-df25420189ea","name": "Get image","credentials": {@@ -182,10 +164,7 @@},"type": "n8n-nodes-base.httpRequest","typeVersion": 4.2,- "position": [- -140,- 2800- ],+ "position": [-140, 2800],"id": "874d78b3-9a44-4548-a4b0-6c93113252d2","name": "Get audio status","credentials": {@@ -204,10 +183,7 @@},"type": "n8n-nodes-base.httpRequest","typeVersion": 4.2,- "position": [- 360,- 2780- ],+ "position": [360, 2780],"id": "cec4013a-7af8-4f34-991a-f1863448144d","name": "Get video with audio","alwaysOutputData": false,@@ -225,10 +201,7 @@},"type": "n8n-nodes-base.splitInBatches","typeVersion": 3,- "position": [- -960,- 1660- ],+ "position": [-960, 1660],"id": "d49ff743-af83-494f-b15c-91061068051d","name": "Loop Over Items"},@@ -245,10 +218,7 @@},"type": "n8n-nodes-base.httpRequest","typeVersion": 4.2,- "position": [- -420,- 3220- ],+ "position": [-420, 3220],"id": "5eadc52e-42d9-4a29-b500-b0fabe4d5ce3","name": "Start merging videos","credentials": {@@ -265,10 +235,7 @@},"type": "n8n-nodes-base.httpRequest","typeVersion": 4.2,- "position": [- 800,- 3200- ],+ "position": [800, 3200],"id": "88c9c5c4-c849-4be8-9e0a-26a4581335a8","name": "Download final video"},@@ -278,10 +245,7 @@},"type": "n8n-nodes-base.wait","typeVersion": 1.1,- "position": [- -140,- 3220- ],+ "position": [-140, 3220],"id": "26c155d2-4104-4c2b-a55a-c3b131788369","name": "Wait for the merge to complete","webhookId": "85b263ff-31c6-4b2e-94bc-45cfb9f92955"@@ -370,10 +334,7 @@},"type": "n8n-nodes-base.switch","typeVersion": 3.2,- "position": [- 300,- 3220- ],+ "position": [300, 3220],"id": "592e3866-3dc4-479d-a3f1-51b608aef040","name": "Merge videos status"},@@ -386,10 +347,7 @@},"type": "n8n-nodes-base.httpRequest","typeVersion": 4.2,- "position": [- 80,- 3220- ],+ "position": [80, 3220],"id": "8f5d3330-52e4-4d0e-ab2e-27fafbb74a49","name": "Get merge videos status","credentials": {@@ -408,10 +366,7 @@},"type": "n8n-nodes-base.httpRequest","typeVersion": 4.2,- "position": [- 580,- 3200- ],+ "position": [580, 3200],"id": "c84974ce-6bc5-4bb6-93a1-74c83bf9716d","name": "Get merged video","credentials": {@@ -428,10 +383,7 @@},"type": "n8n-nodes-base.splitOut","typeVersion": 1,- "position": [- -260,- 1060- ],+ "position": [-260, 1060],"id": "074a5528-d11d-47cc-b110-e6ddcdd2c2d3","name": "Split out the scenes"},@@ -441,10 +393,7 @@},"type": "n8n-nodes-base.wait","typeVersion": 1.1,- "position": [- -400,- 1540- ],+ "position": [-400, 1540],"id": "8171634c-5389-4cbc-8158-4b6f08a08ba5","name": "Wait for image generation","webhookId": "85b263ff-31c6-4b2e-94bc-45cfb9f92955"@@ -533,10 +482,7 @@},"type": "n8n-nodes-base.switch","typeVersion": 3.2,- "position": [- 40,- 1540- ],+ "position": [40, 1540],"id": "d662193d-6a50-4e47-b566-39762745b3c1","name": "Image status"},@@ -544,10 +490,7 @@"parameters": {},"type": "n8n-nodes-base.wait","typeVersion": 1.1,- "position": [- -400,- 2100- ],+ "position": [-400, 2100],"id": "5d11829d-3530-42f0-a166-d4add8d0db36","name": "Wait for the video generation","webhookId": "4427e97c-f2c1-4b08-a03e-cbcde2351de1"@@ -568,9 +511,7 @@},"sendBody": true,"bodyParameters": {- "parameters": [- {}- ]+ "parameters": [{}]},"options": {"redirect": {@@ -580,10 +521,7 @@},"type": "n8n-nodes-base.httpRequest","typeVersion": 4.2,- "position": [- -60,- 2100- ],+ "position": [-60, 2100],"id": "e7bf67d6-f723-402a-984d-7deadb82b12a","name": "Get video generation status","credentials": {@@ -731,10 +669,7 @@},"type": "n8n-nodes-base.switch","typeVersion": 3.2,- "position": [- 300,- 2160- ],+ "position": [300, 2160],"id": "595886a3-685a-4d47-9028-15b374a57300","name": "Video generation status"},@@ -767,9 +702,7 @@},"sendBody": true,"bodyParameters": {- "parameters": [- {}- ]+ "parameters": [{}]},"options": {"redirect": {@@ -779,10 +712,7 @@},"type": "n8n-nodes-base.httpRequest","typeVersion": 4.2,- "position": [- 580,- 2300- ],+ "position": [580, 2300],"id": "23784dbf-8948-4d02-8df7-a0ee4564f922","name": "Get the generated video","credentials": {@@ -815,10 +745,7 @@},"type": "n8n-nodes-base.httpRequest","typeVersion": 4.2,- "position": [- -680,- 2740- ],+ "position": [-680, 2740],"id": "cc77692b-619c-4f82-8c21-ba980602f2ac","name": "Start adding audio to the video","credentials": {@@ -834,10 +761,7 @@},"type": "n8n-nodes-base.wait","typeVersion": 1.1,- "position": [- -360,- 2800- ],+ "position": [-360, 2800],"id": "a31ca110-e8b8-4236-beb1-26bd23f0db36","name": "Wait for adding the audio","webhookId": "85b263ff-31c6-4b2e-94bc-45cfb9f92955"@@ -926,10 +850,7 @@},"type": "n8n-nodes-base.switch","typeVersion": 3.2,- "position": [- 80,- 2800- ],+ "position": [80, 2800],"id": "07ddcd82-cdae-4c42-97fc-6dea067264ab","name": "Audio status"},@@ -940,10 +861,7 @@},"type": "n8n-nodes-base.aggregate","typeVersion": 1,- "position": [- -680,- 3240- ],+ "position": [-680, 3240],"id": "f0d0ef70-08a2-4b49-850d-0095fd5771fe","name": "Aggregate videos with audio"},@@ -955,10 +873,7 @@},"type": "n8n-nodes-base.stickyNote","typeVersion": 1,- "position": [- -740,- 920- ],+ "position": [-740, 920],"id": "5648cc98-627a-44a8-b187-356ac0e18e26","name": "Sticky Note"},@@ -970,10 +885,7 @@},"type": "n8n-nodes-base.stickyNote","typeVersion": 1,- "position": [- -740,- 1340- ],+ "position": [-740, 1340],"id": "62f024e6-ed06-476e-abe6-1e0250a2599e","name": "Sticky Note1"},@@ -985,10 +897,7 @@},"type": "n8n-nodes-base.stickyNote","typeVersion": 1,- "position": [- -720,- 1880- ],+ "position": [-720, 1880],"id": "36ea4bed-9822-401f-9805-37f013394d0e","name": "Sticky Note2"},@@ -1000,10 +909,7 @@},"type": "n8n-nodes-base.stickyNote","typeVersion": 1,- "position": [- -720,- 2560- ],+ "position": [-720, 2560],"id": "57fabe79-4556-4d48-a3df-383daf47d324","name": "Sticky Note3"},@@ -1016,10 +922,7 @@},"type": "n8n-nodes-base.stickyNote","typeVersion": 1,- "position": [- -720,- 3040- ],+ "position": [-720, 3040],"id": "99a06574-df17-4f2b-bec6-d2536b13ce11","name": "Sticky Note4"},@@ -1029,10 +932,7 @@},"type": "@n8n/n8n-nodes-langchain.lmChatOllama","typeVersion": 1,- "position": [- 40,- 700- ],+ "position": [40, 700],"id": "48567659-fd47-4806-896f-c36d3dd2604a","name": "Ollama Chat Model","credentials": {@@ -1049,10 +949,7 @@},"type": "@n8n/n8n-nodes-langchain.lmChatDeepSeek","typeVersion": 1,- "position": [- 360,- 700- ],+ "position": [360, 700],"id": "ba727d38-c1ac-4d4e-bbdb-7f4b88d2c949","name": "DeepSeek Chat Model","disabled": true@@ -1063,10 +960,7 @@},"type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter","typeVersion": 1,- "position": [- 500,- 700- ],+ "position": [500, 700],"id": "be5cf0a2-cd1b-410b-8f82-234855ac0022","name": "OpenRouter Chat Model","disabled": true@@ -1077,10 +971,7 @@},"type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini","typeVersion": 1,- "position": [- 40,- 1040- ],+ "position": [40, 1040],"id": "888ac12b-1d5b-43a2-962f-85ee48d74ade","name": "Google Gemini Chat Model","disabled": true@@ -1091,10 +982,7 @@},"type": "@n8n/n8n-nodes-langchain.lmChatAzureOpenAi","typeVersion": 1,- "position": [- 40,- 860- ],+ "position": [40, 860],"id": "d69204d7-a17c-4ef7-acd5-eb0b7327d71a","name": "Azure OpenAI Chat Model","disabled": true@@ -1105,10 +993,7 @@},"type": "@n8n/n8n-nodes-langchain.lmChatXAiGrok","typeVersion": 1,- "position": [- 200,- 860- ],+ "position": [200, 860],"id": "c3d96890-8474-406a-bef3-d7816f57edb4","name": "xAI Grok Chat Model","disabled": true@@ -1125,10 +1010,7 @@},"type": "@n8n/n8n-nodes-langchain.lmChatAnthropic","typeVersion": 1.3,- "position": [- 360,- 860- ],+ "position": [360, 860],"id": "7ddcf246-b7a3-4767-9e94-7cbffc008c7d","name": "Anthropic Chat Model","disabled": true@@ -1139,10 +1021,7 @@},"type": "@n8n/n8n-nodes-langchain.lmChatXAiGrok","typeVersion": 1,- "position": [- 500,- 860- ],+ "position": [500, 860],"id": "74b39000-8d13-421b-844d-86be681e3a34","name": "xAI Grok Chat Model1","disabled": true@@ -1153,10 +1032,7 @@},"type": "@n8n/n8n-nodes-langchain.lmChatGroq","typeVersion": 1,- "position": [- 360,- 1040- ],+ "position": [360, 1040],"id": "a46aba24-0a2f-4b0b-a752-f07711a68305","name": "Groq Chat Model","disabled": true@@ -1167,10 +1043,7 @@},"type": "@n8n/n8n-nodes-langchain.lmChatAwsBedrock","typeVersion": 1,- "position": [- 200,- 700- ],+ "position": [200, 700],"id": "3aa333cb-4420-4063-82ff-1eab842911c0","name": "AWS Bedrock Chat Model","disabled": true@@ -1181,10 +1054,7 @@},"type": "@n8n/n8n-nodes-langchain.lmChatMistralCloud","typeVersion": 1,- "position": [- 200,- 1040- ],+ "position": [200, 1040],"id": "3357a893-f87d-480d-ab87-cf84c0281237","name": "Mistral Cloud Chat Model","disabled": true@@ -1198,10 +1068,7 @@},"type": "n8n-nodes-base.stickyNote","typeVersion": 1,- "position": [- -40,- 560- ],+ "position": [-40, 560],"id": "ebec3da2-0945-4323-a638-3292d18cf84b","name": "Sticky Note5"},@@ -1214,10 +1081,7 @@},"type": "n8n-nodes-base.stickyNote","typeVersion": 1,- "position": [- 0,- 0- ],+ "position": [0, 0],"id": "a784b829-af20-44e5-9322-d5a71cedba9a","name": "Sticky Note14"},@@ -1230,10 +1094,7 @@},"type": "n8n-nodes-base.stickyNote","typeVersion": 1,- "position": [- -760,- 20- ],+ "position": [-760, 20],"id": "f797011e-1990-45b2-b094-4ff67f973288","name": "Sticky Note16"},@@ -1243,11 +1104,8 @@"inputSchema": "{\n \"type\": \"object\",\n \"properties\": {\n \"scenes\": {\n \"type\": \"array\",\n \"description\": \"the scenes of the AI video\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"image_description\": {\n \"type\": \"string\",\n \"description\": \"the image prompt of the scene for the AI video\"\n },\n \"video_description\": {\n \"type\": \"string\",\n \"description\": \"the video prompt of the scene for the AI video\"\n },\n \"audio_description\": {\n \"type\": \"string\",\n \"description\": \"the audio prompt of the scene for the AI video\"\n }\n },\n \"required\": [\n \"image_description\",\n \"video_description\",\n \"audio_description\"\n ]\n }\n }\n },\n \"required\": [\n \"scenes\"\n ]\n}"},"type": "@n8n/n8n-nodes-langchain.outputParserStructured",- "typeVersion": 1.3,- "position": [- -200,- 760- ],+ "typeVersion": 1.2,+ "position": [-200, 760],"id": "46007a9d-0ffe-4b02-a067-2792dd4e7c4c","name": "Story output parser"},@@ -1281,10 +1139,7 @@},"type": "n8n-nodes-base.httpRequest","typeVersion": 4.2,- "position": [- -640,- 4000- ],+ "position": [-640, 4000],"id": "5c83eaab-5d05-4efb-aa2d-151a3d4108a6","name": "Start merging the videos"},@@ -1295,10 +1150,7 @@},"type": "n8n-nodes-base.httpRequest","typeVersion": 4.2,- "position": [- 0,- 4000- ],+ "position": [0, 4000],"id": "0dfdbbe3-aeb1-404f-8057-6ed7a0200e26","name": "Get status of the video merge"},@@ -1386,10 +1238,7 @@},"type": "n8n-nodes-base.switch","typeVersion": 3.2,- "position": [- 180,- 4000- ],+ "position": [180, 4000],"id": "963a92be-cbed-46ad-84f0-31b0ce1e2c3d","name": "Video merge status switch"},@@ -1399,10 +1248,7 @@},"type": "n8n-nodes-base.wait","typeVersion": 1.1,- "position": [- -200,- 4000- ],+ "position": [-200, 4000],"id": "d5739b66-a8f2-43c4-8645-cada8fd7b025","name": "Wait until the videos gets merged together","webhookId": "e1e3aafb-424c-4871-bbfb-2ae5c47ebbbd"@@ -1416,10 +1262,7 @@},"type": "n8n-nodes-base.stickyNote","typeVersion": 1,- "position": [- -720,- 3880- ],+ "position": [-720, 3880],"id": "4a96feea-4abf-40ea-976f-f59d6582fe9b","name": "Sticky Note6"},@@ -1440,10 +1283,7 @@},"type": "n8n-nodes-base.formTrigger","typeVersion": 2.2,- "position": [- -1200,- 1000- ],+ "position": [-1200, 1000],"id": "210d4a2e-1e92-4d49-a2cc-7c072bba42b3","name": "On form submission","webhookId": "90ab374e-266f-4fce-9185-f66d877e9d79"@@ -1874,4 +1714,4 @@},"id": "k72Q7kzh5kRoITjY","tags": []-}\ No newline at end of file+}