{
  "id": "CYtp7zJfBepNByyF",
  "name": "Short Video Gen with Creatomate",
  "tags": [],
  "nodes": [
    {
      "id": "7d57f5bb-f93a-41c5-862f-ac2f82b96b16",
      "name": "Anthropic Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "disabled": true,
      "position": [
        48,
        1760
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "25505f0e-9d06-48e9-a44b-39149511cd6a",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "disabled": true,
      "position": [
        416,
        1760
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "93abbaa2-9702-4cc3-b43b-62933046fd0a",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        608,
        1760
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "3e334821-6955-4415-befd-6f70475eb7b9",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1056,
        1872
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "36a2c944-621a-4a4e-85d9-f5d384847407",
      "name": "Format For Loop Over Items",
      "type": "n8n-nodes-base.code",
      "position": [
        800,
        1600
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "9eb04653-0c43-4313-95cf-20b4ae90e839",
      "name": "Get The Video Details",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1440,
        1872
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "19fd8288-1722-4a91-8aca-1530c18cbb05",
      "name": "Search Videos",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1280,
        1872
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "28bdc773-878d-4600-8183-6da72bc1ba91",
      "name": "Find Smaller Video File",
      "type": "n8n-nodes-base.code",
      "position": [
        1616,
        1872
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "7b52b648-545a-4454-8efa-dbb6d8916dbf",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        1776,
        1872
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "5546a1e6-568f-428b-b7ae-559b68d0e699",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        992,
        1792
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "7379993b-527e-4fbb-8704-424130404531",
      "name": "Generate Voice",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1904,
        1536
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "c576e410-b628-4a3d-9e32-c8ee327ef574",
      "name": "Structured Output Parser1",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        224,
        1760
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "10d16f5a-562b-4506-83c3-0d431f981db2",
      "name": "Set File Permissions",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2352,
        1536
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "5be6af04-927d-4c9e-af3b-347e19c82f1b",
      "name": "Format Video Links",
      "type": "n8n-nodes-base.code",
      "position": [
        1232,
        1536
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "98bcf235-c23d-49d8-ba87-d70f88968fcb",
      "name": "Create Short",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2640,
        1536
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "1c5f1e78-1fb6-4979-aa00-5d2577448297",
      "name": "Wait1",
      "type": "n8n-nodes-base.wait",
      "position": [
        2848,
        1536
      ],
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "31c007d1-8f09-4737-ab4d-835ac5a4d05d",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        3216,
        1536
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "e9167028-aaf2-40c5-a5aa-8290465ce460",
      "name": "Check Video Status",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3024,
        1536
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "9a4fcc0a-ef6a-40fe-af8c-321c40f38b15",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        992,
        1456
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "7959777c-950e-49cb-8e5f-8b191fd14c1a",
      "name": "Finished",
      "type": "n8n-nodes-base.code",
      "position": [
        3616,
        1520
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "f9e586ee-29cc-44e1-8ea4-f4f836719c52",
      "name": "Delete Audio",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        3424,
        1520
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "21c5c52b-589c-441a-aba6-989b12bc81d5",
      "name": "List Short Music Files",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1456,
        1536
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "2930b3c3-f412-441b-927f-ce6cb58d91f4",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2512,
        1456
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "f784818c-803d-4daa-9152-936e52024b16",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -224,
        1456
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "c5013b31-c905-4c7b-ba1a-60113297a97d",
      "name": "Choose Music",
      "type": "n8n-nodes-base.code",
      "position": [
        1680,
        1536
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "1641bb48-0799-4af4-a1ad-d3a179a957bb",
      "name": "Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        2128,
        1536
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "1284c0f3-1df6-4b2c-919d-ba723fa632f8",
      "name": "Short Text",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        48,
        1600
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "6ea60872-6565-4349-b79f-9771b5f48a3f",
      "name": "Video Search Terms",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        416,
        1600
      ],
      "parameters": {},
      "typeVersion": 1.7
    },
    {
      "id": "37073114-b0b4-4586-8bd7-2eab6dff0e2c",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -144,
        1600
      ],
      "parameters": {},
      "typeVersion": 2.3
    },
    {
      "id": "35046ebb-474e-45d5-82fa-a54d7288bedb",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2000,
        1792
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "48bf7bd5-2ee1-4d89-b5c2-4e8f1b25cd46",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -816,
        1456
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "8be97e33-c649-4a35-9a8a-d2390e57ea25",
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Delete Audio",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait1": {
      "main": [
        [
          {
            "node": "Check Video Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Short Text": {
      "main": [
        [
          {
            "node": "Video Search Terms",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Choose Music": {
      "main": [
        [
          {
            "node": "Generate Voice",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Short": {
      "main": [
        [
          {
            "node": "Wait1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Delete Audio": {
      "main": [
        [
          {
            "node": "Finished",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive": {
      "main": [
        [
          {
            "node": "Set File Permissions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search Videos": {
      "main": [
        [
          {
            "node": "Get The Video Details",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Voice": {
      "main": [
        [
          {
            "node": "Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [
          {
            "node": "Format Video Links",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Search Videos",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Video Search Terms",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Check Video Status": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Video Links": {
      "main": [
        [
          {
            "node": "List Short Music Files",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "Short Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Video Search Terms": {
      "main": [
        [
          {
            "node": "Format For Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Short Text",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Set File Permissions": {
      "main": [
        [
          {
            "node": "Create Short",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get The Video Details": {
      "main": [
        [
          {
            "node": "Find Smaller Video File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "List Short Music Files": {
      "main": [
        [
          {
            "node": "Choose Music",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Find Smaller Video File": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Video Search Terms",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser1": {
      "ai_outputParser": [
        [
          {
            "node": "Short Text",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Format For Loop Over Items": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}