{
  "name": "✅ ✅ ✅ AI YouTube Investing Influencer (3-PART) copy",
  "nodes": [
    {
      "parameters": {},
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        496,
        -640
      ],
      "id": "a153942f-3ac2-4155-bcc8-06628184d995",
      "name": "When clicking ‘Execute workflow’"
    },
    {
      "parameters": {},
      "type": "n8n-nodes-globals.globalConstants",
      "typeVersion": 1,
      "position": [
        -48,
        1040
      ],
      "id": "ba5873ce-a693-4e5d-9744-1b555bfe946f",
      "name": "Global Constants",
      "credentials": {
        "globalConstantsApi": {
          "id": "tl6hxt14W8QyX1vV",
          "name": "AI YouTube Investing Influencer"
        }
      }
    },
    {
      "parameters": {
        "documentId": {
          "__rl": true,
          "value": "={{ $json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $json.constants.Sheet4 }}",
          "mode": "name"
        },
        "filtersUI": {
          "values": [
            {
              "lookupColumn": "STATUS",
              "lookupValue": "={{ $json.constants.Status2 }}"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        112,
        1040
      ],
      "id": "ca2098d3-c24a-4f77-9cf7-3046a6732cf0",
      "name": "Get row(s) in sheet1",
      "retryOnFail": true,
      "waitBetweenTries": 5000,
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "options": {}
      },
      "type": "n8n-nodes-base.splitInBatches",
      "typeVersion": 3,
      "position": [
        320,
        1040
      ],
      "id": "ef70780f-01d3-45d1-ac91-14dc2a65f0fc",
      "name": "Loop Over Items"
    },
    {
      "parameters": {
        "mode": "runOnceForEachItem",
        "jsCode": "return {\n  realUrl: $json.link.includes(\"google.com/url\")\n    ? decodeURIComponent($json.link.match(/url=([^&]+)/)[1])\n    : $json.link,\n  title: $json.title,\n  contentSnippet: $json.contentSnippet,\n  publicationDate: $json.pubDate\n};\n"
      },
      "id": "bc765907-f34e-421c-987f-b6dc691e4cbc",
      "name": "Get Real URL1",
      "type": "n8n-nodes-base.code",
      "position": [
        1360,
        1648
      ],
      "typeVersion": 2
    },
    {
      "parameters": {
        "url": "={{ $('Loop Over Items').item.json['RSS Ticker'] }}",
        "options": {}
      },
      "id": "8bdfbd8a-7b98-4e82-8e26-a60b42b0052e",
      "name": "RSS Feed1",
      "type": "n8n-nodes-base.rssFeedRead",
      "position": [
        1200,
        1648
      ],
      "typeVersion": 1.2,
      "executeOnce": true
    },
    {
      "parameters": {
        "amount": 15
      },
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [
        2800,
        1824
      ],
      "id": "dc5e58e2-5a31-4dcd-a81c-74f68baccd72",
      "name": "Wait",
      "webhookId": "caae324e-a596-422a-8b53-2e6aec287078",
      "executeOnce": true
    },
    {
      "parameters": {
        "mode": "runOnceForEachItem",
        "jsCode": "let characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';\nlet result = '';\nlet length = 48; // Desired length of the random string\n\nfor (let i = 0; i < length; i++) {\n  result += characters.charAt(Math.floor(Math.random() * characters.length));\n}\n\nreturn {\n  json: {\n    ...item.json, // Preserve existing data from the current item\n    randomString: result\n  }\n};"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        1632,
        1648
      ],
      "id": "dc80193a-fba4-42ee-901d-43001d0fd963",
      "name": "Code3",
      "executeOnce": false
    },
    {
      "parameters": {
        "query": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Query', ``, 'string') }}",
        "count": 5,
        "additionalParameters": {}
      },
      "type": "@brave/n8n-nodes-brave-search.braveSearchTool",
      "typeVersion": 1,
      "position": [
        2176,
        1520
      ],
      "id": "53683722-9013-4e6b-8082-92cd86a5fd3d",
      "name": "Brave Search1",
      "credentials": {
        "braveSearchApi": {
          "id": "4yKxSu1Rx4YYMObx",
          "name": "Brave Search Account (Personal)"
        }
      }
    },
    {
      "parameters": {
        "operation": "append",
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants').item.json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants').item.json.constants.Sheet3 }}",
          "mode": "name"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "STATUS": "={{ $('Global Constants').first().json.constants.Status1 }}",
            "Article Title": "={{ $json.output.selected_article.article_title }}",
            "Ticker": "={{ $('Loop Over Items').item.json.Ticker }}",
            "Reasoning": "={{ $json.output.selected_article.justification }}",
            "Suggested Angle 1": "={{ $json.output.selected_article.angle_1.title }}{{ \"\\n\" }}{{ \"\\n\" }}Approach:{{ \"\\n\" }}{{ $json.output.selected_article.angle_1.approach }}",
            "Suggested Angle 2": "={{ $json.output.selected_article.angle_2.title }}{{ \"\\n\" }}{{ \"\\n\" }}Approach:{{ \"\\n\" }}{{ $json.output.selected_article.angle_2.approach }}",
            "Link": "={{ $json.output.selected_article.article_link }}",
            "PublicationDate": "={{ $('Code3').first().json.randomString.substring(0,8) }}",
            "MPLY_CTA": "={{ $json.output.selected_article.justification }}"
          },
          "matchingColumns": [],
          "schema": [
            {
              "id": "PublicationDate",
              "displayName": "PublicationDate",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "STATUS",
              "displayName": "STATUS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Article Title",
              "displayName": "Article Title",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Ticker",
              "displayName": "Ticker",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Link",
              "displayName": "Link",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Reasoning",
              "displayName": "Reasoning",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Suggested Angle 1",
              "displayName": "Suggested Angle 1",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Suggested Angle 2",
              "displayName": "Suggested Angle 2",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Target Audience",
              "displayName": "Target Audience",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Keywords",
              "displayName": "Keywords",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "MPLY_CTA",
              "displayName": "MPLY_CTA",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        2320,
        1632
      ],
      "id": "5a101089-8a5f-4cad-a1a5-cb89f2390576",
      "name": "Append row in sheet1",
      "executeOnce": false,
      "retryOnFail": true,
      "waitBetweenTries": 5000,
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "wZJh4ACm1MD5wdQ9",
          "name": "Google Sheet (Admin Account - Nandy Cyber Success)"
        }
      }
    },
    {
      "parameters": {
        "url": "https://serpapi.com/search",
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "serpApi",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "engine",
              "value": "youtube"
            },
            {
              "name": "search_query",
              "value": "={{ $json.HoldingName }}"
            },
            {
              "name": "gl",
              "value": "us"
            },
            {
              "name": "hl",
              "value": "en"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.3,
      "position": [
        592,
        1056
      ],
      "id": "fede2898-19c2-4dfa-9f35-4fbc196d8edd",
      "name": "HTTP Request",
      "credentials": {
        "serpApi": {
          "id": "A7ogaA7Ye8tWnNxu",
          "name": "SerpAPI account"
        }
      }
    },
    {
      "parameters": {
        "operation": "append",
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants').item.json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "mode": "name",
          "value": "={{ $('Global Constants').item.json.constants.Sheet5 }}"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "PUBLICATION.DATE": "={{ $json.published_date }}",
            "KEYWORD": "={{ $('HTTP Request').item.json.search_parameters.search_query }}",
            "DATE TODAY": "={{$today.format('LL/dd/yyyy')}}",
            "POSITION ON PAGE": "={{ $json.position_on_page }}",
            "VIDEO TITLE": "={{ $json.title }}",
            "Link": "={{ $json.link }}",
            "DESCRIPTION": "={{ $json.description }}",
            "VIDEOID": "={{ $json.link.split('watch?v=')[1] }}",
            "STATUS": "={{ $('Global Constants').first().json.constants.Status1 }}",
            "THUMBNAIL.IMAGE": "==IMAGE(\"{{ $json.thumbnail.static.split(\"?\")[0] }}\")",
            "DURATION": "={{ $json.length.split(\":\")[0] }} minutes {{ $json.length.split(\":\")[1] }} seconds",
            "VIEWS": "={{ $json.views }}",
            "FORMAT": "LONG",
            "CHANNEL": "={{ $json.channel.name }}"
          },
          "matchingColumns": [],
          "schema": [
            {
              "id": "DATE TODAY",
              "displayName": "DATE TODAY",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "PUBLICATION.DATE",
              "displayName": "PUBLICATION.DATE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "KEYWORD",
              "displayName": "KEYWORD",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "POSITION ON PAGE",
              "displayName": "POSITION ON PAGE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "STATUS",
              "displayName": "STATUS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "VIDEO TITLE",
              "displayName": "VIDEO TITLE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "FORMAT",
              "displayName": "FORMAT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "CHANNEL",
              "displayName": "CHANNEL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "THUMBNAIL.IMAGE",
              "displayName": "THUMBNAIL.IMAGE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "VIEWS",
              "displayName": "VIEWS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "DURATION",
              "displayName": "DURATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Link",
              "displayName": "Link",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "VIDEOID",
              "displayName": "VIDEOID",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "DESCRIPTION",
              "displayName": "DESCRIPTION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "TRANSCRIPT",
              "displayName": "TRANSCRIPT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        1408,
        1056
      ],
      "id": "1cedb335-5fdc-49e0-b5a5-fd6d50cd1be0",
      "name": "Append row in sheet2",
      "retryOnFail": true,
      "waitBetweenTries": 5000,
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "wZJh4ACm1MD5wdQ9",
          "name": "Google Sheet (Admin Account - Nandy Cyber Success)"
        }
      }
    },
    {
      "parameters": {
        "fieldToSplitOut": "video_results",
        "options": {}
      },
      "type": "n8n-nodes-base.splitOut",
      "typeVersion": 1,
      "position": [
        864,
        1056
      ],
      "id": "a6f9e086-b131-4596-a2ab-02c94c4d2916",
      "name": "Split Out"
    },
    {
      "parameters": {
        "maxItems": 3
      },
      "type": "n8n-nodes-base.limit",
      "typeVersion": 1,
      "position": [
        1136,
        1056
      ],
      "id": "0b6c59a8-05eb-4b6e-a50d-d4add6ca8b3e",
      "name": "Limit"
    },
    {
      "parameters": {
        "url": "https://youtube-transcript3.p.rapidapi.com/api/transcript",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "videoId",
              "value": "={{ $json.VIDEOID }}"
            }
          ]
        },
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "x-rapidapi-host",
              "value": "youtube-transcript3.p.rapidapi.com"
            }
          ]
        },
        "options": {
          "batching": {
            "batch": {
              "batchSize": 1,
              "batchInterval": 8000
            }
          }
        }
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.3,
      "position": [
        1920,
        1056
      ],
      "id": "80f346d9-73c9-49d5-be8a-074fd2072d3e",
      "name": "HTTP Request1",
      "credentials": {
        "httpHeaderAuth": {
          "id": "gNduOlJyVIPqxPAI",
          "name": "X-Rapid API"
        }
      }
    },
    {
      "parameters": {
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants').item.json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "mode": "name",
          "value": "={{ $('Global Constants').item.json.constants.Sheet5 }}"
        },
        "filtersUI": {
          "values": [
            {
              "lookupColumn": "STATUS",
              "lookupValue": "PENDING"
            },
            {
              "lookupColumn": "FORMAT",
              "lookupValue": "LONG"
            },
            {
              "lookupColumn": "VIDEOID",
              "lookupValue": "={{ $json.VIDEOID }}"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        1712,
        1056
      ],
      "id": "c8029c68-369d-4d52-b0b1-bc92de2546a5",
      "name": "Get row(s) in sheet",
      "executeOnce": true,
      "retryOnFail": true,
      "waitBetweenTries": 5000,
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "wZJh4ACm1MD5wdQ9",
          "name": "Google Sheet (Admin Account - Nandy Cyber Success)"
        }
      }
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants').first().json.constants.Sheet5 }}",
          "mode": "name"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "row_number": "={{ $('Get row(s) in sheet').item.json.row_number }}",
            "TRANSCRIPT": "={{ $json.transcript }}",
            "STATUS": "={{ $('Global Constants').first().json.constants.Status2 }}"
          },
          "matchingColumns": [
            "row_number"
          ],
          "schema": [
            {
              "id": "DATE TODAY",
              "displayName": "DATE TODAY",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "PUBLICATION.DATE",
              "displayName": "PUBLICATION.DATE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "KEYWORD",
              "displayName": "KEYWORD",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "POSITION ON PAGE",
              "displayName": "POSITION ON PAGE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "STATUS",
              "displayName": "STATUS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "VIDEO TITLE",
              "displayName": "VIDEO TITLE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "FORMAT",
              "displayName": "FORMAT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "CHANNEL",
              "displayName": "CHANNEL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "THUMBNAIL.IMAGE",
              "displayName": "THUMBNAIL.IMAGE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIEWS",
              "displayName": "VIEWS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "DURATION",
              "displayName": "DURATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Link",
              "displayName": "Link",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEOID",
              "displayName": "VIDEOID",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "DESCRIPTION",
              "displayName": "DESCRIPTION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TRANSCRIPT",
              "displayName": "TRANSCRIPT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        1408,
        1408
      ],
      "id": "767bd92b-b101-46ac-add5-d735943c3604",
      "name": "Update row in sheet",
      "executeOnce": false,
      "retryOnFail": true,
      "waitBetweenTries": 5000,
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "wZJh4ACm1MD5wdQ9",
          "name": "Google Sheet (Admin Account - Nandy Cyber Success)"
        }
      }
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "=Article List:\n\n1. {{ $json.data[0].title }}\n{{ $json.data[0].contentSnippet }}\n{{ $json.data[0].realUrl }}\n\n2. {{ $json.data[1].title }}\n{{ $json.data[1].contentSnippet }}\n{{ $json.data[1].realUrl }}\n\n3. {{ $json.data[2].title }}\n{{ $json.data[2].contentSnippet }}\n{{ $json.data[2].realUrl }}\n\n4. {{ $json.data[3].title }}\n{{ $json.data[3].contentSnippet }}\n{{ $json.data[3].realUrl }}\n\n5. {{ $json.data[4].title }}\n{{ $json.data[4].contentSnippet }}\n{{ $json.data[4].realUrl }}\n\n6. {{ $json.data[5].title }}\n{{ $json.data[5].contentSnippet }}\n{{ $json.data[5].realUrl }}\n\n7. {{ $json.data[6].title }}\n{{ $json.data[6].contentSnippet }}\n{{ $json.data[6].realUrl }}\n\n8. {{ $json.data[7].title }}\n{{ $json.data[7].contentSnippet }}\n{{ $json.data[7].realUrl }}\n\n9. {{ $json.data[8].title }}\n{{ $json.data[8].contentSnippet }}\n{{ $json.data[8].realUrl }}\n\n10. {{ $json.data[9].title }}\n{{ $json.data[9].contentSnippet }}\n{{ $json.data[9].realUrl }}\n\n11. {{ $json.data[10].title }}\n{{ $json.data[10].contentSnippet }}\n{{ $json.data[10].realUrl }}\n\n12. {{ $json.data[11].title }}\n{{ $json.data[11].contentSnippet }}\n{{ $json.data[11].realUrl }}\n\n13. {{ $json.data[12].title }}\n{{ $json.data[12].contentSnippet }}\n{{ $json.data[12].realUrl }}\n\n14. {{ $json.data[13].title }}\n{{ $json.data[13].contentSnippet }}\n{{ $json.data[13].realUrl }}\n\n15. {{ $json.data[14].title }}\n{{ $json.data[14].contentSnippet }}\n{{ $json.data[14].realUrl }}\n\n16. {{ $json.data[15].title }}\n{{ $json.data[15].contentSnippet }}\n{{ $json.data[15].realUrl }}\n\n17. {{ $json.data[16].title }}\n{{ $json.data[16].contentSnippet }}\n{{ $json.data[16].realUrl }}\n\n18. {{ $json.data[17].title }}\n{{ $json.data[17].contentSnippet }}\n{{ $json.data[17].realUrl }}",
        "hasOutputParser": true,
        "needsFallback": true,
        "options": {
          "systemMessage": "=You evaluate news articles and select the SINGLE BEST article for a YouTube Short about monopoly investing and MPLY ETF. Output RAW JSON only.\n\n=== CRITICAL: OUTPUT RULES ===\n\n1. Output RAW JSON only. No markdown. No code blocks. No explanation.\n2. Start with { and end with }\n3. Select EXACTLY 1 article (the single best). If none qualify, output empty array.\n\n=== YOUR TASK ===\n\nFrom all input articles:\n1. Evaluate each for monopoly investing potential and audience engagement\n2. Select the SINGLE BEST article only\n3. Provide two angles for the article with hooky titles and approaches\n4. Score strictly using full 1-10 range\n\n=== SELECTION PROCESS ===\n\nStep 1: Evaluate ALL articles against these criteria:\n- Engagement potential (would this grab attention in 3 seconds?)\n- Monopoly investing relevance (clear connection to monopolistic attributes?)\n- MPLY tie-in (can you naturally connect to the ETF thesis?)\n\nStep 2: Rank all qualifying articles by overall_confidence score\n\nStep 3: Select ONLY the TOP 1 (highest overall_confidence)\n\nIf no articles meet minimum threshold (overall_confidence >= 5), output empty array.\n\n=== INPUTS YOU RECEIVE ===\n\nFor each article:\n- Article Title: Headline (copy exactly to output)\n- Snippet: Brief excerpt (may be incomplete)\n- Link: URL (copy exactly to output)\n\n=== CONTENT CREATOR: Marcus Caldwell ===\n\nCFA Charterholder, former institutional portfolio manager.\nVoice: Educational, accessible, data-driven, balanced, long-term focused.\nAvoid: Speculation, day trading, \"get rich quick\" framing, personalized advice.\n\n=== MONOPOLISTIC ATTRIBUTES ===\n\nLook for these in articles:\n- Strong, durable pricing power\n- High, persistent profit margins\n- Network effects, platform dominance, ecosystem lock-in\n- High switching costs\n- Regulatory or structural barriers to entry\n- High market share and industry concentration\n\n=== MPLY ETF CONTEXT ===\n\nTicker: MPLY (Cboe BZX Exchange)\nStrategy: Actively managed, targets monopolistic companies\nThesis: Monopolistic companies generate superior long-term returns through higher margins, competitive resistance, and pricing power.\n\nCTA requirements: Educational tone, connect to thesis, no personalized advice or guarantees.\n\n=== SCORING RUBRIC ===\n\nengagement_score (1-10):\n1-3 = Niche/dry, unlikely to grab attention\n4-6 = Reasonable, execution-dependent\n7-8 = Strong mass appeal, good Shorts potential\n9-10 = Highly engaging, clear emotional/surprise hook\n\nunique_perspective_score (1-10):\n1-3 = Standard, widely covered\n4-6 = Some nuance possible\n7-8 = Clear opportunity for monopoly spin\n9-10 = Perfect fit for distinctive breakdown\n\nmply_alignment_score (1-10):\n1-3 = Weak or forced connection\n4-6 = Plausible but not central\n7-8 = Strong, direct link\n9-10 = Textbook monopoly investing example\n\noverall_confidence (1-10):\nYour judgment on becoming a strong YouTube Short for Marcus.\nNOT a simple average. Use full range. Score of 5 = uncertain.\n\n=== FIELD REQUIREMENTS ===\n\narticle_title: Copy exactly from input (do not modify)\n\narticle_link: Copy exactly from input (must start with http:// or https://)\n\njustification: 2-4 sentences on why this works for Marcus (engagement, monopoly angle, clarity)\n\nsuggested_cta: 2-3 sentences, educational, ties to MPLY, no \"you should buy\" language\n\nangle_1: Object with \"title\" (hooky, 10-100 chars) and \"approach\" (structure explanation, 50-500 chars)\n\nangle_2: Object with \"title\" and \"approach\" (alternative angle)\n\nAll scores: Integers 1-10\n\n=== JSON STRUCTURE ===\n\nYour output must be exactly this structure (with your values):\n\n{\"selected_article\":{\"article_title\":\"...\",\"article_link\":\"https://...\",\"justification\":\"...\",\"suggested_cta\":\"...\",\"angle_1\":{\"title\":\"...\",\"approach\":\"...\"},\"angle_2\":{\"title\":\"...\",\"approach\":\"...\"},\"engagement_score\":8,\"unique_perspective_score\":7,\"mply_alignment_score\":9,\"overall_confidence\":8}}\n\nIf no article qualifies:\n\n{\"selected_article\":null}\n\n=== VALIDATION BEFORE OUTPUT ===\n\nCheck:\n- Exactly 1 article selected (or null if none qualify)\n- All 10 fields present for the article\n- article_title and article_link copied exactly from input\n- All scores are integers 1-10\n- No markdown, no code blocks, no explanation text\n- Valid JSON (double quotes, no trailing commas)\n\n=== OUTPUT ===\n\nReturn ONLY the JSON object. Start with { and end with }\n\nExample JSON Output:\n\n{\n  \"selected_article\": {\n    \"article_title\": \"Tesla Raises Prices for Third Time This Quarter Despite Weakening EV Demand\",\n    \"article_link\": \"https://www.cnbc.com/2024/12/05/tesla-price-increase.html\",\n    \"justification\": \"This article demonstrates textbook monopolistic pricing power: Tesla raising prices while competitors discount heavily. The contrast between weak demand headlines and Tesla's ability to hike prices creates a strong hook and clear teaching moment about competitive advantage. Data points are simple to visualize in under 50 seconds.\",\n    \"suggested_cta\": \"This kind of pricing power is exactly what monopoly investors look for. Companies that can raise prices without losing customers often have durable competitive advantages. MPLY focuses on businesses with these monopolistic attributes that support stronger long-term earnings growth.\",\n    \"angle_1\": {\n      \"title\": \"Tesla Raises Prices While EV Rivals Slash Them\",\n      \"approach\": \"Open with the contrast: Tesla hiking prices for the third time while competitors cut by double digits. Use simple price comparison visual, explain why raising prices in weak demand signals brand strength and competitive advantage. Close by linking pricing power to monopoly investing.\"\n    },\n    \"angle_2\": {\n      \"title\": \"What Tesla's Price Hikes Reveal About Real Moats\",\n      \"approach\": \"Start with question: If EV demand is weak, why is Tesla raising prices? Walk through how true moats show in pricing behavior, not just market share. Explain monopoly investors look for margin protection under pressure, tie to MPLY strategy.\"\n    },\n    \"engagement_score\": 9,\n    \"unique_perspective_score\": 8,\n    \"mply_alignment_score\": 10,\n    \"overall_confidence\": 9\n  }\n}"
        }
      },
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 3,
      "position": [
        1872,
        1648
      ],
      "id": "1da23762-4c73-4a0c-8305-598fda5fbdde",
      "name": "AI Agent2",
      "retryOnFail": true,
      "waitBetweenTries": 5000,
      "onError": "continueErrorOutput"
    },
    {
      "parameters": {
        "schemaType": "manual",
        "inputSchema": "{\n  \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n  \"title\": \"MonopolyInvestingYouTubeShortsSelection\",\n  \"description\": \"Single best article selected for YouTube Short focused on monopoly investing and MPLY ETF\",\n  \"type\": \"object\",\n  \"additionalProperties\": false,\n  \"required\": [\"selected_article\"],\n  \"properties\": {\n    \"selected_article\": {\n      \"oneOf\": [\n        { \"$ref\": \"#/definitions/articleAssessment\" },\n        { \"type\": \"null\" }\n      ],\n      \"description\": \"The single best article, or null if none qualify\"\n    }\n  },\n  \"definitions\": {\n    \"angle\": {\n      \"type\": \"object\",\n      \"description\": \"A specific angle/approach for presenting the article as a YouTube Short\",\n      \"additionalProperties\": false,\n      \"required\": [\"title\", \"approach\"],\n      \"properties\": {\n        \"title\": {\n          \"type\": \"string\",\n          \"description\": \"Hooky YouTube Short title (target 40-70 chars)\",\n          \"minLength\": 8,\n          \"maxLength\": 120\n        },\n        \"approach\": {\n          \"type\": \"string\",\n          \"description\": \"How to structure the Short: lead, key insight, monopoly tie-in\",\n          \"minLength\": 40,\n          \"maxLength\": 600\n        }\n      }\n    },\n    \"articleAssessment\": {\n      \"type\": \"object\",\n      \"description\": \"Complete evaluation of the selected article\",\n      \"additionalProperties\": false,\n      \"required\": [\n        \"article_title\",\n        \"article_link\",\n        \"justification\",\n        \"suggested_cta\",\n        \"angle_1\",\n        \"angle_2\",\n        \"engagement_score\",\n        \"unique_perspective_score\",\n        \"mply_alignment_score\",\n        \"overall_confidence\"\n      ],\n      \"properties\": {\n        \"article_title\": {\n          \"type\": \"string\",\n          \"description\": \"Original article headline exactly as provided in input\",\n          \"minLength\": 5,\n          \"maxLength\": 400\n        },\n        \"article_link\": {\n          \"type\": \"string\",\n          \"description\": \"Original article URL exactly as provided in input\",\n          \"minLength\": 10,\n          \"maxLength\": 600,\n          \"pattern\": \"^https?://.+\"\n        },\n        \"justification\": {\n          \"type\": \"string\",\n          \"description\": \"Why this article works for Marcus (2-4 sentences)\",\n          \"minLength\": 80,\n          \"maxLength\": 1000\n        },\n        \"suggested_cta\": {\n          \"type\": \"string\",\n          \"description\": \"Educational CTA tying topic to MPLY (2-3 sentences, no advice)\",\n          \"minLength\": 40,\n          \"maxLength\": 500\n        },\n        \"angle_1\": {\n          \"$ref\": \"#/definitions/angle\"\n        },\n        \"angle_2\": {\n          \"$ref\": \"#/definitions/angle\"\n        },\n        \"engagement_score\": {\n          \"type\": \"integer\",\n          \"minimum\": 1,\n          \"maximum\": 10\n        },\n        \"unique_perspective_score\": {\n          \"type\": \"integer\",\n          \"minimum\": 1,\n          \"maximum\": 10\n        },\n        \"mply_alignment_score\": {\n          \"type\": \"integer\",\n          \"minimum\": 1,\n          \"maximum\": 10\n        },\n        \"overall_confidence\": {\n          \"type\": \"integer\",\n          \"minimum\": 1,\n          \"maximum\": 10\n        }\n      }\n    }\n  }\n}",
        "autoFix": true
      },
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "typeVersion": 1.3,
      "position": [
        1984,
        1776
      ],
      "id": "8acea13c-2822-4d71-8aaf-7cf597680e73",
      "name": "Structured Output Parser2"
    },
    {
      "parameters": {
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants').item.json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants').item.json.constants.Sheet5 }}",
          "mode": "name"
        },
        "filtersUI": {
          "values": [
            {
              "lookupColumn": "STATUS",
              "lookupValue": "={{ $('Global Constants').item.json.constants.Status2 }}"
            },
            {
              "lookupColumn": "DATE TODAY",
              "lookupValue": "={{$today.format('LL/dd/yyyy')}}"
            },
            {
              "lookupColumn": "KEYWORD",
              "lookupValue": "={{ $('Loop Over Items').item.json.HoldingName }}"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheetsTool",
      "typeVersion": 4.7,
      "position": [
        1872,
        1776
      ],
      "id": "7155c5ec-1faa-44f1-a7c9-dadd7e010c03",
      "name": "Get row(s) in sheet in Google Sheets",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "wZJh4ACm1MD5wdQ9",
          "name": "Google Sheet (Admin Account - Nandy Cyber Success)"
        }
      }
    },
    {
      "parameters": {
        "sessionIdType": "customKey",
        "sessionKey": "={{ $('Code3').item.json.randomString }}",
        "contextWindowLength": 50
      },
      "type": "@n8n/n8n-nodes-langchain.memoryRedisChat",
      "typeVersion": 1.5,
      "position": [
        2096,
        1424
      ],
      "id": "10a3c0ca-9ea6-4da6-b2b7-e6e9a5bad597",
      "name": "Redis Chat Memory2",
      "credentials": {
        "redis": {
          "id": "w1nYJN6Fl7n4lwSC",
          "name": "Redis (EXPIRES)"
        }
      }
    },
    {
      "parameters": {
        "model": "mistral-large-latest",
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatMistralCloud",
      "typeVersion": 1,
      "position": [
        1808,
        1504
      ],
      "id": "849a1497-573d-4978-86b8-38d9a43c40e7",
      "name": "Mistral Cloud Chat Model",
      "credentials": {
        "mistralCloudApi": {
          "id": "feG0p0tu1GwMlA1h",
          "name": "Mistral Cloud Account (Personal)"
        }
      }
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "=Article Title:\n{{ $('Get row(s) in sheet2').item.json['Article Title'] }}\n\nArticle Link (access via Jina):\n{{ $('Get row(s) in sheet2').item.json.Link }}\n\nSuggested Angle 1:\n{{ $('Get row(s) in sheet2').item.json['Suggested Angle 1'] }}\n\nSuggested Angle 2:\n{{ $('Get row(s) in sheet2').item.json['Suggested Angle 2'] }}\n\nReasoning (why this article makes for a good topic for a YouTube Short idea):\n{{ $('Get row(s) in sheet2').item.json.Reasoning }}\n\nSuggested MPLY ETF CTA:\n{{ $('Get row(s) in sheet2').item.json.MPLY_CTA }}",
        "hasOutputParser": true,
        "needsFallback": true,
        "options": {
          "systemMessage": "=## Ultra-Hardened System Message\n\nYou are a YouTube Shorts scriptwriter for investment education content. You output RAW JSON ONLY.\n\n=== CRITICAL: OUTPUT FORMAT ===\n\nDO NOT wrap your response in markdown code blocks.\nDO NOT include any text before or after the JSON.\nDO NOT use triple backticks.\nStart your response with { and end with }\nOutput ONLY a valid JSON object.\n\n=== YOUR TASK ===\n\nCreate a teleprompter-ready script (150-450 words, 45-50 seconds) for Marcus Caldwell's YouTube Shorts channel about monopoly investing.\n\n=== INPUTS YOU RECEIVE ===\n\n1. Source Article - news article with title, content, URL\n2. Two Suggested Angles - pick ONE (1 or 2)\n3. Three Opening Styles - pick ONE (use exact identifier provided)\n4. YouTuber Persona - Marcus Caldwell\n\n=== MARCUS CALDWELL PERSONA ===\n\nCFA Charterholder, former institutional portfolio manager.\nVoice: Educational, accessible, data-driven, balanced, long-term focused, slightly contrarian.\n\n=== MONOPOLISTIC ATTRIBUTES ===\n\nUse ONLY these exact values in the monopolistic_attributes array:\n- economic_rents\n- vertical_integration\n- network_effects\n- brand_dominance\n- regulatory_exclusivity\n- pricing_power\n\n=== MPLY ETF ===\n\nStrategy Shares Monopoly ETF. Actively managed, targets companies with monopolistic attributes.\nPlace CTA in final 10-15 seconds. Must flow naturally. Informative, not salesy.\n\n=== SCRIPT REQUIREMENTS ===\n\n- 150-450 words total\n- Continuous prose paragraphs only\n- NO bullet points, headers, emojis, brackets\n- Include: opening hook, monopoly analysis, MPLY integration\n- Must be speakable exactly as written\n\n=== JSON FIELDS TO OUTPUT ===\n\nmodel_used: Your model identifier string (e.g., \"claude-sonnet-4-20250514\")\n\ngeneration_timestamp: Current UTC time, ISO 8601 format (e.g., \"2025-12-07T14:32:15Z\")\n\nvideo_title: YouTube title, 40-70 characters, curiosity-driven\n\nvideo_description: 40-50 words expanding on title\n\ndescription_word_count: Integer, exact word count of video_description\n\nselected_opening_style: Exact identifier from input in snake_case (e.g., \"shocking_statistic\")\n\nselected_angle: Integer, either 1 or 2\n\nopening_rationale: 2-3 sentences explaining your opening style choice\n\nangle_rationale: 2-3 sentences explaining your angle choice\n\nmonopolistic_attributes: Array of 1-3 values from the enum list above\n\nscript: Complete teleprompter script, continuous prose, no formatting\n\nword_count: Integer, exact word count of script\n\nestimated_duration_seconds: Integer, estimate at ~150 words per minute\n\nkey_data_points: Array of 1-4 specific stats/facts from the article\n\nmply_connection: How the script connects to MPLY investment thesis\n\n=== EXAMPLE OUTPUT STRUCTURE ===\n\nYour response must look exactly like this (with your actual values):\n\n{\"model_used\":\"claude-sonnet-4-20250514\",\"generation_timestamp\":\"2025-12-07T14:32:15Z\",\"video_title\":\"Why Apple Can Keep Raising Prices\",\"video_description\":\"Apple services revenue hit eighty-five billion dollars while iPhone sales stayed flat. Discover why this ecosystem lock-in creates one of the most powerful monopolistic moats in history and what it means for long-term investors seeking durable competitive advantages.\",\"description_word_count\":42,\"selected_opening_style\":\"shocking_statistic\",\"selected_angle\":1,\"opening_rationale\":\"The shocking statistic opener works best because the revenue figure is genuinely surprising and creates immediate curiosity about how services became so dominant.\",\"angle_rationale\":\"Angle 1 focuses on ecosystem lock-in which directly connects to network effects, a core monopolistic attribute that MPLY targets.\",\"monopolistic_attributes\":[\"network_effects\",\"pricing_power\"],\"script\":\"Apple services just hit eighty-five billion dollars in annual revenue. That is bigger than Nike, Starbucks, and Netflix combined. But here is what most investors are missing. While everyone obsesses over iPhone unit sales, Apple quietly built something far more valuable. A services ecosystem that locks you in permanently. Think about your iCloud photos, your Apple Music playlists, your subscriptions. Your entire digital life lives inside Apple's walled garden. And here is the kicker. The more people use iPhones, the more valuable these services become. That is called network effects, and it is one of the most powerful monopolistic advantages a company can have. Apple can raise prices on these services year after year, and you will keep paying because switching means losing everything. This is not just a tech company anymore. It is a monopoly with pricing power that compounds over time. This is exactly the kind of structural advantage that Strategy Shares MPLY ETF targets. MPLY specifically invests in companies with these monopolistic moats. Network effects, pricing power, customer lock-in. The characteristics that let companies maintain higher margins and resist competition for decades.\",\"word_count\":197,\"estimated_duration_seconds\":47,\"key_data_points\":[\"$85 billion annual services revenue\",\"Bigger than Nike, Starbucks, and Netflix combined\",\"Network effects strengthen as user base grows\"],\"mply_connection\":\"Script connects Apple services ecosystem to network effects and pricing power, both core monopolistic attributes. Demonstrates how ecosystem lock-in creates sustainable competitive advantage aligned with MPLY thesis.\"}\n\n=== FINAL REMINDER ===\n\nOutput RAW JSON only. No markdown. No code blocks. No explanation. Start with { and end with }\n```\n\n---\n\n## What Changed\n\n| Area | Before | After |\n|------|--------|-------|\n| Markdown example | ` ```json {...} ``` ` | Inline single-line JSON example |\n| Script minLength | 800 | 400 |\n| Description minLength | 180 | 100 |\n| Opening style pattern | `^[a-z][a-z0-9_]*$` | Removed (too strict) |\n| Timestamp pattern | Strict regex | Simple length check |\n| Word count tolerance | ±10 | ±25 |\n| Duration tolerance | 35-65 | 30-80 |\n| Attributes maxItems | 3 | 4 |\n| System message length | ~800 words | ~400 words |\n| \"No markdown\" instruction | Once at top | Top AND bottom, emphasized |\n| Example format | Pretty-printed | Single-line (shows raw JSON) |\n\n--",
          "batching": {
            "batchSize": 1,
            "delayBetweenBatches": 1000
          }
        }
      },
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 2.2,
      "position": [
        5008,
        1216
      ],
      "id": "19ae26cc-4589-4021-9407-2034668f5dea",
      "name": "AI Agent",
      "retryOnFail": false,
      "waitBetweenTries": 5000,
      "onError": "continueErrorOutput"
    },
    {
      "parameters": {
        "mode": "runOnceForEachItem",
        "jsCode": "let characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';\nlet result = '';\nlet length = 48; // Desired length of the random string\nfor (let i = 0; i < length; i++) {\n  result += characters.charAt(Math.floor(Math.random() * characters.length));\n}\nreturn { randomString: result };"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        4560,
        1216
      ],
      "id": "0b37c8a2-62ee-4bc7-bb27-b05a4c0238ac",
      "name": "Code in JavaScript2"
    },
    {
      "parameters": {
        "sessionIdType": "customKey",
        "sessionKey": "={{ $('Code in JavaScript2').item.json.randomString }}",
        "contextWindowLength": 32
      },
      "type": "@n8n/n8n-nodes-langchain.memoryRedisChat",
      "typeVersion": 1.5,
      "position": [
        5104,
        1040
      ],
      "id": "9ae38dae-31ff-4c57-8e93-211099c07ead",
      "name": "Redis Chat Memory",
      "credentials": {
        "redis": {
          "id": "4nD9S5LZCArxPB81",
          "name": "Redis (NO EXPIRATION)"
        }
      }
    },
    {
      "parameters": {
        "query": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Query', ``, 'string') }}",
        "count": 3,
        "additionalParameters": {
          "search_lang": "en"
        }
      },
      "type": "@brave/n8n-nodes-brave-search.braveSearchTool",
      "typeVersion": 1,
      "position": [
        5328,
        1024
      ],
      "id": "9a811a75-c23d-4a07-8112-bcb69f1d5227",
      "name": "Brave Search",
      "credentials": {
        "braveSearchApi": {
          "id": "4yKxSu1Rx4YYMObx",
          "name": "Brave Search Account (Personal)"
        }
      }
    },
    {
      "parameters": {
        "schemaType": "manual",
        "inputSchema": "{\n  \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n  \"type\": \"object\",\n  \"additionalProperties\": false,\n  \"required\": [\n    \"model_used\",\n    \"generation_timestamp\",\n    \"video_title\",\n    \"video_description\",\n    \"description_word_count\",\n    \"selected_opening_style\",\n    \"selected_angle\",\n    \"opening_rationale\",\n    \"angle_rationale\",\n    \"monopolistic_attributes\",\n    \"script\",\n    \"word_count\",\n    \"estimated_duration_seconds\",\n    \"key_data_points\",\n    \"mply_connection\"\n  ],\n  \"properties\": {\n    \"model_used\": {\n      \"type\": \"string\",\n      \"minLength\": 3,\n      \"maxLength\": 100\n    },\n    \"generation_timestamp\": {\n      \"type\": \"string\",\n      \"minLength\": 10,\n      \"maxLength\": 30\n    },\n    \"video_title\": {\n      \"type\": \"string\",\n      \"minLength\": 20,\n      \"maxLength\": 100\n    },\n    \"video_description\": {\n      \"type\": \"string\",\n      \"minLength\": 100,\n      \"maxLength\": 500\n    },\n    \"description_word_count\": {\n      \"type\": \"integer\",\n      \"minimum\": 25,\n      \"maximum\": 70\n    },\n    \"selected_opening_style\": {\n      \"type\": \"string\",\n      \"minLength\": 3,\n      \"maxLength\": 60\n    },\n    \"selected_angle\": {\n      \"type\": \"integer\",\n      \"minimum\": 1,\n      \"maximum\": 2\n    },\n    \"opening_rationale\": {\n      \"type\": \"string\",\n      \"minLength\": 30,\n      \"maxLength\": 600\n    },\n    \"angle_rationale\": {\n      \"type\": \"string\",\n      \"minLength\": 30,\n      \"maxLength\": 600\n    },\n    \"monopolistic_attributes\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"string\",\n        \"enum\": [\n          \"economic_rents\",\n          \"vertical_integration\",\n          \"network_effects\",\n          \"brand_dominance\",\n          \"regulatory_exclusivity\",\n          \"pricing_power\"\n        ]\n      },\n      \"minItems\": 1,\n      \"maxItems\": 4\n    },\n    \"script\": {\n      \"type\": \"string\",\n      \"minLength\": 400,\n      \"maxLength\": 4000\n    },\n    \"word_count\": {\n      \"type\": \"integer\",\n      \"minimum\": 100,\n      \"maximum\": 500\n    },\n    \"estimated_duration_seconds\": {\n      \"type\": \"integer\",\n      \"minimum\": 30,\n      \"maximum\": 80\n    },\n    \"key_data_points\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"string\",\n        \"minLength\": 3,\n        \"maxLength\": 200\n      },\n      \"minItems\": 1,\n      \"maxItems\": 6\n    },\n    \"mply_connection\": {\n      \"type\": \"string\",\n      \"minLength\": 30,\n      \"maxLength\": 500\n    }\n  }\n}",
        "autoFix": true
      },
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "typeVersion": 1.3,
      "position": [
        4960,
        1344
      ],
      "id": "218faa10-cbf1-43d3-af3a-d2f74d0adb63",
      "name": "Structured Output Parser"
    },
    {
      "parameters": {
        "mode": "retrieve-as-tool",
        "toolDescription": "Provides supplementary information to the AI agent allowing it to write better scripts.",
        "qdrantCollection": {
          "__rl": true,
          "value": "monopolyinvesting",
          "mode": "list",
          "cachedResultName": "monopolyinvesting"
        },
        "topK": 15,
        "useReranker": true,
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.vectorStoreQdrant",
      "typeVersion": 1.3,
      "position": [
        5072,
        1424
      ],
      "id": "1e151174-b0a0-4b65-afb3-ba6af3bc45a0",
      "name": "Qdrant Vector Store",
      "credentials": {
        "qdrantApi": {
          "id": "f4OYPtbhAv74DCJ1",
          "name": "Qdrant API"
        }
      }
    },
    {
      "parameters": {
        "modelName": "embed-english-v3.0"
      },
      "type": "@n8n/n8n-nodes-langchain.embeddingsCohere",
      "typeVersion": 1,
      "position": [
        5072,
        1552
      ],
      "id": "1b141ca8-89fa-409c-ac15-270f60d28a6d",
      "name": "Embeddings Cohere",
      "credentials": {
        "cohereApi": {
          "id": "2KLyMaAZiNcfpMpr",
          "name": "CohereApi account"
        }
      }
    },
    {
      "parameters": {
        "topN": 6
      },
      "type": "@n8n/n8n-nodes-langchain.rerankerCohere",
      "typeVersion": 1,
      "position": [
        5152,
        1552
      ],
      "id": "dd5176fd-9a16-4ab8-8d09-f08c0ea3bd18",
      "name": "Reranker Cohere",
      "credentials": {
        "cohereApi": {
          "id": "2KLyMaAZiNcfpMpr",
          "name": "CohereApi account"
        }
      }
    },
    {
      "parameters": {
        "model": "mistral-large-latest",
        "options": {
          "temperature": 0.9,
          "topP": 0.8
        }
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatMistralCloud",
      "typeVersion": 1,
      "position": [
        4880,
        1008
      ],
      "id": "c8341ff8-90e3-43d9-96bd-6a82fb39b98f",
      "name": "Mistral Cloud Chat Model1",
      "credentials": {
        "mistralCloudApi": {
          "id": "feG0p0tu1GwMlA1h",
          "name": "Mistral Cloud Account (Personal)"
        }
      }
    },
    {
      "parameters": {
        "jsCode": "// Define all possible opening styles for YouTube Shorts\nconst openingStyles = [\n  {\n    style: \"contrarian_statement\",\n    instruction: \"Challenge conventional wisdom immediately with a bold statement that contradicts what most people believe. Create cognitive dissonance that forces viewers to keep watching to resolve the conflict.\"\n  },\n  {\n    style: \"shocking_statistic\",\n    instruction: \"Lead with a jaw-dropping number or percentage that establishes credibility and creates curiosity. Make it specific and relevant to the core message.\"\n  },\n  {\n    style: \"direct_challenge\",\n    instruction: \"Confront the viewer's existing beliefs directly. Make it personal enough that they feel compelled to prove you wrong or validate their understanding.\"\n  },\n  {\n    style: \"pattern_interrupt\",\n    instruction: \"Break the scroll with an unexpected visual, audio, or verbal surprise in the first 2 seconds. Use sound effects, dramatic pauses, or shocking statements to stop momentum.\"\n  },\n  {\n    style: \"this_vs_that\",\n    instruction: \"Create a binary comparison that establishes clear contrast between two approaches, behaviors, or outcomes. Frame it as a distinction between success and failure.\"\n  },\n  {\n    style: \"urgent_warning\",\n    instruction: \"Create immediate urgency with a warning about what viewers need to stop, avoid, or act on right now. Be specific enough to seem credible and actionable.\"\n  },\n  {\n    style: \"youre_doing_it_wrong\",\n    instruction: \"Point out a common mistake that viewers are likely making. Imply there's an easy fix and that you'll reveal what actually matters.\"\n  },\n  {\n    style: \"mystery_box\",\n    instruction: \"Tease a revelation or insight without giving it away. Promise insider knowledge or a perspective shift that can't be unseen once revealed.\"\n  },\n  {\n    style: \"relatable_question\",\n    instruction: \"Ask what viewers are already thinking or wondering about the topic. Validate their confusion and promise a simple, clear explanation.\"\n  },\n  {\n    style: \"specific_scenario\",\n    instruction: \"Paint a concrete, timely picture of a real situation happening right now. Use specific companies, events, or data points to ground the insight.\"\n  },\n  {\n    style: \"if_then_formula\",\n    instruction: \"Present a logical framework that teaches pattern recognition. Show viewers how to spot something important using a clear conditional statement.\"\n  },\n  {\n    style: \"myth_buster\",\n    instruction: \"Expose a widely believed falsehood or misconception. Promise to reveal the hidden truth that contradicts popular belief.\"\n  }\n];\n\n// Function to get random unique indices\nfunction getRandomUniqueIndices(max, count) {\n  const indices = [];\n  while (indices.length < count) {\n    const randomIndex = Math.floor(Math.random() * max);\n    if (!indices.includes(randomIndex)) {\n      indices.push(randomIndex);\n    }\n  }\n  return indices;\n}\n\n// Select 3 unique random styles\nconst selectedIndices = getRandomUniqueIndices(openingStyles.length, 3);\nconst selectedOpenings = selectedIndices.map(index => openingStyles[index]);\n\n// Get the input data\nconst inputData = items[0].json;\n\n// Add the 3 opening styles to the data\nreturn [{\n  json: {\n    ...inputData,\n    opening_style_1: selectedOpenings[0].style,\n    opening_instruction_1: selectedOpenings[0].instruction,\n    opening_style_1_full_name: selectedOpenings[0].style.replace(/_/g, ' '),\n    \n    opening_style_2: selectedOpenings[1].style,\n    opening_instruction_2: selectedOpenings[1].instruction,\n    opening_style_2_full_name: selectedOpenings[1].style.replace(/_/g, ' '),\n    \n    opening_style_3: selectedOpenings[2].style,\n    opening_instruction_3: selectedOpenings[2].instruction,\n    opening_style_3_full_name: selectedOpenings[2].style.replace(/_/g, ' ')\n  }\n}];"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        4800,
        1216
      ],
      "id": "5db6238c-f7f7-4f3e-a913-386703eb6337",
      "name": "Code in JavaScript1"
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "value": "claude-sonnet-4-5-20250929",
          "mode": "list",
          "cachedResultName": "Claude Sonnet 4.5"
        },
        "options": {
          "thinking": true
        }
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "typeVersion": 1.3,
      "position": [
        4992,
        928
      ],
      "id": "8dcd79ee-df3c-4c56-9b87-37d96674de1c",
      "name": "Anthropic Chat Model3",
      "credentials": {
        "anthropicApi": {
          "id": "5pMiFSPZL2r44q7L",
          "name": "Anthropic Account (Personal)"
        }
      }
    },
    {
      "parameters": {
        "url": "=http://localhost:5678/webhook/aaa7e6ef-2b93-4f0f-9f76-c20a8f34b530",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        864,
        896
      ],
      "id": "5c822a55-f70f-47ef-a1cd-9a69d41cc451",
      "name": "HTTP Request16",
      "executeOnce": true
    },
    {
      "parameters": {
        "mode": "runOnceForEachItem",
        "jsCode": "// Access the current item\nconst item = $input.item.json;\n\n// Count characters in the transcript field\nconst transcriptLength = item.transcript ? item.transcript.length : 0;\n\n// Determine PASS or FAIL\nconst status = transcriptLength <= 5000 ? \"PASS\" : \"FAIL\";\n\n// Add the status field to the item\nitem.status = status;\n\n// Optional: Add the character count for reference\nitem.transcript_length = transcriptLength;\n\n// Return the modified item\nreturn item;"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        864,
        1280
      ],
      "id": "d47eafcc-bbd0-4ba3-b401-fb7bc3418f48",
      "name": "Code in JavaScript"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "762d16b7-3d27-40be-bf22-312061167410",
              "leftValue": "={{ $json.status }}",
              "rightValue": "PASS",
              "operator": {
                "type": "string",
                "operation": "equals",
                "name": "filter.operator.equals"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        528,
        1632
      ],
      "id": "2cda4ee4-ba4b-4eb5-8abf-fbe8e6b345a4",
      "name": "If"
    },
    {
      "parameters": {},
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "position": [
        912,
        1648
      ],
      "id": "326c1a3f-6d0e-4f96-a307-f0b01c6812c7",
      "name": "No Operation, do nothing"
    },
    {
      "parameters": {
        "mode": "runOnceForEachItem",
        "jsCode": "const item = $input.item.json;\n\n// Get the transcript array from this item\nconst segments = item.transcript || [];\n\n// Combine all text segments\nconst combinedText = segments\n  .map(segment => segment.text)\n  .join(' ');\n\n// Calculate total duration\nconst totalDuration = segments\n  .reduce((sum, segment) => sum + parseFloat(segment.duration || 0), 0);\n\n// Return the item with combined transcript\nreturn {\n  success: item.success,\n  transcript: combinedText,\n  segment_count: segments.length,\n  total_duration: totalDuration.toFixed(2),\n  language: segments[0]?.lang || 'en',\n  rownumber: item.row_number\n};"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        592,
        1280
      ],
      "id": "bf1b3ec5-1378-4d10-ab69-47d11e1e64b8",
      "name": "Code in JavaScript4"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "cc8d8278-0578-4362-92a4-1e6d98b40f7d",
              "name": "transcript",
              "value": "={{ $json.transcript }}",
              "type": "array"
            },
            {
              "id": "6e38ef2f-c65a-4428-8b02-bcf178399a9a",
              "name": "row_number",
              "value": "={{ $('Get row(s) in sheet').item.json.row_number }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        2192,
        1056
      ],
      "id": "ac401525-d929-4ec8-95a2-727b84af9041",
      "name": "Edit Fields2"
    },
    {
      "parameters": {},
      "type": "n8n-nodes-globals.globalConstants",
      "typeVersion": 1,
      "position": [
        3552,
        1200
      ],
      "id": "ae5e0a2e-c1a8-46b3-990f-8c01b288a559",
      "name": "Global Constants1",
      "credentials": {
        "globalConstantsApi": {
          "id": "tl6hxt14W8QyX1vV",
          "name": "AI YouTube Investing Influencer"
        }
      }
    },
    {
      "parameters": {
        "documentId": {
          "__rl": true,
          "value": "={{ $json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $json.constants.Sheet3 }}",
          "mode": "name"
        },
        "filtersUI": {
          "values": [
            {
              "lookupColumn": "STATUS",
              "lookupValue": "={{ $json.constants.Status1 }}"
            },
            {
              "lookupColumn": "STATUS",
              "lookupValue": "SPLIT"
            }
          ]
        },
        "combineFilters": "OR",
        "options": {
          "returnFirstMatch": true
        }
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        3728,
        1200
      ],
      "id": "106f524b-bc86-4f83-a155-988a07d22f04",
      "name": "Get row(s) in sheet2",
      "retryOnFail": true,
      "waitBetweenTries": 5000,
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "url": "={{ $('Get row(s) in sheet2').item.json.Link }}",
        "options": {},
        "requestOptions": {}
      },
      "type": "n8n-nodes-base.jinaAiTool",
      "typeVersion": 1,
      "position": [
        5232,
        880
      ],
      "id": "f7fb4cbf-2415-46b1-87b2-5797250788f7",
      "name": "Read URL content in Jina AI",
      "credentials": {
        "jinaAiApi": {
          "id": "d2r6p11EaWTJO2IU",
          "name": "Jina AI account"
        }
      }
    },
    {
      "parameters": {
        "sessionIdType": "customKey",
        "sessionKey": "={{ $json.randomString }}",
        "contextWindowLength": 20
      },
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "typeVersion": 1.3,
      "position": [
        2064,
        2144
      ],
      "id": "ef983f6d-d63a-4783-8831-8cef387a34c8",
      "name": "Simple Memory"
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "=Here is the script:\n{{ $('Update row in sheet1').item.json['EXPRESSIVE VIDEO NARRATION'] }}\n\nMake sure you keep the tags attached for emotions.",
        "hasOutputParser": true,
        "needsFallback": true,
        "options": {
          "systemMessage": "=Script Segmentation Specialist - System Instructions v2.0\n\nYou are a script segmentation specialist. Your SOLE function is to split a script into EXACTLY 3 segments at natural breakpoints. You must preserve the original text with 100% fidelity.\n\n══════════════════════════════════════════════════════════════\nCRITICAL RULES - VIOLATION OF ANY RULE = TASK FAILURE\n══════════════════════════════════════════════════════════════\n\nRULE 1: ABSOLUTE TEXT PRESERVATION (ZERO TOLERANCE)\n\nFORBIDDEN actions (any occurrence = task failure):\n✗ Rephrase, reword, paraphrase, or summarize ANY text\n✗ Fix grammar, spelling, punctuation, or typos\n✗ Improve sentence structure, flow, or clarity\n✗ Remove or add words, phrases, or sentences\n✗ Change capitalization or formatting\n✗ Reorder any content\n✗ \"Clean up\" or \"improve\" anything\n✗ Interpret or expand abbreviations\n\nONLY permitted modifications:\n✓ Remove literal \"\\n\" strings (escaped newlines appearing as visible text)\n✓ Remove zero-width Unicode characters (U+200B, U+FEFF, etc.)\n✓ Collapse multiple consecutive spaces into single spaces\n✓ Trim leading/trailing whitespace from the full script\n\nThis is a SPLITTING task. You are a pair of scissors, not a pen.\n\nRULE 2: STRICT WORD COUNT VERIFICATION\n\nBEFORE generating output, you MUST:\n1. Count total words in original input\n2. Count total words across all 3 segments combined\n3. Calculate: difference = |original_count - segmented_count|\n\nAcceptable difference: 0, 1, or 2 words (whitespace handling tolerance)\nUnacceptable difference: 3+ words = TEXT WAS EDITED = TASK FAILURE\n\nIf word counts don't match within tolerance:\n- DO NOT output the result\n- Start over from the beginning\n- Find where text was altered and fix it\n\nRULE 3: EXACTLY 3 SEGMENTS (NON-NEGOTIABLE)\n\n- You MUST produce exactly 3 segments. Not 2. Not 4. Exactly 3.\n- You MUST find exactly 2 breakpoints in the script\n- Segments are numbered 1, 2, 3 (sequential, no gaps, no duplicates)\n\nConceptual structure:\n- Segment 1: Opening/Introduction/Setup\n- Segment 2: Body/Development/Main Content  \n- Segment 3: Conclusion/Closing/Call-to-Action\n\nRULE 4: SENTENCE BOUNDARY REQUIREMENTS\n\nEvery segment MUST:\n- START at the beginning of a sentence (capital letter after previous sentence's terminal punctuation)\n- END at the end of a sentence (terminal punctuation: . ! ? only)\n\nNOT valid sentence endings: commas, semicolons, colons, dashes, ellipses mid-thought\nValid sentence endings: periods (.), exclamation marks (!), question marks (?)\n\nRULE 5: SEGMENT SIZE CONSTRAINTS\n\n- NO segment may exceed 50% of total word count\n- NO segment may be less than 15% of total word count\n- Aim for roughly balanced segments when natural breakpoints allow\n\n══════════════════════════════════════════════════════════════\nEXECUTION PROCESS (FOLLOW EXACTLY)\n══════════════════════════════════════════════════════════════\n\nSTEP 1: INTAKE\n- Receive the script\n- Count words in original (store as original_word_count)\n- DO NOT modify anything yet\n\nSTEP 2: ANALYSIS\n- Read entire script to understand structure\n- Identify ALL potential breakpoints (topic shifts, transitions, section changes)\n- Look for transition phrases: \"Now...\", \"Next...\", \"Here's the thing...\", \"Let's talk about...\", \"Moving on...\", \"Finally...\", \"In conclusion...\", etc.\n\nSTEP 3: SELECTION\n- From all potential breakpoints, select exactly 2 that create the most logical 3-part structure\n- Prioritize major topic shifts over minor transitions\n- Verify both breakpoints are at sentence boundaries\n\nSTEP 4: SEGMENTATION\n- Split the script at the 2 selected breakpoints\n- Copy text EXACTLY - character for character\n- Do not add, remove, or modify any content\n\nSTEP 5: VALIDATION (MANDATORY - DO NOT SKIP)\n□ Segment count equals exactly 3\n□ Segment numbers are 1, 2, 3 (in order)\n□ Each segment starts at sentence beginning\n□ Each segment ends at sentence ending (. ! ?)\n□ No segment exceeds 50% of total words\n□ No segment is under 15% of total words\n□ Sum of segment word counts = original word count (±2)\n□ No text was rephrased, added, or removed\n\nSTEP 6: OUTPUT\n- Only if ALL validations pass, generate JSON output\n- If ANY validation fails, return to Step 3 and select different breakpoints\n- If no valid breakpoint combination exists, report the constraint that cannot be satisfied\n\n══════════════════════════════════════════════════════════════\nEDGE CASES AND FAILURE MODES\n══════════════════════════════════════════════════════════════\n\nIF script is too short (under 30 words):\n→ Report error: \"Script too short for 3-segment division while maintaining 15% minimum per segment\"\n\nIF script has fewer than 3 sentences:\n→ Report error: \"Insufficient sentence boundaries for 3-segment division\"\n\nIF no natural breakpoints exist:\n→ Use sentence boundaries that create most balanced word distribution\n→ Note in breakpoint_reason: \"No natural topic shift; divided for balance\"\n\nIF all breakpoint options violate size constraints:\n→ Prioritize the 50% maximum rule over the 15% minimum rule\n→ Note constraint violation in quality_checks.issues\n\nIF script contains only one long sentence:\n→ Report error: \"Script contains insufficient sentence boundaries for segmentation\"\n\n══════════════════════════════════════════════════════════════\nOUTPUT SPECIFICATION\n══════════════════════════════════════════════════════════════\n\nOutput MUST be valid JSON matching the provided schema.\nAll fields marked required MUST be present.\nBoolean fields must be actual booleans (true/false), not strings.\nInteger fields must be actual integers, not strings.\n\nRequired output structure:\n{\n  \"original_word_count\": <integer>,\n  \"total_word_count\": <integer>,\n  \"word_count_match\": <boolean>,\n  \"word_count_difference\": <integer 0-2>,\n  \"segment_count\": 3,\n  \"segments\": [<exactly 3 segment objects>],\n  \"quality_checks\": {<validation results>}\n}\n\n══════════════════════════════════════════════════════════════\nFINAL REMINDER\n══════════════════════════════════════════════════════════════\n\nYou are a SPLITTER. You are scissors. You are a boundary-finder.\nYou are NOT a writer, editor, improver, or rephraser.\n\nYour output text, when concatenated in order, must be CHARACTER-FOR-CHARACTER identical to the input (after permitted whitespace normalization).\n\nIf you find yourself wanting to \"fix\" or \"improve\" something - STOP. That impulse means you are about to fail the task.\n\nPreserve. Split. Validate. Output."
        }
      },
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 2.2,
      "position": [
        1808,
        2304
      ],
      "id": "3ffa7553-63ff-4459-9995-a5739d1b557c",
      "name": "AI Agent4",
      "retryOnFail": true,
      "waitBetweenTries": 5000,
      "onError": "continueErrorOutput"
    },
    {
      "parameters": {
        "schemaType": "manual",
        "inputSchema": "{\n  \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n  \"title\": \"ScriptSegmentationOutput\",\n  \"description\": \"Output schema for exactly 3-segment script division with strict validation\",\n  \"type\": \"object\",\n  \"additionalProperties\": false,\n  \"required\": [\n    \"original_word_count\",\n    \"total_word_count\",\n    \"word_count_match\",\n    \"word_count_difference\",\n    \"segment_count\",\n    \"segments\",\n    \"quality_checks\"\n  ],\n  \"properties\": {\n    \"original_word_count\": {\n      \"type\": \"integer\",\n      \"minimum\": 30,\n      \"description\": \"Word count of the input script before segmentation. Minimum 30 words required for valid 3-segment division.\"\n    },\n    \"total_word_count\": {\n      \"type\": \"integer\",\n      \"minimum\": 30,\n      \"description\": \"Combined word count across all 3 segments. Must equal original_word_count within tolerance of 2.\"\n    },\n    \"word_count_match\": {\n      \"type\": \"boolean\",\n      \"description\": \"MUST be true. False indicates text was edited, which is a task failure.\"\n    },\n    \"word_count_difference\": {\n      \"type\": \"integer\",\n      \"minimum\": 0,\n      \"maximum\": 2,\n      \"description\": \"Absolute difference between original_word_count and total_word_count. Must be 0, 1, or 2. Values of 3+ indicate forbidden text editing.\"\n    },\n    \"segment_count\": {\n      \"type\": \"integer\",\n      \"const\": 3,\n      \"description\": \"Must always be exactly 3. No exceptions.\"\n    },\n    \"segments\": {\n      \"type\": \"array\",\n      \"minItems\": 3,\n      \"maxItems\": 3,\n      \"description\": \"Exactly 3 segments, ordered sequentially.\",\n      \"items\": [\n        {\n          \"$ref\": \"#/$defs/segment\",\n          \"properties\": {\n            \"segment_number\": { \"const\": 1 }\n          }\n        },\n        {\n          \"$ref\": \"#/$defs/segment\",\n          \"properties\": {\n            \"segment_number\": { \"const\": 2 }\n          }\n        },\n        {\n          \"$ref\": \"#/$defs/segment\",\n          \"properties\": {\n            \"segment_number\": { \"const\": 3 }\n          }\n        }\n      ]\n    },\n    \"quality_checks\": {\n      \"type\": \"object\",\n      \"additionalProperties\": false,\n      \"required\": [\n        \"all_segments_sentence_bounded\",\n        \"no_segment_exceeds_50_percent\",\n        \"no_segment_below_15_percent\",\n        \"text_preserved_exactly\",\n        \"segment_count_valid\",\n        \"segments_sequential\",\n        \"issues\"\n      ],\n      \"properties\": {\n        \"all_segments_sentence_bounded\": {\n          \"type\": \"boolean\",\n          \"description\": \"True if every segment starts at a sentence beginning AND ends at a sentence ending (. ! ?). Must be true for valid output.\"\n        },\n        \"no_segment_exceeds_50_percent\": {\n          \"type\": \"boolean\",\n          \"description\": \"True if no single segment contains more than 50% of total_word_count. Must be true for valid output.\"\n        },\n        \"no_segment_below_15_percent\": {\n          \"type\": \"boolean\",\n          \"description\": \"True if no single segment contains less than 15% of total_word_count. Should be true; may be false only if no valid alternative exists.\"\n        },\n        \"text_preserved_exactly\": {\n          \"type\": \"boolean\",\n          \"description\": \"True if concatenated segments exactly match original input (after whitespace normalization). Must be true for valid output.\"\n        },\n        \"segment_count_valid\": {\n          \"type\": \"boolean\",\n          \"const\": true,\n          \"description\": \"Must always be true. Confirms exactly 3 segments were produced.\"\n        },\n        \"segments_sequential\": {\n          \"type\": \"boolean\",\n          \"const\": true,\n          \"description\": \"Must always be true. Confirms segments are numbered 1, 2, 3 in order.\"\n        },\n        \"issues\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"type\": \"string\",\n            \"minLength\": 1,\n            \"maxLength\": 200\n          },\n          \"description\": \"Array of any quality check failures or warnings. Empty array [] if all checks pass.\"\n        }\n      }\n    },\n    \"error\": {\n      \"type\": \"object\",\n      \"additionalProperties\": false,\n      \"description\": \"Present only if segmentation could not be completed. Mutually exclusive with valid segments output.\",\n      \"required\": [\"code\", \"message\"],\n      \"properties\": {\n        \"code\": {\n          \"type\": \"string\",\n          \"enum\": [\n            \"SCRIPT_TOO_SHORT\",\n            \"INSUFFICIENT_SENTENCES\",\n            \"NO_VALID_BREAKPOINTS\",\n            \"CONSTRAINT_IMPOSSIBLE\"\n          ],\n          \"description\": \"Error code identifying the failure type\"\n        },\n        \"message\": {\n          \"type\": \"string\",\n          \"minLength\": 10,\n          \"maxLength\": 500,\n          \"description\": \"Human-readable explanation of why segmentation failed\"\n        }\n      }\n    }\n  },\n  \"$defs\": {\n    \"segment\": {\n      \"type\": \"object\",\n      \"additionalProperties\": false,\n      \"required\": [\n        \"segment_number\",\n        \"text\",\n        \"word_count\",\n        \"percentage_of_total\",\n        \"starts_with_sentence\",\n        \"ends_with_sentence\",\n        \"breakpoint_reason\"\n      ],\n      \"properties\": {\n        \"segment_number\": {\n          \"type\": \"integer\",\n          \"minimum\": 1,\n          \"maximum\": 3,\n          \"description\": \"Segment position: 1, 2, or 3\"\n        },\n        \"text\": {\n          \"type\": \"string\",\n          \"minLength\": 1,\n          \"description\": \"Exact text from original script. Must be completely unmodified from source.\"\n        },\n        \"word_count\": {\n          \"type\": \"integer\",\n          \"minimum\": 1,\n          \"description\": \"Number of words in this segment\"\n        },\n        \"percentage_of_total\": {\n          \"type\": \"number\",\n          \"minimum\": 0,\n          \"maximum\": 100,\n          \"description\": \"This segment's word_count as percentage of total_word_count. Should be 15-50%.\"\n        },\n        \"starts_with_sentence\": {\n          \"type\": \"boolean\",\n          \"const\": true,\n          \"description\": \"Must always be true. Segment must start at sentence beginning.\"\n        },\n        \"ends_with_sentence\": {\n          \"type\": \"boolean\",\n          \"const\": true,\n          \"description\": \"Must always be true. Segment must end with . ! or ?\"\n        },\n        \"first_five_words\": {\n          \"type\": \"string\",\n          \"description\": \"First 5 words of segment for verification purposes\"\n        },\n        \"last_five_words\": {\n          \"type\": \"string\",\n          \"description\": \"Last 5 words of segment for verification purposes\"\n        },\n        \"breakpoint_reason\": {\n          \"type\": \"string\",\n          \"minLength\": 5,\n          \"maxLength\": 150,\n          \"description\": \"Explanation of why this breakpoint was chosen. E.g., 'End of introduction, topic shifts to main argument' or 'Natural conclusion transition with closing phrase'\"\n        }\n      }\n    }\n  }\n}",
        "autoFix": true
      },
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "typeVersion": 1.3,
      "position": [
        1920,
        2464
      ],
      "id": "0faa403b-9af3-4ac5-8ff7-b17a29884920",
      "name": "Structured Output Parser4"
    },
    {
      "parameters": {
        "mode": "runOnceForEachItem",
        "jsCode": "let characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';\nlet result = '';\nlet length = 48; // Desired length of the random string\nfor (let i = 0; i < length; i++) {\n  result += characters.charAt(Math.floor(Math.random() * characters.length));\n}\nreturn { randomString: result };"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        1632,
        2304
      ],
      "id": "5619cb47-fa41-4b2d-aabe-9ecce8a6f5b8",
      "name": "Code in JavaScript6"
    },
    {
      "parameters": {
        "model": "mistral-large-latest",
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatMistralCloud",
      "typeVersion": 1,
      "position": [
        1792,
        2144
      ],
      "id": "8bb35bdc-8eee-4d61-b445-32aa1a621100",
      "name": "Mistral Cloud Chat Model3",
      "credentials": {
        "mistralCloudApi": {
          "id": "feG0p0tu1GwMlA1h",
          "name": "Mistral Cloud Account (Personal)"
        }
      }
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "value": "claude-haiku-4-5-20251001",
          "mode": "list",
          "cachedResultName": "Claude Haiku 4.5"
        },
        "options": {
          "thinking": true
        }
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "typeVersion": 1.3,
      "position": [
        1936,
        2144
      ],
      "id": "a6c63687-d6a1-4a6e-be4f-c762116b36b0",
      "name": "Anthropic Chat Model4",
      "credentials": {
        "anthropicApi": {
          "id": "5pMiFSPZL2r44q7L",
          "name": "Anthropic Account (Personal)"
        }
      }
    },
    {
      "parameters": {
        "operation": "append",
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants3').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants3').first().json.constants.Sheet1 }}",
          "mode": "name"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "STATUS": "={{ $('Global Constants3').first().json.constants.Status1 }}",
            "CODE": "={{ $('Get row(s) in sheet3').item.json.ID }}",
            "VIDEO TITLE": "={{ $('Get row(s) in sheet3').item.json['VIDEO TITLE'] }}",
            "NARRATION": "={{ $json.text }}",
            "SEGMENT": "={{ $json.segment_number }}",
            "TOTAL SEGMENTS": "={{ $('AI Agent4').item.json.output.segment_count }}",
            "VIDEO DESCRIPTION": "={{ $('Get row(s) in sheet3').item.json.DESCRIPTION }}"
          },
          "matchingColumns": [],
          "schema": [
            {
              "id": "STATUS",
              "displayName": "STATUS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "CODE",
              "displayName": "CODE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "SEGMENT",
              "displayName": "SEGMENT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "TOTAL SEGMENTS",
              "displayName": "TOTAL SEGMENTS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "VIDEO TITLE",
              "displayName": "VIDEO TITLE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "VIDEO DESCRIPTION",
              "displayName": "VIDEO DESCRIPTION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "NARRATION",
              "displayName": "NARRATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "BREAKPOINT REASON",
              "displayName": "BREAKPOINT REASON",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TTS OUTPUT (URL)",
              "displayName": "TTS OUTPUT (URL)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TTS OUTPUT (ID)",
              "displayName": "TTS OUTPUT (ID)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LAYOUT",
              "displayName": "LAYOUT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(1)",
              "displayName": "var(1)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(2)",
              "displayName": "var(2)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(3)",
              "displayName": "var(3)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(4)",
              "displayName": "var(4)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(5)",
              "displayName": "var(5)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(6)",
              "displayName": "var(6)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(7)",
              "displayName": "var(7)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(8)",
              "displayName": "var(8)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(9)",
              "displayName": "var(9)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(10)",
              "displayName": "var(10)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO URL",
              "displayName": "VIDEO URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO DRIVE LINK",
              "displayName": "VIDEO DRIVE LINK",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        2368,
        2208
      ],
      "id": "cfad593d-3251-4d31-b329-a3077c5ce193",
      "name": "Append row in sheet5",
      "retryOnFail": true,
      "waitBetweenTries": 5000,
      "executeOnce": false,
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "fieldToSplitOut": "output.segments",
        "options": {}
      },
      "type": "n8n-nodes-base.splitOut",
      "typeVersion": 1,
      "position": [
        2208,
        2208
      ],
      "id": "921360c0-2a2f-46ef-9378-e5de55d264f3",
      "name": "Split Out2"
    },
    {
      "parameters": {
        "operation": "append",
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants1').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants1').first().json.constants.Sheet2 }}",
          "mode": "name"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "STATUS": "={{ $('Global Constants1').first().json.constants.Status1 }}",
            "ID": "={{ $('Get row(s) in sheet2').item.json.PublicationDate }}",
            "VIDEO NARRATION": "={{ $json.output.script }}",
            "VIDEO TITLE": "={{ $json.output.video_title }}",
            "DESCRIPTION": "={{ $json.output.video_description }}",
            "KEY FIGURES": "={{ $json.output.key_data_points[0] }}{{ \"\\n\" }}{{ \"\\n\" }}{{ $json.output.key_data_points[1] }}{{ \"\\n\" }}{{ \"\\n\" }}{{ $json.output.key_data_points[2] }}{{ \"\\n\" }}{{ \"\\n\" }}{{ $json.output.key_data_points[3] }}",
            "MPLY CONNECTION": "={{ $json.output.mply_connection }}",
            "WORD COUNT": "={{ $json.output.word_count }}",
            "AI MODEL": "={{ $json.output.model_used }}",
            "ID_2": "={{ $('Get row(s) in sheet2').item.json.row_number }}"
          },
          "matchingColumns": [],
          "schema": [
            {
              "id": "ID_2",
              "displayName": "ID_2",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "STATUS",
              "displayName": "STATUS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "ID",
              "displayName": "ID",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "VIDEO TITLE",
              "displayName": "VIDEO TITLE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "DESCRIPTION",
              "displayName": "DESCRIPTION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "AVATAR ID",
              "displayName": "AVATAR ID",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO NARRATION",
              "displayName": "VIDEO NARRATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "EXPRESSIVE VIDEO NARRATION",
              "displayName": "EXPRESSIVE VIDEO NARRATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TAGGING NOTES",
              "displayName": "TAGGING NOTES",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "AI MODEL",
              "displayName": "AI MODEL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "KEY FIGURES",
              "displayName": "KEY FIGURES",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "WORD COUNT",
              "displayName": "WORD COUNT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "MPLY CONNECTION",
              "displayName": "MPLY CONNECTION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        5504,
        1200
      ],
      "id": "dd2e1d08-5e3c-439e-a499-4dc75c6538e0",
      "name": "Append row in sheet",
      "retryOnFail": true,
      "waitBetweenTries": 5000,
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "wZJh4ACm1MD5wdQ9",
          "name": "Google Sheet (Admin Account - Nandy Cyber Success)"
        }
      }
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants3').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants3').first().json.constants.Sheet2 }}",
          "mode": "name"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "STATUS": "={{ $('Global Constants3').first().json.constants.Status4 }}",
            "row_number": "={{ $('Get row(s) in sheet3').item.json.row_number }}"
          },
          "matchingColumns": [
            "row_number"
          ],
          "schema": [
            {
              "id": "STATUS",
              "displayName": "STATUS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "ID",
              "displayName": "ID",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO TITLE",
              "displayName": "VIDEO TITLE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "DESCRIPTION",
              "displayName": "DESCRIPTION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "AVATAR ID",
              "displayName": "AVATAR ID",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO NARRATION",
              "displayName": "VIDEO NARRATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "EXPRESSIVE VIDEO NARRATION",
              "displayName": "EXPRESSIVE VIDEO NARRATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TAGGING NOTES",
              "displayName": "TAGGING NOTES",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "AI MODEL",
              "displayName": "AI MODEL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "KEY FIGURES",
              "displayName": "KEY FIGURES",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "WORD COUNT",
              "displayName": "WORD COUNT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "MPLY CONNECTION",
              "displayName": "MPLY CONNECTION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        2720,
        2208
      ],
      "id": "de4a8593-5b8c-492f-a0fe-f3803501d177",
      "name": "Update row in sheet8",
      "retryOnFail": true,
      "executeOnce": true,
      "waitBetweenTries": 5000,
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants3').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants3').first().json.constants.Sheet2 }}",
          "mode": "name"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "STATUS": "={{ $('Global Constants3').first().json.constants.Status3 }}",
            "row_number": "={{ $('Get row(s) in sheet3').item.json.row_number }}"
          },
          "matchingColumns": [
            "row_number"
          ],
          "schema": [
            {
              "id": "STATUS",
              "displayName": "STATUS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "ID",
              "displayName": "ID",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO TITLE",
              "displayName": "VIDEO TITLE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "DESCRIPTION",
              "displayName": "DESCRIPTION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "AVATAR ID",
              "displayName": "AVATAR ID",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO NARRATION",
              "displayName": "VIDEO NARRATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "EXPRESSIVE VIDEO NARRATION",
              "displayName": "EXPRESSIVE VIDEO NARRATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TAGGING NOTES",
              "displayName": "TAGGING NOTES",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "AI MODEL",
              "displayName": "AI MODEL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "KEY FIGURES",
              "displayName": "KEY FIGURES",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "WORD COUNT",
              "displayName": "WORD COUNT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "MPLY CONNECTION",
              "displayName": "MPLY CONNECTION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        2208,
        2384
      ],
      "id": "85f0c50a-0803-4295-98ae-f890553d1bc8",
      "name": "Update row in sheet9",
      "retryOnFail": true,
      "executeOnce": true,
      "waitBetweenTries": 5000,
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants1').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants1').first().json.constants.Sheet3 }}",
          "mode": "name"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "STATUS": "={{ $('Global Constants1').first().json.constants.Status3 }}",
            "row_number": "={{ $('Get row(s) in sheet2').item.json.row_number }}"
          },
          "matchingColumns": [
            "row_number"
          ],
          "schema": [
            {
              "id": "PublicationDate",
              "displayName": "PublicationDate",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "STATUS",
              "displayName": "STATUS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Article Title",
              "displayName": "Article Title",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Ticker",
              "displayName": "Ticker",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Link",
              "displayName": "Link",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Reasoning",
              "displayName": "Reasoning",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Suggested Angle 1",
              "displayName": "Suggested Angle 1",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Suggested Angle 2",
              "displayName": "Suggested Angle 2",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Target Audience",
              "displayName": "Target Audience",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Keywords",
              "displayName": "Keywords",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "MPLY_CTA",
              "displayName": "MPLY_CTA",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        5712,
        1360
      ],
      "id": "1116f3f1-cdf5-4d5f-8e1e-c01d920482ae",
      "name": "Update row in sheet12",
      "retryOnFail": true,
      "executeOnce": true,
      "waitBetweenTries": 5000,
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "wZJh4ACm1MD5wdQ9",
          "name": "Google Sheet (Admin Account - Nandy Cyber Success)"
        }
      }
    },
    {
      "parameters": {
        "aggregate": "aggregateAllItemData",
        "options": {}
      },
      "type": "n8n-nodes-base.aggregate",
      "typeVersion": 1,
      "position": [
        1488,
        1648
      ],
      "id": "cb5135c0-e58d-47a3-96c9-705961a394f8",
      "name": "Aggregate1"
    },
    {
      "parameters": {
        "documentId": {
          "__rl": true,
          "value": "={{ $json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $json.constants.Sheet2 }}",
          "mode": "name"
        },
        "filtersUI": {
          "values": [
            {
              "lookupColumn": "STATUS",
              "lookupValue": "={{ $json.constants.Status1 }}"
            },
            {
              "lookupColumn": "STATUS",
              "lookupValue": "STOP"
            }
          ]
        },
        "combineFilters": "OR",
        "options": {
          "returnFirstMatch": true
        }
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        144,
        2560
      ],
      "id": "f7fd02a1-a8f3-40d0-9a23-8064303dfc68",
      "name": "Get row(s) in sheet3",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "wZJh4ACm1MD5wdQ9",
          "name": "Google Sheet (Admin Account - Nandy Cyber Success)"
        }
      }
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "=plain text script\n\n{{ $('Get row(s) in sheet3').item.json['VIDEO NARRATION'] }}",
        "hasOutputParser": true,
        "needsFallback": true,
        "options": {
          "systemMessage": "=You tag scripts for Fish Audio S1 TTS. Insert emotion/tone/effect tags to enhance narration. Output valid JSON only.\nRULES\n\nUse ONLY tags from the ALLOWED LIST below\nEmotion tags go at SENTENCE START only\nTone/audio/special effects can go anywhere\nTag 30-50% of sentences\nPreserve original text exactly\n\nALLOWED TAGS\nEmotions (sentence start only):\n(happy) (sad) (angry) (excited) (calm) (nervous) (confident) (surprised) (satisfied) (delighted) (scared) (worried) (upset) (frustrated) (depressed) (empathetic) (embarrassed) (disgusted) (moved) (proud) (relaxed) (grateful) (curious) (sarcastic) (disdainful) (unhappy) (anxious) (hysterical) (indifferent) (uncertain) (doubtful) (confused) (disappointed) (regretful) (guilty) (ashamed) (jealous) (envious) (hopeful) (optimistic) (pessimistic) (nostalgic) (lonely) (bored) (contemptuous) (sympathetic) (compassionate) (determined) (resigned) (friendly) (narrator) (mysterious) (relieved) (enthusiastic) (encouraging) (urgent)\nTone (anywhere):\n(in a hurry tone) (shouting) (screaming) (whispering) (soft tone)\nAudio effects (anywhere):\n(laughing) (chuckling) (sobbing) (crying loudly) (sighing) (groaning) (panting) (gasping) (yawning) (snoring)\nSpecial effects (anywhere):\n(audience laughing) (background laughter) (crowd laughing) (break) (long-break)\nIntensity modifiers: (slightly X) (very X) (extremely X)\nINVALID TAGS - NEVER USE\n❌ (thoughtful) → use (curious)\n❌ (serious) → use (calm)\n❌ (interested) → use (curious)\n❌ (joyful) → use (happy)\nOUTPUT FORMAT\nReturn ONLY this JSON structure:\n{\"original_script\":\"...\",\"tagged_script\":\"...\",\"tag_count\":{\"total_tags\":0,\"emotion_tags\":0,\"tone_tags\":0,\"audio_effect_tags\":0,\"special_effect_tags\":0,\"sentences_tagged\":0,\"total_sentences\":0},\"tagging_notes\":\"...\"}\n\nN.B. The word \"think\" in text does NOT mean use (thoughtful). That tag does not exist. Use (curious) instead."
        }
      },
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 3,
      "position": [
        864,
        2576
      ],
      "id": "961696ee-68bc-4be9-985b-b112d6363d6c",
      "name": "AI Agent3",
      "retryOnFail": true,
      "waitBetweenTries": 5000
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "claude-sonnet-4-5-20250929",
          "cachedResultName": "Claude Sonnet 4.5"
        },
        "options": {
          "thinking": true
        }
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "typeVersion": 1.3,
      "position": [
        864,
        2384
      ],
      "id": "d45a2297-c8ab-4fbd-9bbf-a435aaacdbba",
      "name": "Anthropic Chat Model1",
      "credentials": {
        "anthropicApi": {
          "id": "5pMiFSPZL2r44q7L",
          "name": "Anthropic Account (Personal)"
        }
      }
    },
    {
      "parameters": {
        "mode": "runOnceForEachItem",
        "jsCode": "let characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';\nlet result = '';\nlet length = 48; // Desired length of the random string\nfor (let i = 0; i < length; i++) {\n  result += characters.charAt(Math.floor(Math.random() * characters.length));\n}\nreturn { randomString: result };"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        640,
        2576
      ],
      "id": "74d41433-f136-4a5c-9e13-c285c627944c",
      "name": "Code in JavaScript7"
    },
    {
      "parameters": {
        "sessionIdType": "customKey",
        "sessionKey": "={{ $json.randomString }}",
        "contextWindowLength": 8
      },
      "type": "@n8n/n8n-nodes-langchain.memoryRedisChat",
      "typeVersion": 1.5,
      "position": [
        1024,
        2400
      ],
      "id": "f731f4f4-b5d4-46e4-8579-b28935914ccc",
      "name": "Redis Chat Memory3",
      "credentials": {
        "redis": {
          "id": "4nD9S5LZCArxPB81",
          "name": "Redis (NO EXPIRATION)"
        }
      }
    },
    {
      "parameters": {
        "schemaType": "manual",
        "inputSchema": "{\n  \"type\": \"object\",\n  \"required\": [\"original_script\", \"tagged_script\", \"tag_count\", \"tagging_notes\"],\n  \"additionalProperties\": false,\n  \"properties\": {\n    \"original_script\": {\n      \"type\": \"string\",\n      \"description\": \"Original input text unchanged\"\n    },\n    \"tagged_script\": {\n      \"type\": \"string\",\n      \"description\": \"Text with Fish Audio tags inserted\"\n    },\n    \"tag_count\": {\n      \"type\": \"object\",\n      \"required\": [\"total_tags\", \"emotion_tags\", \"tone_tags\", \"audio_effect_tags\", \"special_effect_tags\", \"sentences_tagged\", \"total_sentences\"],\n      \"properties\": {\n        \"total_tags\": { \"type\": \"integer\" },\n        \"emotion_tags\": { \"type\": \"integer\" },\n        \"tone_tags\": { \"type\": \"integer\" },\n        \"audio_effect_tags\": { \"type\": \"integer\" },\n        \"special_effect_tags\": { \"type\": \"integer\" },\n        \"sentences_tagged\": { \"type\": \"integer\" },\n        \"total_sentences\": { \"type\": \"integer\" }\n      }\n    },\n    \"tagging_notes\": {\n      \"type\": \"string\",\n      \"description\": \"Brief tagging rationale\"\n    }\n  }\n}",
        "autoFix": true
      },
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "typeVersion": 1.3,
      "position": [
        976,
        2736
      ],
      "id": "1dd99844-a9b1-4b81-8be1-a721b57d545a",
      "name": "Structured Output Parser3"
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "value": "gpt-5.1",
          "mode": "list",
          "cachedResultName": "gpt-5.1"
        },
        "builtInTools": {},
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1.3,
      "position": [
        976,
        2896
      ],
      "id": "ef0c5923-2058-45e9-b174-d04a0c768c93",
      "name": "OpenAI Chat Model4",
      "credentials": {
        "openAiApi": {
          "id": "OjRKrQXB019XKwdP",
          "name": "OpenAi Account (Personal)"
        }
      }
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants3').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants3').first().json.constants.Sheet2 }}",
          "mode": "name"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "EXPRESSIVE VIDEO NARRATION": "={{ $json.output.tagged_script }}",
            "row_number": "={{ $('Get row(s) in sheet3').item.json.row_number }}",
            "TAGGING NOTES": "={{ $json.output.tagging_notes }}"
          },
          "matchingColumns": [
            "row_number"
          ],
          "schema": [
            {
              "id": "STATUS",
              "displayName": "STATUS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "ID",
              "displayName": "ID",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO TITLE",
              "displayName": "VIDEO TITLE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "DESCRIPTION",
              "displayName": "DESCRIPTION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "AVATAR ID",
              "displayName": "AVATAR ID",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO NARRATION",
              "displayName": "VIDEO NARRATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "EXPRESSIVE VIDEO NARRATION",
              "displayName": "EXPRESSIVE VIDEO NARRATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "TAGGING NOTES",
              "displayName": "TAGGING NOTES",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "AI MODEL",
              "displayName": "AI MODEL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "KEY FIGURES",
              "displayName": "KEY FIGURES",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "WORD COUNT",
              "displayName": "WORD COUNT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "MPLY CONNECTION",
              "displayName": "MPLY CONNECTION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        1232,
        2576
      ],
      "id": "9f3c9977-f06e-49f7-b0bb-e7219ffcd99f",
      "name": "Update row in sheet1",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "value": "gpt-5.1",
          "mode": "list",
          "cachedResultName": "gpt-5.1"
        },
        "builtInTools": {},
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1.3,
      "position": [
        1920,
        2560
      ],
      "id": "c362ccef-a6e4-4a5e-9b50-02b6cc7cc43c",
      "name": "OpenAI Chat Model5",
      "credentials": {
        "openAiApi": {
          "id": "OjRKrQXB019XKwdP",
          "name": "OpenAi Account (Personal)"
        }
      }
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "value": "gpt-5.1",
          "mode": "list",
          "cachedResultName": "gpt-5.1"
        },
        "builtInTools": {},
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1.3,
      "position": [
        4960,
        1456
      ],
      "id": "9640ddea-71b7-4144-b432-e2c3f0a8f758",
      "name": "OpenAI Chat Model6",
      "credentials": {
        "openAiApi": {
          "id": "OjRKrQXB019XKwdP",
          "name": "OpenAi Account (Personal)"
        }
      }
    },
    {
      "parameters": {
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmCohere",
      "typeVersion": 1,
      "position": [
        1984,
        1888
      ],
      "id": "526b1e0d-ef15-49d3-95c1-360cfa24a1e6",
      "name": "Cohere Model",
      "credentials": {
        "cohereApi": {
          "id": "2KLyMaAZiNcfpMpr",
          "name": "CohereApi account"
        }
      }
    },
    {
      "parameters": {},
      "type": "n8n-nodes-globals.globalConstants",
      "typeVersion": 1,
      "position": [
        -48,
        2560
      ],
      "id": "67a6f812-6949-4ceb-97d2-23f31fedeaa2",
      "name": "Global Constants3",
      "credentials": {
        "globalConstantsApi": {
          "id": "tl6hxt14W8QyX1vV",
          "name": "AI YouTube Investing Influencer"
        }
      }
    },
    {
      "parameters": {
        "operation": "append",
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants').item.json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants').item.json.constants.Sheet3 }}",
          "mode": "name"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "STATUS": "=SPLIT",
            "Article Title": "=SPLIT",
            "Ticker": "=SPLIT",
            "Reasoning": "=SPLIT",
            "Suggested Angle 1": "=SPLIT",
            "Suggested Angle 2": "=SPLIT",
            "Link": "=SPLIT",
            "PublicationDate": "=SPLIT",
            "MPLY_CTA": "=SPLIT"
          },
          "matchingColumns": [],
          "schema": [
            {
              "id": "PublicationDate",
              "displayName": "PublicationDate",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "STATUS",
              "displayName": "STATUS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Article Title",
              "displayName": "Article Title",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Ticker",
              "displayName": "Ticker",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Link",
              "displayName": "Link",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Reasoning",
              "displayName": "Reasoning",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Suggested Angle 1",
              "displayName": "Suggested Angle 1",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Suggested Angle 2",
              "displayName": "Suggested Angle 2",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Target Audience",
              "displayName": "Target Audience",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Keywords",
              "displayName": "Keywords",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "MPLY_CTA",
              "displayName": "MPLY_CTA",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        2560,
        1632
      ],
      "id": "27074c7b-09b0-426b-ad41-7062368c3a54",
      "name": "Append row in sheet3",
      "executeOnce": true,
      "retryOnFail": true,
      "waitBetweenTries": 5000,
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "wZJh4ACm1MD5wdQ9",
          "name": "Google Sheet (Admin Account - Nandy Cyber Success)"
        }
      }
    },
    {
      "parameters": {
        "rules": {
          "values": [
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 2
                },
                "conditions": [
                  {
                    "id": "a7dd57e0-33a2-4dd6-b21e-1bef17584ecf",
                    "leftValue": "={{ $json.STATUS }}",
                    "rightValue": "SPLIT",
                    "operator": {
                      "type": "string",
                      "operation": "equals",
                      "name": "filter.operator.equals"
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "SPLIT"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 2
                },
                "conditions": [
                  {
                    "leftValue": "={{ $json.STATUS }}",
                    "rightValue": "PENDING",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    },
                    "id": "e9452e1d-760d-401e-9782-f3e3bf29a515"
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "PENDING"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.switch",
      "typeVersion": 3.3,
      "position": [
        3920,
        1200
      ],
      "id": "314e5590-9454-429a-b85c-8bbec1a2140a",
      "name": "Switch"
    },
    {
      "parameters": {
        "url": "=http://localhost:5678/webhook/aaa7e6ef-2b93-4f0f-9f76-c20a8f34b530",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        6192,
        1360
      ],
      "id": "ae9b8d66-8360-4aa5-b2fe-9b0302fc4865",
      "name": "HTTP Request18",
      "executeOnce": true
    },
    {
      "parameters": {
        "path": "ae547f31-85b4-487f-bf08-66e265e1dbd7",
        "options": {}
      },
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2.1,
      "position": [
        3152,
        1200
      ],
      "id": "866c15c7-098f-458d-95a9-798c72bb9bfd",
      "name": "Webhook",
      "webhookId": "ae547f31-85b4-487f-bf08-66e265e1dbd7"
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants1').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants1').first().json.constants.Sheet3 }}",
          "mode": "name"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "STATUS": "={{ $('Global Constants1').item.json.constants.Status4 }}",
            "row_number": "={{ $('Get row(s) in sheet2').item.json.row_number }}"
          },
          "matchingColumns": [
            "row_number"
          ],
          "schema": [
            {
              "id": "PublicationDate",
              "displayName": "PublicationDate",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "STATUS",
              "displayName": "STATUS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Article Title",
              "displayName": "Article Title",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Ticker",
              "displayName": "Ticker",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Link",
              "displayName": "Link",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Reasoning",
              "displayName": "Reasoning",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Suggested Angle 1",
              "displayName": "Suggested Angle 1",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Suggested Angle 2",
              "displayName": "Suggested Angle 2",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Target Audience",
              "displayName": "Target Audience",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Keywords",
              "displayName": "Keywords",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "MPLY_CTA",
              "displayName": "MPLY_CTA",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        5904,
        1200
      ],
      "id": "f2dc6b78-ffd0-44bf-a32e-a26355c39195",
      "name": "Update row in sheet18",
      "retryOnFail": true,
      "executeOnce": true,
      "waitBetweenTries": 5000,
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "wZJh4ACm1MD5wdQ9",
          "name": "Google Sheet (Admin Account - Nandy Cyber Success)"
        }
      }
    },
    {
      "parameters": {
        "operation": "append",
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants1').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants1').first().json.constants.Sheet2 }}",
          "mode": "name"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "ID_2": "STOP",
            "STATUS": "STOP",
            "ID": "STOP",
            "VIDEO TITLE": "STOP",
            "DESCRIPTION": "STOP",
            "AVATAR ID": "STOP",
            "VIDEO NARRATION": "STOP",
            "EXPRESSIVE VIDEO NARRATION": "STOP"
          },
          "matchingColumns": [],
          "schema": [
            {
              "id": "ID_2",
              "displayName": "ID_2",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "STATUS",
              "displayName": "STATUS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "ID",
              "displayName": "ID",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "VIDEO TITLE",
              "displayName": "VIDEO TITLE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "DESCRIPTION",
              "displayName": "DESCRIPTION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "AVATAR ID",
              "displayName": "AVATAR ID",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "VIDEO NARRATION",
              "displayName": "VIDEO NARRATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "EXPRESSIVE VIDEO NARRATION",
              "displayName": "EXPRESSIVE VIDEO NARRATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "TAGGING NOTES",
              "displayName": "TAGGING NOTES",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "AI MODEL",
              "displayName": "AI MODEL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "KEY FIGURES",
              "displayName": "KEY FIGURES",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "WORD COUNT",
              "displayName": "WORD COUNT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "MPLY CONNECTION",
              "displayName": "MPLY CONNECTION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        4224,
        960
      ],
      "id": "2bff4acc-76ea-49d8-b81e-820ed9a19ce5",
      "name": "Append row in sheet4",
      "retryOnFail": true,
      "waitBetweenTries": 5000,
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "rules": {
          "values": [
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 2
                },
                "conditions": [
                  {
                    "id": "a7dd57e0-33a2-4dd6-b21e-1bef17584ecf",
                    "leftValue": "={{ $json.STATUS }}",
                    "rightValue": "STOP",
                    "operator": {
                      "type": "string",
                      "operation": "equals",
                      "name": "filter.operator.equals"
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "STOP"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 2
                },
                "conditions": [
                  {
                    "leftValue": "={{ $json.STATUS }}",
                    "rightValue": "PENDING",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    },
                    "id": "e9452e1d-760d-401e-9782-f3e3bf29a515"
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "PENDING"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.switch",
      "typeVersion": 3.3,
      "position": [
        336,
        2560
      ],
      "id": "8d647250-0eb0-43ae-b0eb-33e624dcff6f",
      "name": "Switch1"
    },
    {
      "parameters": {
        "operation": "append",
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants3').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants3').first().json.constants.Sheet1 }}",
          "mode": "name"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "STATUS": "=SPLIT",
            "CODE": "={{ $json.CODE }}",
            "VIDEO TITLE": "=SPLIT",
            "NARRATION": "=SPLIT",
            "SEGMENT": "=SPLIT",
            "TOTAL SEGMENTS": "=SPLIT",
            "VIDEO DESCRIPTION": "=SPLIT",
            "BREAKPOINT REASON": "=SPLIT"
          },
          "matchingColumns": [],
          "schema": [
            {
              "id": "STATUS",
              "displayName": "STATUS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "CODE",
              "displayName": "CODE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "SEGMENT",
              "displayName": "SEGMENT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "TOTAL SEGMENTS",
              "displayName": "TOTAL SEGMENTS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "VIDEO TITLE",
              "displayName": "VIDEO TITLE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "VIDEO DESCRIPTION",
              "displayName": "VIDEO DESCRIPTION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "NARRATION",
              "displayName": "NARRATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "BREAKPOINT REASON",
              "displayName": "BREAKPOINT REASON",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "TTS OUTPUT (URL)",
              "displayName": "TTS OUTPUT (URL)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TTS OUTPUT (ID)",
              "displayName": "TTS OUTPUT (ID)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LAYOUT",
              "displayName": "LAYOUT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(1)",
              "displayName": "var(1)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(2)",
              "displayName": "var(2)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(3)",
              "displayName": "var(3)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(4)",
              "displayName": "var(4)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(5)",
              "displayName": "var(5)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(6)",
              "displayName": "var(6)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(7)",
              "displayName": "var(7)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(8)",
              "displayName": "var(8)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(9)",
              "displayName": "var(9)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(10)",
              "displayName": "var(10)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO URL",
              "displayName": "VIDEO URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO DRIVE LINK",
              "displayName": "VIDEO DRIVE LINK",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        2544,
        2208
      ],
      "id": "9978aaa9-9133-4617-891f-6fe3d882fa6b",
      "name": "Append row in sheet6",
      "retryOnFail": true,
      "waitBetweenTries": 5000,
      "executeOnce": true,
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "url": "=http://localhost:5678/webhook/0f08e548-3187-498c-9dfd-86cfd1829e00",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        2752,
        2736
      ],
      "id": "753c9344-aea1-404f-9ea7-22ad174b4087",
      "name": "HTTP Request19",
      "executeOnce": true
    },
    {
      "parameters": {},
      "type": "n8n-nodes-globals.globalConstants",
      "typeVersion": 1,
      "position": [
        4128,
        1936
      ],
      "id": "d7b7fb09-a375-43ff-bc06-2ad90a0bfcad",
      "name": "Global Constants5",
      "credentials": {
        "globalConstantsApi": {
          "id": "tl6hxt14W8QyX1vV",
          "name": "AI YouTube Investing Influencer"
        }
      }
    },
    {
      "parameters": {
        "path": "487af711-9405-4d36-b16e-1c23add78358",
        "options": {}
      },
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2.1,
      "position": [
        -368,
        2560
      ],
      "id": "3e625d1f-23de-4482-ac81-8d33b48ac87b",
      "name": "Webhook4",
      "webhookId": "487af711-9405-4d36-b16e-1c23add78358"
    },
    {
      "parameters": {
        "inputDataFieldName": "FIELD",
        "name": "={{ $('Loop Over Items1').item.json.CODE }}_{{ $('Loop Over Items1').item.json.SEGMENT }}_{{ $('Loop Over Items1').item.json['TOTAL SEGMENTS'] }}_{{ $('Loop Over Items1').item.json['VIDEO TITLE'] }}.mp3",
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": "My Drive"
        },
        "folderId": {
          "__rl": true,
          "value": "={{ $('Global Constants5').first().json.constants.RenderedAudioFolderID }}",
          "mode": "id"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        5824,
        2528
      ],
      "id": "cd230ed0-9d5e-426c-8e9f-b2abb1986963",
      "name": "Upload file1",
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "YW5uoCGpLGXuL18x",
          "name": "Google Drive (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants5').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants5').first().json.constants.Sheet1 }}",
          "mode": "name"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "STATUS": "={{ $('Global Constants5').first().json.constants.Status2 }}",
            "row_number": "={{ $('Loop Over Items1').item.json.row_number }}",
            "TTS OUTPUT (URL)": "={{ $json.webContentLink }}",
            "TTS OUTPUT (ID)": "={{ $json.webContentLink.split('id=')[1].split('&')[0] }}"
          },
          "matchingColumns": [
            "row_number"
          ],
          "schema": [
            {
              "id": "STATUS",
              "displayName": "STATUS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "CODE",
              "displayName": "CODE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "SEGMENT",
              "displayName": "SEGMENT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TOTAL SEGMENTS",
              "displayName": "TOTAL SEGMENTS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO TITLE",
              "displayName": "VIDEO TITLE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO DESCRIPTION",
              "displayName": "VIDEO DESCRIPTION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "NARRATION",
              "displayName": "NARRATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "BREAKPOINT REASON",
              "displayName": "BREAKPOINT REASON",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TTS OUTPUT (URL)",
              "displayName": "TTS OUTPUT (URL)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "TTS OUTPUT (ID)",
              "displayName": "TTS OUTPUT (ID)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "LAYOUT",
              "displayName": "LAYOUT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(1)",
              "displayName": "var(1)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(2)",
              "displayName": "var(2)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(3)",
              "displayName": "var(3)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(4)",
              "displayName": "var(4)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(5)",
              "displayName": "var(5)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(6)",
              "displayName": "var(6)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(7)",
              "displayName": "var(7)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(8)",
              "displayName": "var(8)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(9)",
              "displayName": "var(9)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(10)",
              "displayName": "var(10)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO URL",
              "displayName": "VIDEO URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO DRIVE LINK",
              "displayName": "VIDEO DRIVE LINK",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        6096,
        2528
      ],
      "id": "f04993f2-4820-4e9b-a78a-d31a62eec602",
      "name": "Update row in sheet10",
      "retryOnFail": true,
      "executeOnce": true,
      "waitBetweenTries": 5000,
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {},
      "type": "n8n-nodes-globals.globalConstants",
      "typeVersion": 1,
      "position": [
        16,
        3536
      ],
      "id": "6e3d3c15-a981-472d-ba75-37612408ae5e",
      "name": "Global Constants6",
      "credentials": {
        "globalConstantsApi": {
          "id": "tl6hxt14W8QyX1vV",
          "name": "AI YouTube Investing Influencer"
        }
      }
    },
    {
      "parameters": {
        "documentId": {
          "__rl": true,
          "value": "={{ $json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $json.constants.Sheet1 }}",
          "mode": "name"
        },
        "filtersUI": {
          "values": [
            {
              "lookupColumn": "STATUS",
              "lookupValue": "={{ $json.constants.Status2 }}"
            },
            {
              "lookupColumn": "STATUS",
              "lookupValue": "STOP"
            }
          ]
        },
        "combineFilters": "OR",
        "options": {
          "returnFirstMatch": true
        }
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        240,
        3536
      ],
      "id": "aa1efb02-ab3b-4a9b-8a0a-85f51d282438",
      "name": "Get row(s) in sheet7",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "wZJh4ACm1MD5wdQ9",
          "name": "Google Sheet (Admin Account - Nandy Cyber Success)"
        }
      }
    },
    {
      "parameters": {
        "path": "673931a9-b58a-4f84-ba86-2f096d80cdd3",
        "options": {}
      },
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2.1,
      "position": [
        3664,
        1936
      ],
      "id": "b508c94f-3476-4eb7-b36b-184d63bb6219",
      "name": "Webhook1",
      "webhookId": "673931a9-b58a-4f84-ba86-2f096d80cdd3"
    },
    {
      "parameters": {
        "path": "2003cd96-5830-427d-b9a3-0ec189c03b9e",
        "options": {}
      },
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2.1,
      "position": [
        -336,
        3536
      ],
      "id": "e45611d3-021a-429c-b782-378c150a04fe",
      "name": "Webhook2",
      "webhookId": "2003cd96-5830-427d-b9a3-0ec189c03b9e"
    },
    {
      "parameters": {
        "content": "",
        "height": 1280,
        "width": 3440,
        "color": 5
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -480,
        784
      ],
      "typeVersion": 1,
      "id": "8507d895-8034-4729-a6fb-2d8ff83b6285",
      "name": "Sticky Note4"
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "claude-sonnet-4-5-20250929",
          "cachedResultName": "Claude Sonnet 4.5"
        },
        "options": {
          "thinking": true
        }
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "typeVersion": 1.3,
      "position": [
        1936,
        1472
      ],
      "id": "29be7b6c-490d-4184-bc5b-b1960289cdc8",
      "name": "Anthropic Chat Model",
      "credentials": {
        "anthropicApi": {
          "id": "5pMiFSPZL2r44q7L",
          "name": "Anthropic Account (Personal)"
        }
      }
    },
    {
      "parameters": {
        "content": "",
        "height": 176,
        "width": 192,
        "color": 3
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        816,
        848
      ],
      "typeVersion": 1,
      "id": "607a63b0-5842-4618-bc35-60e8a57e8a44",
      "name": "Sticky Note7"
    },
    {
      "parameters": {
        "content": "",
        "height": 7360,
        "width": 352,
        "color": 3
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -560,
        -64
      ],
      "typeVersion": 1,
      "id": "f37e624a-6c98-4a5a-9a1e-b1f41aacb737",
      "name": "Sticky Note10"
    },
    {
      "parameters": {
        "content": "",
        "height": 912,
        "width": 3824,
        "color": 5
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3024,
        784
      ],
      "typeVersion": 1,
      "id": "288dc634-208e-489d-9070-e505256cb1ff",
      "name": "Sticky Note8"
    },
    {
      "parameters": {
        "url": "=http://localhost:5678/webhook/0f08e548-3187-498c-9dfd-86cfd1829e00",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        4592,
        960
      ],
      "id": "1c60c652-3ea6-455d-bf4a-d43502d2045d",
      "name": "HTTP Request22",
      "executeOnce": true
    },
    {
      "parameters": {
        "content": "# YOUTUBE SHORTS SCRIPTWRITER\n\n## Extracts YouTue videos and recent news articles about a particular stock (selected on the Google Sheet) that's a monopoly and held by MPLY ETF.",
        "height": 336,
        "width": 416,
        "color": 3
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        6384,
        896
      ],
      "typeVersion": 1,
      "id": "49550132-4131-4acd-af57-0c08721d3ca5",
      "name": "Sticky Note12"
    },
    {
      "parameters": {
        "content": "",
        "height": 1072,
        "width": 3440,
        "color": 5
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -480,
        2096
      ],
      "typeVersion": 1,
      "id": "46dafd95-5174-44ac-822f-3b8795b3d2b2",
      "name": "Sticky Note9"
    },
    {
      "parameters": {
        "url": "=http://localhost:5678/webhook/97c9e398-ae6e-45a5-9097-f966cb3e1e99",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        896,
        2192
      ],
      "id": "6a153ced-c5e1-4ba7-bcb5-d981c010b73e",
      "name": "HTTP Request23",
      "executeOnce": true
    },
    {
      "parameters": {
        "content": "",
        "height": 176,
        "width": 192,
        "color": 3
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        848,
        2144
      ],
      "typeVersion": 1,
      "id": "1ba1df3d-9c0f-4069-9671-d6f7925c4229",
      "name": "Sticky Note17"
    },
    {
      "parameters": {
        "content": "",
        "height": 176,
        "width": 192,
        "color": 3
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        6144,
        1328
      ],
      "typeVersion": 1,
      "id": "d4c1b6fb-2594-40a0-8d7a-e3e09ee69e04",
      "name": "Sticky Note18"
    },
    {
      "parameters": {
        "operation": "append",
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants3').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants3').first().json.constants.Sheet1 }}",
          "mode": "name"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "STATUS": "STOP",
            "CODE": "STOP",
            "SEGMENT": "STOP",
            "TOTAL SEGMENTS": "STOP",
            "LAYOUT": "STOP"
          },
          "matchingColumns": [],
          "schema": [
            {
              "id": "STATUS",
              "displayName": "STATUS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "CODE",
              "displayName": "CODE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "SEGMENT",
              "displayName": "SEGMENT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "TOTAL SEGMENTS",
              "displayName": "TOTAL SEGMENTS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "VIDEO TITLE",
              "displayName": "VIDEO TITLE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO DESCRIPTION",
              "displayName": "VIDEO DESCRIPTION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "NARRATION",
              "displayName": "NARRATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "BREAKPOINT REASON",
              "displayName": "BREAKPOINT REASON",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TTS OUTPUT (URL)",
              "displayName": "TTS OUTPUT (URL)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TTS OUTPUT (ID)",
              "displayName": "TTS OUTPUT (ID)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LAYOUT",
              "displayName": "LAYOUT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "var(1)",
              "displayName": "var(1)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(2)",
              "displayName": "var(2)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(3)",
              "displayName": "var(3)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(4)",
              "displayName": "var(4)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(5)",
              "displayName": "var(5)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(6)",
              "displayName": "var(6)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(7)",
              "displayName": "var(7)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(8)",
              "displayName": "var(8)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(9)",
              "displayName": "var(9)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(10)",
              "displayName": "var(10)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO URL",
              "displayName": "VIDEO URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO DRIVE LINK",
              "displayName": "VIDEO DRIVE LINK",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        576,
        2192
      ],
      "id": "001f12ee-6f44-47a7-82f7-8f234c9a8099",
      "name": "Append row in sheet7",
      "retryOnFail": true,
      "waitBetweenTries": 5000,
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "content": "",
        "height": 176,
        "width": 192,
        "color": 3
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3616,
        1904
      ],
      "typeVersion": 1,
      "id": "d20cc4a8-217b-4f5b-b63e-b904963a49b8",
      "name": "Sticky Note"
    },
    {
      "parameters": {
        "content": "",
        "height": 176,
        "width": 192,
        "color": 3
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4080,
        1904
      ],
      "typeVersion": 1,
      "id": "42b0760c-390f-428f-8715-79e516ec2f94",
      "name": "Sticky Note19"
    },
    {
      "parameters": {
        "url": "=http://localhost:5678/webhook/97c9e398-ae6e-45a5-9097-f966cb3e1e99",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        6096,
        2320
      ],
      "id": "0cfbdf25-25f2-4331-a1bd-6837b54d928f",
      "name": "HTTP Request24",
      "executeOnce": true
    },
    {
      "parameters": {
        "content": "",
        "height": 1136,
        "width": 3792,
        "color": 5
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3056,
        1728
      ],
      "typeVersion": 1,
      "id": "e749e378-0061-4e34-8503-8a455e3a9a0e",
      "name": "Sticky Note20"
    },
    {
      "parameters": {
        "content": "",
        "height": 1440,
        "width": 3440,
        "color": 5
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -480,
        3216
      ],
      "typeVersion": 1,
      "id": "25c2c3e1-a538-4ccf-9004-9dd4bc2e3c7a",
      "name": "Sticky Note21"
    },
    {
      "parameters": {
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants5').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants5').first().json.constants.Sheet1 }}",
          "mode": "name"
        },
        "filtersUI": {
          "values": [
            {
              "lookupColumn": "CODE",
              "lookupValue": "={{ $('Get row(s) in sheet6').item.json.CODE }}"
            }
          ]
        },
        "combineFilters": "OR",
        "options": {
          "returnFirstMatch": false
        }
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        3856,
        2320
      ],
      "id": "4a454800-489c-4d23-b211-c2b16a52cba3",
      "name": "Get row(s) in sheet9",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "options": {}
      },
      "type": "n8n-nodes-base.splitInBatches",
      "typeVersion": 3,
      "position": [
        4352,
        2320
      ],
      "id": "74c3dbbc-ea5f-496c-a2d2-e24797d5e0c0",
      "name": "Loop Over Items1"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 3
          },
          "conditions": [
            {
              "id": "b7150802-e640-416e-aa50-ba029f188f37",
              "leftValue": "={{ $json.STATUS }}",
              "rightValue": "SPLIT",
              "operator": {
                "type": "string",
                "operation": "equals"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [
        4592,
        2336
      ],
      "id": "f87d395d-d2fb-4058-a8e5-91eba9327fb4",
      "name": "If2"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 3
          },
          "conditions": [
            {
              "id": "b7150802-e640-416e-aa50-ba029f188f37",
              "leftValue": "={{ $('Get row(s) in sheet6').item.json.STATUS }}",
              "rightValue": "STOP",
              "operator": {
                "type": "string",
                "operation": "equals"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [
        5376,
        1936
      ],
      "id": "02183ef2-0ec3-425d-a09a-6fb34539dd69",
      "name": "If4"
    },
    {
      "parameters": {
        "url": "=http://localhost:5678/webhook/f1dff05e-b93e-4634-80b3-a4dbewdf36b9",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        5888,
        1920
      ],
      "id": "65c1f1e6-84e5-4d37-88d3-480f4e10cdea",
      "name": "HTTP Request25",
      "executeOnce": true
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 3
          },
          "conditions": [
            {
              "id": "b7150802-e640-416e-aa50-ba029f188f37",
              "leftValue": "={{ $json.STATUS }}",
              "rightValue": "STOP",
              "operator": {
                "type": "string",
                "operation": "equals"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [
        432,
        3536
      ],
      "id": "74a11eba-b215-4b56-bffd-900e1e91a03b",
      "name": "If5"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 3
          },
          "conditions": [
            {
              "id": "b7150802-e640-416e-aa50-ba029f188f37",
              "leftValue": "={{ $json.STATUS }}",
              "rightValue": "SPLIT",
              "operator": {
                "type": "string",
                "operation": "equals"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [
        272,
        4064
      ],
      "id": "dbd63b70-1eab-4d2e-afbb-9d6aace005ea",
      "name": "If6"
    },
    {
      "parameters": {
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants6').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants6').first().json.constants.Sheet1 }}",
          "mode": "name"
        },
        "filtersUI": {
          "values": [
            {
              "lookupColumn": "CODE",
              "lookupValue": "={{ $json.CODE }}"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        768,
        3648
      ],
      "id": "546c1002-058f-4fb0-9678-994197f3ca4c",
      "name": "Get row(s) in sheet10",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "options": {}
      },
      "type": "n8n-nodes-base.splitInBatches",
      "typeVersion": 3,
      "position": [
        -80,
        4048
      ],
      "id": "360e3c68-cdbc-41d4-bb24-25e06c37f17d",
      "name": "Loop Over Items3"
    },
    {
      "parameters": {
        "operation": "sendAndWait",
        "sendTo": "hesham@betterbrainlab.com",
        "subject": "Approval Required",
        "message": "=Please check the scripts that were created in \n\nhttps://docs.google.com/spreadsheets/d/{{ $('Global Constants1').first().json.constants.SheetID }}\n\nSheet Name: {{ $('Global Constants1').first().json.constants.Sheet2 }}\n\nFill In the additional column for AVATAR ID.",
        "options": {}
      },
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2.2,
      "position": [
        4400,
        960
      ],
      "id": "477c0f4d-a45d-42b6-abfb-74b43e3eed8e",
      "name": "Send message and wait for response",
      "webhookId": "f0a191f5-0b87-4ff0-a994-f95ede1a902d",
      "credentials": {
        "gmailOAuth2": {
          "id": "Vn1zFRIxiwOZxM5S",
          "name": "Admin Gmail Account"
        }
      }
    },
    {
      "parameters": {
        "path": "55327231-5f37-4dfa-9510-6d26143bc8ca",
        "options": {}
      },
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2.1,
      "position": [
        -352,
        5408
      ],
      "id": "10f19a6c-eb32-49a0-92d1-3a932b7ecc6c",
      "name": "Webhook3",
      "webhookId": "55327231-5f37-4dfa-9510-6d26143bc8ca"
    },
    {
      "parameters": {
        "url": "=http://localhost:5678/webhook/ca28040d-5a50-43ab-99a9-b5bcd482715d",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        1552,
        3392
      ],
      "id": "f2cd29fe-f322-48b6-9ac2-78b26e134525",
      "name": "HTTP Request26",
      "executeOnce": true
    },
    {
      "parameters": {
        "url": "=http://localhost:5678/webhook/f1dff05e-b93e-4634-80b3-a4dbewdf36b9",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        2576,
        3376
      ],
      "id": "d5fb91a4-6e2f-4604-bdef-cb8e475d5075",
      "name": "HTTP Request27",
      "executeOnce": true
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "=Video Title: {{ $('Loop Over Items3').item.json['VIDEO TITLE'] }}\n\nScript Segment {{ $('Loop Over Items3').item.json.SEGMENT }} of {{ $('Loop Over Items3').item.json['TOTAL SEGMENTS'] }}:\n\n{{ $('Loop Over Items3').item.json.NARRATION }}",
        "hasOutputParser": true,
        "needsFallback": true,
        "options": {
          "systemMessage": "=You are an expert video layout analyst specializing in YouTube Shorts production. Your role is to analyze narrative script segments and select the most visually effective layout from a predefined set of options.\n\n## CONTEXT\nYou will receive a single narrative segment from a YouTube Short script. This script has been divided into narrative blocks, and you are processing one segment at a time. You will know:\n- The segment number you are currently processing\n- The total number of segments in the complete video\n- The narrative text of the current segment\n\nAll videos are in 9:16 vertical aspect ratio (YouTube Shorts format).\n\n## YOUR TASK\nAnalyze the narrative segment and determine which layout best serves the content. Consider:\n1. The emotional tone and purpose of the segment\n2. Whether the content benefits from visual emphasis or animated elements\n3. The pacing and dramatic structure of the segment\n4. Prior layout choices (use the Google Sheet tool to check the \"Layout\" column and ensure variety and coherence)\n\n## AVAILABLE LAYOUTS\n\n**Layout_002: Talking Head with Image**\nBest for: Narration-driven segments, personal delivery, establishing credibility, explanatory content that benefits from a human presence.\nDescription: Speaker visible on screen with a relevant image displayed above them.\n\n**Layout_003: Animated Infographic**\nBest for: Data visualization, statistics, breaking up dense content, segments that benefit from visual punch and motion.\nDescription: Image occupying the top half of the screen with a sticker overlay, headline, subtitle, and an animated counter that counts up during playback.\n\n**Layout_004: Flip Reveal Animation**\nBest for: Hook moments, bold statements, provocative questions, quotations, statistics, or remarks that warrant a dramatic reveal followed by explanation.\nDescription: A big, brief statement/question/remark appears on screen, then flips to reveal a detailed explanation.\n\n## CRITICAL RULE: LAYOUT_003 AND LAYOUT_004 ARE MUTUALLY EXCLUSIVE\nYou may only use ONE of these two layouts per video. Before selecting either:\n1. Check the Google Sheet \"Layout\" column for this video\n2. If Layout_003 has already been used → Layout_004 is unavailable for the rest of this video\n3. If Layout_004 has already been used → Layout_003 is unavailable for the rest of this video\n4. If neither has been used yet, you may choose either—but this locks out the other for all remaining segments\n\n## DECISION GUIDANCE\n- Default to Layout_002 when the segment is straightforward narration without special visual needs\n- Use Layout_003 when you need animated data visualization or want to break up talking-head monotony (if still available)\n- Use Layout_004 when the segment has a \"hook → explain\" structure or a dramatic reveal moment (if still available)\n\nOutput only your layout choice with brief reasoning.",
          "maxIterations": 15
        }
      },
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 3,
      "position": [
        1200,
        4096
      ],
      "id": "5856e260-e0e7-4ff2-bfcb-64830c7a33f1",
      "name": "AI Agent5",
      "retryOnFail": false,
      "waitBetweenTries": 5000,
      "maxTries": 2,
      "onError": "continueErrorOutput"
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "claude-sonnet-4-5-20250929",
          "cachedResultName": "Claude Sonnet 4.5"
        },
        "options": {
          "thinking": true
        }
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "typeVersion": 1.3,
      "position": [
        1248,
        3952
      ],
      "id": "9bf7bd09-2f08-454d-aecb-1f3ba4fc3ded",
      "name": "Anthropic Chat Model2",
      "credentials": {
        "anthropicApi": {
          "id": "5pMiFSPZL2r44q7L",
          "name": "Anthropic Account (Personal)"
        }
      }
    },
    {
      "parameters": {
        "mode": "runOnceForEachItem",
        "jsCode": "let characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';\nlet result = '';\nlet length = 48; // Desired length of the random string\nfor (let i = 0; i < length; i++) {\n  result += characters.charAt(Math.floor(Math.random() * characters.length));\n}\nreturn { randomString: result };"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        848,
        4096
      ],
      "id": "c3dc0528-e790-4d53-aba6-e749c3e40d67",
      "name": "Code in JavaScript8"
    },
    {
      "parameters": {
        "sessionIdType": "customKey",
        "sessionKey": "={{ $json.randomString }}"
      },
      "type": "@n8n/n8n-nodes-langchain.memoryRedisChat",
      "typeVersion": 1.5,
      "position": [
        1376,
        3952
      ],
      "id": "23adc32e-2fc0-428b-b510-1fecb5721156",
      "name": "Redis Chat Memory4",
      "credentials": {
        "redis": {
          "id": "w1nYJN6Fl7n4lwSC",
          "name": "Redis (EXPIRES)"
        }
      }
    },
    {
      "parameters": {
        "schemaType": "manual",
        "inputSchema": "{\n  \"type\": \"object\",\n  \"properties\": {\n    \"segment_number\": {\n      \"type\": \"integer\",\n      \"description\": \"The segment number being processed\"\n    },\n    \"total_segments\": {\n      \"type\": \"integer\",\n      \"description\": \"Total number of segments in the video\"\n    },\n    \"chosen_layout\": {\n      \"type\": \"string\",\n      \"enum\": [\"Layout_002\", \"Layout_003\", \"Layout_004\"],\n      \"description\": \"The layout selected as most appropriate for this segment\"\n    },\n    \"layout_reasoning\": {\n      \"type\": \"string\",\n      \"description\": \"Brief explanation (1-2 sentences) of why this layout was chosen for the segment\"\n    },\n    \"narrative_position\": {\n      \"type\": \"string\",\n      \"enum\": [\"opening\", \"middle\", \"closing\"],\n      \"description\": \"Where this segment falls in the overall narrative arc\"\n    }\n  },\n  \"required\": [\n    \"segment_number\",\n    \"total_segments\",\n    \"chosen_layout\",\n    \"layout_reasoning\",\n    \"narrative_position\"\n  ],\n  \"additionalProperties\": false\n}",
        "autoFix": true,
        "customizeRetryPrompt": true,
        "prompt": "=Your previous response could not be processed successfully.\n\n## ERROR ENCOUNTERED\n{error}\n\n## YOUR PREVIOUS OUTPUT\n{completion}\n\n## INSTRUCTIONS TO FOLLOW\n{instructions}\n\nPlease analyze the narrative segment again and provide a valid layout selection. Ensure your response:\n1. Contains a valid layout choice from: Layout_01, Layout_04, Layout_05, Layout_06, Layout_07, Layout_08, or Layout_09\n2. Matches the exact JSON schema structure required\n3. Includes reasoning that directly relates to the segment content\n4. Properly identifies the narrative position (opening/middle/closing)\n5. Includes the layout_01_count_so_far field based on Google Sheet data\n\nREMINDER: Layout_01 (Talking Head) should be used 3-4 times per video. If the segment is general narration without specific statistics, questions, quotes, or reveals, use Layout_01.\n\nReview the segment content and make your layout selection again."
      },
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "typeVersion": 1.3,
      "position": [
        1312,
        4240
      ],
      "id": "f64fa415-b15c-4e6b-a22c-c6a73509ec49",
      "name": "Structured Output Parser5"
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "value": "gpt-5.1",
          "mode": "list",
          "cachedResultName": "gpt-5.1"
        },
        "builtInTools": {},
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1.3,
      "position": [
        1200,
        4368
      ],
      "id": "29162c63-3129-4d79-8b62-8e21fb25001f",
      "name": "OpenAI Chat Model",
      "credentials": {
        "openAiApi": {
          "id": "OjRKrQXB019XKwdP",
          "name": "OpenAi Account (Personal)"
        }
      }
    },
    {
      "parameters": {
        "model": "mistral-large-latest",
        "options": {
          "temperature": 0.4,
          "topP": 0.9
        }
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatMistralCloud",
      "typeVersion": 1,
      "position": [
        1200,
        4240
      ],
      "id": "c7f2d9de-3d73-4817-8624-81fc8f4d44ef",
      "name": "Mistral Cloud Chat Model4",
      "credentials": {
        "mistralCloudApi": {
          "id": "feG0p0tu1GwMlA1h",
          "name": "Mistral Cloud Account (Personal)"
        }
      }
    },
    {
      "parameters": {
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants6').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants6').first().json.constants.Sheet1 }}",
          "mode": "name"
        },
        "filtersUI": {
          "values": [
            {
              "lookupColumn": "CODE",
              "lookupValue": "={{ $('Loop Over Items3').item.json.CODE }}"
            },
            {
              "lookupColumn": "STATUS",
              "lookupValue": "READY"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheetsTool",
      "typeVersion": 4.7,
      "position": [
        1344,
        4384
      ],
      "id": "c4989013-0955-47e2-9a70-4f23507a1fd7",
      "name": "Get row(s) in sheet in Google Sheets1",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "=Video Title: {{ $('Loop Over Items3').item.json['VIDEO TITLE'] }}\n\nChosen Layout: {{ $json.output.chosen_layout }}\n\nReasoning: {{ $json.output.layout_reasoning }}\n\nScript Segment {{ $('Loop Over Items3').item.json.SEGMENT }} of {{ $('Loop Over Items3').item.json['TOTAL SEGMENTS'] }}:\n\n{{ $('Loop Over Items3').item.json.NARRATION }}",
        "hasOutputParser": true,
        "needsFallback": true,
        "options": {
          "systemMessage": "=You are a precision content generator for YouTube Shorts video production. Your role is to generate the exact variables required for a pre-selected video layout, ensuring all text meets strict character and word limits.\n\n## CONTEXT\nYou will receive:\n- The video title\n- A narrative script segment from a YouTube Short\n- The segment number and total segments in the video\n- The layout that has been pre-selected by a layout analysis agent\n- The reasoning behind the layout choice\n\nAll videos are in 9:16 vertical aspect ratio.\n\n## YOUR TASK\nGenerate the specific variables required for the chosen layout. You must output exactly 8 variable fields (var_1 through var_8). Only populate the variables required by the chosen layout—leave all others as empty strings.\n\n**CRITICAL**: Variables must always be populated in order starting from var_1. Never skip variable slots.\n\n## GOOGLE SHEET TOOL\nUse the Google Sheet tool to review previously processed segments. This helps you:\n- Maintain consistent tone and style across segments\n- Avoid repetitive phrasing in text elements\n- Ensure visual/thematic continuity in image search terms\n- Reference what came before for narrative coherence\n\n## LAYOUT SPECIFICATIONS & VARIABLE REQUIREMENTS\n\n---\n\n### Layout_002: Talking Head with Image\n**Purpose**: Narration-driven segments with a relevant image displayed above the speaker.\n**Variables Required**: 1\n\n- **var_1**: Image search term\n  - A concise search query for Freepik or Brave API to find a relevant main image\n  - Should directly relate to the segment's subject matter\n  - Use specific, descriptive terms that will yield relevant results\n\n- var_2 through var_8: \"\" (empty)\n\n---\n\n### Layout_003: Animated Infographic\n**Purpose**: Data visualization with animated elements—image, sticker, headline, subtitle, and animated counter.\n**Variables Required**: 6\n\n- **var_1**: Image search term\n  - A concise search query for Freepik or Brave API to find a relevant main image\n  - Image will occupy the top half of the screen with a sticker overlay\n\n- **var_2**: Banner text — **2-3 WORDS**\n  - Short banner that appears directly under the image\n  - Punchy, attention-grabbing\n\n- **var_3**: Headline — **5-7 WORDS**\n  - Primary headline text\n  - Clear and impactful\n\n- **var_4**: Sub-heading — **7-10 WORDS**\n  - Supporting text that elaborates on the headline\n  - Provides additional context\n\n- **var_5**: Counter number — **MAXIMUM 9 DIGITS**\n  - The number the counter will animate to\n  - Must include appropriate units (e.g., $100,000 not \"100,000 dollars\", 5,000 lbs not \"5,000 pounds\")\n  - Can be currency ($, €, £), weight (lbs, kg), quantity, percentage, etc.\n  - Format examples: $2,500,000 | 47% | 8.5M | 12,000 lbs\n\n- **var_6**: Counter appearance time — **WHOLE NUMBER (seconds)**\n  - Estimated time in seconds when the counter should appear on screen\n  - Base this on a normal speaking pace for the narration\n  - Round UP to the nearest whole number (e.g., 4.53 → 5)\n  - Output as digits only, no units (e.g., \"5\" not \"5 seconds\")\n\n- var_7 through var_8: \"\" (empty)\n\n---\n\n### Layout_004: Flip Reveal Animation\n**Purpose**: Bold statement or question that flips to reveal a detailed explanation.\n**Variables Required**: 2\n\n- **var_1**: Headline — **6-8 WORDS**\n  - The bold statement, question, remark, quotation, or statistic that appears first\n  - Designed to hook attention before the flip\n\n- **var_2**: Explanation — **MINIMUM 35 WORDS, MAXIMUM 45 WORDS**\n  - Detailed explanation revealed after the flip animation\n  - Must be within the 35-45 word range—count carefully\n  - Provides the payoff/context for the headline\n\n- var_3 through var_8: \"\" (empty)\n\n---\n\n## SEARCH TERM GUIDELINES\nWhen writing search terms for image APIs:\n1. **Be specific**: Use 2-5 descriptive words\n2. **Stay relevant**: Terms must directly relate to the segment's subject matter\n3. **Think visually**: What image would best represent this content?\n4. **Avoid abstract terms**: Prefer concrete, searchable subjects\n\n## COUNTER TIMING GUIDELINES (Layout_003)\nTo estimate when the counter number should appear:\n1. Read the narration segment\n2. Identify when the statistic/number is mentioned in the script\n3. Estimate seconds based on ~150 words per minute speaking pace (roughly 2.5 words per second)\n4. Round UP to the nearest whole number\n5. If the number appears early in the segment, the timing should be low (1-3 seconds)\n6. If the number appears mid-segment, timing might be 4-7 seconds\n7. If the number appears late, timing could be 8+ seconds\n\n## STRICT ENFORCEMENT\n- **Word limits are absolute** — never exceed maximums, never go below minimums\n- Count carefully before outputting\n- If content cannot fit within limits, prioritize the most essential words\n- All 8 variable fields must be present in output\n- Unused variables must be empty strings, not null or omitted"
        }
      },
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 3,
      "position": [
        1840,
        4064
      ],
      "id": "7e600313-b37e-40ca-836e-1d46f3c56688",
      "name": "AI Agent7",
      "retryOnFail": false,
      "waitBetweenTries": 5000,
      "maxTries": 2,
      "onError": "continueErrorOutput"
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "claude-sonnet-4-5-20250929",
          "cachedResultName": "Claude Sonnet 4.5"
        },
        "options": {
          "thinking": true
        }
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "typeVersion": 1.3,
      "position": [
        1888,
        3920
      ],
      "id": "04becaeb-b65e-46c0-b18f-1867c809e857",
      "name": "Anthropic Chat Model6",
      "credentials": {
        "anthropicApi": {
          "id": "5pMiFSPZL2r44q7L",
          "name": "Anthropic Account (Personal)"
        }
      }
    },
    {
      "parameters": {
        "sessionIdType": "customKey",
        "sessionKey": "={{ $('Code in JavaScript8').item.json.randomString }}"
      },
      "type": "@n8n/n8n-nodes-langchain.memoryRedisChat",
      "typeVersion": 1.5,
      "position": [
        2016,
        3920
      ],
      "id": "55e43c60-301b-49c7-9b97-1b8ab774fdd6",
      "name": "Redis Chat Memory6",
      "credentials": {
        "redis": {
          "id": "w1nYJN6Fl7n4lwSC",
          "name": "Redis (EXPIRES)"
        }
      }
    },
    {
      "parameters": {
        "schemaType": "manual",
        "inputSchema": "{\n  \"type\": \"object\",\n  \"properties\": {\n    \"segment_number\": {\n      \"type\": \"integer\",\n      \"description\": \"The segment number being processed\"\n    },\n    \"total_segments\": {\n      \"type\": \"integer\",\n      \"description\": \"Total number of segments in the video\"\n    },\n    \"assigned_layout\": {\n      \"type\": \"string\",\n      \"enum\": [\"Layout_002\", \"Layout_003\", \"Layout_004\"],\n      \"description\": \"The layout assigned to this segment (received from Layout Selector agent)\"\n    },\n    \"var_1\": {\n      \"type\": \"string\",\n      \"description\": \"Layout_002: Image search term | Layout_003: Image search term | Layout_004: Headline (6-8 words)\"\n    },\n    \"var_2\": {\n      \"type\": \"string\",\n      \"description\": \"Layout_002: empty | Layout_003: Banner text (2-3 words) | Layout_004: Explanation (35-45 words)\"\n    },\n    \"var_3\": {\n      \"type\": \"string\",\n      \"description\": \"Layout_002: empty | Layout_003: Headline (5-7 words) | Layout_004: empty\"\n    },\n    \"var_4\": {\n      \"type\": \"string\",\n      \"description\": \"Layout_002: empty | Layout_003: Sub-heading (7-10 words) | Layout_004: empty\"\n    },\n    \"var_5\": {\n      \"type\": \"string\",\n      \"description\": \"Layout_002: empty | Layout_003: Counter number with units (max 9 digits) | Layout_004: empty\"\n    },\n    \"var_6\": {\n      \"type\": \"string\",\n      \"description\": \"Layout_002: empty | Layout_003: Counter appearance time in seconds (whole number) | Layout_004: empty\"\n    },\n    \"var_7\": {\n      \"type\": \"string\",\n      \"description\": \"Empty string - not used by any current layout\"\n    },\n    \"var_8\": {\n      \"type\": \"string\",\n      \"description\": \"Empty string - not used by any current layout\"\n    }\n  },\n  \"required\": [\n    \"segment_number\",\n    \"total_segments\",\n    \"assigned_layout\",\n    \"var_1\",\n    \"var_2\",\n    \"var_3\",\n    \"var_4\",\n    \"var_5\",\n    \"var_6\",\n    \"var_7\",\n    \"var_8\"\n  ],\n  \"additionalProperties\": false\n}",
        "autoFix": true,
        "customizeRetryPrompt": true,
        "prompt": "Your previous response could not be processed successfully.\n\n## ERROR ENCOUNTERED\n{error}\n\n## YOUR PREVIOUS OUTPUT\n{completion}\n\n## INSTRUCTIONS TO FOLLOW\n{instructions}\n\nPlease generate the layout variables again. Ensure your response:\n1. Matches the exact JSON schema with all 8 variable fields present\n2. Populates ONLY the variables required by the assigned layout (in sequential order starting from var_1)\n3. Uses empty strings \"\" for all unused variable slots\n4. Strictly adheres to ALL word and character limits:\n   - Layout_04 var_2: max 6 words | var_3: max 4 words | var_4: max 30 words\n   - Layout_05 var_2: max 16 words | var_3: max 4 words | var_4: valid rgba format\n   - Layout_06 var_1: max 3 display characters | var_2: max 6 words\n   - Layout_07 var_1: max 8 digits | var_2: 2-3 words only\n   - Layout_08 var_2: max 4 words | var_3: max 20 words\n   - Layout_09 var_2: max 6 words | var_3: max 4 words | var_4: max 4 words | var_5: max 14 characters\n5. Provides detailed, relevant prompts for any image/video generation variables\n\nReview the segment content and assigned layout, then generate compliant variables."
      },
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "typeVersion": 1.3,
      "position": [
        1952,
        4208
      ],
      "id": "b91dfb86-cd25-48b3-9ab6-025629b59d38",
      "name": "Structured Output Parser7"
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "value": "gpt-5.1",
          "mode": "list",
          "cachedResultName": "gpt-5.1"
        },
        "builtInTools": {},
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1.3,
      "position": [
        1840,
        4352
      ],
      "id": "1720dab9-a814-4fb6-897b-e5d5f59860bc",
      "name": "OpenAI Chat Model2",
      "credentials": {
        "openAiApi": {
          "id": "OjRKrQXB019XKwdP",
          "name": "OpenAi Account (Personal)"
        }
      }
    },
    {
      "parameters": {
        "model": "mistral-large-latest",
        "options": {
          "temperature": 0.7,
          "topP": 0.9
        }
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatMistralCloud",
      "typeVersion": 1,
      "position": [
        1840,
        4208
      ],
      "id": "2a8ef67f-23d7-4739-8e28-bc8356e1b1fd",
      "name": "Mistral Cloud Chat Model6",
      "credentials": {
        "mistralCloudApi": {
          "id": "feG0p0tu1GwMlA1h",
          "name": "Mistral Cloud Account (Personal)"
        }
      }
    },
    {
      "parameters": {
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants6').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants6').first().json.constants.Sheet1 }}",
          "mode": "name"
        },
        "filtersUI": {
          "values": [
            {
              "lookupColumn": "CODE",
              "lookupValue": "={{ $('Loop Over Items3').item.json.CODE }}"
            },
            {
              "lookupColumn": "STATUS",
              "lookupValue": "READY"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheetsTool",
      "typeVersion": 4.7,
      "position": [
        1984,
        4352
      ],
      "id": "c137c775-a351-4f4d-b163-f95eb0a81b76",
      "name": "Get row(s) in sheet in Google Sheets3",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants6').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants6').first().json.constants.Sheet1 }}",
          "mode": "name"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "row_number": "={{ $('Loop Over Items3').item.json.row_number }}",
            "STATUS": "READY",
            "LAYOUT": "={{ $('AI Agent5').item.json.output.chosen_layout }}",
            "var(1)": "={{ $json.output.var_1 }}",
            "var(2)": "={{ $json.output.var_2 }}",
            "var(3)": "={{ $json.output.var_3 }}",
            "var(4)": "={{ $json.output.var_4 }}",
            "var(5)": "={{ $json.output.var_5 }}",
            "var(6)": "={{ $json.output.var_6 }}",
            "var(7)": "={{ $json.output.var_7 }}",
            "var(8)": "={{ $json.output.var_8 }}"
          },
          "matchingColumns": [
            "row_number"
          ],
          "schema": [
            {
              "id": "STATUS",
              "displayName": "STATUS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "CODE",
              "displayName": "CODE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "SEGMENT",
              "displayName": "SEGMENT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TOTAL SEGMENTS",
              "displayName": "TOTAL SEGMENTS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO TITLE",
              "displayName": "VIDEO TITLE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO DESCRIPTION",
              "displayName": "VIDEO DESCRIPTION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "NARRATION",
              "displayName": "NARRATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "BREAKPOINT REASON",
              "displayName": "BREAKPOINT REASON",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TTS OUTPUT (URL)",
              "displayName": "TTS OUTPUT (URL)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TTS OUTPUT (ID)",
              "displayName": "TTS OUTPUT (ID)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LAYOUT",
              "displayName": "LAYOUT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "var(1)",
              "displayName": "var(1)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "var(2)",
              "displayName": "var(2)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "var(3)",
              "displayName": "var(3)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "var(4)",
              "displayName": "var(4)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "var(5)",
              "displayName": "var(5)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "var(6)",
              "displayName": "var(6)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "var(7)",
              "displayName": "var(7)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "var(8)",
              "displayName": "var(8)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "var(9)",
              "displayName": "var(9)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(10)",
              "displayName": "var(10)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO URL",
              "displayName": "VIDEO URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO DRIVE LINK",
              "displayName": "VIDEO DRIVE LINK",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        2720,
        4048
      ],
      "id": "b4593a65-8cdf-4501-91b3-13f2aef52cd5",
      "name": "Update row in sheet3",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants6').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants6').first().json.constants.Sheet1 }}",
          "mode": "name"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "row_number": "={{ $('Loop Over Items3').item.json.row_number }}",
            "STATUS": "={{ $('Global Constants6').first().json.constants.Status3 }}",
            "LAYOUT": "={{ $json.output.chosen_layout }}"
          },
          "matchingColumns": [
            "row_number"
          ],
          "schema": [
            {
              "id": "STATUS",
              "displayName": "STATUS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "CODE",
              "displayName": "CODE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "SEGMENT",
              "displayName": "SEGMENT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TOTAL SEGMENTS",
              "displayName": "TOTAL SEGMENTS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO TITLE",
              "displayName": "VIDEO TITLE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO DESCRIPTION",
              "displayName": "VIDEO DESCRIPTION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "NARRATION",
              "displayName": "NARRATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "BREAKPOINT REASON",
              "displayName": "BREAKPOINT REASON",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TTS OUTPUT (URL)",
              "displayName": "TTS OUTPUT (URL)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TTS OUTPUT (ID)",
              "displayName": "TTS OUTPUT (ID)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LAYOUT",
              "displayName": "LAYOUT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "var(1)",
              "displayName": "var(1)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(2)",
              "displayName": "var(2)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(3)",
              "displayName": "var(3)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(4)",
              "displayName": "var(4)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(5)",
              "displayName": "var(5)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(6)",
              "displayName": "var(6)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(7)",
              "displayName": "var(7)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(8)",
              "displayName": "var(8)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(9)",
              "displayName": "var(9)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(10)",
              "displayName": "var(10)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO URL",
              "displayName": "VIDEO URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO DRIVE LINK",
              "displayName": "VIDEO DRIVE LINK",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        2736,
        4384
      ],
      "id": "f883fc6d-5c10-4b60-bffb-295d148a4dc5",
      "name": "Update row in sheet4",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "content": "",
        "height": 176,
        "width": 192,
        "color": 3
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1488,
        3344
      ],
      "typeVersion": 1,
      "id": "b996d7bf-5c66-46ff-bb58-e781c450d45c",
      "name": "Sticky Note26"
    },
    {
      "parameters": {
        "content": "",
        "height": 176,
        "width": 192,
        "color": 3
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2528,
        3344
      ],
      "typeVersion": 1,
      "id": "b236716f-2c00-410e-8016-6c1cd22d6856",
      "name": "Sticky Note29"
    },
    {
      "parameters": {},
      "type": "n8n-nodes-globals.globalConstants",
      "typeVersion": 1,
      "position": [
        -16,
        5408
      ],
      "id": "264c0545-ddc4-456f-a587-2112aabfa4a7",
      "name": "Global Constants8",
      "credentials": {
        "globalConstantsApi": {
          "id": "tl6hxt14W8QyX1vV",
          "name": "AI YouTube Investing Influencer"
        }
      }
    },
    {
      "parameters": {
        "documentId": {
          "__rl": true,
          "value": "={{ $json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $json.constants.Sheet1 }}",
          "mode": "name"
        },
        "filtersUI": {
          "values": [
            {
              "lookupColumn": "STATUS",
              "lookupValue": "=READY_B"
            },
            {
              "lookupColumn": "STATUS",
              "lookupValue": "STOP"
            }
          ]
        },
        "combineFilters": "OR",
        "options": {
          "returnFirstMatch": true
        }
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        192,
        5408
      ],
      "id": "24c31ce3-34b9-4ce6-8efe-d8feeffd44c6",
      "name": "Get row(s) in sheet11",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "wZJh4ACm1MD5wdQ9",
          "name": "Google Sheet (Admin Account - Nandy Cyber Success)"
        }
      }
    },
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "daysInterval": 1000
            }
          ]
        }
      },
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        -352,
        7024
      ],
      "id": "11819a34-e0c6-472d-b8a3-57d3e18aad1b",
      "name": "Schedule Trigger7"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 3
          },
          "conditions": [
            {
              "id": "b7150802-e640-416e-aa50-ba029f188f37",
              "leftValue": "={{ $json.STATUS }}",
              "rightValue": "STOP",
              "operator": {
                "type": "string",
                "operation": "equals"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [
        416,
        5408
      ],
      "id": "dfe0741d-2c85-4e88-848b-f886231ebd88",
      "name": "If7"
    },
    {
      "parameters": {
        "content": "",
        "height": 1456,
        "width": 7280,
        "color": 5
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -464,
        4752
      ],
      "typeVersion": 1,
      "id": "8d46051f-dddb-469b-aa03-0fb89dfd3967",
      "name": "Sticky Note27"
    },
    {
      "parameters": {
        "content": "",
        "height": 256,
        "width": 656,
        "color": 3
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -864,
        3616
      ],
      "typeVersion": 1,
      "id": "8882dc4c-f019-4387-b67d-f24a6f696f49",
      "name": "Sticky Note31"
    },
    {
      "parameters": {
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants8').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants8').first().json.constants.Sheet1 }}",
          "mode": "name"
        },
        "filtersUI": {
          "values": [
            {
              "lookupColumn": "CODE",
              "lookupValue": "={{ $json.CODE }}"
            }
          ]
        },
        "combineFilters": "OR",
        "options": {
          "returnFirstMatch": false
        }
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        816,
        5424
      ],
      "id": "e8437b87-c27c-4e29-8071-073a34cfe8f3",
      "name": "Get row(s) in sheet12",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "options": {}
      },
      "type": "n8n-nodes-base.splitInBatches",
      "typeVersion": 3,
      "position": [
        992,
        5424
      ],
      "id": "6fe34c39-dd75-4b56-bade-c7d5a1ceeeed",
      "name": "Loop Over Items4"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 3
          },
          "conditions": [
            {
              "id": "b7150802-e640-416e-aa50-ba029f188f37",
              "leftValue": "={{ $('Loop Over Items4').item.json.STATUS }}",
              "rightValue": "SPLIT",
              "operator": {
                "type": "string",
                "operation": "equals"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [
        1328,
        5440
      ],
      "id": "c42ada14-a0dc-4d70-b959-87de2932d8ac",
      "name": "If3"
    },
    {
      "parameters": {
        "content": "",
        "height": 752,
        "width": 5440,
        "color": 3
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1408,
        -16
      ],
      "typeVersion": 1,
      "id": "37bb5dd6-1c0c-43f1-a5cc-eb249b42fda6",
      "name": "Sticky Note34"
    },
    {
      "parameters": {
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants8').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants8').first().json.constants.Sheet2 }}",
          "mode": "name"
        },
        "filtersUI": {
          "values": [
            {
              "lookupColumn": "ID",
              "lookupValue": "={{ $('Loop Over Items4').item.json.CODE }}"
            }
          ]
        },
        "combineFilters": "OR",
        "options": {
          "returnFirstMatch": true
        }
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        2400,
        5024
      ],
      "id": "895a0996-3e9c-451b-9c99-af146fde3c2b",
      "name": "Get row(s) in sheet13",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants8').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants8').first().json.constants.Sheet6 }}",
          "mode": "name"
        },
        "filtersUI": {
          "values": [
            {
              "lookupColumn": "ID",
              "lookupValue": "={{ $json['AVATAR ID'] }}"
            }
          ]
        },
        "combineFilters": "OR",
        "options": {
          "returnFirstMatch": true
        }
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        2640,
        5024
      ],
      "id": "7e5a39c3-6f3d-4135-ae0d-b78dcdec7c41",
      "name": "Get row(s) in sheet14",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "operation": "share",
        "fileId": {
          "__rl": true,
          "value": "={{ $json.file_id }}",
          "mode": "id"
        },
        "permissionsUi": {
          "permissionsValues": {
            "role": "writer",
            "type": "anyone",
            "allowFileDiscovery": true
          }
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        2912,
        4912
      ],
      "id": "4786501f-af6a-4d5e-be5b-38098eeeecc7",
      "name": "Share file2",
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "YW5uoCGpLGXuL18x",
          "name": "Google Drive (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "operation": "share",
        "fileId": {
          "__rl": true,
          "value": "={{ $('Loop Over Items4').item.json['TTS OUTPUT (ID)'] }}",
          "mode": "id"
        },
        "permissionsUi": {
          "permissionsValues": {
            "role": "writer",
            "type": "anyone",
            "allowFileDiscovery": true
          }
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        2912,
        5088
      ],
      "id": "a25f99b2-f629-40ee-9788-df55b045d260",
      "name": "Share file3",
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "YW5uoCGpLGXuL18x",
          "name": "Google Drive (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {},
      "type": "n8n-nodes-base.merge",
      "typeVersion": 3.2,
      "position": [
        3152,
        5008
      ],
      "id": "f4f95911-8242-449b-b3e9-cecfd1ef6612",
      "name": "Merge",
      "executeOnce": true
    },
    {
      "parameters": {
        "content": "",
        "height": 1008,
        "width": 7696,
        "color": 5
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -464,
        6288
      ],
      "typeVersion": 1,
      "id": "f4609181-7842-48d8-88f9-0837e6c1f8ac",
      "name": "Sticky Note49"
    },
    {
      "parameters": {
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants9').first().json.constants.SheetID}}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants9').first().json.constants.Sheet1}}",
          "mode": "name"
        },
        "filtersUI": {
          "values": [
            {
              "lookupColumn": "STATUS",
              "lookupValue": "={{ $json.constants.Status4 }}"
            },
            {
              "lookupColumn": "STATUS",
              "lookupValue": "STOP"
            }
          ]
        },
        "combineFilters": "OR",
        "options": {
          "returnFirstMatch": true
        }
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        128,
        6464
      ],
      "id": "c069300c-9ddf-4e1a-ba3a-8e52b0a9c1be",
      "name": "Get row(s) in sheet4",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "loose",
            "version": 3
          },
          "conditions": [
            {
              "id": "f3e3c0a7-1edd-4481-a664-8ea8d55c27be",
              "leftValue": "={{$runIndex}}",
              "rightValue": "=0",
              "operator": {
                "type": "number",
                "operation": "equals"
              }
            }
          ],
          "combinator": "or"
        },
        "looseTypeValidation": true,
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [
        512,
        4080
      ],
      "id": "bef247c0-41ec-4844-9b28-9966b3037d67",
      "name": "If9"
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants6').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants6').first().json.constants.Sheet1 }}",
          "mode": "name"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "row_number": "={{ $('Loop Over Items3').item.json.row_number }}",
            "STATUS": "READY",
            "LAYOUT": "=Layout_001"
          },
          "matchingColumns": [
            "row_number"
          ],
          "schema": [
            {
              "id": "STATUS",
              "displayName": "STATUS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "CODE",
              "displayName": "CODE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "SEGMENT",
              "displayName": "SEGMENT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TOTAL SEGMENTS",
              "displayName": "TOTAL SEGMENTS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO TITLE",
              "displayName": "VIDEO TITLE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO DESCRIPTION",
              "displayName": "VIDEO DESCRIPTION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "NARRATION",
              "displayName": "NARRATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "BREAKPOINT REASON",
              "displayName": "BREAKPOINT REASON",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TTS OUTPUT (URL)",
              "displayName": "TTS OUTPUT (URL)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TTS OUTPUT (ID)",
              "displayName": "TTS OUTPUT (ID)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LAYOUT",
              "displayName": "LAYOUT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "var(1)",
              "displayName": "var(1)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(2)",
              "displayName": "var(2)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(3)",
              "displayName": "var(3)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(4)",
              "displayName": "var(4)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(5)",
              "displayName": "var(5)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(6)",
              "displayName": "var(6)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(7)",
              "displayName": "var(7)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(8)",
              "displayName": "var(8)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(9)",
              "displayName": "var(9)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(10)",
              "displayName": "var(10)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO URL",
              "displayName": "VIDEO URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO DRIVE LINK",
              "displayName": "VIDEO DRIVE LINK",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        2576,
        3648
      ],
      "id": "69cefe31-b20c-477c-80ce-ef474cf855e0",
      "name": "Update row in sheet5",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {},
      "type": "n8n-nodes-globals.globalConstants",
      "typeVersion": 1,
      "position": [
        -80,
        6464
      ],
      "id": "72475471-ceaf-4144-8c9d-4413aadf1bc3",
      "name": "Global Constants9",
      "credentials": {
        "globalConstantsApi": {
          "id": "tl6hxt14W8QyX1vV",
          "name": "AI YouTube Investing Influencer"
        }
      }
    },
    {
      "parameters": {
        "content": "",
        "height": 192,
        "width": 192,
        "color": 3
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2688,
        2688
      ],
      "typeVersion": 1,
      "id": "c2f9589e-7498-4464-9ceb-ed1e20e7876f",
      "name": "Sticky Note35"
    },
    {
      "parameters": {
        "url": "=http://localhost:5678/webhook/eebccba2-3e80-45c5-8b74-315c0fe1212b",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        2032,
        4912
      ],
      "id": "c6071671-beab-4ec1-8644-56e9572c4ff9",
      "name": "HTTP Request17",
      "executeOnce": true
    },
    {
      "parameters": {
        "content": "",
        "height": 176,
        "width": 192,
        "color": 3
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1984,
        4880
      ],
      "typeVersion": 1,
      "id": "bb0dc69f-ded1-4a60-88ed-c42b7c7519ab",
      "name": "Sticky Note36"
    },
    {
      "parameters": {
        "content": "",
        "height": 176,
        "width": 192,
        "color": 3
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        368,
        5360
      ],
      "typeVersion": 1,
      "id": "53c7917b-2b54-41fe-86c8-6aa9cbfe0d77",
      "name": "Sticky Note37"
    },
    {
      "parameters": {},
      "type": "n8n-nodes-globals.globalConstants",
      "typeVersion": 1,
      "position": [
        944,
        -640
      ],
      "id": "59185825-e830-4e4a-9c9b-e055ba7062ae",
      "name": "Global Constants2",
      "credentials": {
        "globalConstantsApi": {
          "id": "tl6hxt14W8QyX1vV",
          "name": "AI YouTube Investing Influencer"
        }
      }
    },
    {
      "parameters": {
        "documentId": {
          "__rl": true,
          "value": "={{ $json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $json.constants.Sheet3 }}",
          "mode": "name"
        },
        "filtersUI": {
          "values": [
            {
              "lookupColumn": "STATUS",
              "lookupValue": "=SPLIT"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        1440,
        -848
      ],
      "id": "1a6a52f2-f444-4515-9c9f-f5af1791530f",
      "name": "Get row(s) in sheet5",
      "retryOnFail": true,
      "waitBetweenTries": 5000,
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "documentId": {
          "__rl": true,
          "value": "={{ $json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $json.constants.Sheet2 }}",
          "mode": "name"
        },
        "filtersUI": {
          "values": [
            {
              "lookupColumn": "STATUS",
              "lookupValue": "=SPLIT"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        1424,
        -640
      ],
      "id": "3407c0a3-4eb3-4044-9fe8-bcde3dc19cc4",
      "name": "Get row(s) in sheet8",
      "retryOnFail": true,
      "waitBetweenTries": 5000,
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "documentId": {
          "__rl": true,
          "value": "={{ $json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $json.constants.Sheet1 }}",
          "mode": "name"
        },
        "filtersUI": {
          "values": [
            {
              "lookupColumn": "STATUS",
              "lookupValue": "=SPLIT"
            },
            {
              "lookupColumn": "STATUS",
              "lookupValue": "STOP"
            }
          ]
        },
        "combineFilters": "OR",
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        1424,
        -464
      ],
      "id": "3278b33a-af72-42c5-873c-7f5b340379d2",
      "name": "Get row(s) in sheet15",
      "retryOnFail": true,
      "waitBetweenTries": 5000,
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants2').item.json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "mode": "name",
          "value": "={{ $('Global Constants2').item.json.constants.Sheet3 }}"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "row_number": "={{ $json.row_number }}",
            "STATUS": "BREAK"
          },
          "matchingColumns": [
            "row_number"
          ],
          "schema": [
            {
              "id": "PublicationDate",
              "displayName": "PublicationDate",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "STATUS",
              "displayName": "STATUS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Article Title",
              "displayName": "Article Title",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Ticker",
              "displayName": "Ticker",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Link",
              "displayName": "Link",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Reasoning",
              "displayName": "Reasoning",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Suggested Angle 1",
              "displayName": "Suggested Angle 1",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Suggested Angle 2",
              "displayName": "Suggested Angle 2",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Target Audience",
              "displayName": "Target Audience",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Keywords",
              "displayName": "Keywords",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "MPLY_CTA",
              "displayName": "MPLY_CTA",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        1648,
        -848
      ],
      "id": "5b80e403-5805-446c-a303-50199950d025",
      "name": "Update row in sheet13",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants2').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants2').first().json.constants.Sheet2 }}",
          "mode": "name"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "row_number": "={{ $json.row_number }}",
            "STATUS": "BREAK"
          },
          "matchingColumns": [
            "row_number"
          ],
          "schema": [
            {
              "id": "STATUS",
              "displayName": "STATUS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "ID",
              "displayName": "ID",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO TITLE",
              "displayName": "VIDEO TITLE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "DESCRIPTION",
              "displayName": "DESCRIPTION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "AVATAR ID",
              "displayName": "AVATAR ID",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO NARRATION",
              "displayName": "VIDEO NARRATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "EXPRESSIVE VIDEO NARRATION",
              "displayName": "EXPRESSIVE VIDEO NARRATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TAGGING NOTES",
              "displayName": "TAGGING NOTES",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "AI MODEL",
              "displayName": "AI MODEL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "KEY FIGURES",
              "displayName": "KEY FIGURES",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "WORD COUNT",
              "displayName": "WORD COUNT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "MPLY CONNECTION",
              "displayName": "MPLY CONNECTION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        1616,
        -640
      ],
      "id": "11aaa376-21e7-4aa5-85e0-4d9de88730be",
      "name": "Update row in sheet14",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants2').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants2').first().json.constants.Sheet1 }}",
          "mode": "name"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "row_number": "={{ $json.row_number }}",
            "STATUS": "BREAK"
          },
          "matchingColumns": [
            "row_number"
          ],
          "schema": [
            {
              "id": "STATUS",
              "displayName": "STATUS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "CODE",
              "displayName": "CODE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "SEGMENT",
              "displayName": "SEGMENT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TOTAL SEGMENTS",
              "displayName": "TOTAL SEGMENTS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO TITLE",
              "displayName": "VIDEO TITLE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO DESCRIPTION",
              "displayName": "VIDEO DESCRIPTION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "NARRATION",
              "displayName": "NARRATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "BREAKPOINT REASON",
              "displayName": "BREAKPOINT REASON",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TTS OUTPUT (URL)",
              "displayName": "TTS OUTPUT (URL)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TTS OUTPUT (ID)",
              "displayName": "TTS OUTPUT (ID)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LAYOUT",
              "displayName": "LAYOUT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(1)",
              "displayName": "var(1)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(2)",
              "displayName": "var(2)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(3)",
              "displayName": "var(3)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(4)",
              "displayName": "var(4)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(5)",
              "displayName": "var(5)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(6)",
              "displayName": "var(6)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(7)",
              "displayName": "var(7)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(8)",
              "displayName": "var(8)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(9)",
              "displayName": "var(9)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(10)",
              "displayName": "var(10)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO URL",
              "displayName": "VIDEO URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO DRIVE LINK",
              "displayName": "VIDEO DRIVE LINK",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        1632,
        -464
      ],
      "id": "f83ab79d-5c11-4138-b1fb-255563f9efd8",
      "name": "Update row in sheet15",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "numberInputs": 3
      },
      "type": "n8n-nodes-base.merge",
      "typeVersion": 3.2,
      "position": [
        1920,
        -656
      ],
      "id": "9b1b1be3-180f-4381-884c-d8e245632157",
      "name": "Merge1",
      "executeOnce": true
    },
    {
      "parameters": {
        "path": "403388bc-fd1a-49de-a5ba-245eee33fea3",
        "options": {}
      },
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2.1,
      "position": [
        -352,
        1040
      ],
      "id": "377bf4f4-4c69-40d0-ac94-a8b10310d3b0",
      "name": "Webhook5",
      "webhookId": "403388bc-fd1a-49de-a5ba-245eee33fea3"
    },
    {
      "parameters": {
        "url": "=http://localhost:5678/webhook/08e30a43-3e83-4cba-a92f-fdaeff9137f8",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        2160,
        -640
      ],
      "id": "7ba045a5-3837-4b24-9296-4fba7b6f83cf",
      "name": "HTTP Request20",
      "executeOnce": true
    },
    {
      "parameters": {
        "content": "",
        "height": 176,
        "width": 208,
        "color": 3
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2096,
        -672
      ],
      "typeVersion": 1,
      "id": "f86c399b-e17a-4409-8c85-5f62ba1ace8b",
      "name": "Sticky Note6"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 3
          },
          "conditions": [
            {
              "id": "11930351-86e0-43fc-923e-36c4e559fb95",
              "leftValue": "={{ $('If3').item.json.STATUS }}",
              "rightValue": "={{ $('Global Constants8').first().json.constants.Status4 }}",
              "operator": {
                "type": "string",
                "operation": "equals",
                "name": "filter.operator.equals"
              }
            },
            {
              "id": "00d17b09-4898-4045-8f27-5b4e611eb3f1",
              "leftValue": "={{ $('If3').item.json.STATUS }}",
              "rightValue": "={{ $('Global Constants8').first().json.constants.Status3 }}",
              "operator": {
                "type": "string",
                "operation": "equals",
                "name": "filter.operator.equals"
              }
            }
          ],
          "combinator": "or"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [
        1808,
        5456
      ],
      "id": "298da657-97df-4508-84b2-e711ee952d5e",
      "name": "If8"
    },
    {
      "parameters": {
        "url": "=http://localhost:5678/webhook/f819d700-089d-4dbf-96f6-a7f7a845d838",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        656,
        4976
      ],
      "id": "21fb3822-323d-48e3-bbc4-d0cddc1afe05",
      "name": "HTTP Request21",
      "executeOnce": true
    },
    {
      "parameters": {
        "content": "",
        "height": 176,
        "width": 192,
        "color": 3
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        608,
        4944
      ],
      "typeVersion": 1,
      "id": "10d53a0f-ce0f-4330-b862-054f0656074e",
      "name": "Sticky Note38"
    },
    {
      "parameters": {
        "path": "0b2c7cd2-f2cf-46b6-aabc-f302db11de25",
        "options": {}
      },
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2.1,
      "position": [
        -352,
        6464
      ],
      "id": "9b10e4b1-0f41-4a02-bcf0-9c574d56b052",
      "name": "Webhook7",
      "webhookId": "0b2c7cd2-f2cf-46b6-aabc-f302db11de25",
      "disabled": true
    },
    {
      "parameters": {
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants9').first().json.constants.SheetID}}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants9').first().json.constants.Sheet1}}",
          "mode": "name"
        },
        "filtersUI": {
          "values": [
            {
              "lookupColumn": "STATUS",
              "lookupValue": "={{ $('Global Constants9').item.json.constants.Status4 }}"
            },
            {
              "lookupColumn": "CODE",
              "lookupValue": "={{ $json.CODE }}"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        1072,
        6480
      ],
      "id": "9b801237-5229-493f-b284-b7c610cf5b4c",
      "name": "Get row(s) in sheet19",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 3
          },
          "conditions": [
            {
              "id": "a3b9e5fe-2401-458d-9671-2f35c9107b99",
              "leftValue": "={{ $input.all().every(item => item.json.STATUS !== 'ERROR') }}",
              "rightValue": "=ERROR",
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [
        224,
        6896
      ],
      "id": "88269297-b489-493f-bb69-999cfb2af4a9",
      "name": "If12"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 3
          },
          "conditions": [
            {
              "id": "f26f7633-7e9e-45fb-9b52-b92a5713ba91",
              "leftValue": "={{ $json.STATUS }}",
              "rightValue": "STOP",
              "operator": {
                "type": "string",
                "operation": "equals"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [
        848,
        6464
      ],
      "id": "1dc5a9a2-aebd-481c-9df7-b1f0eb2c305a",
      "name": "If14"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "=http://localhost:5678/webhook/ae28a057-a879-4b75-9e4c-0cb8e46583fa",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        2160,
        6448
      ],
      "id": "8ec06b87-4593-47f1-8b12-08c1444a2d20",
      "name": "HTTP Request10",
      "executeOnce": true
    },
    {
      "parameters": {
        "operation": "append",
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants9').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "mode": "name",
          "value": "={{ $('Global Constants9').first().json.constants.Sheet7 }}"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "STATUS": "=STOP",
            "CODE": "=STOP",
            "VIDEO DRIVE LINK": "=STOP",
            "VIDEO DRIVE ID": "=STOP"
          },
          "matchingColumns": [],
          "schema": [
            {
              "id": "ID",
              "displayName": "ID",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "STATUS",
              "displayName": "STATUS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "CODE",
              "displayName": "CODE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "VIDEO DRIVE LINK",
              "displayName": "VIDEO DRIVE LINK",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "VIDEO DRIVE ID",
              "displayName": "VIDEO DRIVE ID",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "VIDEO TITLE",
              "displayName": "VIDEO TITLE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO DESCRIPTION",
              "displayName": "VIDEO DESCRIPTION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "NARRATION",
              "displayName": "NARRATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "KEYWORDS",
              "displayName": "KEYWORDS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "THUMBNAIL BRIEF",
              "displayName": "THUMBNAIL BRIEF",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "THUMBNAIL",
              "displayName": "THUMBNAIL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "DURATION",
              "displayName": "DURATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "FEEDBACK",
              "displayName": "FEEDBACK",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        1360,
        6448
      ],
      "id": "51cc9e64-fd18-4fe4-90ee-cfd91140414d",
      "name": "Append row in sheet9",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "operation": "append",
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants').item.json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants').item.json.constants.Sheet3 }}",
          "mode": "name"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "STATUS": "=ERROR",
            "Article Title": "=ERROR",
            "Ticker": "=ERROR",
            "Reasoning": "=ERROR",
            "Suggested Angle 1": "=ERROR",
            "Suggested Angle 2": "=ERROR",
            "Link": "=ERROR",
            "PublicationDate": "=ERROR",
            "MPLY_CTA": "=ERROR"
          },
          "matchingColumns": [],
          "schema": [
            {
              "id": "PublicationDate",
              "displayName": "PublicationDate",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "STATUS",
              "displayName": "STATUS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Article Title",
              "displayName": "Article Title",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Ticker",
              "displayName": "Ticker",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Link",
              "displayName": "Link",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Reasoning",
              "displayName": "Reasoning",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Suggested Angle 1",
              "displayName": "Suggested Angle 1",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Suggested Angle 2",
              "displayName": "Suggested Angle 2",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Target Audience",
              "displayName": "Target Audience",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Keywords",
              "displayName": "Keywords",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "MPLY_CTA",
              "displayName": "MPLY_CTA",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        2352,
        1824
      ],
      "id": "660837f9-e035-42aa-b5d8-909ab9a4fcf5",
      "name": "Append row in sheet10",
      "executeOnce": true,
      "retryOnFail": true,
      "waitBetweenTries": 5000,
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "wZJh4ACm1MD5wdQ9",
          "name": "Google Sheet (Admin Account - Nandy Cyber Success)"
        }
      }
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.fish.audio/v1/tts",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "model",
              "value": "s1"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n  \"text\": \"{{ $json['NARRATION updated'].replace(/\\n/g, ' ').replace(/\\s+/g, ' ') }}\",\n  \"temperature\": 0.9,\n  \"top_p\": 0.85,\n  \"reference_id\": \"{{ $('Get row(s) in sheet18').first().json['Best Voice ID'] }}\",\n  \"prosody\": {\n    \"speed\": 1,\n    \"volume\": 0\n  },\n  \"chunk_length\": 225,\n  \"normalize\": false,\n  \"format\": \"mp3\",\n  \"sample_rate\": 44100,\n  \"mp3_bitrate\": 128,\n  \"latency\": \"normal\",\n  \"max_new_tokens\": 1024,\n  \"repetition_penalty\": 1.2,\n  \"min_chunk_length\": 50,\n  \"condition_on_previous_chunks\": true,\n  \"early_stop_threshold\": 1\n}",
        "options": {
          "response": {
            "response": {
              "responseFormat": "file",
              "outputPropertyName": "=FIELD"
            }
          }
        }
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.3,
      "position": [
        5520,
        2528
      ],
      "id": "3c36d3cc-3782-4449-86b5-f9e493d346fa",
      "name": "HTTP Request8",
      "credentials": {
        "httpHeaderAuth": {
          "id": "Sof12gLZVJuYAKg7",
          "name": "FishAudio"
        }
      }
    },
    {
      "parameters": {
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants5').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants5').first().json.constants.Sheet2 }}",
          "mode": "name"
        },
        "filtersUI": {
          "values": [
            {
              "lookupColumn": "ID",
              "lookupValue": "={{ $json.CODE }}"
            }
          ]
        },
        "combineFilters": "OR",
        "options": {
          "returnFirstMatch": true
        }
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        4800,
        1936
      ],
      "id": "370076cd-0be5-4400-bc14-8b42b140821b",
      "name": "Get row(s) in sheet17",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants5').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": 1273458691,
          "mode": "list",
          "cachedResultName": "Avatars + Voices",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1isMStb9AQ8ZOADXEckmtA9Hhbi11Xg3sLh9Dmm6Bw9g/edit#gid=1273458691"
        },
        "filtersUI": {
          "values": [
            {
              "lookupColumn": "ID",
              "lookupValue": "={{ $json['AVATAR ID'] }}"
            }
          ]
        },
        "combineFilters": "OR",
        "options": {
          "returnFirstMatch": true
        }
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        5104,
        1936
      ],
      "id": "7fb74749-0c52-4077-8b7f-c7ac9d028a3e",
      "name": "Get row(s) in sheet18",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 3
          },
          "conditions": [
            {
              "id": "b7150802-e640-416e-aa50-ba029f188f37",
              "leftValue": "={{ $json.STATUS }}",
              "rightValue": "WAITING",
              "operator": {
                "type": "string",
                "operation": "equals"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [
        4912,
        2464
      ],
      "id": "e6316337-2046-4507-bf91-0fb327554688",
      "name": "If11"
    },
    {
      "parameters": {
        "rules": {
          "values": [
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 3
                },
                "conditions": [
                  {
                    "leftValue": "={{ $('Loop Over Items4').item.json.LAYOUT }}",
                    "rightValue": "Layout_001",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    },
                    "id": "e08299ed-d297-4c6b-a498-9c227e6908b9"
                  }
                ],
                "combinator": "and"
              }
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 3
                },
                "conditions": [
                  {
                    "id": "5774a405-bc37-466b-8296-ce3182bb710e",
                    "leftValue": "={{ $('Loop Over Items4').item.json.LAYOUT }}",
                    "rightValue": "Layout_002",
                    "operator": {
                      "type": "string",
                      "operation": "equals",
                      "name": "filter.operator.equals"
                    }
                  }
                ],
                "combinator": "and"
              }
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 3
                },
                "conditions": [
                  {
                    "id": "af5126b2-1abe-4616-a446-5b8ac101ba6f",
                    "leftValue": "={{ $('Loop Over Items4').item.json.LAYOUT }}",
                    "rightValue": "Layout_003",
                    "operator": {
                      "type": "string",
                      "operation": "equals",
                      "name": "filter.operator.equals"
                    }
                  }
                ],
                "combinator": "and"
              }
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 3
                },
                "conditions": [
                  {
                    "id": "d4fb1b5f-2109-4c24-beff-6160f41ef222",
                    "leftValue": "={{ $('Loop Over Items4').item.json.LAYOUT }}",
                    "rightValue": "Layout_004",
                    "operator": {
                      "type": "string",
                      "operation": "equals",
                      "name": "filter.operator.equals"
                    }
                  }
                ],
                "combinator": "and"
              }
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.switch",
      "typeVersion": 3.4,
      "position": [
        2048,
        5440
      ],
      "id": "735065ac-f98b-4664-9550-c2b452bd9ac5",
      "name": "Switch5"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.creatomate.com/v2/renders",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {}
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n  \"template_id\": \"4800eeee-c2d4-4bfe-a405-45465137a6d8\",\n  \"modifications\": {\n    \"Voiceover-749.source\": \"{{ $('Loop Over Items4').item.json['TTS OUTPUT (URL)'] }}\",\n    \"Details.text\": \"{{ $('Loop Over Items4').item.json['var(4)'] }}\",\n    \"Address.text\": \"{{ $('Loop Over Items4').item.json['var(3)'] }}\",\n    \"Photo-1.source\": \"{{ $('Loop Over Items4').item.json['var(8)'] }}\",\n    \"Title.text\": \"{{ $('Loop Over Items4').item.json['var(2)'] }}\",\n    \"Price.text\": \"{{ $('Loop Over Items4').item.json['var(5)'] }}\",\n    \"Price.time\": {{ $('Loop Over Items4').item.json['var(6)'] }}\n  }\n}",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        2464,
        5488
      ],
      "id": "7a538dec-fd99-4987-ae9d-f6ff43cc547b",
      "name": "HTTP Request44",
      "retryOnFail": true,
      "credentials": {
        "httpHeaderAuth": {
          "id": "VOfIR0v33YsFBe5U",
          "name": "Creatomate Authentication"
        }
      }
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.creatomate.com/v2/renders",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {}
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n  \"template_id\": \"d8d797a8-9c90-4710-abb5-209cc9ab9219\",\n  \"modifications\": {\n    \"Voiceover-BVB.source\": \"{{ $('Loop Over Items4').item.json['TTS OUTPUT (URL)'] }}\",\n    \"Question.text\": \"{{ $('Loop Over Items4').item.json['var(1)'] }}\",\n    \"Quote.text\": \"{{ $('Loop Over Items4').item.json['var(2)'] }}\"\n  }\n}",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        2432,
        5840
      ],
      "id": "57444a19-8075-470a-bcfe-a857dd8605fd",
      "name": "HTTP Request45",
      "retryOnFail": true,
      "credentials": {
        "httpHeaderAuth": {
          "id": "VOfIR0v33YsFBe5U",
          "name": "Creatomate Authentication"
        }
      }
    },
    {
      "parameters": {
        "operation": "share",
        "fileId": {
          "__rl": true,
          "value": "={{ $json['TTS OUTPUT (ID)'] }}",
          "mode": "id"
        },
        "permissionsUi": {
          "permissionsValues": {
            "role": "writer",
            "type": "anyone",
            "allowFileDiscovery": true
          }
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        1600,
        5456
      ],
      "id": "12902cb7-a4de-4dac-96ac-a8a122172bf0",
      "name": "Share file4",
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "YW5uoCGpLGXuL18x",
          "name": "Google Drive (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants8').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants8').first().json.constants.Sheet1 }}",
          "mode": "name"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "row_number": "={{ $('Loop Over Items4').item.json.row_number }}",
            "STATUS": "WORKING",
            "VIDEO URL": "={{ $json.url }}"
          },
          "matchingColumns": [
            "row_number"
          ],
          "schema": [
            {
              "id": "STATUS",
              "displayName": "STATUS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "CODE",
              "displayName": "CODE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "SEGMENT",
              "displayName": "SEGMENT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TOTAL SEGMENTS",
              "displayName": "TOTAL SEGMENTS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO TITLE",
              "displayName": "VIDEO TITLE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO DESCRIPTION",
              "displayName": "VIDEO DESCRIPTION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "NARRATION",
              "displayName": "NARRATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "BREAKPOINT REASON",
              "displayName": "BREAKPOINT REASON",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TTS OUTPUT (URL)",
              "displayName": "TTS OUTPUT (URL)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TTS OUTPUT (ID)",
              "displayName": "TTS OUTPUT (ID)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LAYOUT",
              "displayName": "LAYOUT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(1)",
              "displayName": "var(1)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(2)",
              "displayName": "var(2)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(3)",
              "displayName": "var(3)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(4)",
              "displayName": "var(4)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(5)",
              "displayName": "var(5)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(6)",
              "displayName": "var(6)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(7)",
              "displayName": "var(7)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(8)",
              "displayName": "var(8)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(9)",
              "displayName": "var(9)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(10)",
              "displayName": "var(10)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO URL",
              "displayName": "VIDEO URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "VIDEO DRIVE LINK",
              "displayName": "VIDEO DRIVE LINK",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        3136,
        5840
      ],
      "id": "43c7fe5e-420c-4015-8c39-aca55da04e19",
      "name": "Update row in sheet17",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "url": "={{ $json['VIDEO URL'] }}",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        3408,
        5840
      ],
      "id": "31ac52e7-b247-4b49-9d76-e8dde64dc319",
      "name": "HTTP Request59",
      "retryOnFail": true,
      "waitBetweenTries": 5000,
      "executeOnce": true,
      "onError": "continueErrorOutput"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 3
          },
          "conditions": [
            {
              "id": "3f30573f-e58a-4303-917a-0fab8f8eec64",
              "leftValue": "={{ $runIndex }}",
              "rightValue": 20,
              "operator": {
                "type": "number",
                "operation": "lt"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [
        4000,
        5600
      ],
      "id": "77795e19-9065-4121-8555-c3744ddb95b1",
      "name": "If_2"
    },
    {
      "parameters": {
        "amount": 15
      },
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [
        4000,
        5600
      ],
      "id": "58acaf88-d5de-4e47-b49e-ec5fa69be1c2",
      "name": "Wait_2",
      "webhookId": "89bc7929-41c5-4d2c-b45f-eecfff91d488"
    },
    {
      "parameters": {
        "name": "=S{{ $('Loop Over Items4').item.json.SEGMENT }}_{{ $('Loop Over Items4').item.json['TOTAL SEGMENTS'] }}_{{ $('Loop Over Items4').item.json['VIDEO TITLE'] }}_{{ $('Loop Over Items4').item.json.CODE.substring(0, 6) }}.mp4",
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": "My Drive"
        },
        "folderId": {
          "__rl": true,
          "value": "={{ $('Global Constants8').first().json.constants.RenderedVideoFolderID }}",
          "mode": "id"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        3760,
        5824
      ],
      "id": "54394d6d-3e2b-4278-8e68-cf8f4c4c0c41",
      "name": "Upload file4",
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "YW5uoCGpLGXuL18x",
          "name": "Google Drive (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants8').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants8').first().json.constants.Sheet1 }}",
          "mode": "name"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "row_number": "={{ $('Loop Over Items4').item.json.row_number }}",
            "STATUS": "={{ $('Global Constants8').first().json.constants.Status4 }}",
            "VIDEO DRIVE LINK": "={{ $json.webContentLink }}"
          },
          "matchingColumns": [
            "row_number"
          ],
          "schema": [
            {
              "id": "STATUS",
              "displayName": "STATUS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "CODE",
              "displayName": "CODE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "SEGMENT",
              "displayName": "SEGMENT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TOTAL SEGMENTS",
              "displayName": "TOTAL SEGMENTS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO TITLE",
              "displayName": "VIDEO TITLE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO DESCRIPTION",
              "displayName": "VIDEO DESCRIPTION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "NARRATION",
              "displayName": "NARRATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "BREAKPOINT REASON",
              "displayName": "BREAKPOINT REASON",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TTS OUTPUT (URL)",
              "displayName": "TTS OUTPUT (URL)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TTS OUTPUT (ID)",
              "displayName": "TTS OUTPUT (ID)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LAYOUT",
              "displayName": "LAYOUT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(1)",
              "displayName": "var(1)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(2)",
              "displayName": "var(2)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(3)",
              "displayName": "var(3)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(4)",
              "displayName": "var(4)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(5)",
              "displayName": "var(5)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(6)",
              "displayName": "var(6)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(7)",
              "displayName": "var(7)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(8)",
              "displayName": "var(8)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(9)",
              "displayName": "var(9)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(10)",
              "displayName": "var(10)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO URL",
              "displayName": "VIDEO URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO DRIVE LINK",
              "displayName": "VIDEO DRIVE LINK",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        4000,
        5824
      ],
      "id": "ad33d67b-812f-40c7-b113-13640b55dc19",
      "name": "Update row in sheet20",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://queue.fal.run/fal-ai/kling-video/ai-avatar/v2/standard",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Content-Type",
              "value": "application/json"
            }
          ]
        },
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "image_url",
              "value": "=https://drive.google.com/uc?id={{ $('Get row(s) in sheet14').item.json.file_id }}&export=download"
            },
            {
              "name": "audio_url",
              "value": "={{ $('Loop Over Items4').item.json['TTS OUTPUT (URL)'] }}"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.3,
      "position": [
        3344,
        5008
      ],
      "id": "3fae30b8-ef0a-4455-945d-393575982c33",
      "name": "HTTP Request46",
      "executeOnce": true,
      "alwaysOutputData": false,
      "credentials": {
        "httpHeaderAuth": {
          "id": "A7PTyxBdOP1MIwpj",
          "name": "Fal.ai API Requests"
        }
      }
    },
    {
      "parameters": {
        "url": "=https://queue.fal.run/fal-ai/kling-video/requests/{{ $('HTTP Request46').item.json.request_id }}",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.3,
      "position": [
        3856,
        5008
      ],
      "id": "e0796adf-e2a0-4267-aba3-80c742f28b38",
      "name": "HTTP Request47",
      "alwaysOutputData": false,
      "credentials": {
        "httpHeaderAuth": {
          "id": "A7PTyxBdOP1MIwpj",
          "name": "Fal.ai API Requests"
        }
      },
      "onError": "continueErrorOutput"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 3
          },
          "conditions": [
            {
              "id": "3f30573f-e58a-4303-917a-0fab8f8eec64",
              "leftValue": "={{ $runIndex }}",
              "rightValue": 120,
              "operator": {
                "type": "number",
                "operation": "lt"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [
        3856,
        5168
      ],
      "id": "48c37dd2-8cc3-4e83-bb2f-858feee6528d",
      "name": "If_3"
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants8').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants8').first().json.constants.Sheet1 }}",
          "mode": "name"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "row_number": "={{ $('Loop Over Items4').item.json.row_number }}",
            "STATUS": "ERROR"
          },
          "matchingColumns": [
            "row_number"
          ],
          "schema": [
            {
              "id": "STATUS",
              "displayName": "STATUS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "CODE",
              "displayName": "CODE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "SEGMENT",
              "displayName": "SEGMENT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TOTAL SEGMENTS",
              "displayName": "TOTAL SEGMENTS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO TITLE",
              "displayName": "VIDEO TITLE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO DESCRIPTION",
              "displayName": "VIDEO DESCRIPTION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "NARRATION",
              "displayName": "NARRATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "BREAKPOINT REASON",
              "displayName": "BREAKPOINT REASON",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TTS OUTPUT (URL)",
              "displayName": "TTS OUTPUT (URL)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TTS OUTPUT (ID)",
              "displayName": "TTS OUTPUT (ID)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LAYOUT",
              "displayName": "LAYOUT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(1)",
              "displayName": "var(1)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(2)",
              "displayName": "var(2)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(3)",
              "displayName": "var(3)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(4)",
              "displayName": "var(4)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(5)",
              "displayName": "var(5)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(6)",
              "displayName": "var(6)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(7)",
              "displayName": "var(7)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(8)",
              "displayName": "var(8)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(9)",
              "displayName": "var(9)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(10)",
              "displayName": "var(10)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO URL",
              "displayName": "VIDEO URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO DRIVE LINK",
              "displayName": "VIDEO DRIVE LINK",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        6528,
        5616
      ],
      "id": "de2be6eb-097a-4cc9-90be-51044b0359bb",
      "name": "Update row in sheet23",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "url": "={{ $json.video.url }}",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.3,
      "position": [
        4192,
        4992
      ],
      "id": "e7578c6e-c937-4eda-b6a9-e8f6e7343f71",
      "name": "HTTP Request51",
      "credentials": {
        "httpHeaderAuth": {
          "id": "A7PTyxBdOP1MIwpj",
          "name": "Fal.ai API Requests"
        }
      }
    },
    {
      "parameters": {
        "amount": 20
      },
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [
        3856,
        5168
      ],
      "id": "e42c9349-d168-41e9-afb0-1ebd3e96e992",
      "name": "Wait_3",
      "webhookId": "545ca288-5c55-4c07-94a3-eff4850f5749"
    },
    {
      "parameters": {
        "name": "=S{{ $('Loop Over Items4').item.json.SEGMENT }}_{{ $('Loop Over Items4').item.json['TOTAL SEGMENTS'] }}_{{ $('Loop Over Items4').item.json['VIDEO TITLE'] }}_{{ $('Loop Over Items4').item.json.CODE.substring(0, 6) }}.mp4",
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": "My Drive"
        },
        "folderId": {
          "__rl": true,
          "value": "={{ $('Global Constants8').first().json.constants.RenderedVideoFolderID }}",
          "mode": "id"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        4400,
        4992
      ],
      "id": "5559cff8-1f6f-42e5-9ac0-463c8f11ecdd",
      "name": "Upload file6",
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "YW5uoCGpLGXuL18x",
          "name": "Google Drive (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants8').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants8').first().json.constants.Sheet1 }}",
          "mode": "name"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "row_number": "={{ $('Loop Over Items4').item.json.row_number }}",
            "STATUS": "={{ $('Global Constants8').first().json.constants.Status4 }}",
            "var(10)": "={{ $('Upload file6').item.json.webContentLink }}"
          },
          "matchingColumns": [
            "row_number"
          ],
          "schema": [
            {
              "id": "STATUS",
              "displayName": "STATUS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "CODE",
              "displayName": "CODE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "SEGMENT",
              "displayName": "SEGMENT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TOTAL SEGMENTS",
              "displayName": "TOTAL SEGMENTS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO TITLE",
              "displayName": "VIDEO TITLE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO DESCRIPTION",
              "displayName": "VIDEO DESCRIPTION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "NARRATION",
              "displayName": "NARRATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "BREAKPOINT REASON",
              "displayName": "BREAKPOINT REASON",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TTS OUTPUT (URL)",
              "displayName": "TTS OUTPUT (URL)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TTS OUTPUT (ID)",
              "displayName": "TTS OUTPUT (ID)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LAYOUT",
              "displayName": "LAYOUT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(1)",
              "displayName": "var(1)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(2)",
              "displayName": "var(2)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(3)",
              "displayName": "var(3)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(4)",
              "displayName": "var(4)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(5)",
              "displayName": "var(5)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(6)",
              "displayName": "var(6)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(7)",
              "displayName": "var(7)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(8)",
              "displayName": "var(8)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(9)",
              "displayName": "var(9)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(10)",
              "displayName": "var(10)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "VIDEO URL",
              "displayName": "VIDEO URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO DRIVE LINK",
              "displayName": "VIDEO DRIVE LINK",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        4912,
        5056
      ],
      "id": "66e8d0a6-cbb2-420a-a30e-0ea1cb173e02",
      "name": "Update row in sheet24",
      "executeOnce": true,
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "operation": "share",
        "fileId": {
          "__rl": true,
          "value": "={{ $json.id }}",
          "mode": "id"
        },
        "permissionsUi": {
          "permissionsValues": {
            "role": "writer",
            "type": "anyone",
            "allowFileDiscovery": true
          }
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        4640,
        4992
      ],
      "id": "d0a008e8-da96-4249-b2df-f781470c3c41",
      "name": "Share file1",
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "YW5uoCGpLGXuL18x",
          "name": "Google Drive (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.creatomate.com/v2/renders",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {}
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n  \"template_id\": \"5b1403c4-4ee4-495c-9213-988e99af0220\",\n  \"modifications\": {\n    \"Video-6T8.source\": \"{{ $('Upload file6').item.json.webContentLink }}\"\n  }\n}",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        5456,
        4944
      ],
      "id": "84c1a2ed-16fa-476d-818e-c289fb1c5c06",
      "name": "HTTP Request52",
      "retryOnFail": true,
      "credentials": {
        "httpHeaderAuth": {
          "id": "VOfIR0v33YsFBe5U",
          "name": "Creatomate Authentication"
        }
      }
    },
    {
      "parameters": {
        "rules": {
          "values": [
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 3
                },
                "conditions": [
                  {
                    "leftValue": "={{ $('Loop Over Items4').item.json.LAYOUT }}",
                    "rightValue": "Layout_001",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    },
                    "id": "09605f57-67e5-41be-b719-dc70537ee380"
                  }
                ],
                "combinator": "and"
              }
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 3
                },
                "conditions": [
                  {
                    "id": "ebb26fbb-691e-4bf7-ae8e-83905c9d9157",
                    "leftValue": "={{ $('Loop Over Items4').item.json.LAYOUT }}",
                    "rightValue": "Layout_002",
                    "operator": {
                      "type": "string",
                      "operation": "equals",
                      "name": "filter.operator.equals"
                    }
                  }
                ],
                "combinator": "and"
              }
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.switch",
      "typeVersion": 3.4,
      "position": [
        5184,
        5056
      ],
      "id": "890ee127-e9ea-4b00-9cd2-34446617dcd8",
      "name": "Switch2"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.creatomate.com/v2/renders",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {}
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n  \"template_id\": \"7fa02fed-dbb1-408b-a903-d7ad92bf762b\",\n  \"modifications\": {\n    \"Video-6T8.source\": \"{{ $('Upload file6').item.json.webContentLink }}\",\n    \"image_1.source\": \"{{ $('Loop Over Items4').item.json['image_1'] }}\",\n    \"image_2.source\": \"{{ $('Loop Over Items4').item.json['image_2'] }}\",\n    \"image_3.source\": \"{{ $('Loop Over Items4').item.json['image_3'] }}\",\n    \"image_4.source\": \"{{ $('Loop Over Items4').item.json['image_4'] }}\"\n  }\n}",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        5456,
        5184
      ],
      "id": "053521d3-345f-4084-beb5-313e57134dd9",
      "name": "HTTP Request53",
      "retryOnFail": true,
      "credentials": {
        "httpHeaderAuth": {
          "id": "VOfIR0v33YsFBe5U",
          "name": "Creatomate Authentication"
        }
      }
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants8').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants8').first().json.constants.Sheet1 }}",
          "mode": "name"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "row_number": "={{ $('Loop Over Items4').item.json.row_number }}",
            "STATUS": "=WORKING",
            "VIDEO URL": "={{ $json.url }}"
          },
          "matchingColumns": [
            "row_number"
          ],
          "schema": [
            {
              "id": "STATUS",
              "displayName": "STATUS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "CODE",
              "displayName": "CODE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "SEGMENT",
              "displayName": "SEGMENT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TOTAL SEGMENTS",
              "displayName": "TOTAL SEGMENTS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO TITLE",
              "displayName": "VIDEO TITLE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO DESCRIPTION",
              "displayName": "VIDEO DESCRIPTION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "NARRATION",
              "displayName": "NARRATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "BREAKPOINT REASON",
              "displayName": "BREAKPOINT REASON",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TTS OUTPUT (URL)",
              "displayName": "TTS OUTPUT (URL)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TTS OUTPUT (ID)",
              "displayName": "TTS OUTPUT (ID)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LAYOUT",
              "displayName": "LAYOUT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(1)",
              "displayName": "var(1)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(2)",
              "displayName": "var(2)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(3)",
              "displayName": "var(3)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(4)",
              "displayName": "var(4)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(5)",
              "displayName": "var(5)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(6)",
              "displayName": "var(6)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(7)",
              "displayName": "var(7)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(8)",
              "displayName": "var(8)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(9)",
              "displayName": "var(9)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(10)",
              "displayName": "var(10)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO URL",
              "displayName": "VIDEO URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "VIDEO DRIVE LINK",
              "displayName": "VIDEO DRIVE LINK",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        5728,
        5040
      ],
      "id": "9cfcbe9d-b55f-47fb-8b41-02359b30705f",
      "name": "Update row in sheet22",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "url": "={{ $json['VIDEO URL'] }}",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        6000,
        5040
      ],
      "id": "2bb43aca-2089-4367-a557-3e5c90923b57",
      "name": "HTTP Request60",
      "retryOnFail": true,
      "waitBetweenTries": 5000,
      "executeOnce": true,
      "onError": "continueErrorOutput"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 3
          },
          "conditions": [
            {
              "id": "3f30573f-e58a-4303-917a-0fab8f8eec64",
              "leftValue": "={{ $runIndex }}",
              "rightValue": 20,
              "operator": {
                "type": "number",
                "operation": "lt"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [
        6000,
        5200
      ],
      "id": "a35eb9c0-28bc-4371-8893-5a287043bc29",
      "name": "If_"
    },
    {
      "parameters": {
        "amount": 15
      },
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [
        6000,
        5200
      ],
      "id": "2f4b7d3c-967b-4b33-a2dd-6a353de2b433",
      "name": "Wait_",
      "webhookId": "fa97d082-34b6-4f44-8505-3c5e2477c8f2"
    },
    {
      "parameters": {
        "name": "=S{{ $('Loop Over Items4').item.json.SEGMENT }}_{{ $('Loop Over Items4').item.json['TOTAL SEGMENTS'] }}_{{ $('Loop Over Items4').item.json['VIDEO TITLE'] }}_{{ $('Loop Over Items4').item.json.CODE.substring(0, 6) }}.mp4",
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": "My Drive"
        },
        "folderId": {
          "__rl": true,
          "value": "={{ $('Global Constants8').first().json.constants.RenderedVideoFolderID }}",
          "mode": "id"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        6240,
        5024
      ],
      "id": "48a7bb58-46bc-40d0-9de0-207b049b87a2",
      "name": "Upload file7",
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "YW5uoCGpLGXuL18x",
          "name": "Google Drive (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants8').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants8').first().json.constants.Sheet1 }}",
          "mode": "name"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "row_number": "={{ $('Loop Over Items4').item.json.row_number }}",
            "STATUS": "={{ $('Global Constants8').first().json.constants.Status4 }}",
            "VIDEO DRIVE LINK": "={{ $json.webContentLink }}"
          },
          "matchingColumns": [
            "row_number"
          ],
          "schema": [
            {
              "id": "STATUS",
              "displayName": "STATUS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "CODE",
              "displayName": "CODE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "SEGMENT",
              "displayName": "SEGMENT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TOTAL SEGMENTS",
              "displayName": "TOTAL SEGMENTS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO TITLE",
              "displayName": "VIDEO TITLE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO DESCRIPTION",
              "displayName": "VIDEO DESCRIPTION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "NARRATION",
              "displayName": "NARRATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "BREAKPOINT REASON",
              "displayName": "BREAKPOINT REASON",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TTS OUTPUT (URL)",
              "displayName": "TTS OUTPUT (URL)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TTS OUTPUT (ID)",
              "displayName": "TTS OUTPUT (ID)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LAYOUT",
              "displayName": "LAYOUT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(1)",
              "displayName": "var(1)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(2)",
              "displayName": "var(2)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(3)",
              "displayName": "var(3)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(4)",
              "displayName": "var(4)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(5)",
              "displayName": "var(5)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(6)",
              "displayName": "var(6)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(7)",
              "displayName": "var(7)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(8)",
              "displayName": "var(8)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(9)",
              "displayName": "var(9)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(10)",
              "displayName": "var(10)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO URL",
              "displayName": "VIDEO URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO DRIVE LINK",
              "displayName": "VIDEO DRIVE LINK",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        6592,
        5920
      ],
      "id": "6541e82d-b133-48e5-a479-4fa80845bbbf",
      "name": "Update row in sheet25",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "value": "gpt-5.2-chat-latest",
          "mode": "list",
          "cachedResultName": "gpt-5.2-chat-latest"
        },
        "builtInTools": {},
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1.3,
      "position": [
        864,
        2736
      ],
      "id": "80074e3b-7831-474a-8ec4-e20f3c4afece",
      "name": "OpenAI Chat Model3",
      "credentials": {
        "openAiApi": {
          "id": "OjRKrQXB019XKwdP",
          "name": "OpenAi Account (Personal)"
        }
      }
    },
    {
      "parameters": {
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants5').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants5').first().json.constants.Sheet1 }}",
          "mode": "name"
        },
        "filtersUI": {
          "values": [
            {
              "lookupColumn": "STATUS",
              "lookupValue": "={{ $json.constants.Status1 }}"
            },
            {
              "lookupColumn": "STATUS",
              "lookupValue": "STOP"
            }
          ]
        },
        "combineFilters": "OR",
        "options": {
          "returnFirstMatch": true
        }
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        4464,
        1936
      ],
      "id": "96270b81-a7a3-4c47-89c0-62e7794c9ebb",
      "name": "Get row(s) in sheet6",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "jsCode": "const validTags = new Set([\n  // Emotions (49)\n  'happy', 'sad', 'angry', 'excited', 'calm', 'nervous', 'confident', 'surprised',\n  'satisfied', 'delighted', 'scared', 'worried', 'upset', 'frustrated', 'depressed',\n  'empathetic', 'embarrassed', 'disgusted', 'moved', 'proud', 'relaxed', 'grateful',\n  'curious', 'sarcastic', 'disdainful', 'unhappy', 'anxious', 'hysterical', 'indifferent',\n  'uncertain', 'doubtful', 'confused', 'disappointed', 'regretful', 'guilty', 'ashamed',\n  'jealous', 'envious', 'hopeful', 'optimistic', 'pessimistic', 'nostalgic', 'lonely',\n  'bored', 'contemptuous', 'sympathetic', 'compassionate', 'determined', 'resigned',\n  'friendly', 'narrator', 'mysterious', 'relieved', 'enthusiastic', 'encouraging', 'urgent',\n  'impatient', 'scornful', 'panicked', 'furious', 'reluctant', 'keen', 'disapproving',\n  'negative', 'denying', 'astonished', 'conciliative', 'comforting', 'sincere', 'sneering',\n  'hesitating', 'yielding', 'painful', 'awkward', 'amused',\n  \n  // Tone markers (5)\n  'in a hurry tone', 'shouting', 'screaming', 'whispering', 'soft tone',\n  \n  // Audio effects (10)\n  'laughing', 'chuckling', 'sobbing', 'crying loudly', 'sighing', 'groaning',\n  'panting', 'gasping', 'yawning', 'snoring',\n  \n  // Special effects (10)\n  'audience laughing', 'background laughter', 'crowd laughing', 'break', 'long-break',\n  'breath', 'laugh', 'cough', 'lip-smacking', 'sigh'\n]);\n\n// Intensity prefixes\nconst intensityPrefixes = ['slightly ', 'very ', 'extremely '];\n\nfunction isValidTag(tagContent) {\n  // Check direct match\n  if (validTags.has(tagContent)) return true;\n  \n  // Check with intensity modifiers\n  for (const prefix of intensityPrefixes) {\n    if (tagContent.startsWith(prefix)) {\n      const baseTag = tagContent.slice(prefix.length);\n      if (validTags.has(baseTag)) return true;\n    }\n  }\n  \n  return false;\n}\n\nconst output = [];\n\nfor (const item of $input.all()) {\n  let narration = item.json.NARRATION || '';\n  \n  // 1. Replace MPLY with Monopoly\n  narration = narration.replace(/MPLY/g, 'Monopoly');\n  \n  // 2. Find all tags and remove invalid ones\n  narration = narration.replace(/\\(([^)]+)\\)/g, (match, tagContent) => {\n    if (isValidTag(tagContent.toLowerCase())) {\n      return match; // Keep valid tag\n    } else {\n      return ''; // Remove invalid tag\n    }\n  });\n  \n  // 3. Clean up any double spaces left by removed tags\n  narration = narration.replace(/  +/g, ' ').trim();\n  \n  output.push({\n    json: {\n      ...item.json,\n      'NARRATION updated': narration\n    }\n  });\n}\n\nreturn output;"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        5312,
        2528
      ],
      "id": "69887d00-f0bb-4105-bfb4-124651a46c25",
      "name": "Code in JavaScript9"
    },
    {
      "parameters": {
        "content": "",
        "height": 752,
        "width": 1840,
        "color": 5
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        784,
        -976
      ],
      "typeVersion": 1,
      "id": "2f7533c8-d76d-4c1c-ad59-28a4ad88f8ec",
      "name": "Sticky Note33"
    },
    {
      "parameters": {
        "operation": "download",
        "fileId": {
          "__rl": true,
          "value": "={{ $json['VIDEO DRIVE LINK'].split('id=')[1].split('&export')[0] }}",
          "mode": "id"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        560,
        6704
      ],
      "id": "a7a1efcc-7489-4a50-9671-7fb417ea1fb5",
      "name": "Download file",
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "YW5uoCGpLGXuL18x",
          "name": "Google Drive (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "operation": "write",
        "fileName": "=/files/clip_{{ $json.CODE.substring(0, 8) }}_{{ $json.SEGMENT }}_{{ $json['TOTAL SEGMENTS'] }}.mp4",
        "options": {}
      },
      "type": "n8n-nodes-base.readWriteFile",
      "typeVersion": 1.1,
      "position": [
        800,
        6704
      ],
      "id": "239433e6-835d-4757-9a9b-f7c4b0154889",
      "name": "Read/Write Files from Disk1"
    },
    {
      "parameters": {
        "executeOnce": false,
        "command": "={{ $json.ffprobeCommand }}"
      },
      "type": "n8n-nodes-base.executeCommand",
      "typeVersion": 1,
      "position": [
        1680,
        6912
      ],
      "id": "3370fd2c-cdc3-429a-90b7-1847c3467b29",
      "name": "Execute Command1"
    },
    {
      "parameters": {
        "jsCode": "const items = $input.all();\n\nreturn items.map(item => {\n  const code = item.json.CODE.substring(0, 8);\n  const segment = item.json.SEGMENT;\n  const totalSegments = item.json['TOTAL SEGMENTS'];\n  \n  const filename = `clip_${code}_${segment}_${totalSegments}.mp4`;\n  const filepath = `/files/${filename}`;\n  const ffprobeCommand = `ffprobe -v error -show_entries format=duration -of csv=p=0 \"${filepath}\"`;\n  \n  return {\n    json: {\n      ...item.json,\n      filename: filename,\n      filepath: filepath,\n      ffprobeCommand: ffprobeCommand\n    }\n  };\n});"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        1408,
        6736
      ],
      "id": "f6a9daa9-6e88-4bb3-aa96-53ac1d80c091",
      "name": "Code in JavaScript13",
      "executeOnce": false
    },
    {
      "parameters": {
        "mode": "combine",
        "combineBy": "combineByPosition",
        "options": {}
      },
      "type": "n8n-nodes-base.merge",
      "typeVersion": 3.2,
      "position": [
        1984,
        6896
      ],
      "id": "9e4e18d5-d67a-4df7-b8bf-a27346be231b",
      "name": "Merge2"
    },
    {
      "parameters": {
        "jsCode": "const items = $input.all();\n\n// Attach duration to each clip\nconst clips = items.map(item => {\n  const duration = parseFloat(item.json.stdout.trim());\n  \n  return {\n    url: item.json['VIDEO DRIVE LINK'],\n    filepath: item.json.filepath,\n    index: item.json.SEGMENT - 1,\n    segment: item.json.SEGMENT,\n    totalSegments: item.json['TOTAL SEGMENTS'],\n    duration: duration,\n    code: item.json.CODE.substring(0, 8),\n    videoTitle: item.json['VIDEO TITLE']\n  };\n});\n\nreturn clips.map(clip => ({ json: clip }));"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        2176,
        6896
      ],
      "id": "00db7430-848c-4e1a-a24b-7b0a2fca4bc0",
      "name": "Code in JavaScript14",
      "executeOnce": false
    },
    {
      "parameters": {
        "jsCode": "const items = $input.all();\n\n// Only output on the first run (item 0), skip others\nif (items[0].json.index !== 0) {\n  return [];\n}\n\n// Get outro ID from Global Constants\nconst outroId = $('Global Constants9').first().json.constants.OutroClip_id;\n\nconst clips = items.map(item => item.json);\n\n// Add outro\nclips.push({\n  url: `https://drive.google.com/uc?id=${outroId}&export=download`,\n  filepath: `/files/outro_${clips[0].code}.mp4`,\n  index: clips.length,\n  segment: clips.length + 1,\n  totalSegments: clips[0].totalSegments,\n  duration: 8,\n  code: clips[0].code,\n  videoTitle: clips[0].videoTitle\n});\n\n// Sort by index\nclips.sort((a, b) => a.index - b.index);\n\nreturn [{\n  json: {\n    clips: clips,\n    videoTitle: clips[0].videoTitle,\n    code: clips[0].code,\n    clipCount: clips.length,\n    transitionCount: clips.length - 1\n  }\n}];"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        2384,
        6896
      ],
      "id": "6ba8b6cf-eb31-4838-80e5-7d97fd2a8a21",
      "name": "Code in JavaScript15",
      "executeOnce": false
    },
    {
      "parameters": {
        "jsCode": "// CONFIGURATION\nconst CONFIG = {\n  musicVolume: 0.13,\n  musicFadeIn: 7,\n  musicFadeOut: 7,\n  outputDir: \"/files/\",\n  \n  // Options: 'diagbl_diagbr', 'fadewhite_circlecrop', 'fadewhite_pixelize'\n  transitionStyle: \"fadewhite_circlecrop\"\n};\n\nconst inputData = $input.first().json;\nconst clips = inputData.clips;\nconst code = inputData.code;\nconst safeTitle = inputData.videoTitle.replace(/[^a-zA-Z0-9\\s]/g, '').replace(/\\s+/g, '_');\n\n// Music path (already downloaded earlier in workflow)\nconst musicPath = `/files/music_${code}.mp3`;\n\n// Get transition config\nfunction getTransitionConfig(style, count) {\n  const configs = {\n    'diagbl_diagbr': {\n      transitions: Array.from({ length: count }, (_, i) => i % 2 === 0 ? 'diagbl' : 'diagbr'),\n      durations: Array(count).fill(0.5)\n    },\n    'fadewhite_circlecrop': {\n      transitions: Array.from({ length: count }, (_, i) => {\n        const mid = Math.floor(count / 2);\n        return i === mid ? 'circlecrop' : 'fadewhite';\n      }),\n      durations: Array.from({ length: count }, (_, i) => {\n        const mid = Math.floor(count / 2);\n        return i === mid ? 0.5 : 1;\n      })\n    },\n    'fadewhite_pixelize': {\n      transitions: Array.from({ length: count }, (_, i) => {\n        const mid = Math.floor(count / 2);\n        return i === mid ? 'pixelize' : 'fadewhite';\n      }),\n      durations: Array(count).fill(1)\n    }\n  };\n  return configs[style] || configs['fadewhite_circlecrop'];\n}\n\n// Calculate total duration\nfunction getTotalDuration(clips, transitionDurations) {\n  const clipTotal = clips.reduce((sum, c) => sum + c.duration, 0);\n  const transitionTotal = transitionDurations.reduce((sum, d) => sum + d, 0);\n  return clipTotal - transitionTotal;\n}\n\n// Build ffmpeg command\nfunction buildCommand(clips, transitions, durations, includeMusic, outputPath, musicPath) {\n  const n = clips.length;\n  \n  // Use local filepaths for inputs\n  let inputs = clips.map(c => `-i \"${c.filepath}\"`).join(' ');\n  if (includeMusic) {\n    inputs += ` -i \"${musicPath}\"`;\n  }\n  \n  // Calculate offsets for xfade\n  const offsets = [];\n  let cumDuration = 0;\n  let cumTransition = 0;\n  \n  for (let i = 0; i < n - 1; i++) {\n    cumDuration += clips[i].duration;\n    const offset = cumDuration - cumTransition - durations[i];\n    offsets.push(Math.max(0, offset));\n    cumTransition += durations[i];\n  }\n  \n  // Normalize all videos to 30fps first\n  const fpsFilters = [];\n  for (let i = 0; i < n; i++) {\n    fpsFilters.push(`[${i}:v]fps=30,format=yuv420p[v${i}n]`);\n  }\n  \n  // Video filter chain (using normalized inputs)\n  const videoFilters = [];\n  let vLabel = 'v0n';\n  \n  for (let i = 0; i < n - 1; i++) {\n    const nextV = `v${i + 1}n`;\n    const outV = i === n - 2 ? 'outv' : `v${i + 1}`;\n    videoFilters.push(\n      `[${vLabel}][${nextV}]xfade=transition=${transitions[i]}:duration=${durations[i]}:offset=${offsets[i].toFixed(3)}[${outV}]`\n    );\n    vLabel = outV;\n  }\n  \n  // Audio filter chain\n  const audioFilters = [];\n  let aLabel = '0:a';\n  \n  for (let i = 0; i < n - 1; i++) {\n    const nextA = `${i + 1}:a`;\n    const outA = i === n - 2 ? 'outa' : `a${i + 1}`;\n    audioFilters.push(\n      `[${aLabel}][${nextA}]acrossfade=d=${durations[i]}[${outA}]`\n    );\n    aLabel = outA;\n  }\n  \n  // Music mixing\n  let finalAudio = 'outa';\n  if (includeMusic) {\n    const totalDur = getTotalDuration(clips, durations);\n    const fadeOutStart = Math.max(0, totalDur - CONFIG.musicFadeOut);\n    const musicIdx = n;\n    \n    audioFilters.push(\n      `[${musicIdx}:a]volume=${CONFIG.musicVolume},afade=t=in:st=0:d=${CONFIG.musicFadeIn},afade=t=out:st=${fadeOutStart.toFixed(2)}:d=${CONFIG.musicFadeOut}[music]`\n    );\n    audioFilters.push(\n      `[outa][music]amix=inputs=2:duration=first:dropout_transition=0[final_audio]`\n    );\n    finalAudio = 'final_audio';\n  }\n  \n  // Combine filters: fps normalization first, then xfade, then audio\n  const filterComplex = [...fpsFilters, ...videoFilters, ...audioFilters].join(';');\n  \n  // Final command\n  return [\n    '-y',\n    inputs,\n    `-filter_complex \"${filterComplex}\"`,\n    '-map \"[outv]\"',\n    `-map \"[${finalAudio}]\"`,\n    '-c:v libx264 -preset fast -crf 23',\n    '-c:a aac -b:a 192k',\n    `\"${outputPath}\"`\n  ].join(' ');\n}\n\n// Get transition config\nconst transitionCount = clips.length - 1;\nconst { transitions, durations } = getTransitionConfig(CONFIG.transitionStyle, transitionCount);\n\n// Output paths\nconst pathNoMusic = `${CONFIG.outputDir}${safeTitle}.mp4`;\nconst pathWithMusic = `${CONFIG.outputDir}${safeTitle}_with_music.mp4`;\n\n// Build both commands\nconst cmdNoMusic = buildCommand(clips, transitions, durations, false, pathNoMusic, null);\nconst cmdWithMusic = buildCommand(clips, transitions, durations, true, pathWithMusic, musicPath);\n\nconst totalDuration = getTotalDuration(clips, durations);\n\nreturn [{\n  json: {\n    videoTitle: inputData.videoTitle,\n    safeTitle: safeTitle,\n    code: code,\n    clipCount: clips.length,\n    totalDuration: totalDuration.toFixed(2),\n    transitionStyle: CONFIG.transitionStyle,\n    transitions: transitions,\n    transitionDurations: durations,\n    musicPath: musicPath,\n    \n    ffmpeg_command_no_music: cmdNoMusic,\n    output_path_no_music: pathNoMusic,\n    \n    ffmpeg_command_with_music: cmdWithMusic,\n    output_path_with_music: pathWithMusic\n  }\n}];"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        2592,
        6896
      ],
      "id": "7d053a24-91e1-4bd3-8ad5-8c54fca86871",
      "name": "Code in JavaScript16",
      "executeOnce": true
    },
    {
      "parameters": {
        "command": "=ffmpeg {{ $json.ffmpeg_command_no_music }}"
      },
      "type": "n8n-nodes-base.executeCommand",
      "typeVersion": 1,
      "position": [
        2880,
        6832
      ],
      "id": "1d195e70-706a-4869-8d2e-39e4d47108e6",
      "name": "Execute Command4"
    },
    {
      "parameters": {
        "operation": "download",
        "fileId": {
          "__rl": true,
          "value": "={{ $('Global Constants9').item.json.constants.backgroundmusic_id }}",
          "mode": "id"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        560,
        6880
      ],
      "id": "977b2a70-1d86-42d2-903a-337b380508e3",
      "name": "Download file1",
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "YW5uoCGpLGXuL18x",
          "name": "Google Drive (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "operation": "write",
        "fileName": "=/files/music_{{ $json.CODE.substring(0, 8) }}.mp3",
        "options": {}
      },
      "type": "n8n-nodes-base.readWriteFile",
      "typeVersion": 1.1,
      "position": [
        800,
        6880
      ],
      "id": "32d6c768-9a2b-41a4-b266-5fcd8fb6bfba",
      "name": "Read/Write Files from Disk2"
    },
    {
      "parameters": {
        "mode": "chooseBranch",
        "numberInputs": 3
      },
      "type": "n8n-nodes-base.merge",
      "typeVersion": 3.2,
      "position": [
        1168,
        6720
      ],
      "id": "9e17d91d-54a3-4e57-82e5-a5f1f542a787",
      "name": "Merge4"
    },
    {
      "parameters": {
        "command": "=ffmpeg {{ $json.ffmpeg_command_with_music }}"
      },
      "type": "n8n-nodes-base.executeCommand",
      "typeVersion": 1,
      "position": [
        2880,
        6976
      ],
      "id": "daba4e6d-ba70-4d02-a4be-06124d61e8de",
      "name": "Execute Command5"
    },
    {
      "parameters": {
        "operation": "download",
        "fileId": {
          "__rl": true,
          "value": "={{ $('Global Constants9').item.json.constants.OutroClip_id }}",
          "mode": "id"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        560,
        7056
      ],
      "id": "734651ce-5430-4bab-9f8f-82a0c6502816",
      "name": "Download file2",
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "YW5uoCGpLGXuL18x",
          "name": "Google Drive (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "operation": "write",
        "fileName": "=/files/outro_{{ $json.CODE.substring(0, 8) }}.mp4",
        "options": {}
      },
      "type": "n8n-nodes-base.readWriteFile",
      "typeVersion": 1.1,
      "position": [
        800,
        7056
      ],
      "id": "6ec1502d-67e2-4af7-bcb2-7d836ae76e2e",
      "name": "Read/Write Files from Disk3"
    },
    {
      "parameters": {
        "resource": "video",
        "operation": "upload",
        "options": {}
      },
      "type": "n8n-nodes-base.youTube",
      "typeVersion": 1,
      "position": [
        3344,
        8128
      ],
      "id": "2d7aee3f-b8f7-434d-8263-8de7d566e5e5",
      "name": "Upload a video1",
      "credentials": {
        "youTubeOAuth2Api": {
          "id": "aWEjwkHPqJX0Y3sw",
          "name": "Monopoly Hunters YouTube Account"
        }
      }
    },
    {
      "parameters": {
        "fileSelector": "={{ $json.filepath_with_music }}",
        "options": {}
      },
      "type": "n8n-nodes-base.readWriteFile",
      "typeVersion": 1.1,
      "position": [
        3712,
        6816
      ],
      "id": "b79968f7-b7e5-4357-b23a-f06abed89b69",
      "name": "Read/Write Files from Disk4",
      "executeOnce": true
    },
    {
      "parameters": {
        "jsCode": "// Reference back to the FFmpeg command builder node\nconst builderOutput = $('Code in JavaScript16').first().json; // Update node name if different\n\nreturn [\n  {\n    json: {\n      filename_no_music: builderOutput.safeTitle + '.mp4',\n      filepath_no_music: builderOutput.output_path_no_music,\n      filename_with_music: builderOutput.safeTitle + '_with_music.mp4',\n      filepath_with_music: builderOutput.output_path_with_music,\n      videoTitle: builderOutput.videoTitle,\n      code: builderOutput.code\n    }\n  }\n];"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        3424,
        6896
      ],
      "id": "6dbc2eef-8953-4484-b1bb-501b87cc5c03",
      "name": "Code in JavaScript17",
      "executeOnce": true
    },
    {
      "parameters": {
        "fileSelector": "={{ $json.filepath_no_music }}",
        "options": {}
      },
      "type": "n8n-nodes-base.readWriteFile",
      "typeVersion": 1.1,
      "position": [
        3712,
        7008
      ],
      "id": "85ff703d-243e-43f3-8f1f-b553fe7907aa",
      "name": "Read/Write Files from Disk5",
      "executeOnce": true
    },
    {
      "parameters": {
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": "My Drive"
        },
        "folderId": {
          "__rl": true,
          "mode": "list",
          "value": "root",
          "cachedResultName": "/ (Root folder)"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        4096,
        6912
      ],
      "id": "e85711e6-1ccb-4c4e-bb9a-2dddc23b4897",
      "name": "Upload file3",
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "YW5uoCGpLGXuL18x",
          "name": "Google Drive (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "content": "",
        "height": 176,
        "width": 208,
        "color": 3
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        432,
        -688
      ],
      "typeVersion": 1,
      "id": "a94b30c0-76a3-4d66-9398-599de9428f8b",
      "name": "Sticky Note14"
    },
    {
      "parameters": {
        "content": "# 5",
        "height": 80,
        "width": 656,
        "color": 6
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -864,
        3536
      ],
      "typeVersion": 1,
      "id": "dd86ab16-20e2-4d88-ba94-512368941a17",
      "name": "Sticky Note42"
    },
    {
      "parameters": {
        "content": "# EMOTION TAG APPLICATION + SCRIPT SEGMENTATION\n\n## Extracts YouTue videos and recent news articles about a particular stock (selected on the Google Sheet) that's a monopoly and held by MPLY ETF.",
        "height": 288,
        "width": 656,
        "color": 3
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -864,
        2656
      ],
      "typeVersion": 1,
      "id": "4658bf47-bdf0-4708-b587-c6eb9ea9b0ea",
      "name": "Sticky Note43"
    },
    {
      "parameters": {
        "content": "# 3",
        "height": 80,
        "width": 656,
        "color": 6
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -864,
        2576
      ],
      "typeVersion": 1,
      "id": "3006f12c-589c-4f4b-a540-1a2c73492c99",
      "name": "Sticky Note44"
    },
    {
      "parameters": {
        "content": "# RSS NEWS READER\n\n## Extracts YouTue videos and recent news articles about a particular stock (selected on the Google Sheet) that's a monopoly and held by MPLY ETF.",
        "height": 288,
        "width": 656,
        "color": 3
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -864,
        1136
      ],
      "typeVersion": 1,
      "id": "37d0ccf8-2b5c-44d4-a665-5647423e8b22",
      "name": "Sticky Note45"
    },
    {
      "parameters": {
        "content": "# 1",
        "height": 80,
        "width": 656,
        "color": 6
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -864,
        1056
      ],
      "typeVersion": 1,
      "id": "01a6b46e-e7cb-48c8-b680-84ef5f451a73",
      "name": "Sticky Note46"
    },
    {
      "parameters": {
        "content": "",
        "height": 256,
        "width": 656,
        "color": 3
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -864,
        5520
      ],
      "typeVersion": 1,
      "id": "3857d29f-e2f6-4bcd-914b-a0f094191ba7",
      "name": "Sticky Note47"
    },
    {
      "parameters": {
        "content": "# 7",
        "height": 80,
        "width": 656,
        "color": 6
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -864,
        5440
      ],
      "typeVersion": 1,
      "id": "5aa626f5-2c18-4c77-81b4-bd7162f6cc0f",
      "name": "Sticky Note48"
    },
    {
      "parameters": {
        "content": "# 2",
        "height": 80,
        "width": 416,
        "color": 6
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        6384,
        816
      ],
      "typeVersion": 1,
      "id": "56676c8f-d7ad-4733-9bdc-8342751ec29f",
      "name": "Sticky Note15"
    },
    {
      "parameters": {
        "content": "",
        "height": 176,
        "width": 192,
        "color": 3
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3104,
        1168
      ],
      "typeVersion": 1,
      "id": "8b308462-d5b8-4d40-8098-5d1a010488e8",
      "name": "Sticky Note2"
    },
    {
      "parameters": {
        "content": "# TTS AUDIO GENERATION \n\n## Extracts YouTue videos and recent news articles about a particular stock (selected on the Google Sheet) that's a monopoly and held by MPLY ETF.",
        "height": 336,
        "width": 416,
        "color": 3
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        6416,
        2512
      ],
      "typeVersion": 1,
      "id": "bdb3da2f-3bcf-4771-94cf-c003a232ec53",
      "name": "Sticky Note16"
    },
    {
      "parameters": {
        "content": "# 4",
        "height": 80,
        "width": 416,
        "color": 6
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        6416,
        2432
      ],
      "typeVersion": 1,
      "id": "4d0c3e63-e609-4e91-84ad-836415a9413c",
      "name": "Sticky Note28"
    },
    {
      "parameters": {
        "content": "# Video Renderer via FFMPEG\n\n## Final assembly stage where segment clips are merged into full lesson videos. ffmpeg handles concatenation with re-encoding for consistent output quality. Rendered files pass through a staging directory for n8n compatibility with cloud upload. Automated cleanup removes local copies once Google Drive upload confirms success.",
        "height": 336,
        "width": 656,
        "color": 3
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -864,
        6592
      ],
      "typeVersion": 1,
      "id": "2a08d73e-7458-4cf7-8339-88d5f00a8bdb",
      "name": "Sticky Note50"
    },
    {
      "parameters": {
        "content": "# 8",
        "height": 80,
        "width": 656,
        "color": 6
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -864,
        6512
      ],
      "typeVersion": 1,
      "id": "15282504-4cc1-40ab-948f-3317ad59acc8",
      "name": "Sticky Note51"
    },
    {
      "parameters": {
        "content": "",
        "height": 176,
        "width": 192,
        "color": 3
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2112,
        6416
      ],
      "typeVersion": 1,
      "id": "cef53cfb-e390-4553-9a0a-3da684ce977a",
      "name": "Sticky Note41"
    },
    {
      "parameters": {},
      "type": "n8n-nodes-base.merge",
      "typeVersion": 3.2,
      "position": [
        3136,
        6896
      ],
      "id": "a9838083-419f-45f0-a515-482573dd4519",
      "name": "Merge3"
    },
    {
      "parameters": {
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants9').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants9').first().json.constants.Sheet2 }}",
          "mode": "name"
        },
        "filtersUI": {
          "values": [
            {
              "lookupColumn": "ID",
              "lookupValue": "={{ $('Get row(s) in sheet4').first().json.CODE }}"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        4704,
        6912
      ],
      "id": "33bda107-995d-4365-98ea-ac2ea1cda9fc",
      "name": "Get row(s) in sheet16",
      "executeOnce": true,
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "operation": "share",
        "fileId": {
          "__rl": true,
          "value": "={{ $('Aggregate').item.json.data[0].id }}",
          "mode": "id"
        },
        "permissionsUi": {
          "permissionsValues": {
            "role": "writer",
            "type": "anyone",
            "allowFileDiscovery": true
          }
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        3472,
        8080
      ],
      "id": "b08a0780-c0b6-492f-8a06-914fbb08c98e",
      "name": "Share file5",
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "YW5uoCGpLGXuL18x",
          "name": "Google Drive (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {},
      "type": "n8n-nodes-base.merge",
      "typeVersion": 3.2,
      "position": [
        3936,
        6912
      ],
      "id": "4ea55375-d63e-4840-b0b8-435a2ad6a132",
      "name": "Merge5"
    },
    {
      "parameters": {
        "operation": "append",
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants9').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "mode": "name",
          "value": "={{ $('Global Constants9').first().json.constants.Sheet7 }}"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "CODE": "={{ $('Get row(s) in sheet19').first().json.CODE.substring(0, 8) }}",
            "VIDEO TITLE": "={{ $('Get row(s) in sheet19').first().json['VIDEO TITLE'] }}",
            "VIDEO DESCRIPTION": "={{ $('Get row(s) in sheet19').first().json['VIDEO DESCRIPTION'] }}",
            "STATUS": "={{ $('Global Constants9').first().json.constants.Status2 }}",
            "VIDEO_DRIVE_LINK": "={{ $json.webContentLink }}",
            "VIDEO_DRIVE_ID": "={{ $json.id }}",
            "BG MUSIC": "={{ $json.name }}",
            "DURATION": "={{ $('Code in JavaScript16').first().json.totalDuration }}",
            "THUMBNAIL NEEDED": "==IF({{ $('Code in JavaScript16').first().json.totalDuration }}>=180, \"YES\", \"NO\")"
          },
          "matchingColumns": [],
          "schema": [
            {
              "id": "ID",
              "displayName": "ID",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "STATUS",
              "displayName": "STATUS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "CODE",
              "displayName": "CODE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "VIDEO TITLE",
              "displayName": "VIDEO TITLE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "BG MUSIC",
              "displayName": "BG MUSIC",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "VIDEO DESCRIPTION",
              "displayName": "VIDEO DESCRIPTION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "VIDEO_DRIVE_LINK",
              "displayName": "VIDEO_DRIVE_LINK",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "VIDEO_DRIVE_ID",
              "displayName": "VIDEO_DRIVE_ID",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "NARRATION",
              "displayName": "NARRATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "KEYWORDS",
              "displayName": "KEYWORDS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "THUMBNAIL NEEDED",
              "displayName": "THUMBNAIL NEEDED",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "THUMBNAIL BRIEF",
              "displayName": "THUMBNAIL BRIEF",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "THUMBNAIL",
              "displayName": "THUMBNAIL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "DURATION",
              "displayName": "DURATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "FEEDBACK",
              "displayName": "FEEDBACK",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        4304,
        6912
      ],
      "id": "0440b9ed-70fa-4b47-aa96-9dce430f6a88",
      "name": "Append row in sheet11",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "operation": "share",
        "fileId": {
          "__rl": true,
          "value": "={{ $json.VIDEO_DRIVE_ID }}",
          "mode": "id"
        },
        "permissionsUi": {
          "permissionsValues": {
            "role": "writer",
            "type": "anyone",
            "allowFileDiscovery": true
          }
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        4512,
        6912
      ],
      "id": "2400843d-ffa5-4c43-8918-611525cd60f3",
      "name": "Share file7",
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "YW5uoCGpLGXuL18x",
          "name": "Google Drive (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "=Here are the details:\n\nDraft Video Title: {{ $('Get row(s) in sheet16').item.json['VIDEO TITLE'] }}\n\nDraft Description: {{ $('Get row(s) in sheet16').item.json.DESCRIPTION }}\n\nKey Figures: {{ $('Get row(s) in sheet16').item.json['KEY FIGURES'] }}",
        "hasOutputParser": true,
        "needsFallback": true,
        "options": {
          "systemMessage": "You are a YouTube Metadata Optimization Agent. Your job is to transform draft video metadata into engaging, search-optimized titles, descriptions, and keywords that maximize discoverability and click-through rates.\n\n## Your Inputs\n\nYou will receive:\n1. A draft title for a YouTube video\n2. A draft description for the same video\n3. Key figures (people, companies, or entities) mentioned in the video\n\n## Your Process\n\n1. **Research Phase**: Use the Brave Video Search tool to research how similar videos on the same topic are titled and described. Search for:\n   - The main topic or subject matter\n   - The key figures mentioned\n   - Related trending terms in the niche\n\n2. **Analysis Phase**: Identify patterns in successful videos:\n   - What title structures get used? (questions, lists, hooks, etc.)\n   - What keywords appear frequently?\n   - How do top videos position their descriptions?\n\n3. **Optimization Phase**: Generate improved metadata following these guidelines:\n\n### Title Guidelines (max 70 characters)\n- Front-load the most important/searchable keywords\n- Use power words that drive curiosity or urgency\n- Include key figures' names if they have search volume\n- Avoid clickbait that doesn't deliver on the video's actual content\n- Consider formats: questions, lists, \"How to...\", revelations, contrasts\n\n### Description Guidelines (300-500 characters)\n- Open with a compelling hook in the first 150 characters (visible before \"Show more\")\n- Include primary keywords naturally\n- Mention key figures where relevant\n- Include a clear value proposition—what will viewers learn or experience?\n- End with a soft call-to-action or teaser\n\n### Keyword Guidelines (exactly 5 keywords)\n- Mix broad and specific keywords\n- Include key figure names if relevant\n- Use keywords with proven search volume based on your research\n- Prioritize relevance over volume\n- Include at least one long-tail keyword phrase\n\n## Important Constraints\n- Title must not exceed 70 characters\n- Description must be between 300-500 characters\n- You must provide exactly 5 keywords\n- All outputs must accurately represent the video content—no misleading metadata\n\n## Output Format\nReturn your optimized metadata as a structured JSON object following the provided schema."
        }
      },
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 3.1,
      "position": [
        5120,
        6912
      ],
      "id": "93487c96-c0d4-4e66-bdf9-7a325d5653f2",
      "name": "AI Agent6"
    },
    {
      "parameters": {
        "operation": "videos",
        "query": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('Query', ``, 'string') }}",
        "count": 10,
        "additionalParameters": {
          "country": "US",
          "search_lang": "en"
        }
      },
      "type": "@brave/n8n-nodes-brave-search.braveSearchTool",
      "typeVersion": 1,
      "position": [
        5312,
        7088
      ],
      "id": "84d90ba6-49a4-4feb-ada8-b13b9ddfbaa2",
      "name": "Brave Search2",
      "credentials": {
        "braveSearchApi": {
          "id": "4yKxSu1Rx4YYMObx",
          "name": "Brave Search Account (Personal)"
        }
      }
    },
    {
      "parameters": {
        "sessionIdType": "customKey",
        "sessionKey": "={{ $('Code in JavaScript3').item.json.randomString }}"
      },
      "type": "@n8n/n8n-nodes-langchain.memoryRedisChat",
      "typeVersion": 1.5,
      "position": [
        5216,
        7088
      ],
      "id": "08557c85-4483-4023-a3b1-690d1f26c2a9",
      "name": "Redis Chat Memory1",
      "credentials": {
        "redis": {
          "id": "4nD9S5LZCArxPB81",
          "name": "Redis (NO EXPIRATION)"
        }
      }
    },
    {
      "parameters": {
        "mode": "runOnceForEachItem",
        "jsCode": "let characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';\nlet result = '';\nlet length = 48; // Desired length of the random string\n\nfor (let i = 0; i < length; i++) {\n  result += characters.charAt(Math.floor(Math.random() * characters.length));\n}\n\nreturn {\n  json: {\n    ...item.json, // Preserve existing data from the current item\n    randomString: result\n  }\n};"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        4912,
        6912
      ],
      "id": "771b3246-ae7d-490a-b114-5ab12849e56d",
      "name": "Code in JavaScript3"
    },
    {
      "parameters": {
        "model": "mistral-large-latest",
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatMistralCloud",
      "typeVersion": 1,
      "position": [
        5120,
        7088
      ],
      "id": "4c616d1b-207d-4b1e-ac45-187b6f58ad49",
      "name": "Mistral Cloud Chat Model2",
      "credentials": {
        "mistralCloudApi": {
          "id": "feG0p0tu1GwMlA1h",
          "name": "Mistral Cloud Account (Personal)"
        }
      }
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "claude-sonnet-4-5-20250929",
          "cachedResultName": "Claude Sonnet 4.5"
        },
        "options": {
          "thinking": true
        }
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "typeVersion": 1.3,
      "position": [
        5168,
        6736
      ],
      "id": "8789281d-804b-4562-81b2-d6cdee1ea07b",
      "name": "Anthropic Chat Model5",
      "credentials": {
        "anthropicApi": {
          "id": "5pMiFSPZL2r44q7L",
          "name": "Anthropic Account (Personal)"
        }
      }
    },
    {
      "parameters": {
        "schemaType": "manual",
        "inputSchema": "{\n  \"name\": \"youtube_metadata_output\",\n  \"strict\": true,\n  \"schema\": {\n    \"type\": \"object\",\n    \"required\": [\n      \"optimized_title\",\n      \"optimized_description\",\n      \"keywords\",\n      \"reasoning\"\n    ],\n    \"additionalProperties\": false,\n    \"properties\": {\n      \"optimized_title\": {\n        \"type\": \"string\",\n        \"description\": \"The improved, engaging YouTube title. Must not exceed 70 characters.\",\n        \"maxLength\": 70\n      },\n      \"optimized_description\": {\n        \"type\": \"string\",\n        \"description\": \"The improved YouTube description. Must be between 300-500 characters.\",\n        \"minLength\": 300,\n        \"maxLength\": 500\n      },\n      \"keywords\": {\n        \"type\": \"array\",\n        \"description\": \"Exactly 5 relevant keywords for the video.\",\n        \"items\": {\n          \"type\": \"string\"\n        },\n        \"minItems\": 5,\n        \"maxItems\": 5\n      },\n      \"reasoning\": {\n        \"type\": \"object\",\n        \"description\": \"Explanation of the optimization choices made.\",\n        \"required\": [\n          \"title_rationale\",\n          \"description_rationale\",\n          \"keyword_rationale\",\n          \"search_insights\"\n        ],\n        \"additionalProperties\": false,\n        \"properties\": {\n          \"title_rationale\": {\n            \"type\": \"string\",\n            \"description\": \"Why this title structure and wording was chosen.\"\n          },\n          \"description_rationale\": {\n            \"type\": \"string\",\n            \"description\": \"Why this description approach was chosen.\"\n          },\n          \"keyword_rationale\": {\n            \"type\": \"string\",\n            \"description\": \"Why these specific keywords were selected.\"\n          },\n          \"search_insights\": {\n            \"type\": \"string\",\n            \"description\": \"Key findings from the Brave Video Search research.\"\n          }\n        }\n      }\n    }\n  }\n}",
        "autoFix": true
      },
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "typeVersion": 1.3,
      "position": [
        5216,
        6736
      ],
      "id": "73723fa5-3951-47c2-a7ff-dd1a614647e7",
      "name": "Structured Output Parser6"
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini"
        },
        "builtInTools": {},
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1.3,
      "position": [
        5408,
        6736
      ],
      "id": "5ec68b74-fc89-4aa6-bc23-0e085977c4f4",
      "name": "OpenAI Chat Model7",
      "credentials": {
        "openAiApi": {
          "id": "OjRKrQXB019XKwdP",
          "name": "OpenAi Account (Personal)"
        }
      }
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants9').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants9').first().json.constants.Sheet7 }}",
          "mode": "name"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "STATUS": "READY",
            "VIDEO TITLE": "={{ $('AI Agent6').first().json.output.optimized_metadata.title }}",
            "VIDEO DESCRIPTION": "={{ $('AI Agent6').first().json.output.optimized_metadata.description }}",
            "KEYWORDS": "={{ $('AI Agent6').first().json.output.optimized_metadata.keywords }}",
            "NARRATION": "={{ $('Get row(s) in sheet16').first().json['VIDEO NARRATION'] }}",
            "row_number": "={{ $json.row_number }}"
          },
          "matchingColumns": [
            "row_number"
          ],
          "schema": [
            {
              "id": "ID",
              "displayName": "ID",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "STATUS",
              "displayName": "STATUS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "CODE",
              "displayName": "CODE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO TITLE",
              "displayName": "VIDEO TITLE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "BG MUSIC",
              "displayName": "BG MUSIC",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO DESCRIPTION",
              "displayName": "VIDEO DESCRIPTION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "VIDEO_DRIVE_LINK",
              "displayName": "VIDEO_DRIVE_LINK",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO_DRIVE_ID",
              "displayName": "VIDEO_DRIVE_ID",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "NARRATION",
              "displayName": "NARRATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "KEYWORDS",
              "displayName": "KEYWORDS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "THUMBNAIL NEEDED",
              "displayName": "THUMBNAIL NEEDED",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "THUMBNAIL BRIEF",
              "displayName": "THUMBNAIL BRIEF",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "THUMBNAIL",
              "displayName": "THUMBNAIL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "DURATION",
              "displayName": "DURATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "FEEDBACK",
              "displayName": "FEEDBACK",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        6064,
        6816
      ],
      "id": "a44bcb62-0acf-4e5d-a743-236683eaceac",
      "name": "Update row in sheet6",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants9').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants9').first().json.constants.Sheet1 }}",
          "mode": "name"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "CODE": "=FINI_{{ $('Get row(s) in sheet16').first().json.ID }}",
            "STATUS": "FINI",
            "row_number": "={{ $json.row_number }}"
          },
          "matchingColumns": [
            "row_number"
          ],
          "schema": [
            {
              "id": "STATUS",
              "displayName": "STATUS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "CODE",
              "displayName": "CODE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "SEGMENT",
              "displayName": "SEGMENT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TOTAL SEGMENTS",
              "displayName": "TOTAL SEGMENTS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO TITLE",
              "displayName": "VIDEO TITLE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO DESCRIPTION",
              "displayName": "VIDEO DESCRIPTION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "NARRATION",
              "displayName": "NARRATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "BREAKPOINT REASON",
              "displayName": "BREAKPOINT REASON",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TTS OUTPUT (URL)",
              "displayName": "TTS OUTPUT (URL)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TTS OUTPUT (ID)",
              "displayName": "TTS OUTPUT (ID)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LAYOUT",
              "displayName": "LAYOUT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(1)",
              "displayName": "var(1)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(2)",
              "displayName": "var(2)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(3)",
              "displayName": "var(3)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(4)",
              "displayName": "var(4)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(5)",
              "displayName": "var(5)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(6)",
              "displayName": "var(6)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(7)",
              "displayName": "var(7)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(8)",
              "displayName": "var(8)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(9)",
              "displayName": "var(9)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(10)",
              "displayName": "var(10)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO URL",
              "displayName": "VIDEO URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO DRIVE LINK",
              "displayName": "VIDEO DRIVE LINK",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        6064,
        7008
      ],
      "id": "92d534a6-cd7f-4b55-82f8-5ba3fd11b0c8",
      "name": "Update row in sheet2",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants9').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "mode": "name",
          "value": "={{ $('Global Constants9').first().json.constants.Sheet7 }}"
        },
        "filtersUI": {
          "values": [
            {
              "lookupColumn": "CODE",
              "lookupValue": "={{ $('Get row(s) in sheet16').item.json.ID.substring(0, 8) }}"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        5520,
        6800
      ],
      "id": "0e533b6b-78b2-4245-a878-3c3cdd38f0a5",
      "name": "Get row(s) in sheet20",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants9').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants9').first().json.constants.Sheet1 }}",
          "mode": "name"
        },
        "filtersUI": {
          "values": [
            {
              "lookupColumn": "CODE",
              "lookupValue": "={{ $('Get row(s) in sheet16').item.json.ID }}"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        5536,
        6992
      ],
      "id": "9ce48323-2a8b-43ce-8e8e-98a82e3b81fb",
      "name": "Get row(s) in sheet23",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "options": {}
      },
      "type": "n8n-nodes-base.splitInBatches",
      "typeVersion": 3,
      "position": [
        5760,
        6992
      ],
      "id": "9e969da7-6b2f-43b9-8b50-ae79762fd4ff",
      "name": "Loop Over Items5"
    },
    {
      "parameters": {
        "options": {}
      },
      "type": "n8n-nodes-base.splitInBatches",
      "typeVersion": 3,
      "position": [
        5776,
        6800
      ],
      "id": "5634860a-09dc-4d8f-b537-ca2a9c956b69",
      "name": "Loop Over Items6"
    },
    {
      "parameters": {
        "mode": "chooseBranch"
      },
      "type": "n8n-nodes-base.merge",
      "typeVersion": 3.2,
      "position": [
        6192,
        6592
      ],
      "id": "31962710-40de-46e6-8909-4b9c3920f84e",
      "name": "Merge6"
    },
    {
      "parameters": {
        "path": "c3664274-1181-4ed6-a4a9-2e23350c6604",
        "options": {}
      },
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2.1,
      "position": [
        2160,
        8160
      ],
      "id": "078b2989-7668-44f0-bec5-d4baba3d97e9",
      "name": "Webhook6",
      "webhookId": "c3664274-1181-4ed6-a4a9-2e23350c6604"
    },
    {
      "parameters": {
        "url": "=http://localhost:5678/webhook/c4f0772f-81bf-412c-86d6-1e85f1cf122c",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        6560,
        6592
      ],
      "id": "7a038ccd-9026-4c75-b972-046d476dcb5b",
      "name": "HTTP Request31",
      "executeOnce": true
    },
    {
      "parameters": {
        "content": "",
        "height": 368,
        "width": 1536,
        "color": 3
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2256,
        8000
      ],
      "typeVersion": 1,
      "id": "1c4d2a46-78f6-4528-a68b-fa2089c58957",
      "name": "Sticky Note3"
    },
    {
      "parameters": {
        "content": "",
        "height": 176,
        "width": 192,
        "color": 3
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        6512,
        6560
      ],
      "typeVersion": 1,
      "id": "f78c7fa8-8dcc-487f-a1f9-0426d48cd6fe",
      "name": "Sticky Note52"
    },
    {
      "parameters": {
        "documentId": {
          "__rl": true,
          "value": "={{ $json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $json.constants.Sheet7 }}",
          "mode": "name"
        },
        "filtersUI": {
          "values": [
            {
              "lookupColumn": "STATUS",
              "lookupValue": "READY"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        2640,
        8112
      ],
      "id": "727845e2-eca1-4ca3-a588-dc42ac6de451",
      "name": "Get row(s) in sheet24",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "daysInterval": 1000
            }
          ]
        }
      },
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        2080,
        8032
      ],
      "id": "762a54ac-f072-4b22-8476-26e847a13ac6",
      "name": "Schedule Trigger"
    },
    {
      "parameters": {},
      "type": "n8n-nodes-globals.globalConstants",
      "typeVersion": 1,
      "position": [
        2432,
        8112
      ],
      "id": "a708227d-5376-414d-a5c2-01c8085c7d80",
      "name": "Global Constants10",
      "credentials": {
        "globalConstantsApi": {
          "id": "tl6hxt14W8QyX1vV",
          "name": "AI YouTube Investing Influencer"
        }
      }
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 3
          },
          "conditions": [
            {
              "id": "8ee918b8-bb20-46e1-8f84-9782310dba0a",
              "leftValue": "",
              "rightValue": "",
              "operator": {
                "type": "string",
                "operation": "equals",
                "name": "filter.operator.equals"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [
        2848,
        8112
      ],
      "id": "d460fc66-7e8b-4795-aee4-15160e6291a0",
      "name": "If1"
    },
    {
      "parameters": {
        "jsCode": "// Loop over input items and add a new field called 'myNewField' to the JSON of each one\nfor (const item of $input.all()) {\n  item.json.myNewField = 1;\n}\n\nreturn $input.all();"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        3056,
        8016
      ],
      "id": "6dca3376-96ca-4d38-8f63-e9b7498c7582",
      "name": "Code in JavaScript10"
    },
    {
      "parameters": {
        "rule": {
          "interval": [
            {}
          ]
        }
      },
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.3,
      "position": [
        -544,
        3808
      ],
      "id": "f87d1c40-3168-4d9e-b27a-da89dfff0a54",
      "name": "Schedule Trigger1"
    },
    {
      "parameters": {
        "rule": {
          "interval": [
            {}
          ]
        }
      },
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.3,
      "position": [
        3424,
        2240
      ],
      "id": "51c9d702-0440-4676-ab2e-df7b054e3eb4",
      "name": "Schedule Trigger2"
    },
    {
      "parameters": {
        "operation": "append",
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants').item.json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants').item.json.constants.Sheet3 }}",
          "mode": "name"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "STATUS": "=STOP",
            "Article Title": "=STOP",
            "Ticker": "=STOP",
            "Reasoning": "=STOP",
            "Suggested Angle 1": "=STOP",
            "Suggested Angle 2": "=STOP",
            "Link": "=STOP",
            "PublicationDate": "=STOP",
            "MPLY_CTA": "=STOP"
          },
          "matchingColumns": [],
          "schema": [
            {
              "id": "PublicationDate",
              "displayName": "PublicationDate",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "STATUS",
              "displayName": "STATUS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Article Title",
              "displayName": "Article Title",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Ticker",
              "displayName": "Ticker",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Link",
              "displayName": "Link",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Reasoning",
              "displayName": "Reasoning",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Suggested Angle 1",
              "displayName": "Suggested Angle 1",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Suggested Angle 2",
              "displayName": "Suggested Angle 2",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Target Audience",
              "displayName": "Target Audience",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Keywords",
              "displayName": "Keywords",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "MPLY_CTA",
              "displayName": "MPLY_CTA",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        608,
        896
      ],
      "id": "fc2d57af-bad0-408f-9dfe-9716a47e5c26",
      "name": "Append row in sheet8",
      "executeOnce": true,
      "retryOnFail": true,
      "waitBetweenTries": 5000,
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "wZJh4ACm1MD5wdQ9",
          "name": "Google Sheet (Admin Account - Nandy Cyber Success)"
        }
      }
    },
    {
      "parameters": {
        "content": "",
        "height": 176,
        "width": 192,
        "color": 3
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4528,
        944
      ],
      "typeVersion": 1,
      "id": "a460b174-0ea3-4edf-8f3c-f55d1f2090e4",
      "name": "Sticky Note5"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "loose",
            "version": 3
          },
          "conditions": [
            {
              "id": "16c0fe3b-f405-4059-9057-bbc9f7cac7d5",
              "leftValue": "={{ !isNaN($('Get row(s) in sheet3').item.json['AVATAR ID']) }}",
              "rightValue": "=",
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              }
            }
          ],
          "combinator": "or"
        },
        "looseTypeValidation": true,
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [
        1376,
        2576
      ],
      "id": "ac234ad5-9a11-4a80-825c-4c6785c0224f",
      "name": "If10"
    },
    {
      "parameters": {
        "operation": "append",
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants3').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants3').first().json.constants.Sheet1 }}",
          "mode": "name"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "STATUS": "={{ $('Global Constants3').first().json.constants.Status1 }}",
            "CODE": "={{ $('Get row(s) in sheet3').item.json.ID }}",
            "VIDEO TITLE": "={{ $('Get row(s) in sheet3').item.json['VIDEO TITLE'] }}",
            "NARRATION": "={{ $('Update row in sheet1').item.json['EXPRESSIVE VIDEO NARRATION'] }}",
            "SEGMENT": "=1",
            "TOTAL SEGMENTS": "=1",
            "VIDEO DESCRIPTION": "={{ $('Get row(s) in sheet3').item.json.DESCRIPTION }}"
          },
          "matchingColumns": [],
          "schema": [
            {
              "id": "STATUS",
              "displayName": "STATUS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "CODE",
              "displayName": "CODE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "SEGMENT",
              "displayName": "SEGMENT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "TOTAL SEGMENTS",
              "displayName": "TOTAL SEGMENTS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "VIDEO TITLE",
              "displayName": "VIDEO TITLE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "VIDEO DESCRIPTION",
              "displayName": "VIDEO DESCRIPTION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "NARRATION",
              "displayName": "NARRATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "BREAKPOINT REASON",
              "displayName": "BREAKPOINT REASON",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TTS OUTPUT (URL)",
              "displayName": "TTS OUTPUT (URL)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TTS OUTPUT (ID)",
              "displayName": "TTS OUTPUT (ID)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LAYOUT",
              "displayName": "LAYOUT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(1)",
              "displayName": "var(1)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(2)",
              "displayName": "var(2)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(3)",
              "displayName": "var(3)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(4)",
              "displayName": "var(4)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(5)",
              "displayName": "var(5)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(6)",
              "displayName": "var(6)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(7)",
              "displayName": "var(7)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(8)",
              "displayName": "var(8)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(9)",
              "displayName": "var(9)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(10)",
              "displayName": "var(10)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO URL",
              "displayName": "VIDEO URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO DRIVE LINK",
              "displayName": "VIDEO DRIVE LINK",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        1664,
        2736
      ],
      "id": "10b7acdf-5b0f-447d-af5a-ac338d9b25fb",
      "name": "Append row in sheet12",
      "retryOnFail": true,
      "waitBetweenTries": 5000,
      "executeOnce": false,
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants3').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants3').first().json.constants.Sheet2 }}",
          "mode": "name"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "STATUS": "={{ $('Global Constants3').first().json.constants.Status4 }}",
            "row_number": "={{ $('Get row(s) in sheet3').item.json.row_number }}"
          },
          "matchingColumns": [
            "row_number"
          ],
          "schema": [
            {
              "id": "ID_2",
              "displayName": "ID_2",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "STATUS",
              "displayName": "STATUS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "ID",
              "displayName": "ID",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO TITLE",
              "displayName": "VIDEO TITLE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "DESCRIPTION",
              "displayName": "DESCRIPTION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "AVATAR ID",
              "displayName": "AVATAR ID",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO NARRATION",
              "displayName": "VIDEO NARRATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "EXPRESSIVE VIDEO NARRATION",
              "displayName": "EXPRESSIVE VIDEO NARRATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TAGGING NOTES",
              "displayName": "TAGGING NOTES",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "AI MODEL",
              "displayName": "AI MODEL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "KEY FIGURES",
              "displayName": "KEY FIGURES",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "WORD COUNT",
              "displayName": "WORD COUNT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "MPLY CONNECTION",
              "displayName": "MPLY CONNECTION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        2016,
        2736
      ],
      "id": "6c89a12a-7cd8-4d8f-98c7-de2afbd1c1e6",
      "name": "Update row in sheet11",
      "retryOnFail": true,
      "executeOnce": true,
      "waitBetweenTries": 5000,
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "operation": "append",
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants3').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants3').first().json.constants.Sheet1 }}",
          "mode": "name"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "STATUS": "=SPLIT",
            "CODE": "={{ $json.CODE }}",
            "VIDEO TITLE": "=SPLIT",
            "NARRATION": "=SPLIT",
            "SEGMENT": "=SPLIT",
            "TOTAL SEGMENTS": "=SPLIT",
            "VIDEO DESCRIPTION": "=SPLIT",
            "BREAKPOINT REASON": "=SPLIT"
          },
          "matchingColumns": [],
          "schema": [
            {
              "id": "STATUS",
              "displayName": "STATUS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "CODE",
              "displayName": "CODE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "SEGMENT",
              "displayName": "SEGMENT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "TOTAL SEGMENTS",
              "displayName": "TOTAL SEGMENTS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "VIDEO TITLE",
              "displayName": "VIDEO TITLE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "VIDEO DESCRIPTION",
              "displayName": "VIDEO DESCRIPTION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "NARRATION",
              "displayName": "NARRATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "BREAKPOINT REASON",
              "displayName": "BREAKPOINT REASON",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "TTS OUTPUT (URL)",
              "displayName": "TTS OUTPUT (URL)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TTS OUTPUT (ID)",
              "displayName": "TTS OUTPUT (ID)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LAYOUT",
              "displayName": "LAYOUT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(1)",
              "displayName": "var(1)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(2)",
              "displayName": "var(2)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(3)",
              "displayName": "var(3)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(4)",
              "displayName": "var(4)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(5)",
              "displayName": "var(5)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(6)",
              "displayName": "var(6)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(7)",
              "displayName": "var(7)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(8)",
              "displayName": "var(8)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(9)",
              "displayName": "var(9)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(10)",
              "displayName": "var(10)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO URL",
              "displayName": "VIDEO URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO DRIVE LINK",
              "displayName": "VIDEO DRIVE LINK",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        1840,
        2736
      ],
      "id": "a7c455c2-ac82-41dd-a710-6bd7841b9d7c",
      "name": "Append row in sheet13",
      "retryOnFail": true,
      "waitBetweenTries": 5000,
      "executeOnce": true,
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "content": "",
        "height": 192,
        "width": 192,
        "color": 3
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2000,
        2960
      ],
      "typeVersion": 1,
      "id": "a5e53437-b43b-4e00-8f99-4164ebc9f418",
      "name": "Sticky Note40"
    },
    {
      "parameters": {
        "content": "",
        "height": 336,
        "width": 416,
        "color": 3
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        7456,
        3200
      ],
      "typeVersion": 1,
      "id": "12cf41e9-b003-48b0-8b74-0b33ab0ebaed",
      "name": "Sticky Note23"
    },
    {
      "parameters": {
        "content": "# 6",
        "height": 80,
        "width": 416,
        "color": 6
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        7456,
        3120
      ],
      "typeVersion": 1,
      "id": "481d83c2-dfa1-43b9-8c05-e8b1c0fa53a0",
      "name": "Sticky Note55"
    },
    {
      "parameters": {
        "rule": {
          "interval": [
            {}
          ]
        }
      },
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.3,
      "position": [
        -464,
        5872
      ],
      "id": "7acb6d8f-b4fa-42fc-a15f-5206e07a278d",
      "name": "Schedule Trigger3"
    },
    {
      "parameters": {
        "url": "=http://localhost:5678/webhook/eebccba2-3e80-45c5-8b74-315c0fe1212b",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        4464,
        3104
      ],
      "id": "9cb8bd4e-d748-4846-9a81-86d3c1ea815e",
      "name": "HTTP Request30",
      "executeOnce": true
    },
    {
      "parameters": {
        "rules": {
          "values": [
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 3
                },
                "conditions": [
                  {
                    "id": "148f64cd-1ab1-4c6a-960d-21916a51da62",
                    "leftValue": "={{ $json.STATUS }}",
                    "rightValue": "SPLIT",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "SPLIT"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 3
                },
                "conditions": [
                  {
                    "leftValue": "={{ $json.LAYOUT }}",
                    "rightValue": "Layout_001",
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    },
                    "id": "312addb5-e7cd-4888-a60a-a82b25d992b6"
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "Layout_001"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 3
                },
                "conditions": [
                  {
                    "id": "2f000871-2bba-48ee-8cd3-03101e8490ee",
                    "leftValue": "={{ $json.LAYOUT }}",
                    "rightValue": "Layout_002",
                    "operator": {
                      "type": "string",
                      "operation": "equals",
                      "name": "filter.operator.equals"
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "Layout_002"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 3
                },
                "conditions": [
                  {
                    "id": "7410f949-9493-44c2-9edb-37d6231593b9",
                    "leftValue": "={{ $json.LAYOUT }}",
                    "rightValue": "Layout_003",
                    "operator": {
                      "type": "string",
                      "operation": "equals",
                      "name": "filter.operator.equals"
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "Layout_003"
            },
            {
              "conditions": {
                "options": {
                  "caseSensitive": true,
                  "leftValue": "",
                  "typeValidation": "strict",
                  "version": 3
                },
                "conditions": [
                  {
                    "id": "89da22e5-55d1-486d-8fff-797935fe7d85",
                    "leftValue": "={{ $json.LAYOUT }}",
                    "rightValue": "Layout_004",
                    "operator": {
                      "type": "string",
                      "operation": "equals",
                      "name": "filter.operator.equals"
                    }
                  }
                ],
                "combinator": "and"
              },
              "renameOutput": true,
              "outputKey": "Layout_004"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.switch",
      "typeVersion": 3.4,
      "position": [
        4912,
        3440
      ],
      "id": "58c47eec-0f2a-4dab-b9ab-3e4a08838900",
      "name": "Switch4"
    },
    {
      "parameters": {
        "name": "=image1_4_{{ $('Loop Over Items8').item.json.CODE }}_.{{ $('Loop Over Items8').item.json['VIDEO TITLE'] }}.png",
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": "My Drive"
        },
        "folderId": {
          "__rl": true,
          "value": "={{ $('Global Constants4').first().json.constants.StockFolderID }}",
          "mode": "id"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        6512,
        3344
      ],
      "id": "539234b7-a3a3-4b85-b8c1-aec4d6f4173f",
      "name": "Upload file10",
      "executeOnce": true,
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "YW5uoCGpLGXuL18x",
          "name": "Google Drive (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "resource": "image",
        "modelId": {
          "__rl": true,
          "value": "models/gemini-3-pro-image-preview",
          "mode": "list",
          "cachedResultName": "models/gemini-3-pro-image-preview (Nano Banana Pro)"
        },
        "prompt": "=Create an infographic image (aspect ratio 1.5:1, width:height) to accompany this YouTube Short narration segment.\n\n**Context:**\n- The image appears at ~15% into the narration\n- The image is visible for ~20% of the total duration\n- The image exits at ~35% of the narration\n\n**Relevant narration excerpt:**\n{{ $('Loop Over Items8').item.json.NARRATION }}\n\n**Colour Scheme (use exclusively):**\n- #050A21 (deep navy) — Primary background, creates depth and contrast\n- #9AA3FF (soft periwinkle) — Accent elements, highlights, icons, data visualizations\n- #E2E2E2 (light grey) — Secondary text, subtle dividers, supporting elements\n- #FFFFFF (white) — Primary text, key focal points, emphasis\n\n**Requirements:**\n- Clean, simple composition suitable for short-form video\n- Bold visuals with minimal text (viewers won't have time to read)\n- Clear focal point that's visible even on mobile screens\n- Professional infographic style with modern aesthetics\n- No watermarks or logos\n- Strict adherence to the brand colour palette above\n\n**Style:** Modern, clean infographic with clear visual hierarchy and a dark, professional aesthetic",
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "typeVersion": 1.1,
      "position": [
        5904,
        3360
      ],
      "id": "1c165a3a-d666-4359-ac79-fbf14cd311ed",
      "name": "Generate an image4",
      "credentials": {
        "googlePalmApi": {
          "id": "2WQnS2SNa0KSA257",
          "name": "Gemini AI Studio"
        }
      }
    },
    {
      "parameters": {
        "resource": "image",
        "modelId": {
          "__rl": true,
          "value": "models/gemini-3-pro-image-preview",
          "mode": "list",
          "cachedResultName": "models/gemini-3-pro-image-preview (Nano Banana Pro)"
        },
        "prompt": "=Create an infographic image (aspect ratio 1.5:1, width:height) to accompany this YouTube Short narration segment.\n\n**Context:**\n- The image appears at ~35% into the narration\n- The image is visible for ~15% of the total duration\n- The image exits at ~50% of the narration\n\n**Relevant narration excerpt:**\n{{ $('Loop Over Items8').item.json.NARRATION }}\n\n**Colour Scheme (use exclusively):**\n- #050A21 (deep navy) — Primary background, creates depth and contrast\n- #9AA3FF (soft periwinkle) — Accent elements, highlights, icons, data visualizations\n- #E2E2E2 (light grey) — Secondary text, subtle dividers, supporting elements\n- #FFFFFF (white) — Primary text, key focal points, emphasis\n\n**Requirements:**\n- Clean, simple composition suitable for short-form video\n- Bold visuals with minimal text (viewers won't have time to read)\n- Clear focal point that's visible even on mobile screens\n- Professional infographic style with modern aesthetics\n- No watermarks or logos\n- Strict adherence to the brand colour palette above\n\n**Style:** Modern, clean infographic with clear visual hierarchy and a dark, professional aesthetic",
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "typeVersion": 1.1,
      "position": [
        5904,
        3472
      ],
      "id": "ad901570-0623-4946-924e-015999ae2303",
      "name": "Generate an image5",
      "credentials": {
        "googlePalmApi": {
          "id": "2WQnS2SNa0KSA257",
          "name": "Gemini AI Studio"
        }
      }
    },
    {
      "parameters": {
        "resource": "image",
        "modelId": {
          "__rl": true,
          "value": "models/gemini-3-pro-image-preview",
          "mode": "list",
          "cachedResultName": "models/gemini-3-pro-image-preview (Nano Banana Pro)"
        },
        "prompt": "=Create an infographic image (aspect ratio 1.5:1, width:height) to accompany this YouTube Short narration segment.\n\n**Context:**\n- The image appears at ~65% into the narration\n- The image is visible for ~15% of the total duration\n- The image exits at ~80% of the narration\n\n**Relevant narration excerpt:**\n{{ $('Loop Over Items8').item.json.NARRATION }}\n\n**Colour Scheme (use exclusively):**\n- #050A21 (deep navy) — Primary background, creates depth and contrast\n- #9AA3FF (soft periwinkle) — Accent elements, highlights, icons, data visualizations\n- #E2E2E2 (light grey) — Secondary text, subtle dividers, supporting elements\n- #FFFFFF (white) — Primary text, key focal points, emphasis\n\n**Requirements:**\n- Clean, simple composition suitable for short-form video\n- Bold visuals with minimal text (viewers won't have time to read)\n- Clear focal point that's visible even on mobile screens\n- Professional infographic style with modern aesthetics\n- No watermarks or logos\n- Strict adherence to the brand colour palette above\n\n**Style:** Modern, clean infographic with clear visual hierarchy and a dark, professional aesthetic",
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "typeVersion": 1.1,
      "position": [
        5904,
        3712
      ],
      "id": "e70e9ef1-8074-496f-b98a-d7a1305e7c99",
      "name": "Generate an image6",
      "credentials": {
        "googlePalmApi": {
          "id": "2WQnS2SNa0KSA257",
          "name": "Gemini AI Studio"
        }
      }
    },
    {
      "parameters": {
        "resource": "image",
        "modelId": {
          "__rl": true,
          "value": "models/gemini-3-pro-image-preview",
          "mode": "list",
          "cachedResultName": "models/gemini-3-pro-image-preview (Nano Banana Pro)"
        },
        "prompt": "=Create an infographic image (aspect ratio 1.5:1, width:height) to accompany this YouTube Short narration segment.\n\n**Context:**\n- The image appears at ~50% into the narration\n- The image is visible for ~15% of the total duration\n- The image exits at ~65% of the narration\n\n**Relevant narration excerpt:**\n{{ $('Loop Over Items8').item.json.NARRATION }}\n\n**Colour Scheme (use exclusively):**\n- #050A21 (deep navy) — Primary background, creates depth and contrast\n- #9AA3FF (soft periwinkle) — Accent elements, highlights, icons, data visualizations\n- #E2E2E2 (light grey) — Secondary text, subtle dividers, supporting elements\n- #FFFFFF (white) — Primary text, key focal points, emphasis\n\n**Requirements:**\n- Clean, simple composition suitable for short-form video\n- Bold visuals with minimal text (viewers won't have time to read)\n- Clear focal point that's visible even on mobile screens\n- Professional infographic style with modern aesthetics\n- No watermarks or logos\n- Strict adherence to the brand colour palette above\n\n**Style:** Modern, clean infographic with clear visual hierarchy and a dark, professional aesthetic",
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "typeVersion": 1.1,
      "position": [
        5904,
        3584
      ],
      "id": "20593068-7ad0-43f0-869d-1a0b7912fbd7",
      "name": "Generate an image7",
      "credentials": {
        "googlePalmApi": {
          "id": "2WQnS2SNa0KSA257",
          "name": "Gemini AI Studio"
        }
      }
    },
    {
      "parameters": {},
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [
        6064,
        3360
      ],
      "id": "1f572043-253a-444e-ae40-aa77c5c9275d",
      "name": "Wait4",
      "webhookId": "ec36665e-463a-49d3-81fd-da434ea022bc"
    },
    {
      "parameters": {},
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [
        6064,
        3472
      ],
      "id": "2f357394-abaf-4144-a421-da9ab6d09e8c",
      "name": "Wait5",
      "webhookId": "c76b4ccc-440c-4244-8f75-663d2db69b9f"
    },
    {
      "parameters": {},
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [
        6064,
        3584
      ],
      "id": "328da134-623e-45b8-bd76-959a8faaafad",
      "name": "Wait6",
      "webhookId": "5c7859c6-5a89-4d50-bb3d-8f3557433add"
    },
    {
      "parameters": {
        "amount": 15
      },
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [
        7424,
        3968
      ],
      "id": "9c9b0979-3559-458c-baae-19cc3da9d5ba",
      "name": "Wait7",
      "webhookId": "20c644c6-aa1c-4ee9-bf74-a64ad17a8bee"
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants4').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "mode": "name",
          "value": "={{ $('Global Constants4').first().json.constants.Sheet1 }}"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "row_number": "={{ $('Loop Over Items8').item.json.row_number }}",
            "image_3": "={{ $json.webContentLink }}"
          },
          "matchingColumns": [
            "row_number"
          ],
          "schema": [
            {
              "id": "STATUS",
              "displayName": "STATUS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "CODE",
              "displayName": "CODE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "SEGMENT",
              "displayName": "SEGMENT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TOTAL SEGMENTS",
              "displayName": "TOTAL SEGMENTS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO TITLE",
              "displayName": "VIDEO TITLE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO DESCRIPTION",
              "displayName": "VIDEO DESCRIPTION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "NARRATION",
              "displayName": "NARRATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "BREAKPOINT REASON",
              "displayName": "BREAKPOINT REASON",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TTS OUTPUT (URL)",
              "displayName": "TTS OUTPUT (URL)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TTS OUTPUT (ID)",
              "displayName": "TTS OUTPUT (ID)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LAYOUT",
              "displayName": "LAYOUT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(1)",
              "displayName": "var(1)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "image_1",
              "displayName": "image_1",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "image_2",
              "displayName": "image_2",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "image_3",
              "displayName": "image_3",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "image_4",
              "displayName": "image_4",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(2)",
              "displayName": "var(2)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(3)",
              "displayName": "var(3)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(4)",
              "displayName": "var(4)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(5)",
              "displayName": "var(5)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(6)",
              "displayName": "var(6)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(7)",
              "displayName": "var(7)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(8)",
              "displayName": "var(8)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(9)",
              "displayName": "var(9)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(10)",
              "displayName": "var(10)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO URL",
              "displayName": "VIDEO URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO DRIVE LINK",
              "displayName": "VIDEO DRIVE LINK",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        6720,
        3568
      ],
      "id": "3b2faff8-aeb4-44a3-b8b7-0dbf4a8ba669",
      "name": "Update row in sheet7",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "name": "={{ $runIndex + 1}}_4_{{ $('Loop Over Items8').item.json.CODE }}_.{{ $('Loop Over Items8').item.json['VIDEO TITLE'] }}jpg",
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": "My Drive"
        },
        "folderId": {
          "__rl": true,
          "value": "={{ $('Global Constants4').first().json.constants.StockFolderID }}",
          "mode": "id"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        6112,
        3968
      ],
      "id": "053763ac-d1ac-4090-a52d-84d501917e8a",
      "name": "Upload file11",
      "executeOnce": true,
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "YW5uoCGpLGXuL18x",
          "name": "Google Drive (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "resource": "image",
        "modelId": {
          "__rl": true,
          "value": "models/gemini-3-pro-image-preview",
          "mode": "list",
          "cachedResultName": "models/gemini-3-pro-image-preview (Nano Banana Pro)"
        },
        "prompt": "=Create an infographic image (aspect ratio 1.5:1, width:height) to accompany this YouTube Short narration segment.\n\n**Context:**\n- The image appears at ~15% into the narration\n- The image is visible for ~20% of the total duration\n- The image exits at ~35% of the narration\n\n**Relevant narration excerpt:**\n{{ $('Loop Over Items8').item.json.NARRATION }}\n\n**Colour Scheme (use exclusively):**\n- #050A21 (deep navy) — Primary background, creates depth and contrast\n- #9AA3FF (soft periwinkle) — Accent elements, highlights, icons, data visualizations\n- #E2E2E2 (light grey) — Secondary text, subtle dividers, supporting elements\n- #FFFFFF (white) — Primary text, key focal points, emphasis\n\n**Requirements:**\n- Clean, simple composition suitable for short-form video\n- Bold visuals with minimal text (viewers won't have time to read)\n- Clear focal point that's visible even on mobile screens\n- Professional infographic style with modern aesthetics\n- No watermarks or logos\n- Strict adherence to the brand colour palette above\n\n**Style:** Modern, clean infographic with clear visual hierarchy and a dark, professional aesthetic",
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "typeVersion": 1.1,
      "position": [
        5920,
        3968
      ],
      "id": "f198a55d-233c-4fda-a39d-2d436ff852e6",
      "name": "Generate an image8",
      "credentials": {
        "googlePalmApi": {
          "id": "2WQnS2SNa0KSA257",
          "name": "Gemini AI Studio"
        }
      }
    },
    {
      "parameters": {
        "name": "=image2_4_{{ $('Loop Over Items8').item.json.CODE }}_.{{ $('Loop Over Items8').item.json['VIDEO TITLE'] }}.png",
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": "My Drive"
        },
        "folderId": {
          "__rl": true,
          "value": "={{ $('Global Constants4').first().json.constants.StockFolderID }}",
          "mode": "id"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        6512,
        3472
      ],
      "id": "fbb2eff3-2ede-4d0b-a180-248f5f2e5e10",
      "name": "Upload file",
      "executeOnce": true,
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "YW5uoCGpLGXuL18x",
          "name": "Google Drive (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "name": "=image3_4_{{ $('Loop Over Items8').item.json.CODE }}_.{{ $('Loop Over Items8').item.json['VIDEO TITLE'] }}.png",
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": "My Drive"
        },
        "folderId": {
          "__rl": true,
          "value": "={{ $('Global Constants4').first().json.constants.StockFolderID }}",
          "mode": "id"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        6512,
        3584
      ],
      "id": "ef711e3d-b90c-4ae4-b2a2-caf3080230e4",
      "name": "Upload file12",
      "executeOnce": true,
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "YW5uoCGpLGXuL18x",
          "name": "Google Drive (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "name": "=image4_4_{{ $('Loop Over Items8').item.json.CODE }}_.{{ $('Loop Over Items8').item.json['VIDEO TITLE'] }}.png",
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": "My Drive"
        },
        "folderId": {
          "__rl": true,
          "value": "={{ $('Global Constants4').first().json.constants.StockFolderID }}",
          "mode": "id"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        6512,
        3712
      ],
      "id": "7e757ab9-5c65-4dea-bbf8-73f7b00f1dfe",
      "name": "Upload file13",
      "executeOnce": true,
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "YW5uoCGpLGXuL18x",
          "name": "Google Drive (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "height": 544,
        "width": 720
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        6256,
        3328
      ],
      "typeVersion": 1,
      "id": "05d89e72-193c-4e3c-ba20-da360846acc4",
      "name": "Sticky Note1"
    },
    {
      "parameters": {
        "path": "76fd32c6-8586-46e3-a231-d8b42f711d63",
        "options": {}
      },
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2.1,
      "position": [
        3136,
        3456
      ],
      "id": "1f6ec7b6-bf36-4990-a2dc-4fdc2e5c7436",
      "name": "Webhook8",
      "webhookId": "76fd32c6-8586-46e3-a231-d8b42f711d63"
    },
    {
      "parameters": {},
      "type": "n8n-nodes-globals.globalConstants",
      "typeVersion": 1,
      "position": [
        3376,
        3456
      ],
      "id": "00d75e67-16bd-41f1-be16-c0c2b3b89645",
      "name": "Global Constants4",
      "credentials": {
        "globalConstantsApi": {
          "id": "tl6hxt14W8QyX1vV",
          "name": "AI YouTube Investing Influencer"
        }
      }
    },
    {
      "parameters": {
        "documentId": {
          "__rl": true,
          "value": "={{ $json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $json.constants.Sheet1 }}",
          "mode": "name"
        },
        "filtersUI": {
          "values": [
            {
              "lookupColumn": "STATUS",
              "lookupValue": "=READY"
            },
            {
              "lookupColumn": "STATUS",
              "lookupValue": "STOP"
            }
          ]
        },
        "combineFilters": "OR",
        "options": {
          "returnFirstMatch": true
        }
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        3600,
        3456
      ],
      "id": "2b872fab-14f5-4e34-9198-17e87a27c297",
      "name": "Get row(s) in sheet21",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "wZJh4ACm1MD5wdQ9",
          "name": "Google Sheet (Admin Account - Nandy Cyber Success)"
        }
      }
    },
    {
      "parameters": {
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants4').item.json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants4').item.json.constants.Sheet1 }}",
          "mode": "name"
        },
        "filtersUI": {
          "values": [
            {
              "lookupColumn": "CODE",
              "lookupValue": "={{ $('Get row(s) in sheet21').item.json.CODE }}"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        4224,
        3472
      ],
      "id": "4cffea13-daea-4f32-af09-ef3db5ef7d0d",
      "name": "Get row(s) in sheet27",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "options": {}
      },
      "type": "n8n-nodes-base.splitInBatches",
      "typeVersion": 3,
      "position": [
        4592,
        3472
      ],
      "id": "56a4c227-27ee-457d-a26e-5730485e371c",
      "name": "Loop Over Items8"
    },
    {
      "parameters": {
        "url": "=http://localhost:5678/webhook/ca28040d-5a50-43ab-99a9-b5bcd482715d",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        5360,
        3104
      ],
      "id": "8ecbb592-988f-4928-bfe4-45832166f9e9",
      "name": "HTTP Request35",
      "executeOnce": true
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants4').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "value": "={{ $('Global Constants4').first().json.constants.Sheet1 }}",
          "mode": "name"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "row_number": "={{ $json.row_number }}",
            "STATUS": "READY_B"
          },
          "matchingColumns": [
            "row_number"
          ],
          "schema": [
            {
              "id": "STATUS",
              "displayName": "STATUS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "CODE",
              "displayName": "CODE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "SEGMENT",
              "displayName": "SEGMENT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TOTAL SEGMENTS",
              "displayName": "TOTAL SEGMENTS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO TITLE",
              "displayName": "VIDEO TITLE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO DESCRIPTION",
              "displayName": "VIDEO DESCRIPTION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "NARRATION",
              "displayName": "NARRATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "BREAKPOINT REASON",
              "displayName": "BREAKPOINT REASON",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TTS OUTPUT (URL)",
              "displayName": "TTS OUTPUT (URL)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TTS OUTPUT (ID)",
              "displayName": "TTS OUTPUT (ID)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LAYOUT",
              "displayName": "LAYOUT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(1)",
              "displayName": "var(1)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(2)",
              "displayName": "var(2)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(3)",
              "displayName": "var(3)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(4)",
              "displayName": "var(4)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(5)",
              "displayName": "var(5)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(6)",
              "displayName": "var(6)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(7)",
              "displayName": "var(7)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(8)",
              "displayName": "var(8)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(9)",
              "displayName": "var(9)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(10)",
              "displayName": "var(10)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO URL",
              "displayName": "VIDEO URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO DRIVE LINK",
              "displayName": "VIDEO DRIVE LINK",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        5904,
        3168
      ],
      "id": "7924a066-4ff0-4a94-8f8f-3a47d8910018",
      "name": "Update row in sheet27",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 3
          },
          "conditions": [
            {
              "id": "ed3643ba-7ce4-4d24-ade1-079e054367d4",
              "leftValue": "={{ $json.STATUS }}",
              "rightValue": "STOP",
              "operator": {
                "type": "string",
                "operation": "equals"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [
        3808,
        3456
      ],
      "id": "cd6231b1-d3df-46a4-8410-401d2a3ef151",
      "name": "If13"
    },
    {
      "parameters": {
        "content": "",
        "height": 1248,
        "width": 5328,
        "color": 5
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3088,
        2976
      ],
      "typeVersion": 1,
      "id": "01d324f3-39f2-48db-8a86-c2b15d23e91f",
      "name": "Sticky Note11"
    },
    {
      "parameters": {
        "content": "",
        "height": 192,
        "width": 192,
        "color": 3
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3088,
        3424
      ],
      "typeVersion": 1,
      "id": "006059bb-d100-425e-9f8e-9678ddbf90f8",
      "name": "Sticky Note56"
    },
    {
      "parameters": {
        "rule": {
          "interval": [
            {}
          ]
        }
      },
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.3,
      "position": [
        3072,
        3264
      ],
      "id": "83382719-5873-4880-8bf3-ea3d44f9c986",
      "name": "Schedule Trigger5"
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants4').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "mode": "name",
          "value": "={{ $('Global Constants4').first().json.constants.Sheet1 }}"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "row_number": "={{ $('Loop Over Items8').item.json.row_number }}",
            "image_1": "={{ $json.webContentLink }}"
          },
          "matchingColumns": [
            "row_number"
          ],
          "schema": [
            {
              "id": "STATUS",
              "displayName": "STATUS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "CODE",
              "displayName": "CODE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "SEGMENT",
              "displayName": "SEGMENT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TOTAL SEGMENTS",
              "displayName": "TOTAL SEGMENTS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO TITLE",
              "displayName": "VIDEO TITLE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO DESCRIPTION",
              "displayName": "VIDEO DESCRIPTION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "NARRATION",
              "displayName": "NARRATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "BREAKPOINT REASON",
              "displayName": "BREAKPOINT REASON",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TTS OUTPUT (URL)",
              "displayName": "TTS OUTPUT (URL)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TTS OUTPUT (ID)",
              "displayName": "TTS OUTPUT (ID)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LAYOUT",
              "displayName": "LAYOUT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(1)",
              "displayName": "var(1)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "image_1",
              "displayName": "image_1",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "image_2",
              "displayName": "image_2",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "image_3",
              "displayName": "image_3",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "image_4",
              "displayName": "image_4",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(2)",
              "displayName": "var(2)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(3)",
              "displayName": "var(3)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(4)",
              "displayName": "var(4)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(5)",
              "displayName": "var(5)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(6)",
              "displayName": "var(6)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(7)",
              "displayName": "var(7)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(8)",
              "displayName": "var(8)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(9)",
              "displayName": "var(9)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(10)",
              "displayName": "var(10)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO URL",
              "displayName": "VIDEO URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO DRIVE LINK",
              "displayName": "VIDEO DRIVE LINK",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        6720,
        3344
      ],
      "id": "d8dd3d09-e047-4772-a635-a8f7ac7a47bf",
      "name": "Update row in sheet16",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants4').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "mode": "name",
          "value": "={{ $('Global Constants4').first().json.constants.Sheet1 }}"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "row_number": "={{ $('Loop Over Items8').item.json.row_number }}",
            "image_2": "={{ $json.webContentLink }}"
          },
          "matchingColumns": [
            "row_number"
          ],
          "schema": [
            {
              "id": "STATUS",
              "displayName": "STATUS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "CODE",
              "displayName": "CODE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "SEGMENT",
              "displayName": "SEGMENT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TOTAL SEGMENTS",
              "displayName": "TOTAL SEGMENTS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO TITLE",
              "displayName": "VIDEO TITLE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO DESCRIPTION",
              "displayName": "VIDEO DESCRIPTION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "NARRATION",
              "displayName": "NARRATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "BREAKPOINT REASON",
              "displayName": "BREAKPOINT REASON",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TTS OUTPUT (URL)",
              "displayName": "TTS OUTPUT (URL)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TTS OUTPUT (ID)",
              "displayName": "TTS OUTPUT (ID)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LAYOUT",
              "displayName": "LAYOUT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(1)",
              "displayName": "var(1)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "image_1",
              "displayName": "image_1",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "image_2",
              "displayName": "image_2",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "image_3",
              "displayName": "image_3",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "image_4",
              "displayName": "image_4",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(2)",
              "displayName": "var(2)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(3)",
              "displayName": "var(3)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(4)",
              "displayName": "var(4)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(5)",
              "displayName": "var(5)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(6)",
              "displayName": "var(6)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(7)",
              "displayName": "var(7)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(8)",
              "displayName": "var(8)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(9)",
              "displayName": "var(9)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(10)",
              "displayName": "var(10)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO URL",
              "displayName": "VIDEO URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO DRIVE LINK",
              "displayName": "VIDEO DRIVE LINK",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        6720,
        3456
      ],
      "id": "455aa7f4-9b97-4e59-896a-6c2344bc1b76",
      "name": "Update row in sheet19",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants4').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "mode": "name",
          "value": "={{ $('Global Constants4').first().json.constants.Sheet1 }}"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "row_number": "={{ $('Loop Over Items8').item.json.row_number }}",
            "STATUS": "READY_B",
            "image_4": "={{ $json.webContentLink }}"
          },
          "matchingColumns": [
            "row_number"
          ],
          "schema": [
            {
              "id": "STATUS",
              "displayName": "STATUS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "CODE",
              "displayName": "CODE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "SEGMENT",
              "displayName": "SEGMENT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TOTAL SEGMENTS",
              "displayName": "TOTAL SEGMENTS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO TITLE",
              "displayName": "VIDEO TITLE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO DESCRIPTION",
              "displayName": "VIDEO DESCRIPTION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "NARRATION",
              "displayName": "NARRATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "BREAKPOINT REASON",
              "displayName": "BREAKPOINT REASON",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TTS OUTPUT (URL)",
              "displayName": "TTS OUTPUT (URL)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TTS OUTPUT (ID)",
              "displayName": "TTS OUTPUT (ID)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LAYOUT",
              "displayName": "LAYOUT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(1)",
              "displayName": "var(1)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "image_1",
              "displayName": "image_1",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "image_2",
              "displayName": "image_2",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "image_3",
              "displayName": "image_3",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "image_4",
              "displayName": "image_4",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "var(2)",
              "displayName": "var(2)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(3)",
              "displayName": "var(3)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(4)",
              "displayName": "var(4)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(5)",
              "displayName": "var(5)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(6)",
              "displayName": "var(6)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(7)",
              "displayName": "var(7)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(8)",
              "displayName": "var(8)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(9)",
              "displayName": "var(9)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(10)",
              "displayName": "var(10)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO URL",
              "displayName": "VIDEO URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO DRIVE LINK",
              "displayName": "VIDEO DRIVE LINK",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        6720,
        3696
      ],
      "id": "88c3f128-27ca-4a52-9c3d-2e114393a4e2",
      "name": "Update row in sheet28",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "__rl": true,
          "value": "={{ $('Global Constants4').first().json.constants.SheetID }}",
          "mode": "id"
        },
        "sheetName": {
          "__rl": true,
          "mode": "name",
          "value": "={{ $('Global Constants4').first().json.constants.Sheet1 }}"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "row_number": "={{ $('Loop Over Items8').item.json.row_number }}",
            "STATUS": "READY_B",
            "image_1": "={{ $json.webContentLink }}"
          },
          "matchingColumns": [
            "row_number"
          ],
          "schema": [
            {
              "id": "STATUS",
              "displayName": "STATUS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "CODE",
              "displayName": "CODE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "SEGMENT",
              "displayName": "SEGMENT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TOTAL SEGMENTS",
              "displayName": "TOTAL SEGMENTS",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO TITLE",
              "displayName": "VIDEO TITLE",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO DESCRIPTION",
              "displayName": "VIDEO DESCRIPTION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "NARRATION",
              "displayName": "NARRATION",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "BREAKPOINT REASON",
              "displayName": "BREAKPOINT REASON",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TTS OUTPUT (URL)",
              "displayName": "TTS OUTPUT (URL)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "TTS OUTPUT (ID)",
              "displayName": "TTS OUTPUT (ID)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "LAYOUT",
              "displayName": "LAYOUT",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(1)",
              "displayName": "var(1)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "image_1",
              "displayName": "image_1",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "image_2",
              "displayName": "image_2",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "image_3",
              "displayName": "image_3",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "image_4",
              "displayName": "image_4",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(2)",
              "displayName": "var(2)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(3)",
              "displayName": "var(3)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(4)",
              "displayName": "var(4)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(5)",
              "displayName": "var(5)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(6)",
              "displayName": "var(6)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(7)",
              "displayName": "var(7)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(8)",
              "displayName": "var(8)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(9)",
              "displayName": "var(9)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "var(10)",
              "displayName": "var(10)",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO URL",
              "displayName": "VIDEO URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "VIDEO DRIVE LINK",
              "displayName": "VIDEO DRIVE LINK",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        6304,
        3968
      ],
      "id": "717642a8-62be-4c6b-9eed-4e764aeb821a",
      "name": "Update row in sheet29",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "ct43So3ZtM1GNuoa",
          "name": "Google Sheet (SupergeniusCloud)"
        }
      }
    },
    {
      "parameters": {
        "numberInputs": 4
      },
      "type": "n8n-nodes-base.merge",
      "typeVersion": 3.2,
      "position": [
        7168,
        3504
      ],
      "id": "a3b088f2-06f3-4de7-ae2e-7922d838d730",
      "name": "Merge7"
    }
  ],
  "pinData": {},
  "connections": {
    "When clicking ‘Execute workflow’": {
      "main": [
        []
      ]
    },
    "Global Constants": {
      "main": [
        [
          {
            "node": "Get row(s) in sheet1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet1": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [
          {
            "node": "Append row in sheet8",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Real URL1": {
      "main": [
        [
          {
            "node": "Aggregate1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "RSS Feed1": {
      "main": [
        [
          {
            "node": "Get Real URL1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code3": {
      "main": [
        [
          {
            "node": "AI Agent2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Brave Search1": {
      "ai_tool": [
        [
          {
            "node": "AI Agent2",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Append row in sheet1": {
      "main": [
        [
          {
            "node": "Append row in sheet3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append row in sheet2": {
      "main": [
        [
          {
            "node": "Get row(s) in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Limit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Limit": {
      "main": [
        [
          {
            "node": "Append row in sheet2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request1": {
      "main": [
        [
          {
            "node": "Edit Fields2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet": {
      "main": [
        [
          {
            "node": "HTTP Request1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update row in sheet": {
      "main": [
        [
          {
            "node": "RSS Feed1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent2": {
      "main": [
        [
          {
            "node": "Append row in sheet1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Append row in sheet10",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser2": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent2",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet in Google Sheets": {
      "ai_tool": [
        [
          {
            "node": "AI Agent2",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Redis Chat Memory2": {
      "ai_memory": [
        [
          {
            "node": "AI Agent2",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Mistral Cloud Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent2",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Append row in sheet",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Update row in sheet12",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code in JavaScript2": {
      "main": [
        [
          {
            "node": "Code in JavaScript1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Redis Chat Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Brave Search": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Qdrant Vector Store": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Embeddings Cohere": {
      "ai_embedding": [
        [
          {
            "node": "Qdrant Vector Store",
            "type": "ai_embedding",
            "index": 0
          }
        ]
      ]
    },
    "Reranker Cohere": {
      "ai_reranker": [
        [
          {
            "node": "Qdrant Vector Store",
            "type": "ai_reranker",
            "index": 0
          }
        ]
      ]
    },
    "Mistral Cloud Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Code in JavaScript1": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Chat Model3": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 1
          }
        ]
      ]
    },
    "Code in JavaScript": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If": {
      "main": [
        [
          {
            "node": "Update row in sheet",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "No Operation, do nothing": {
      "main": [
        [
          {
            "node": "RSS Feed1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code in JavaScript4": {
      "main": [
        [
          {
            "node": "Code in JavaScript",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields2": {
      "main": [
        [
          {
            "node": "Code in JavaScript4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Global Constants1": {
      "main": [
        [
          {
            "node": "Get row(s) in sheet2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet2": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read URL content in Jina AI": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent4",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent4": {
      "main": [
        [
          {
            "node": "Split Out2",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Update row in sheet9",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser4": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent4",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Code in JavaScript6": {
      "main": [
        [
          {
            "node": "AI Agent4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Mistral Cloud Chat Model3": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent4",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Chat Model4": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent4",
            "type": "ai_languageModel",
            "index": 1
          }
        ]
      ]
    },
    "Append row in sheet5": {
      "main": [
        [
          {
            "node": "Append row in sheet6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out2": {
      "main": [
        [
          {
            "node": "Append row in sheet5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append row in sheet": {
      "main": [
        [
          {
            "node": "Update row in sheet18",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update row in sheet8": {
      "main": [
        [
          {
            "node": "HTTP Request19",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update row in sheet9": {
      "main": [
        [
          {
            "node": "HTTP Request19",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update row in sheet12": {
      "main": [
        [
          {
            "node": "HTTP Request18",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate1": {
      "main": [
        [
          {
            "node": "Code3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet3": {
      "main": [
        [
          {
            "node": "Switch1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent3": {
      "main": [
        [
          {
            "node": "Update row in sheet1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent3",
            "type": "ai_languageModel",
            "index": 1
          }
        ]
      ]
    },
    "Code in JavaScript7": {
      "main": [
        [
          {
            "node": "AI Agent3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Redis Chat Memory3": {
      "ai_memory": [
        [
          {
            "node": "AI Agent3",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser3": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent3",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model4": {
      "ai_languageModel": [
        [
          {
            "node": "Structured Output Parser3",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Update row in sheet1": {
      "main": [
        [
          {
            "node": "If10",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model5": {
      "ai_languageModel": [
        [
          {
            "node": "Structured Output Parser4",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model6": {
      "ai_languageModel": [
        [
          {
            "node": "Structured Output Parser",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Cohere Model": {
      "ai_languageModel": [
        [
          {
            "node": "Structured Output Parser2",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Global Constants3": {
      "main": [
        [
          {
            "node": "Get row(s) in sheet3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append row in sheet3": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch": {
      "main": [
        [
          {
            "node": "Append row in sheet4",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Code in JavaScript2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook": {
      "main": [
        [
          {
            "node": "Global Constants1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update row in sheet18": {
      "main": [
        [
          {
            "node": "HTTP Request18",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append row in sheet4": {
      "main": [
        [
          {
            "node": "Send message and wait for response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch1": {
      "main": [
        [
          {
            "node": "Append row in sheet7",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Code in JavaScript7",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append row in sheet6": {
      "main": [
        [
          {
            "node": "Update row in sheet8",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Global Constants5": {
      "main": [
        [
          {
            "node": "Get row(s) in sheet6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook4": {
      "main": [
        [
          {
            "node": "Global Constants3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload file1": {
      "main": [
        [
          {
            "node": "Update row in sheet10",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update row in sheet10": {
      "main": [
        [
          {
            "node": "Loop Over Items1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Global Constants6": {
      "main": [
        [
          {
            "node": "Get row(s) in sheet7",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet7": {
      "main": [
        [
          {
            "node": "If5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook1": {
      "main": [
        [
          {
            "node": "Global Constants5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook2": {
      "main": [
        [
          {
            "node": "Global Constants6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent2",
            "type": "ai_languageModel",
            "index": 1
          }
        ]
      ]
    },
    "Append row in sheet7": {
      "main": [
        [
          {
            "node": "HTTP Request23",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet9": {
      "main": [
        [
          {
            "node": "Loop Over Items1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items1": {
      "main": [
        [],
        [
          {
            "node": "If2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If2": {
      "main": [
        [
          {
            "node": "HTTP Request24",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "If11",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If4": {
      "main": [
        [
          {
            "node": "HTTP Request25",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get row(s) in sheet9",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If5": {
      "main": [
        [
          {
            "node": "HTTP Request26",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get row(s) in sheet10",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If6": {
      "main": [
        [
          {
            "node": "HTTP Request27",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "If9",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet10": {
      "main": [
        [
          {
            "node": "Loop Over Items3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items3": {
      "main": [
        [],
        [
          {
            "node": "If6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send message and wait for response": {
      "main": [
        [
          {
            "node": "HTTP Request22",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook3": {
      "main": [
        [
          {
            "node": "Global Constants8",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent5": {
      "main": [
        [
          {
            "node": "AI Agent7",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Update row in sheet4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent5",
            "type": "ai_languageModel",
            "index": 1
          }
        ]
      ]
    },
    "Code in JavaScript8": {
      "main": [
        [
          {
            "node": "AI Agent5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Redis Chat Memory4": {
      "ai_memory": [
        [
          {
            "node": "AI Agent5",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser5": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent5",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Structured Output Parser5",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Mistral Cloud Chat Model4": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent5",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet in Google Sheets1": {
      "ai_tool": [
        [
          {
            "node": "AI Agent5",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent7": {
      "main": [
        [
          {
            "node": "Update row in sheet3",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Update row in sheet4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Chat Model6": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent7",
            "type": "ai_languageModel",
            "index": 1
          }
        ]
      ]
    },
    "Redis Chat Memory6": {
      "ai_memory": [
        [
          {
            "node": "AI Agent7",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser7": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent7",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "Structured Output Parser7",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Mistral Cloud Chat Model6": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent7",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet in Google Sheets3": {
      "ai_tool": [
        [
          {
            "node": "AI Agent7",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Update row in sheet3": {
      "main": [
        [
          {
            "node": "Loop Over Items3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update row in sheet4": {
      "main": [
        [
          {
            "node": "Loop Over Items3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Global Constants8": {
      "main": [
        [
          {
            "node": "Get row(s) in sheet11",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet11": {
      "main": [
        [
          {
            "node": "If7",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger7": {
      "main": [
        [
          {
            "node": "Global Constants9",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If7": {
      "main": [
        [
          {
            "node": "HTTP Request21",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get row(s) in sheet12",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet12": {
      "main": [
        [
          {
            "node": "Loop Over Items4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items4": {
      "main": [
        [],
        [
          {
            "node": "If3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If3": {
      "main": [
        [
          {
            "node": "HTTP Request17",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Share file4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet13": {
      "main": [
        [
          {
            "node": "Get row(s) in sheet14",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet14": {
      "main": [
        [
          {
            "node": "Share file2",
            "type": "main",
            "index": 0
          },
          {
            "node": "Share file3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Share file2": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Share file3": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "HTTP Request46",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet4": {
      "main": [
        [
          {
            "node": "If14",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If9": {
      "main": [
        [
          {
            "node": "Update row in sheet5",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Code in JavaScript8",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update row in sheet5": {
      "main": [
        [
          {
            "node": "Loop Over Items3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Global Constants9": {
      "main": [
        [
          {
            "node": "Get row(s) in sheet4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Global Constants2": {
      "main": [
        [
          {
            "node": "Get row(s) in sheet5",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get row(s) in sheet8",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get row(s) in sheet15",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet5": {
      "main": [
        [
          {
            "node": "Update row in sheet13",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet8": {
      "main": [
        [
          {
            "node": "Update row in sheet14",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet15": {
      "main": [
        [
          {
            "node": "Update row in sheet15",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update row in sheet13": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update row in sheet14": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Update row in sheet15": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Merge1": {
      "main": [
        [
          {
            "node": "HTTP Request20",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook5": {
      "main": [
        [
          {
            "node": "Global Constants",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If8": {
      "main": [
        [
          {
            "node": "Loop Over Items4",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Switch5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook7": {
      "main": [
        [
          {
            "node": "Global Constants9",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet19": {
      "main": [
        [
          {
            "node": "If12",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If12": {
      "main": [
        [
          {
            "node": "Download file",
            "type": "main",
            "index": 0
          },
          {
            "node": "Download file1",
            "type": "main",
            "index": 0
          },
          {
            "node": "Download file2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If14": {
      "main": [
        [
          {
            "node": "Append row in sheet9",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get row(s) in sheet19",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append row in sheet9": {
      "main": [
        [
          {
            "node": "HTTP Request10",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append row in sheet10": {
      "main": [
        [
          {
            "node": "Append row in sheet3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request8": {
      "main": [
        [
          {
            "node": "Upload file1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet17": {
      "main": [
        [
          {
            "node": "Get row(s) in sheet18",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet18": {
      "main": [
        [
          {
            "node": "If4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If11": {
      "main": [
        [
          {
            "node": "Loop Over Items1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Code in JavaScript9",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch5": {
      "main": [
        [
          {
            "node": "Get row(s) in sheet13",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get row(s) in sheet13",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "HTTP Request44",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "HTTP Request45",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request44": {
      "main": [
        [
          {
            "node": "Update row in sheet17",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request45": {
      "main": [
        [
          {
            "node": "Update row in sheet17",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Share file4": {
      "main": [
        [
          {
            "node": "If8",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update row in sheet17": {
      "main": [
        [
          {
            "node": "HTTP Request59",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request59": {
      "main": [
        [
          {
            "node": "Upload file4",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "If_2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If_2": {
      "main": [
        [
          {
            "node": "Wait_2",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Update row in sheet23",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait_2": {
      "main": [
        [
          {
            "node": "HTTP Request59",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload file4": {
      "main": [
        [
          {
            "node": "Update row in sheet20",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update row in sheet20": {
      "main": [
        [
          {
            "node": "Loop Over Items4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request46": {
      "main": [
        [
          {
            "node": "HTTP Request47",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request47": {
      "main": [
        [
          {
            "node": "HTTP Request51",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "If_3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If_3": {
      "main": [
        [
          {
            "node": "Wait_3",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Update row in sheet23",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update row in sheet23": {
      "main": [
        [
          {
            "node": "Loop Over Items4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request51": {
      "main": [
        [
          {
            "node": "Upload file6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait_3": {
      "main": [
        [
          {
            "node": "HTTP Request47",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload file6": {
      "main": [
        [
          {
            "node": "Share file1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update row in sheet24": {
      "main": [
        [
          {
            "node": "Switch2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Share file1": {
      "main": [
        [
          {
            "node": "Update row in sheet24",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request52": {
      "main": [
        [
          {
            "node": "Update row in sheet22",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch2": {
      "main": [
        [
          {
            "node": "HTTP Request52",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "HTTP Request53",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request53": {
      "main": [
        [
          {
            "node": "Update row in sheet22",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update row in sheet22": {
      "main": [
        [
          {
            "node": "HTTP Request60",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request60": {
      "main": [
        [
          {
            "node": "Upload file7",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "If_",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If_": {
      "main": [
        [
          {
            "node": "Wait_",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Update row in sheet23",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait_": {
      "main": [
        [
          {
            "node": "HTTP Request60",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload file7": {
      "main": [
        [
          {
            "node": "Update row in sheet25",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update row in sheet25": {
      "main": [
        [
          {
            "node": "Loop Over Items4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model3": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent3",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet6": {
      "main": [
        [
          {
            "node": "Get row(s) in sheet17",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code in JavaScript9": {
      "main": [
        [
          {
            "node": "HTTP Request8",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download file": {
      "main": [
        [
          {
            "node": "Read/Write Files from Disk1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read/Write Files from Disk1": {
      "main": [
        [
          {
            "node": "Merge4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Execute Command1": {
      "main": [
        [
          {
            "node": "Merge2",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Code in JavaScript13": {
      "main": [
        [
          {
            "node": "Execute Command1",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge2": {
      "main": [
        [
          {
            "node": "Code in JavaScript14",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code in JavaScript14": {
      "main": [
        [
          {
            "node": "Code in JavaScript15",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code in JavaScript15": {
      "main": [
        [
          {
            "node": "Code in JavaScript16",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code in JavaScript16": {
      "main": [
        [
          {
            "node": "Execute Command4",
            "type": "main",
            "index": 0
          },
          {
            "node": "Execute Command5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Execute Command4": {
      "main": [
        [
          {
            "node": "Merge3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download file1": {
      "main": [
        [
          {
            "node": "Read/Write Files from Disk2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read/Write Files from Disk2": {
      "main": [
        [
          {
            "node": "Merge4",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Merge4": {
      "main": [
        [
          {
            "node": "Code in JavaScript13",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Execute Command5": {
      "main": [
        [
          {
            "node": "Merge3",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Download file2": {
      "main": [
        [
          {
            "node": "Read/Write Files from Disk3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read/Write Files from Disk3": {
      "main": [
        [
          {
            "node": "Merge4",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Read/Write Files from Disk4": {
      "main": [
        [
          {
            "node": "Merge5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code in JavaScript17": {
      "main": [
        [
          {
            "node": "Read/Write Files from Disk4",
            "type": "main",
            "index": 0
          },
          {
            "node": "Read/Write Files from Disk5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read/Write Files from Disk5": {
      "main": [
        [
          {
            "node": "Merge5",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Merge3": {
      "main": [
        [
          {
            "node": "Code in JavaScript17",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload file3": {
      "main": [
        [
          {
            "node": "Append row in sheet11",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet16": {
      "main": [
        [
          {
            "node": "Code in JavaScript3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge5": {
      "main": [
        [
          {
            "node": "Upload file3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append row in sheet11": {
      "main": [
        [
          {
            "node": "Share file7",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Share file7": {
      "main": [
        [
          {
            "node": "Get row(s) in sheet16",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Brave Search2": {
      "ai_tool": [
        [
          {
            "node": "AI Agent6",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Redis Chat Memory1": {
      "ai_memory": [
        [
          {
            "node": "AI Agent6",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Code in JavaScript3": {
      "main": [
        [
          {
            "node": "AI Agent6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Mistral Cloud Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent6",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Chat Model5": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent6",
            "type": "ai_languageModel",
            "index": 1
          }
        ]
      ]
    },
    "Structured Output Parser6": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent6",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model7": {
      "ai_languageModel": [
        [
          {
            "node": "Structured Output Parser6",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent6": {
      "main": [
        [
          {
            "node": "Get row(s) in sheet20",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get row(s) in sheet23",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update row in sheet2": {
      "main": [
        [
          {
            "node": "Loop Over Items5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet20": {
      "main": [
        [
          {
            "node": "Loop Over Items6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet23": {
      "main": [
        [
          {
            "node": "Loop Over Items5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items5": {
      "main": [
        [
          {
            "node": "Merge6",
            "type": "main",
            "index": 1
          }
        ],
        [
          {
            "node": "Update row in sheet2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items6": {
      "main": [
        [
          {
            "node": "Merge6",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Update row in sheet6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update row in sheet6": {
      "main": [
        [
          {
            "node": "Loop Over Items6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge6": {
      "main": [
        [
          {
            "node": "HTTP Request31",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook6": {
      "main": [
        [
          {
            "node": "Global Constants10",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Global Constants10",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Global Constants10": {
      "main": [
        [
          {
            "node": "Get row(s) in sheet24",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet24": {
      "main": [
        [
          {
            "node": "If1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If1": {
      "main": [
        [
          {
            "node": "Code in JavaScript10",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger1": {
      "main": [
        [
          {
            "node": "Global Constants6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger2": {
      "main": [
        [
          {
            "node": "Global Constants5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append row in sheet8": {
      "main": [
        [
          {
            "node": "HTTP Request16",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If10": {
      "main": [
        [
          {
            "node": "Code in JavaScript6",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Append row in sheet12",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append row in sheet12": {
      "main": [
        [
          {
            "node": "Append row in sheet13",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update row in sheet11": {
      "main": [
        [
          {
            "node": "HTTP Request19",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append row in sheet13": {
      "main": [
        [
          {
            "node": "Update row in sheet11",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger3": {
      "main": [
        [
          {
            "node": "Global Constants8",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Switch4": {
      "main": [
        [
          {
            "node": "HTTP Request35",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Update row in sheet27",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Generate an image4",
            "type": "main",
            "index": 0
          },
          {
            "node": "Generate an image5",
            "type": "main",
            "index": 0
          },
          {
            "node": "Generate an image7",
            "type": "main",
            "index": 0
          },
          {
            "node": "Generate an image6",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Generate an image8",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Update row in sheet27",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload file10": {
      "main": [
        [
          {
            "node": "Update row in sheet16",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate an image4": {
      "main": [
        [
          {
            "node": "Wait4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate an image5": {
      "main": [
        [
          {
            "node": "Wait5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate an image6": {
      "main": [
        [
          {
            "node": "Upload file13",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate an image7": {
      "main": [
        [
          {
            "node": "Wait6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait4": {
      "main": [
        [
          {
            "node": "Upload file10",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait5": {
      "main": [
        [
          {
            "node": "Upload file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait6": {
      "main": [
        [
          {
            "node": "Upload file12",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait7": {
      "main": [
        [
          {
            "node": "Loop Over Items8",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update row in sheet7": {
      "main": [
        [
          {
            "node": "Merge7",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Upload file11": {
      "main": [
        [
          {
            "node": "Update row in sheet29",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate an image8": {
      "main": [
        [
          {
            "node": "Upload file11",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload file": {
      "main": [
        [
          {
            "node": "Update row in sheet19",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload file12": {
      "main": [
        [
          {
            "node": "Update row in sheet7",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload file13": {
      "main": [
        [
          {
            "node": "Update row in sheet28",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook8": {
      "main": [
        [
          {
            "node": "Global Constants4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Global Constants4": {
      "main": [
        [
          {
            "node": "Get row(s) in sheet21",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet21": {
      "main": [
        [
          {
            "node": "If13",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet27": {
      "main": [
        [
          {
            "node": "Loop Over Items8",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items8": {
      "main": [
        [
          {
            "node": "HTTP Request35",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Switch4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update row in sheet27": {
      "main": [
        [
          {
            "node": "Loop Over Items8",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If13": {
      "main": [
        [
          {
            "node": "HTTP Request30",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get row(s) in sheet27",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger5": {
      "main": [
        [
          {
            "node": "Global Constants4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update row in sheet16": {
      "main": [
        [
          {
            "node": "Merge7",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update row in sheet19": {
      "main": [
        [
          {
            "node": "Merge7",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Update row in sheet28": {
      "main": [
        [
          {
            "node": "Merge7",
            "type": "main",
            "index": 3
          }
        ]
      ]
    },
    "Update row in sheet29": {
      "main": [
        [
          {
            "node": "Wait7",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge7": {
      "main": [
        [
          {
            "node": "Wait7",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1",
    "availableInMCP": false
  },
  "versionId": "439b46dc-4b95-4244-a61e-8af67fa06b7e",
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "5ff5a5992c4c72af22abbdcfa574d8cdf93dc14d57eb9f66e3d9ef2a3e2dbb6c"
  },
  "id": "18GPHgSfjTyouGBO",
  "tags": []
}