Keep getting error messages even when i test node successfully but to execute entire flow pops error

{
“nodes”: [
{
“parameters”: {
“jsCode”: “function findSceneEntries(obj) {\n const scenes = ;\n\n for (const [key, value] of Object.entries(obj)) {\n if (key.toLowerCase().startsWith(“scene”) && typeof value === “string”) {\n scenes.push(value);\n } else if (typeof value === “object” && value !== null) {\n scenes.push(…findSceneEntries(value));\n }\n }\n\n return scenes;\n}\n\nlet output = ;\n\ntry {\n const inputData = items[0].json;\n const scenes = findSceneEntries(inputData);\n\n if (scenes.length === 0) {\n throw new Error(“No scene keys found at any level.”);\n }\n\n output = scenes.map(scene => ({ description: scene }));\n} catch (e) {\n throw new Error(“Could not extract scenes properly. Details: " + e.message);\n}\n\nreturn output;\n”
},
“id”: “25a59939-f6b6-4fae-8ed0-7808e008331c”,
“name”: “Unbundle Prompts”,
“type”: “n8n-nodes-base.code”,
“position”: [
10512,
2016
],
“typeVersion”: 2
},
{
“parameters”: {
“method”: “POST”,
“url”: “https://fal.ai/dashboard/keys”,
“sendBody”: true,
“contentType”: “raw”,
“rawContentType”: “application/json”,
“body”: “= {\n “prompt”: “ASMR Soothing sound effects. {{ $(‘Prompts AI Agent’).item.json.output.Sound }}”,\n “duration”: 10,\n “video_url”: “{{ $json.video.url }}”\n }\n”,
“options”: {
“batching”: {
“batch”: {
“batchSize”: 1,
“batchInterval”: 2000
}
}
}
},
“id”: “c15a3956-bf4f-446e-b14b-1304d5b37f3d”,
“name”: “Create Sounds”,
“type”: “n8n-nodes-base.httpRequest”,
“position”: [
11408,
2016
],
“typeVersion”: 4.2
},
{
“parameters”: {
“url”: “https://fal.ai/dashboard/keys”,
“options”: {}
},
“id”: “d277a432-e3b3-4069-837c-6e68def03672”,
“name”: “Get Sounds”,
“type”: “n8n-nodes-base.httpRequest”,
“position”: [
11856,
2016
],
“typeVersion”: 4.2
},
{
“parameters”: {
“amount”: 60
},
“id”: “2734cc8e-416a-41fd-a20b-40c079889907”,
“name”: “Wait for Sounds”,
“type”: “n8n-nodes-base.wait”,
“position”: [
11632,
2016
],
“typeVersion”: 1.1,
“webhookId”: “7021ff3a-80ad-4aee-9a11-fdbbea13cd83”
},
{
“parameters”: {
“mode”: “runOnceForEachItem”,
“jsCode”: “// Add a new field called ‘myNewField’ to the JSON of the item\n$input.item.json.myNewField = 1;\n\nreturn $input.item;”
},
“id”: “70f2ebeb-1ef1-439c-88b5-3c6094dca6a3”,
“name”: “List Elements”,
“type”: “n8n-nodes-base.code”,
“position”: [
12080,
2016
],
“typeVersion”: 2
},
{
“parameters”: {
“method”: “POST”,
“url”: “https://fal.ai/dashboard/keys”,
“sendBody”: true,
“contentType”: “raw”,
“rawContentType”: “application/json”,
“body”: “={\n “tracks”: [\n {\n “id”: “1”,\n “type”: “video”,\n “keyframes”: [\n { “url”: “{{ $json.video_urls[0] }}”, “timestamp”: 0, “duration”: 10 },\n { “url”: “{{ $json.video_urls[1] }}”, “timestamp”: 10, “duration”: 10 },\n { “url”: “{{ $json.video_urls[2] }}”, “timestamp”: 20, “duration”: 10 }\n ]\n }\n ]\n}”,
“options”: {
“batching”: {
“batch”: {
“batchSize”: 1,
“batchInterval”: 2000
}
}
}
},
“id”: “8892adcd-e2da-476c-998d-b814b12184e0”,
“name”: “Sequence Video”,
“type”: “n8n-nodes-base.httpRequest”,
“position”: [
12304,
2016
],
“typeVersion”: 4.2
},
{
“parameters”: {
“url”: “https://fal.ai/dashboard/keys”,
“options”: {}
},
“id”: “9063eb02-8cd4-4b75-87f2-fdd59f56f26c”,
“name”: “Get Final Video”,
“type”: “n8n-nodes-base.httpRequest”,
“position”: [
12752,
2016
],
“typeVersion”: 4.2
},
{
“parameters”: {
“amount”: 60
},
“id”: “b3c4c19c-2caa-454c-ae56-a6c00117a6d4”,
“name”: “Wait for Final Video”,
“type”: “n8n-nodes-base.wait”,
“position”: [
12528,
2016
],
“typeVersion”: 1.1,
“webhookId”: “923c883b-ba45-4fb6-9f77-af2cb721bec4”
},
{
“parameters”: {},
“id”: “7edea676-00ad-4c17-8fd9-54e55e06dbc5”,
“name”: “Think”,
“type”: “@n8n/n8n-nodes-langchain.toolThink”,
“position”: [
9600,
2240
],
“typeVersion”: 1
},
{
“parameters”: {
“model”: {
“__rl”: true,
“value”: “gpt-4”
},
“options”: {}
},
“id”: “9d61496d-66a5-454f-b60a-6d997a4d75e8”,
“name”: “OpenAI Chat Model”,
“type”: “@n8n/n8n-nodes-langchain.lmChatOpenAi”,
“position”: [
9472,
2240
],
“typeVersion”: 1.2,
“credentials”: {
“openAiApi”: {
“id”: “Jp9wQk6Hart2GBk7”,
“name”: “OpenAi account”
}
}
},
{
“parameters”: {
“promptType”: “define”,
“text”: “=Give me 3 video prompts based on the previous \n\nUse the Think tool to review your output”,
“hasOutputParser”: true,
“options”: {
“systemMessage”: “=Role: You are a prompt-generation AI specializing in satisfying, ASMR-style video prompts for kinetic sand. Your task is to generate a multi-scene video sequence that vividly shows a tool (like a knife, scoop, or press) interacting with kinetic sand in a clean, high-detail setting.\n\nYour writing must follow this style:\n\nSatisfying, tactile realism.\nMacro-level detail with a tight focus on the tool interacting with the sand’s unique texture.\nThe tool must always be in motion — slicing, scooping, pressing, or crumbling the sand. Never idle or static.\nCamera terms are allowed (e.g. macro view, top-down shot, slow-motion).\n\nEach scene must contain all of the following, expressed through detailed visual language:\n\n✅ The kinetic sand (from the Idea)\n✅ The environment or surface (from the Environment)\n✅ The texture, structure, and behavior of the sand as it’s being manipulated\n✅ A visible tool (knife, scoop, mold) actively interacting with the sand\n\nDescriptions should show:\n\nThe physical makeup of the sand — is it layered with different colors, sparkly, smooth, or matte? Emphasize its granular, yet cohesive structure.\nHow the sand responds to the tool — clean slicing, soft crumbling, perfect imprints, satisfying deformation, or a cascading collapse.\nThe interaction between the tool and the sand — sand grains momentarily sticking to the tool, the smooth surface left behind, the crisp edges of a cut.\nAny ASMR-relevant sensory cues like the satisfying crunch, the soft hiss of falling grains, or the shimmer of glitter, but always shown visually — not narrated.\n\nTone:\n\nSatisfying, mesmerizing, tactile.\nNo poetic metaphors, emotion, or storytelling.\nAvoid fantasy or surreal imagery.\nAll description must feel physically grounded and visually appealing.\n\nLength:\n\nEach scene must be between 1,000 and 2,000 characters.\nNo shallow or repetitive scenes — each must be immersive, descriptive, and specific.\nEach scene should explore a distinct phase of the action, a different camera perspective, or a new behavior of the sand.\n\nInputs:\n\nIdea: “{{ $json.idea }}”\nEnvironment: “{{ $json.environment_prompt }}”\nSound: “{{ $json.sound_prompt }}”\n\nFormat:\n\nIdea: “…”\nEnvironment: “…”\nSound: “…”\n\nScene 1: “…”\nScene 2: “…”\nScene 3: “…”\n(and so on)”
}
},
“id”: “da01687e-ad98-42c0-bab5-057882d6709b”,
“name”: “Prompts AI Agent”,
“type”: “@n8n/n8n-nodes-langchain.agent”,
“position”: [
10160,
2016
],
“typeVersion”: 1.9
},
{
“parameters”: {
“jsonSchemaExample”: “[\n {\n “Caption”: “Diver Removes Nets Off Whale :whale: #whalerescue #marinelife #oceanrescue #seahelpers #love #nature #instagood #explore #viral #savenature #oceanguardians #cleanoceans”,\n “Idea”: “Diver carefully cuts tangled net from distressed whale in open sea”,\n “Environment”: “Open ocean, sunlight beams through water, diver and whale, cinematic realism”,\n “Sound”: “Primary sound description under 15 words”,\n “Status”: “for production”\n }\n]\n”
},
“id”: “64abf568-4e09-4e5c-bd12-7475e721a54c”,
“name”: “Parser”,
“type”: “@n8n/n8n-nodes-langchain.outputParserStructured”,
“position”: [
9728,
2240
],
“typeVersion”: 1.2
},
{
“parameters”: {
“rule”: {
“interval”: [
{
“field”: “minutes”,
“minutesInterval”: 30
}
]
}
},
“id”: “d8c29c02-f396-4150-aa2c-550d7b123f9e”,
“name”: “Schedule Trigger”,
“type”: “n8n-nodes-base.scheduleTrigger”,
“position”: [
8896,
2016
],
“typeVersion”: 1.2
},
{
“parameters”: {
“jsonSchemaExample”: “{\n “Idea”: “An obsidian rock being sliced with a shimmering knife”,\n “Environment”: “Clean studio table, subtle light reflections”,\n “Sound”: “Crisp slicing, deep grinding, and delicate crumbling”,\n “Scene 1”: “Extreme macro shot: a razor-sharp, polished knife blade presses into the dark, granular surface of an obsidian rock, just beginning to indent.”,\n “Scene 2”: “Close-up: fine, iridescent dust particles erupt from the point of contact as the blade cuts deeper into the obsidian, catching the studio light.”,\n “Scene 3”: “Mid-shot: the knife, held perfectly steady, has formed a shallow, clean groove across the obsidian’s shimmering surface, revealing a new, smooth texture.”\n}”
},
“id”: “f2e85826-3416-4a1e-8f26-5a8538087174”,
“name”: “Parser2”,
“type”: “@n8n/n8n-nodes-langchain.outputParserStructured”,
“position”: [
10240,
2240
],
“typeVersion”: 1.2
},
{
“parameters”: {
“method”: “POST”,
“url”: “https://fal.ai/dashboard/keys”,
“sendBody”: true,
“contentType”: “raw”,
“rawContentType”: “application/json”,
“body”: “={\n “prompt”: “VIDEO THEME: {{ $(‘Prompts AI Agent’).item.json.output.Idea }} | WHAT HAPPENS IN THE VIDEO: {{ $json.description }} | WHERE THE VIDEO IS SHOT: {{ $(‘Prompts AI Agent’).item.json.output.Environment }}”,\n “aspect_ratio”: “9:16”,\n “duration”: “5s”\n}”,
“options”: {
“batching”: {
“batch”: {
“batchSize”: 1,
“batchInterval”: 3000
}
}
}
},
“id”: “790aee60-38b8-4939-834c-bd468b0f240b”,
“name”: “Create Clips”,
“type”: “n8n-nodes-base.httpRequest”,
“position”: [
10736,
2016
],
“typeVersion”: 4.2
},
{
“parameters”: {
“amount”: 60
},
“id”: “ba98805d-7d8b-476e-86b3-94017f79454b”,
“name”: “Wait for Clips”,
“type”: “n8n-nodes-base.wait”,
“position”: [
10960,
2016
],
“typeVersion”: 1.1,
“webhookId”: “92759d35-c000-4017-8374-a766bcde8637”
},
{
“parameters”: {
“url”: “https://fal.ai/dashboard/keys”,
“options”: {}
},
“id”: “7fc24bd4-8740-4633-b15a-868ff3cdacf5”,
“name”: “Get Clips”,
“type”: “n8n-nodes-base.httpRequest”,
“position”: [
11184,
2016
],
“typeVersion”: 4.2
},
{
“parameters”: {
“url”: “https://fal.ai/dashboard/keys”,
“options”: {
“response”: {
“response”: {
“responseFormat”: “file”
}
}
}
},
“id”: “614d8a4b-1319-4c0a-9b52-de284c232a6d”,
“name”: “Download Final Video”,
“type”: “n8n-nodes-base.httpRequest”,
“position”: [
13200,
2016
],
“typeVersion”: 4.2
},
{
“parameters”: {
“resource”: “video”,
“operation”: “upload”,
“title”: “=AI ASMR : {{ $(‘Update Final Video to Sheet’).item.json.idea }}”,
“regionCode”: “NG”,
“options”: {
“description”: “=AI-Generated Video Idea: {{ $(‘Update Final Video to Sheet’).item.json.idea }}\n\nThis video was created automatically using our automated workflow #asmrai #asmr #n8n”,
“notifySubscribers”: false,
“privacyStatus”: “public”,
“tags”: “=asmr, viral, asmrai, n8n, automation”
}
},
“id”: “f916f4e9-9634-4863-bdb9-b56e3401165e”,
“name”: “Upload to YouTube”,
“type”: “n8n-nodes-base.youTube”,
“position”: [
13424,
2016
],
“typeVersion”: 1,
“credentials”: {
“youTubeOAuth2Api”: {
“id”: “1C2uSy1Je24SkBmz”,
“name”: “YouTube account 2”
}
}
},
{
“parameters”: {
“model”: {
“__rl”: true,
“mode”: “list”,
“value”: “gpt-4o-mini”
},
“options”: {}
},
“id”: “acbdb550-278a-4f0a-a3c2-b3f1e9183dec”,
“name”: “OpenAI Chat Model1”,
“type”: “@n8n/n8n-nodes-langchain.lmChatOpenAi”,
“position”: [
9136,
2240
],
“typeVersion”: 1.2,
“credentials”: {
“openAiApi”: {
“id”: “29z11iXPgoml061l”,
“name”: “n8n free OpenAI API credits”
}
}
},
{
“parameters”: {
“authentication”: “serviceAccount”,
“sendTo”: “[email protected]”,
“subject”: “:white_check_mark: Your new video is ready!”,
“message”: “=✅ Your new video is ready! Title: {{ $(‘Update Final Video to Sheet’).item.json.idea }} Watch it here: YouTube{{ $(‘Upload to YouTube’).item.json.id }}”,
“options”: {
“senderName”: “Bilsimaging -n8n Automation”
}
},
“id”: “708c4602-2d5c-49f1-84a8-3117a83ce2cc”,
“name”: “Gmail Notification”,
“type”: “n8n-nodes-base.gmail”,
“position”: [
13648,
2208
],
“typeVersion”: 2.1,
“webhookId”: “3de8a7bc-537a-43c2-a78e-9a89e7cfdc83”,
“credentials”: {
“googleApi”: {
“id”: “0y2lClVhjpqc3AJ0”,
“name”: “Google Sheets account”
}
}
},
{
“parameters”: {
“promptType”: “define”,
“text”: “Generate one short, trendy, and viral ASMR video idea. Describe the core concept in less than 10 words. Do not explain it, just state the idea.”,
“hasOutputParser”: true,
“options”: {
“systemMessage”: “You are an AI that specializes in identifying viral trends on platforms like TikTok and YouTube Shorts. Your job is to brainstorm a single, simple, and satisfying ASMR video concept. You must only return the idea as a single line of plain text. Do not add any extra words, formatting, or explanation.”
}
},
“id”: “86188a74-2ca4-4e15-a151-f5a2ae927763”,
“name”: “1. Generate Trendy Idea”,
“type”: “@n8n/n8n-nodes-langchain.agent”,
“position”: [
9120,
2016
],
“typeVersion”: 1.9
},
{
“parameters”: {
“content”: “### Step 1: AI Brainstorms an Idea\nThis workflow starts with a Schedule Trigger. The first AI agent generates a simple, trendy ASMR concept. The second agent expands this into a full production plan (caption, environment, etc.).”,
“height”: 180,
“width”: 940,
“color”: 3
},
“id”: “2d8da7d8-c7a0-48b6-b999-59832b543e91”,
“name”: “Note: AI Ideation”,
“type”: “n8n-nodes-base.stickyNote”,
“position”: [
11968,
1648
],
“typeVersion”: 1
},
{
“parameters”: {
“content”: “### Step 2: Scene Generation & Video Creation\nThe plan is used to generate detailed scene descriptions. Then, we call the Wavespeed AI (Seedance) and Fal AI APIs to create the video clips and sound effects in parallel.”,
“height”: 180,
“width”: 600,
“color”: 3
},
“id”: “692c4c92-7d16-482f-8bca-cc951ab772e4”,
“name”: “Note: Asset Generation”,
“type”: “n8n-nodes-base.stickyNote”,
“position”: [
13008,
1648
],
“typeVersion”: 1
},
{
“parameters”: {
“content”: “### Step 3: Final Assembly\nThe video clips are stitched together.”,
“height”: 180,
“width”: 660,
“color”: 3
},
“id”: “211c2810-58c9-4246-ba27-561c3e57a74c”,
“name”: “Note: Final Assembly”,
“type”: “n8n-nodes-base.stickyNote”,
“position”: [
13712,
1648
],
“typeVersion”: 1
},
{
“parameters”: {
“content”: “### Step 4: Distribution & Logging\nThe final video is uploaded to YouTube, the Google Sheet is updated, and notifications are sent.”,
“height”: 180,
“width”: 960,
“color”: 3
},
“id”: “c76e5236-b71b-4705-b30c-89d5ae5dd0f5”,
“name”: “Note: Distribution”,
“type”: “n8n-nodes-base.stickyNote”,
“position”: [
14496,
1648
],
“typeVersion”: 1
},
{
“parameters”: {
“content”: “//ASMR AI Workflow By Bilsimaging.com\n### How It Works\n\nThis workflow is a fully autonomous content factory that creates and publishes satisfying ASMR-style YouTube Shorts without any human intervention. It’s a powerful example of chaining multiple AI services together to generate unique media.\n\nThe process runs in four main stages:\n\n1. AI Ideation: A schedule trigger kicks off the workflow. The first AI agent brainstorms a simple, trendy ASMR concept. A second agent then enriches this concept into a detailed JSON production plan, including a viral-style caption, environment description, and sound profile.\n\n2. Asset Generation: The workflow generates detailed scene-by-scene prompts. It then calls the ByteDance Seedance API (via Wavespeed) to create the video clips and the Fal AI API to generate corresponding sound effects.\n\n3. Final Assembly: The clips are sequenced into a final video. \n\n4. Distribution & Logging: The final video is downloaded, uploaded to a designated YouTube channel, the original row in a Google Sheet is updated with the new YouTube link and a “Done” status, and notifications are sent via Telegram and Gmail.\n\n### Set Up Steps\n\nThis is an advanced workflow that requires several credentials. \n\nYou will need to create credentials for the following services:\n\n* OpenAI: For the AI agents.\n* Wavespeed AI: For the Seedance video model.\n* Fal AI: For sound generation and video sequencing.\n* Google OAuth: For both the Google Sheets and YouTube nodes. You will need to enable the Google Sheets API and YouTube Data API v3 in your Google Cloud project.\n* Telegram Bot: For the final notification.\n* Gmail (Optional): If you want email notifications.\n\nYou will also need to create a Google Sheet to log the ideas and final outputs. A template can be easily created with columns for id, idea, caption, production_status, environment_prompt, sound_prompt, final_output, and youtube_url.\n\n### Features\n\n* Fully Autonomous Content Creation: Runs on a schedule to generate and publish content without any manual input.\n* Two-Stage AI Ideation: Uses a “creative” AI and a “planning” AI to produce more dynamic and well-structured ideas.\n* Multi-Modal AI: Chains together text-to-text, text-to-video, and text-to-audio models in a single, cohesive flow.\n* Closed-Loop System: Logs the initial idea to a Google Sheet and updates the same row with the final links and status, creating a perfect production log.\n* Spreadsheet as a CMS: Manage your entire content pipeline from a simple Google Sheet.\n* Real-time Notifications: Get immediate alerts on Telegram or Gmail as soon as a new video is live.\n\n### Pro-Tips & How to Handle APIs\n\n* API Rate Limits: If you run the workflow very frequently, some APIs might temporarily block you. To avoid this, you can adjust the Schedule Trigger to run less often (e.g., every 30 minutes instead of every 10). For more advanced control, you can add a batchInterval in the settings of the HTTP Request nodes.\n\n\n* Cost Management: Remember that AI API calls cost money. It is highly recommended to set up budget alerts in your OpenAI, Fal AI, and Wavespeed AI account dashboards to avoid any surprise bills.\n\n* Customization: The creative core of this workflow is in the Prompts AI Agent and Enrich Idea into Plan nodes. To change the style, tone, or type of videos created, simply edit the systemMessage in the options of these nodes.\n\nFor any help or tips on handling the APIs, don’t hesitate to contact me at [email protected].”,
“height”: 1240,
“width”: 1320
},
“id”: “57e8010f-7184-4d88-84fd-d2b85782a09b”,
“name”: “SUBMISSION GUIDE”,
“type”: “n8n-nodes-base.stickyNote”,
“position”: [
11248,
432
],
“typeVersion”: 1
},
{
“parameters”: {
“promptType”: “define”,
“text”: “=Take the following trendy ASMR idea and expand it into a full production plan using your required JSON format. Use the examples below for inspiration on how to format the “Idea” field.\n\nThe short ASMR idea is:\n[[\n{{ $json.output.idea }}\n]]\n\nHave your final expanded “Idea” field be in this format: “(color/style) (object) being (action)”. \nExamples for your inspiration: layered rainbow kinetic sand being sliced, sparkly purple soap being scooped, neon green slime being pressed.\n\nUse the Think tool to review your output.”,
“hasOutputParser”: true,
“options”: {
“systemMessage”: “=Role: You are an AI designed to generate 1 immersive, satisfying idea based on a user-provided topic. Your output must be formatted as a JSON array (single line) and follow all the rules below exactly.\n\n***\nRULES:\n\nOnly return 1 idea at a time.\n\nThe user will provide a key topic (e.g. “kinetic sand slicing,” “satisfying sand scooping,” “ASMR sand sounds”).\n\nThe Idea must:\n\nBe under 13 words.\n\nDescribe an interesting and viral-worthy moment, action, or event related to the provided topic.\n\nThe Caption must be:\n\nShort, punchy, and viral-friendly.\n\nInclude one relevant emoji.\n\nInclude exactly 12 hashtags in this order:\n** 4 topic-relevant hashtags\n** 4 all-time most popular hashtags\n** 4 currently trending hashtags\n\nAll hashtags must be lowercase.\n\nSet Status to “for production” (always).\n\nThe Environment must:\n\nBe under 20 words.\n\nMatch the action in the Idea exactly.\n\nClearly describe:\n\nWhere the event is happening (e.g. minimalist white surface, clean studio table)\nKey visuals or background details (e.g. bright lighting, subtle glitter)\nStyle of scene (e.g. macro close-up, cinematic slow-motion)\n\nThe Sound must:\n\nBe under 15 words.\n\nDescribe the primary sound that makes sense to happen in the video. This will be fed to a sound model later on.\n\n\n***\nOUTPUT FORMAT (single-line JSON array):\n\n[\n {\n “Caption”: “That crunch! :drooling_face: #kineticsand #satisfyingvideos #asmrsand #sand #oddlysatisfying #viral #fyp #explore #trending #tiktok #diy #crafts”,\n “Idea”: “Slicing through a block of layered rainbow kinetic sand”,\n “Environment”: “Macro close-up on a clean, bright white surface, cinematic slow-motion”,\n “Sound”: “Crisp, crunchy slicing sounds with a soft, gentle hiss”,\n “Status”: “for production”\n }\n]”
}
},
“id”: “62e10519-d31e-4012-8dcf-7e2e82ab35cd”,
“name”: “2. Enrich Idea into Plan”,
“type”: “@n8n/n8n-nodes-langchain.agent”,
“position”: [
9536,
2016
],
“typeVersion”: 1.9
},
{
“parameters”: {
“authentication”: “serviceAccount”,
“operation”: “append”,
“documentId”: {
“__rl”: true,
“value”: “caller Doc - Google Sheets,
“mode”: “url”
},
“sheetName”: {
“__rl”: true,
“value”: “Untitled spreadsheet - Google Sheets,
“mode”: “url”
},
“columns”: {
“mappingMode”: “defineBelow”,
“value”: {
“idea”: “={{ $json.output[0].Idea }}”,
" caption”: “={{ $json.output[0].Caption }}”,
" sound_prompt": “={{ $json.output[0].Sound }}”,
“final_output”: “={{ $json.output }}”,
“environment_prompt”: “={{ $json.output[0].Environment }}”,
" production_status": “={{ $json.output[0].Status }}”,
“id”: “1”
},
“matchingColumns”: [
“id”
],
“schema”: [
{
“id”: “id”,
“displayName”: “id”,
“required”: false,
“defaultMatch”: true,
“display”: true,
“type”: “string”,
“canBeUsedToMatch”: true,
“removed”: false
},
{
“id”: “idea”,
“displayName”: “idea”,
“required”: false,
“defaultMatch”: false,
“display”: true,
“type”: “string”,
“canBeUsedToMatch”: true
},
{
“id”: " caption",
“displayName”: " caption",
“required”: false,
“defaultMatch”: false,
“display”: true,
“type”: “string”,
“canBeUsedToMatch”: true
},
{
“id”: " production_status",
“displayName”: " production_status",
“required”: false,
“defaultMatch”: false,
“display”: true,
“type”: “string”,
“canBeUsedToMatch”: true
},
{
“id”: “environment_prompt”,
“displayName”: “environment_prompt”,
“required”: false,
“defaultMatch”: false,
“display”: true,
“type”: “string”,
“canBeUsedToMatch”: true
},
{
“id”: " sound_prompt",
“displayName”: " sound_prompt",
“required”: false,
“defaultMatch”: false,
“display”: true,
“type”: “string”,
“canBeUsedToMatch”: true
},
{
“id”: “final_output”,
“displayName”: “final_output”,
“required”: false,
“defaultMatch”: false,
“display”: true,
“type”: “string”,
“canBeUsedToMatch”: true
},
{
“id”: “youtube_url”,
“displayName”: “youtube_url”,
“required”: false,
“defaultMatch”: false,
“display”: true,
“type”: “string”,
“canBeUsedToMatch”: true
}
],
“attemptToConvertTypes”: false,
“convertFieldsToString”: false
},
“options”: {}
},
“id”: “06ccc97f-aa87-4c64-860b-0da4739d3de5”,
“name”: “3. Log New Idea to Sheet”,
“type”: “n8n-nodes-base.googleSheets”,
“position”: [
9936,
2016
],
“typeVersion”: 4.5,
“credentials”: {
“googleApi”: {
“id”: “0y2lClVhjpqc3AJ0”,
“name”: “Google Sheets account”
}
}
},
{
“parameters”: {
“authentication”: “serviceAccount”,
“operation”: “create”,
“documentId”: {
“__rl”: true,
“value”: “caller Doc - Google Sheets,
“mode”: “url”
},
“options”: {}
},
“id”: “58b1f682-2752-4995-b05e-7598353d7a61”,
“name”: “Update Final Video to Sheet”,
“type”: “n8n-nodes-base.googleSheets”,
“position”: [
12976,
2016
],
“typeVersion”: 4.5,
“credentials”: {
“googleApi”: {
“id”: “0y2lClVhjpqc3AJ0”,
“name”: “Google Sheets account”
}
}
},
{
“parameters”: {
“authentication”: “serviceAccount”,
“operation”: “update”,
“documentId”: {
“__rl”: true,
“value”: “YOUR_GOOGLE_SHEET_ID”
},
“sheetName”: {
“__rl”: true,
“value”: “YOUR_SHEET_NAME”
},
“columns”: {
“value”: {
“youtube_url”: “=YouTube{{ $(‘Upload to YouTube’).item.json.id }}”
},
“mappingMode”: “defineBelow”
},
“options”: {}
},
“id”: “fbf64920-6e9c-4dfa-b75a-bbf022ea597b”,
“name”: “Update Sheet with Youtube Link”,
“type”: “n8n-nodes-base.googleSheets”,
“position”: [
13648,
1824
],
“typeVersion”: 4.5,
“credentials”: {
“googleApi”: {
“id”: “0y2lClVhjpqc3AJ0”,
“name”: “Google Sheets account”
}
}
},
{
“parameters”: {
“jsonSchemaExample”: “{\n\t"idea": “Slicing through layered rainbow kinetic sand”\n}”
},
“type”: “@n8n/n8n-nodes-langchain.outputParserStructured”,
“typeVersion”: 1.3,
“position”: [
9264,
2240
],
“id”: “55b08379-ad19-48a7-9e5b-a3e7a8ddca8f”,
“name”: “Structured Output Parser”
},
{
“parameters”: {
“additionalFields”: {}
},
“type”: “n8n-nodes-base.twitter”,
“typeVersion”: 2,
“position”: [
13648,
2016
],
“id”: “840070c5-2513-4abf-b82f-40ed35ac4c4e”,
“name”: “Create Tweet”,
“credentials”: {
“twitterOAuth2Api”: {
“id”: “v5W13khCwxQIzwRv”,
“name”: “X account”
}
}
}
],
“connections”: {
“Unbundle Prompts”: {
“main”: [
[
{
“node”: “Create Clips”,
“type”: “main”,
“index”: 0
}
]
]
},
“Create Sounds”: {
“main”: [
[
{
“node”: “Wait for Sounds”,
“type”: “main”,
“index”: 0
}
]
]
},
“Get Sounds”: {
“main”: [
[
{
“node”: “List Elements”,
“type”: “main”,
“index”: 0
}
]
]
},
“Wait for Sounds”: {
“main”: [
[
{
“node”: “Get Sounds”,
“type”: “main”,
“index”: 0
}
]
]
},
“List Elements”: {
“main”: [
[
{
“node”: “Sequence Video”,
“type”: “main”,
“index”: 0
}
]
]
},
“Sequence Video”: {
“main”: [
[
{
“node”: “Wait for Final Video”,
“type”: “main”,
“index”: 0
}
]
]
},
“Get Final Video”: {
“main”: [
[
{
“node”: “Update Final Video to Sheet”,
“type”: “main”,
“index”: 0
}
]
]
},
“Wait for Final Video”: {
“main”: [
[
{
“node”: “Get Final Video”,
“type”: “main”,
“index”: 0
}
]
]
},
“Think”: {
“ai_tool”: [
[
{
“node”: “2. Enrich Idea into Plan”,
“type”: “ai_tool”,
“index”: 0
},
{
“node”: “Prompts AI Agent”,
“type”: “ai_tool”,
“index”: 0
}
]
]
},
“OpenAI Chat Model”: {
“ai_languageModel”: [
[
{
“node”: “2. Enrich Idea into Plan”,
“type”: “ai_languageModel”,
“index”: 0
},
{
“node”: “Prompts AI Agent”,
“type”: “ai_languageModel”,
“index”: 0
}
]
]
},
“Prompts AI Agent”: {
“main”: [
[
{
“node”: “Unbundle Prompts”,
“type”: “main”,
“index”: 0
}
]
]
},
“Parser”: {
“ai_outputParser”: [
[
{
“node”: “2. Enrich Idea into Plan”,
“type”: “ai_outputParser”,
“index”: 0
}
]
]
},
“Schedule Trigger”: {
“main”: [
[
{
“node”: “1. Generate Trendy Idea”,
“type”: “main”,
“index”: 0
}
]
]
},
“Parser2”: {
“ai_outputParser”: [
[
{
“node”: “Prompts AI Agent”,
“type”: “ai_outputParser”,
“index”: 0
}
]
]
},
“Create Clips”: {
“main”: [
[
{
“node”: “Wait for Clips”,
“type”: “main”,
“index”: 0
}
]
]
},
“Wait for Clips”: {
“main”: [
[
{
“node”: “Get Clips”,
“type”: “main”,
“index”: 0
}
]
]
},
“Get Clips”: {
“main”: [
[
{
“node”: “Create Sounds”,
“type”: “main”,
“index”: 0
}
]
]
},
“Download Final Video”: {
“main”: [
[
{
“node”: “Upload to YouTube”,
“type”: “main”,
“index”: 0
}
]
]
},
“Upload to YouTube”: {
“main”: [
[
{
“node”: “Gmail Notification”,
“type”: “main”,
“index”: 0
},
{
“node”: “Update Sheet with Youtube Link”,
“type”: “main”,
“index”: 0
},
{
“node”: “Create Tweet”,
“type”: “main”,
“index”: 0
}
]
]
},
“OpenAI Chat Model1”: {
“ai_languageModel”: [
[
{
“node”: “1. Generate Trendy Idea”,
“type”: “ai_languageModel”,
“index”: 0
}
]
]
},
“1. Generate Trendy Idea”: {
“main”: [
[
{
“node”: “2. Enrich Idea into Plan”,
“type”: “main”,
“index”: 0
}
]
]
},
“2. Enrich Idea into Plan”: {
“main”: [
[
{
“node”: “3. Log New Idea to Sheet”,
“type”: “main”,
“index”: 0
}
]
]
},
“3. Log New Idea to Sheet”: {
“main”: [
[
{
“node”: “Prompts AI Agent”,
“type”: “main”,
“index”: 0
}
]
]
},
“Update Final Video to Sheet”: {
“main”: [
[
{
“node”: “Download Final Video”,
“type”: “main”,
“index”: 0
}
]
]
},
“Structured Output Parser”: {
“ai_outputParser”: [
[
{
“node”: “1. Generate Trendy Idea”,
“type”: “ai_outputParser”,
“index”: 0
}
]
]
}
},
“pinData”: {},
“meta”: {
“templateId”: “5110”,
“templateCredsSetupCompleted”: true,
“instanceId”: “b99fabbc5131adc1fde8a0e693acc15f78412f405271d23381a3609e6f41b0f3”
}
}