{
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "afe15ed4-02b1-4e90-8281-42104978aa4e",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1712,
        -336
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "0a3872db-ab20-4953-a92c-5cdeff9e9faa",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2272,
        -272
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "6e62b5a2-3f8c-4d34-afda-8fc095a9f5d2",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2720,
        -272
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "da435f14-637a-4801-b65d-702a0d1720b2",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4848,
        -288
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "c4ac6eba-5220-4a80-99e1-1acc00c05a26",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        5520,
        -272
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "1bea6d8b-a5e4-4035-8c55-207b22365a7e",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        6272,
        -336
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "0c3d38a4-0506-485c-99ee-ad7f2c99c03e",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        6272,
        32
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "9aa0fedf-8801-4e2b-833f-f069b9ecf652",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        6272,
        640
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "75b9fb6b-0be0-43cc-934b-bb629767ff7e",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        6272,
        1008
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "c25c72bd-3ce3-42c4-bc7e-816b783a7c78",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        7712,
        -336
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "7bb934e1-b96f-42d5-9996-408adb44aad6",
      "name": "Trigger Manual Workflow",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        2320,
        -160
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "32271dc0-9150-43e0-a0aa-b77a04a45d6c",
      "name": "Post Audio Synthesis",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        5568,
        -160
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "ba638058-7c28-42ed-9abc-a3f13851525b",
      "name": "Set API Parameters",
      "type": "n8n-nodes-base.set",
      "position": [
        4896,
        -160
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "60b93b92-0452-4457-80a5-763d2bb4d25d",
      "name": "Generate JWT Token",
      "type": "n8n-nodes-base.jwt",
      "position": [
        5120,
        -160
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "388561e2-e5cd-4655-9824-d082f827eaa8",
      "name": "Fetch OAuth Token",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        5344,
        -160
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "38bc389e-620c-450b-a557-bcc44795e2f1",
      "name": "Convert Audio to File",
      "type": "n8n-nodes-base.convertToFile",
      "notes": "At this step, the video should be generated and ready to convert to 9:16 aspect ratio",
      "position": [
        5792,
        -160
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 1.1
    },
    {
      "id": "dc825dab-2d3d-4368-a1ff-8d96616cf6b6",
      "name": "Set Input Variables",
      "type": "n8n-nodes-base.set",
      "position": [
        2544,
        -160
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "9f81e22d-fa90-4367-9873-df91c1ba053d",
      "name": "Google Chat Model 1",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        2768,
        64
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "4c690ec5-5e87-4442-b850-9ba35061ab41",
      "name": "Create Story",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        2784,
        -160
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "fe114b31-cb98-4abf-a3bb-61560df32a40",
      "name": "Parse Structured Output",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        2896,
        64
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "c789cce5-c3d3-410f-b87d-a57a8731f209",
      "name": "DeepSeek Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatDeepSeek",
      "position": [
        2992,
        272
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "ee3e9b38-6e7b-4f8f-930a-ab08600b985a",
      "name": "Prepare Hook Prompt",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        3296,
        -160
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "335335ce-177e-4f44-923a-029e9b55196f",
      "name": "Prepare Segment 1 Prompt",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        3696,
        -160
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "6f6044f0-921a-48cc-8d6c-663c2424a623",
      "name": "Prepare Segment 2 Prompt",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        4096,
        -160
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "811db9b6-f145-4a84-b3c1-f7e201c20c70",
      "name": "Prepare CTA Prompt",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        4496,
        -160
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "a902a08d-a677-4259-b2a0-36d9e47d4ac8",
      "name": "Google Chat Model 2",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        3392,
        64
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "4252cfa6-cc18-41ab-b766-c111733c00b4",
      "name": "Google Chat Model 3",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        3792,
        64
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "e7faeeef-b7c6-4004-b261-7b39e007e224",
      "name": "Google Chat Model 4",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        4192,
        64
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "d87ae1d2-dde1-4c67-bd51-9fd2f7abaed6",
      "name": "Google Chat Model 5",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        4592,
        64
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "84a66b03-4164-4a42-b4f3-9045b399e662",
      "name": "Post Audio Synthesis 1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        5568,
        144
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "adbe9af0-a3fb-436a-9c89-36f54a47502a",
      "name": "Convert Audio File 1",
      "type": "n8n-nodes-base.convertToFile",
      "notes": "At this step, the video should be generated and ready to convert to 9:16 aspect ratio",
      "position": [
        5792,
        144
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 1.1
    },
    {
      "id": "e9529200-d491-47ba-9735-da795baa2bee",
      "name": "Upload Audio Segment 1",
      "type": "n8n-nodes-base.googleCloudStorage",
      "position": [
        6016,
        144
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 1,
      "waitBetweenTries": 2000
    },
    {
      "id": "ddcec0be-ecd9-424e-a362-891bf3e3c075",
      "name": "Post Audio Synthesis 2",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        5568,
        448
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "f5ab88a1-1755-44dc-9dd3-87a0d43d19c9",
      "name": "Convert Audio File 2",
      "type": "n8n-nodes-base.convertToFile",
      "notes": "At this step, the video should be generated and ready to convert to 9:16 aspect ratio",
      "position": [
        5792,
        448
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 1.1
    },
    {
      "id": "580e7f38-29ed-49a9-a618-b756df78cde3",
      "name": "Upload Audio Segment 2",
      "type": "n8n-nodes-base.googleCloudStorage",
      "position": [
        6016,
        448
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 1,
      "waitBetweenTries": 2000
    },
    {
      "id": "ad42bbb9-d70b-495c-b6cd-0d0c0884e720",
      "name": "Post Audio Synthesis 3",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        5568,
        752
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "ad36d61e-2937-46e3-afd2-28b1a5cc4a11",
      "name": "Convert Audio File 3",
      "type": "n8n-nodes-base.convertToFile",
      "notes": "At this step, the video should be generated and ready to convert to 9:16 aspect ratio",
      "position": [
        5792,
        752
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 1.1
    },
    {
      "id": "2469b5e4-f84e-49ce-98f8-d8933243ad63",
      "name": "Upload Hook Audio File",
      "type": "n8n-nodes-base.googleCloudStorage",
      "position": [
        6016,
        -160
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 1,
      "waitBetweenTries": 2000
    },
    {
      "id": "f7b9e5b9-f594-4b81-8f17-b619b89aa403",
      "name": "Upload CTA Audio File",
      "type": "n8n-nodes-base.googleCloudStorage",
      "position": [
        6016,
        752
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 1,
      "waitBetweenTries": 2000
    },
    {
      "id": "b1c21a11-6c1b-44db-8e8c-74d24cbb93da",
      "name": "Route Based on Rule 1",
      "type": "n8n-nodes-base.switch",
      "position": [
        6992,
        -160
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "90288f6e-d909-4970-b969-3caf472abe19",
      "name": "Post Video Generation 1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        6320,
        -160
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "cfa48361-9546-4dfd-b79a-c880ee86d04e",
      "name": "Fetch Video Status 1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        6768,
        -224
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "809989ee-1235-4df5-b5d8-414d63642270",
      "name": "Wait 20 Seconds 1",
      "type": "n8n-nodes-base.wait",
      "position": [
        6544,
        -160
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "ac6e6f1f-42be-4d9b-8644-9910384d4a3d",
      "name": "Convert Video File 1",
      "type": "n8n-nodes-base.convertToFile",
      "notes": "At this step, the video should be generated and ready to convert to 9:16 aspect ratio",
      "position": [
        7216,
        144
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 1.1
    },
    {
      "id": "cfac7716-4598-46a2-9e44-1534058da46f",
      "name": "Route Based on Rule 2",
      "type": "n8n-nodes-base.switch",
      "position": [
        6992,
        448
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "8f5c8406-5558-48b8-9334-7918dc22dcea",
      "name": "Post Video Generation 2",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        6320,
        448
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "4e4f116b-e686-40b2-8c73-8b1aed2999bf",
      "name": "Fetch Video Status 2",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        6768,
        384
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "20d37100-4413-4f95-b3ba-c100cbc40096",
      "name": "Wait 20 Seconds 2",
      "type": "n8n-nodes-base.wait",
      "position": [
        6544,
        448
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "3cc2f6ad-30f7-4489-a263-72ca60c92f25",
      "name": "Convert Video File 2",
      "type": "n8n-nodes-base.convertToFile",
      "notes": "At this step, the video should be generated and ready to convert to 9:16 aspect ratio",
      "position": [
        7216,
        448
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 1.1
    },
    {
      "id": "9829e170-0a32-412b-9cef-4159db34d718",
      "name": "Route Based on Rule 3",
      "type": "n8n-nodes-base.switch",
      "position": [
        6992,
        816
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "7dc3b299-a3fc-4bf8-aa1a-ba8f21fa4e2e",
      "name": "Post Video Generation 3",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        6320,
        816
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "45ab1710-980d-46b1-842b-a452a2d915c5",
      "name": "Fetch Video Status 3",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        6768,
        752
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "4d6a850b-5c11-4b78-aec8-dc564f51bccc",
      "name": "Wait 20 Seconds 3",
      "type": "n8n-nodes-base.wait",
      "position": [
        6544,
        816
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "3c5dc995-396f-4f49-97d7-726396dcf1ce",
      "name": "Convert Video File 3",
      "type": "n8n-nodes-base.convertToFile",
      "notes": "At this step, the video should be generated and ready to convert to 9:16 aspect ratio",
      "position": [
        7216,
        816
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 1.1
    },
    {
      "id": "65993c9d-b392-4fb8-85a3-3f30f487e109",
      "name": "Route Based on Rule 4",
      "type": "n8n-nodes-base.switch",
      "position": [
        6992,
        1184
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "73ff5b0a-35da-4d41-89aa-674c8b2d801a",
      "name": "Post Video Generation 4",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        6320,
        1184
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "539101c5-7d5f-42e8-8edc-8539490e5855",
      "name": "Fetch Video Status 4",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        6768,
        1120
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "71cc3f6d-4bf8-4d5b-9aee-8531cc350517",
      "name": "Wait 20 Seconds 4",
      "type": "n8n-nodes-base.wait",
      "position": [
        6544,
        1184
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "cc88e541-543f-44cd-961b-eeed1e1753dc",
      "name": "Convert Video File 4",
      "type": "n8n-nodes-base.convertToFile",
      "notes": "At this step, the video should be generated and ready to convert to 9:16 aspect ratio",
      "position": [
        7216,
        1184
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 1.1
    },
    {
      "id": "6727ba09-8630-4b9b-abd6-0f1c4d96aaff",
      "name": "Upload Video Hook File",
      "type": "n8n-nodes-base.googleCloudStorage",
      "position": [
        7440,
        144
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 1,
      "waitBetweenTries": 2000
    },
    {
      "id": "3aa4ac3b-8d3b-480e-8fbc-176ecd1da6d5",
      "name": "Upload Video Segment 1",
      "type": "n8n-nodes-base.googleCloudStorage",
      "position": [
        7440,
        448
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 1,
      "waitBetweenTries": 2000
    },
    {
      "id": "69fd4978-56fd-4c03-beae-2bd780a412c6",
      "name": "Upload Video Segment 2",
      "type": "n8n-nodes-base.googleCloudStorage",
      "position": [
        7440,
        816
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 1,
      "waitBetweenTries": 2000
    },
    {
      "id": "cdf656c8-9798-44c5-9e46-2ba7a6b6abb3",
      "name": "Upload Video CTA File",
      "type": "n8n-nodes-base.googleCloudStorage",
      "position": [
        7440,
        1184
      ],
      "parameters": {},
      "retryOnFail": true,
      "typeVersion": 1,
      "waitBetweenTries": 2000
    },
    {
      "id": "96b57db2-0748-4182-b20c-4513ff1efeb6",
      "name": "Merge Video Files",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        7984,
        -144
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "5f61438a-3660-4fbc-a30d-eefe0a78f363",
      "name": "Wait for Rendering",
      "type": "n8n-nodes-base.wait",
      "position": [
        8208,
        -144
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "fd847003-2fbb-494f-9b35-1eab54a0a0c4",
      "name": "Check Render Completion",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        8432,
        -224
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "850796f4-873d-483d-8f2b-201ad9033451",
      "name": "Download Final Video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        8880,
        -80
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "7b2db96d-0a69-41c4-b298-10d25075ecab",
      "name": "Build Creatomate Request",
      "type": "n8n-nodes-base.code",
      "position": [
        7760,
        -80
      ],
      "parameters": {},
      "executeOnce": true,
      "typeVersion": 2
    },
    {
      "id": "d286afb8-8787-431f-b426-0d4b1ec3b75b",
      "name": "Route Based on Completion",
      "type": "n8n-nodes-base.switch",
      "position": [
        8656,
        -96
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "4b861106-ba60-488e-a328-fcb61c0932c0",
      "name": "Send Video via Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        9104,
        -80
      ],
      "parameters": {},
      "typeVersion": 1.2
    }
  ],
  "connections": {
    "Create Story": {
      "main": [
        [
          {
            "node": "Prepare Hook Prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch OAuth Token": {
      "main": [
        [
          {
            "node": "Post Audio Synthesis",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Video Files": {
      "main": [
        [
          {
            "node": "Wait for Rendering",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 20 Seconds 1": {
      "main": [
        [
          {
            "node": "Fetch Video Status 1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 20 Seconds 2": {
      "main": [
        [
          {
            "node": "Fetch Video Status 2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 20 Seconds 3": {
      "main": [
        [
          {
            "node": "Fetch Video Status 3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 20 Seconds 4": {
      "main": [
        [
          {
            "node": "Fetch Video Status 4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate JWT Token": {
      "main": [
        [
          {
            "node": "Fetch OAuth Token",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare CTA Prompt": {
      "main": [
        [
          {
            "node": "Set API Parameters",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set API Parameters": {
      "main": [
        [
          {
            "node": "Generate JWT Token",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait for Rendering": {
      "main": [
        [
          {
            "node": "Check Render Completion",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "DeepSeek Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Parse Structured Output",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Google Chat Model 1": {
      "ai_languageModel": [
        [
          {
            "node": "Create Story",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Google Chat Model 2": {
      "ai_languageModel": [
        [
          {
            "node": "Prepare Hook Prompt",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Google Chat Model 3": {
      "ai_languageModel": [
        [
          {
            "node": "Prepare Segment 1 Prompt",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Google Chat Model 4": {
      "ai_languageModel": [
        [
          {
            "node": "Prepare Segment 2 Prompt",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Google Chat Model 5": {
      "ai_languageModel": [
        [
          {
            "node": "Prepare CTA Prompt",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Hook Prompt": {
      "main": [
        [
          {
            "node": "Prepare Segment 1 Prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Input Variables": {
      "main": [
        [
          {
            "node": "Create Story",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert Audio File 1": {
      "main": [
        [
          {
            "node": "Upload Audio Segment 1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert Audio File 2": {
      "main": [
        [
          {
            "node": "Upload Audio Segment 2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert Audio File 3": {
      "main": [
        [
          {
            "node": "Upload CTA Audio File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert Video File 1": {
      "main": [
        [
          {
            "node": "Upload Video Hook File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert Video File 2": {
      "main": [
        [
          {
            "node": "Upload Video Segment 1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert Video File 3": {
      "main": [
        [
          {
            "node": "Upload Video Segment 2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert Video File 4": {
      "main": [
        [
          {
            "node": "Upload Video CTA File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Final Video": {
      "main": [
        [
          {
            "node": "Send Video via Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Video Status 1": {
      "main": [
        [
          {
            "node": "Route Based on Rule 1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Video Status 2": {
      "main": [
        [
          {
            "node": "Route Based on Rule 2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Video Status 3": {
      "main": [
        [
          {
            "node": "Route Based on Rule 3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Video Status 4": {
      "main": [
        [
          {
            "node": "Route Based on Rule 4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Post Audio Synthesis": {
      "main": [
        [
          {
            "node": "Convert Audio to File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert Audio to File": {
      "main": [
        [
          {
            "node": "Upload Hook Audio File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route Based on Rule 1": {
      "main": [
        [
          {
            "node": "Convert Video File 1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait 20 Seconds 1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route Based on Rule 2": {
      "main": [
        [
          {
            "node": "Convert Video File 2",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait 20 Seconds 2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route Based on Rule 3": {
      "main": [
        [
          {
            "node": "Convert Video File 3",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait 20 Seconds 3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route Based on Rule 4": {
      "main": [
        [
          {
            "node": "Convert Video File 4",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait 20 Seconds 4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload CTA Audio File": {
      "main": [
        [
          {
            "node": "Post Video Generation 1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Video CTA File": {
      "main": [
        [
          {
            "node": "Build Creatomate Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Post Audio Synthesis 1": {
      "main": [
        [
          {
            "node": "Convert Audio File 1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Post Audio Synthesis 2": {
      "main": [
        [
          {
            "node": "Convert Audio File 2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Post Audio Synthesis 3": {
      "main": [
        [
          {
            "node": "Convert Audio File 3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Audio Segment 1": {
      "main": [
        [
          {
            "node": "Post Audio Synthesis 2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Audio Segment 2": {
      "main": [
        [
          {
            "node": "Post Audio Synthesis 3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Hook Audio File": {
      "main": [
        [
          {
            "node": "Post Audio Synthesis 1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Video Hook File": {
      "main": [
        [
          {
            "node": "Post Video Generation 2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Video Segment 1": {
      "main": [
        [
          {
            "node": "Post Video Generation 3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Video Segment 2": {
      "main": [
        [
          {
            "node": "Post Video Generation 4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Render Completion": {
      "main": [
        [
          {
            "node": "Route Based on Completion",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Structured Output": {
      "ai_outputParser": [
        [
          {
            "node": "Create Story",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Post Video Generation 1": {
      "main": [
        [
          {
            "node": "Wait 20 Seconds 1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Post Video Generation 2": {
      "main": [
        [
          {
            "node": "Wait 20 Seconds 2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Post Video Generation 3": {
      "main": [
        [
          {
            "node": "Wait 20 Seconds 3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Post Video Generation 4": {
      "main": [
        [
          {
            "node": "Wait 20 Seconds 4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Trigger Manual Workflow": {
      "main": [
        [
          {
            "node": "Set Input Variables",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Build Creatomate Request": {
      "main": [
        [
          {
            "node": "Merge Video Files",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Segment 1 Prompt": {
      "main": [
        [
          {
            "node": "Prepare Segment 2 Prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Segment 2 Prompt": {
      "main": [
        [
          {
            "node": "Prepare CTA Prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route Based on Completion": {
      "main": [
        [
          {
            "node": "Download Final Video",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Build Creatomate Request",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait for Rendering",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait for Rendering",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}