{
  "name": "AI content creation and publishing engine with Mistral, Creatomate, and YouTube",
  "nodes": [
    {
      "id": "2c9cd4a8-be6c-4db6-93d1-47ac9ee7620d",
      "name": "Mistral Cloud Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatMistralCloud",
      "position": [
        60,
        -640
      ]
    },
    {
      "id": "cae51487-343d-44d9-be0a-afe572df6b36",
      "name": "Get Video File",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        780,
        140
      ]
    },
    {
      "id": "521f9381-e669-42de-bc61-e5075cafa8fd",
      "name": "Upload Video To Youtube",
      "type": "n8n-nodes-base.youTube",
      "position": [
        980,
        140
      ]
    },
    {
      "id": "0d524434-c5ab-4ccd-83ef-08fb470b92f8",
      "name": "Mistral Cloud Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatMistralCloud",
      "position": [
        320,
        420
      ]
    },
    {
      "id": "16962185-c7bf-4b51-b4d4-376aae13e89f",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        480,
        420
      ]
    },
    {
      "id": "2ed7a845-5a54-4bf5-9147-8aedb5d03c6c",
      "name": "Set Upload Details",
      "type": "n8n-nodes-base.set",
      "position": [
        600,
        140
      ]
    },
    {
      "id": "257fdcef-bcfb-45e9-bfaf-0b85cc24a7f1",
      "name": "If Render Not Successful",
      "type": "n8n-nodes-base.if",
      "position": [
        0,
        -40
      ]
    },
    {
      "id": "431a4755-b00f-4deb-b7fa-332e53850f00",
      "name": "Send Message to YTAdmin",
      "type": "n8n-nodes-base.telegram",
      "position": [
        260,
        -40
      ]
    },
    {
      "id": "a40c5bd2-fab0-464f-91ce-9ddbb36ca862",
      "name": "Send Success Message to YTAdmin",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1180,
        140
      ]
    },
    {
      "id": "dc50dd03-4a5c-4391-98f9-01f3b5e2ff1d",
      "name": "Recieve Message From YTAdmin",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -240,
        -860
      ]
    },
    {
      "id": "e31fcbb7-a515-4358-b7c2-31457187ab31",
      "name": "Generate Content",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        -40,
        -860
      ]
    },
    {
      "id": "849afef2-8fdf-46c1-b89e-735887f6d2d1",
      "name": "Set Content",
      "type": "n8n-nodes-base.set",
      "position": [
        320,
        -860
      ]
    },
    {
      "id": "0ddf8fb7-a69a-44ef-8a5b-491d12de00e0",
      "name": "Split into Categories for Processing",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        520,
        -860
      ]
    },
    {
      "id": "94ed71a2-aae8-4a13-8d3b-4829498ebec0",
      "name": "Generate Voice over Using OpenAI",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        840,
        -540
      ]
    },
    {
      "id": "ae11a70b-99ef-44fd-8ef6-b7fef6bc20ed",
      "name": "Generate Background Image Using OpenAI",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        840,
        -740
      ]
    },
    {
      "id": "a8995997-9ab7-4a96-b206-e38ab2b59661",
      "name": "Wait 1 minute to reduce request load on Open AI",
      "type": "n8n-nodes-base.wait",
      "position": [
        1240,
        -740
      ]
    },
    {
      "id": "21453276-8a02-4dd3-9a58-c5b11f368e40",
      "name": "Convert file into Base 64 string",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        1040,
        -540
      ]
    },
    {
      "id": "c8a4fb86-f09e-4a12-8a5b-0fd37dc74525",
      "name": "Upload to MongoDB ",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1240,
        -540
      ]
    },
    {
      "id": "bd68f16b-be42-4f22-88ca-2ad1b703982e",
      "name": "Merge Categories into Complete Scenes",
      "type": "n8n-nodes-base.merge",
      "position": [
        1660,
        -840
      ]
    },
    {
      "id": "1d942d77-090d-45c9-875a-e27fa5535062",
      "name": "Consolidate Scene Data",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        1860,
        -840
      ]
    },
    {
      "id": "3c524515-789b-4428-bdc5-368e18dfc465",
      "name": "Set Video File URL",
      "type": "n8n-nodes-base.set",
      "position": [
        1440,
        -540
      ]
    },
    {
      "id": "d1f1a256-ce74-4354-bebb-b32cb76ace42",
      "name": "Set Image URL",
      "type": "n8n-nodes-base.set",
      "position": [
        1040,
        -740
      ]
    },
    {
      "id": "fc73a938-2e7c-454c-abf1-3383c7250f70",
      "name": "Send Progress Message to YTAdmin ",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2300,
        -840
      ]
    },
    {
      "id": "13d66735-96a0-4a26-83ae-faef717e363c",
      "name": "Generate Title and Description",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        260,
        140
      ]
    },
    {
      "id": "5c51a31c-7732-499b-a25e-1f023bd45546",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        760,
        -1020
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "cae8742e-b223-436f-a02a-95597db7c9e0",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2020,
        -1020
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "04c0c116-15e2-40db-9801-5fb70ffe1713",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        -1000
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "dbed7ccc-342d-4ef7-af65-d16305690b36",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -900,
        -1000
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "afb60bf2-6106-466a-81ae-99972ce0aebb",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -900,
        -220
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "d86f8381-7844-4b9a-885c-85390c9afd19",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        560,
        -220
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "60f15f6a-f20d-4120-88bf-821f0a86ca34",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -300,
        -220
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "99152d06-e2d2-4978-a3e4-5aaa8a2a126b",
      "name": "Structured Output Parser1",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        200,
        -640
      ]
    },
    {
      "id": "8351627f-82ba-4499-a69d-1086d260109a",
      "name": "Render Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2080,
        -840
      ]
    },
    {
      "id": "4ca5eb70-bec1-436c-bdbd-fbb7fe5fc1ea",
      "name": "Receive Response from Creatomate",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -240,
        -40
      ]
    }
  ],
  "connections": {
    "Set Content": {
      "main": [
        [
          {
            "node": "Split into Categories for Processing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Image URL": {
      "main": [
        [
          {
            "node": "Wait 1 minute to reduce request load on Open AI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Video File": {
      "main": [
        [
          {
            "node": "Upload Video To Youtube",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Render Request": {
      "main": [
        [
          {
            "node": "Send Progress Message to YTAdmin ",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Content": {
      "main": [
        [
          {
            "node": "Set Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Upload Details": {
      "main": [
        [
          {
            "node": "Get Video File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Video File URL": {
      "main": [
        [
          {
            "node": "Merge Categories into Complete Scenes",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Upload to MongoDB ": {
      "main": [
        [
          {
            "node": "Set Video File URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Consolidate Scene Data": {
      "main": [
        [
          {
            "node": "Render Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Video To Youtube": {
      "main": [
        [
          {
            "node": "Send Success Message to YTAdmin",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If Render Not Successful": {
      "main": [
        [
          {
            "node": "Send Message to YTAdmin",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Generate Title and Description",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Mistral Cloud Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Title and Description",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Generate Title and Description",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Mistral Cloud Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Content",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser1": {
      "ai_outputParser": [
        [
          {
            "node": "Generate Content",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Recieve Message From YTAdmin": {
      "main": [
        [
          {
            "node": "Generate Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Title and Description": {
      "main": [
        [
          {
            "node": "Set Upload Details",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert file into Base 64 string": {
      "main": [
        [
          {
            "node": "Upload to MongoDB ",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Voice over Using OpenAI": {
      "main": [
        [
          {
            "node": "Convert file into Base 64 string",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Receive Response from Creatomate": {
      "main": [
        [
          {
            "node": "If Render Not Successful",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split into Categories for Processing": {
      "main": [
        [
          {
            "node": "Merge Categories into Complete Scenes",
            "type": "main",
            "index": 0
          },
          {
            "node": "Generate Background Image Using OpenAI",
            "type": "main",
            "index": 0
          },
          {
            "node": "Generate Voice over Using OpenAI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Categories into Complete Scenes": {
      "main": [
        [
          {
            "node": "Consolidate Scene Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Background Image Using OpenAI": {
      "main": [
        [
          {
            "node": "Set Image URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 1 minute to reduce request load on Open AI": {
      "main": [
        [
          {
            "node": "Merge Categories into Complete Scenes",
            "type": "main",
            "index": 1
          }
        ]
      ]
    }
  }
}