{
  "name": "Generate a YouTube bedtime story using OpenAI",
  "nodes": [
    {
      "id": "0466edf0-3c53-4e2b-8b36-7543f1161d56",
      "name": "Create a list of Image Text1",
      "type": "n8n-nodes-base.code",
      "position": [
        1120,
        -220
      ]
    },
    {
      "id": "b379366e-9a7b-4787-81d0-6bdf33c6f810",
      "name": "Split Out1",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        1280,
        -220
      ]
    },
    {
      "id": "69b9252d-3ab1-4084-a564-3a06de682d2d",
      "name": "Get image Base ",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2220,
        -220
      ]
    },
    {
      "id": "44ea807c-5695-4b6d-9e76-88b793879dfb",
      "name": "Combine Transcript1",
      "type": "n8n-nodes-base.code",
      "position": [
        1100,
        320
      ]
    },
    {
      "id": "41de69a9-91ab-4d3a-9872-10ebb81cebf8",
      "name": "Clean Transcript",
      "type": "n8n-nodes-base.code",
      "position": [
        2700,
        320
      ]
    },
    {
      "id": "ab5865dd-3638-4ec1-b43d-95513d93b46c",
      "name": "Schedule Trigger1",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        1100,
        -760
      ]
    },
    {
      "id": "99bd8888-b23d-4456-94ca-4e1e2efc898d",
      "name": "Get Random BG music",
      "type": "n8n-nodes-base.googleCloudStorage",
      "position": [
        1280,
        320
      ]
    },
    {
      "id": "6caf808f-74db-48d5-83df-d3069f0a79ef",
      "name": "YouTube Seos Kanaal",
      "type": "n8n-nodes-base.youTube",
      "position": [
        1480,
        920
      ]
    },
    {
      "id": "956f5814-9187-489b-a939-069f07ccc919",
      "name": "Generate Voice Over",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1620,
        -760
      ]
    },
    {
      "id": "e96a5653-3681-4aed-b5fd-cfc97a7964f7",
      "name": "Clean Voice Over",
      "type": "n8n-nodes-base.code",
      "position": [
        1880,
        -760
      ]
    },
    {
      "id": "80b0ee25-40fe-48fb-a013-39efbe12b81d",
      "name": "Prepare OpenAI TTS",
      "type": "n8n-nodes-base.set",
      "position": [
        2100,
        -760
      ]
    },
    {
      "id": "141f2063-35b0-4a73-8447-39111cf74730",
      "name": "OPENai TTS",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2320,
        -760
      ]
    },
    {
      "id": "cec59509-de07-4a2b-8d2c-02f1f5fd869e",
      "name": "Wait 5 sec",
      "type": "n8n-nodes-base.wait",
      "position": [
        2480,
        -760
      ]
    },
    {
      "id": "4a75e33c-5d60-4250-9ee3-1681a957e177",
      "name": "Save Audio GSC",
      "type": "n8n-nodes-base.googleCloudStorage",
      "position": [
        2680,
        -760
      ]
    },
    {
      "id": "8b6a20c0-c65f-4bf3-8b12-1e97af7ddb9c",
      "name": "Map Public Link",
      "type": "n8n-nodes-base.set",
      "position": [
        2840,
        -760
      ]
    },
    {
      "id": "c56d57f1-a7d5-4a6a-b07b-ed777a494f2c",
      "name": "Download Audio from GSC",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3000,
        -760
      ]
    },
    {
      "id": "33a9f025-cc84-4569-b2bf-6222593bc9a0",
      "name": "Transcribe with OpenAI Whisper",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3180,
        -760
      ]
    },
    {
      "id": "c620fbe9-a9a8-4fc7-8637-a6e5e8ab990b",
      "name": "Combine Image Style and Elements",
      "type": "n8n-nodes-base.code",
      "position": [
        1440,
        -220
      ]
    },
    {
      "id": "126cab39-dbea-4b30-8f45-325e7dc7dca1",
      "name": "Split Out - Image prompts",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        1660,
        -220
      ]
    },
    {
      "id": "cd9a1e53-5837-4fc7-95e5-a231a8cb56b1",
      "name": "Make Image Prompts Gemini",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1860,
        -220
      ]
    },
    {
      "id": "c17e1a10-a24f-4023-811c-7bc8206a09b9",
      "name": "Clean Image prompts",
      "type": "n8n-nodes-base.code",
      "position": [
        2060,
        -220
      ]
    },
    {
      "id": "6bb52ea5-87e6-4bd8-b83d-9f24a8da37fa",
      "name": "Convert to File",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        2420,
        -220
      ]
    },
    {
      "id": "4e249b65-8861-4c8d-9a97-07dd4529709f",
      "name": "Wait 6 sec",
      "type": "n8n-nodes-base.wait",
      "position": [
        2580,
        -220
      ]
    },
    {
      "id": "2849dc99-09a8-4ed6-ba52-d22b5ab7d6e2",
      "name": "Save images to GC",
      "type": "n8n-nodes-base.googleCloudStorage",
      "position": [
        2780,
        -220
      ]
    },
    {
      "id": "d2db26d3-658a-4443-87df-6dc7b407fabc",
      "name": "Limit",
      "type": "n8n-nodes-base.limit",
      "position": [
        2980,
        -220
      ]
    },
    {
      "id": "55c14839-79f4-4f17-b24e-f767e0c07929",
      "name": "Image Link",
      "type": "n8n-nodes-base.set",
      "position": [
        3180,
        -220
      ]
    },
    {
      "id": "17953f6f-0d2b-4f39-9e5d-49b22d7963cd",
      "name": "Pick Random song From GSC",
      "type": "n8n-nodes-base.code",
      "position": [
        1460,
        320
      ]
    },
    {
      "id": "ea8010fe-9ce6-4a99-89f8-7dbbc67c2437",
      "name": "Map Music",
      "type": "n8n-nodes-base.set",
      "position": [
        1640,
        320
      ]
    },
    {
      "id": "b976202d-ff12-41a6-89b3-00dd143cd853",
      "name": "Generate Json to Video",
      "type": "n8n-nodes-base.code",
      "position": [
        1820,
        320
      ]
    },
    {
      "id": "06f7efd3-fdec-4ab3-a06b-9b20b0f2499f",
      "name": "Create Video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2000,
        320
      ]
    },
    {
      "id": "ee2355f9-a307-440a-a4e8-4093ae4b0665",
      "name": "Wait 6 min for Rendering",
      "type": "n8n-nodes-base.wait",
      "position": [
        2160,
        320
      ]
    },
    {
      "id": "9fad8e5d-1a8e-4033-b64b-212412ac96a3",
      "name": "Get Video Progress",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2340,
        320
      ]
    },
    {
      "id": "95268ca7-3424-4aad-af52-512d6b346a59",
      "name": "Set Correct Video Url",
      "type": "n8n-nodes-base.set",
      "position": [
        2520,
        320
      ]
    },
    {
      "id": "574851be-5591-42ad-aefd-cfa923bd8070",
      "name": "Generate Transcript With AI",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2860,
        320
      ]
    },
    {
      "id": "31309455-403f-4f99-92ba-d34b60705528",
      "name": "Generate Title with AI",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3080,
        320
      ]
    },
    {
      "id": "219ed130-2a68-4f28-b78f-880f6c2df9df",
      "name": "Append GS",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        3260,
        320
      ]
    },
    {
      "id": "84746d6b-50dc-4092-a488-3af4d15c8f7b",
      "name": "Grab Video from GS",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1100,
        920
      ]
    },
    {
      "id": "fc272a45-5bdc-401b-a75f-e8b33331ff0a",
      "name": "Download Video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1280,
        920
      ]
    },
    {
      "id": "10bd5fdf-36d3-4e07-9854-7db51eb4eb93",
      "name": "Upgrade Progress on GS",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1700,
        920
      ]
    },
    {
      "id": "daef9ee3-acdb-47e7-8f64-5b9630bc7d16",
      "name": "Send message with Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1900,
        920
      ]
    },
    {
      "id": "5a7d6e69-4d12-4b2e-a8f4-17eaaf76ea14",
      "name": "Grab Animal",
      "type": "n8n-nodes-base.code",
      "position": [
        1320,
        -760
      ]
    },
    {
      "id": "fcbde749-b919-4cca-9c66-de5d497587ce",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1980,
        80
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "591e8003-b729-4914-af83-d8519fb21503",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1140,
        -1060
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    }
  ],
  "connections": {
    "Limit": {
      "main": [
        [
          {
            "node": "Image Link",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append GS": {
      "main": [
        []
      ]
    },
    "Map Music": {
      "main": [
        [
          {
            "node": "Generate Json to Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Image Link": {
      "main": [
        [
          {
            "node": "Combine Transcript1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OPENai TTS": {
      "main": [
        [
          {
            "node": "Wait 5 sec",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out1": {
      "main": [
        [
          {
            "node": "Combine Image Style and Elements",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 5 sec": {
      "main": [
        [
          {
            "node": "Save Audio GSC",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 6 sec": {
      "main": [
        [
          {
            "node": "Save images to GC",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Grab Animal": {
      "main": [
        [
          {
            "node": "Generate Voice Over",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Video": {
      "main": [
        [
          {
            "node": "Wait 6 min for Rendering",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Video": {
      "main": [
        [
          {
            "node": "YouTube Seos Kanaal",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save Audio GSC": {
      "main": [
        [
          {
            "node": "Map Public Link",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert to File": {
      "main": [
        [
          {
            "node": "Wait 6 sec",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get image Base ": {
      "main": [
        [
          {
            "node": "Convert to File",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Convert to File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Map Public Link": {
      "main": [
        [
          {
            "node": "Download Audio from GSC",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clean Transcript": {
      "main": [
        [
          {
            "node": "Generate Transcript With AI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clean Voice Over": {
      "main": [
        [
          {
            "node": "Prepare OpenAI TTS",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save images to GC": {
      "main": [
        [
          {
            "node": "Limit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger1": {
      "main": [
        [
          {
            "node": "Grab Animal",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Video Progress": {
      "main": [
        [
          {
            "node": "Set Correct Video Url",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Grab Video from GS": {
      "main": [
        [
          {
            "node": "Download Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare OpenAI TTS": {
      "main": [
        [
          {
            "node": "OPENai TTS",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clean Image prompts": {
      "main": [
        [
          {
            "node": "Get image Base ",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Combine Transcript1": {
      "main": [
        [
          {
            "node": "Get Random BG music",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Voice Over": {
      "main": [
        [
          {
            "node": "Clean Voice Over",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Random BG music": {
      "main": [
        [
          {
            "node": "Pick Random song From GSC",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "YouTube Seos Kanaal": {
      "main": [
        [
          {
            "node": "Upgrade Progress on GS",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Correct Video Url": {
      "main": [
        [
          {
            "node": "Clean Transcript",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Json to Video": {
      "main": [
        [
          {
            "node": "Create Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Title with AI": {
      "main": [
        [
          {
            "node": "Append GS",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upgrade Progress on GS": {
      "main": [
        [
          {
            "node": "Send message with Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Audio from GSC": {
      "main": [
        [
          {
            "node": "Transcribe with OpenAI Whisper",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 6 min for Rendering": {
      "main": [
        [
          {
            "node": "Get Video Progress",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Make Image Prompts Gemini": {
      "main": [
        [
          {
            "node": "Clean Image prompts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pick Random song From GSC": {
      "main": [
        [
          {
            "node": "Map Music",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out - Image prompts": {
      "main": [
        [
          {
            "node": "Make Image Prompts Gemini",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Transcript With AI": {
      "main": [
        [
          {
            "node": "Generate Title with AI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create a list of Image Text1": {
      "main": [
        [
          {
            "node": "Split Out1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Transcribe with OpenAI Whisper": {
      "main": [
        [
          {
            "node": "Create a list of Image Text1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Combine Image Style and Elements": {
      "main": [
        [
          {
            "node": "Split Out - Image prompts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}