{
  "name": "Generate AI videos with Sora2 Pro, save to Google Drive and upload to YouTube",
  "nodes": [
    {
      "id": "937d8d50-60e9-4ebe-a1b2-83e4e7179318",
      "name": "When clicking ‘Test workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -528,
        976
      ]
    },
    {
      "id": "ef6db75d-f9d9-459d-9d3f-5d77547efa36",
      "name": "Get status",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        544,
        976
      ]
    },
    {
      "id": "63bd7d00-8a53-4bc3-bc8d-c09b6ecc335e",
      "name": "Wait 60 sec.",
      "type": "n8n-nodes-base.wait",
      "position": [
        352,
        976
      ]
    },
    {
      "id": "13a8b42c-5951-441d-9258-be1e66ca4aff",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -528,
        832
      ]
    },
    {
      "id": "230cc85e-f0cb-4bc6-8d93-df015c86a4d5",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -528,
        -336
      ],
      "parameters": {
        "width": 740,
        "height": 280,
        "content": "# Generate AI Videos with Sora2 Pro, Save to Google Drive and Upload to YouTube\n\nThis workflow allows users to **generate AI videos** using **OpenAI Sora2 Pro**, save them to **Google Drive**, generat"
      }
    },
    {
      "id": "3748afbd-d6a6-4e6a-a8b3-c9c84d8997f1",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -528,
        -16
      ],
      "parameters": {
        "width": 740,
        "height": 200,
        "content": "## STEP 1 - GOOGLE SHEET\nCreate a [Google Sheet like this](https://docs.google.com/spreadsheets/d/1pcoY9N_vQp44NtSRR5eskkL5Qd0N0BGq7Jh_4m-7VEQ/edit?usp=sharing).\n\nPlease insert:\n- in the \"PROMPT\" colu"
      }
    },
    {
      "id": "73a642fc-5ce1-4ae6-8f1b-c1b419495041",
      "name": "Completed?",
      "type": "n8n-nodes-base.if",
      "position": [
        720,
        976
      ]
    },
    {
      "id": "45fc0b4c-7035-4063-b9ab-c4fc5815d225",
      "name": "Update result",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        560,
        1232
      ]
    },
    {
      "id": "1a1b25e9-c29f-4b43-9f31-17c2e48910f9",
      "name": "Set data",
      "type": "n8n-nodes-base.set",
      "position": [
        -80,
        976
      ]
    },
    {
      "id": "0930ee9f-15a5-43f6-88e8-cad19ec71996",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -528,
        656
      ],
      "parameters": {
        "width": 740,
        "height": 100,
        "content": "## STEP 4 - MAIN FLOW\nStart the workflow manually or periodically by hooking the \"Schedule Trigger\" node. It is recommended to set it at 5 minute intervals."
      }
    },
    {
      "id": "446098fa-aed9-4dfc-8c28-11f81d030d6a",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -528,
        224
      ],
      "parameters": {
        "width": 740,
        "height": 140,
        "content": "## STEP 2 - GET API KEY (YOURAPIKEY)\nCreate an account [here](https://fal.ai/) and obtain API KEY.\nIn the node \"Create Image\" set \"Header Auth\" and set:\n- Name: \"Authorization\"\n- Value: \"Key YOURAPIKE"
      }
    },
    {
      "id": "4d02e746-f9f1-43c2-b465-51c3b63b508a",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        96,
        912
      ],
      "parameters": {
        "width": 180,
        "height": 200,
        "content": "Set API Key created in Step 2"
      }
    },
    {
      "id": "3dfe7501-4d15-463e-9051-24daefd8fa42",
      "name": "Get new video",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -304,
        976
      ]
    },
    {
      "id": "291e884f-4eb0-4662-9b94-eedbdb8e0154",
      "name": "Create Video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        144,
        976
      ]
    },
    {
      "id": "4e1d95dd-ccf8-4054-ace5-ff04b0a0dc52",
      "name": "Get Url Video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -528,
        1344
      ]
    },
    {
      "id": "e1a51a77-076d-4e7e-9b6b-b42ce79f3f3b",
      "name": "Get File Video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        96,
        1344
      ]
    },
    {
      "id": "0d378e85-76c1-497b-9af5-b079c42f38a0",
      "name": "Upload Video",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        384,
        1232
      ]
    },
    {
      "id": "96457a30-4992-482d-8433-f06bc0421515",
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        384,
        1456
      ]
    },
    {
      "id": "101a6beb-aafd-4c29-9859-c68311b99852",
      "name": "Generate title",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -288,
        1344
      ]
    },
    {
      "id": "dfcfcd40-3271-40e0-b729-59e771b3407f",
      "name": "Update Youtube URL",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        560,
        1456
      ]
    },
    {
      "id": "7aa5806b-77da-4b64-ae4a-34f2f5d1113c",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        352,
        1392
      ],
      "parameters": {
        "width": 180,
        "height": 200,
        "content": "Set YOUR_USERNAME in Step 3"
      }
    },
    {
      "id": "da27fe7b-4a1d-4097-aa3e-1b81da1f6b2a",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -528,
        416
      ],
      "parameters": {
        "width": 740,
        "height": 200,
        "content": "## STEP 3 - Upload video on Youtube\n- Find your API key in your [Upload-Post Manage Api Keys](https://www.upload-post.com/?linkId=lp_144414&sourceId=n3witalia&tenantId=upload-post-app) 10 FREE uploads"
      }
    }
  ],
  "connections": {
    "Set data": {
      "main": [
        [
          {
            "node": "Create Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Completed?": {
      "main": [
        [
          {
            "node": "Get Url Video",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait 60 sec.",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get status": {
      "main": [
        [
          {
            "node": "Completed?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Video": {
      "main": [
        [
          {
            "node": "Wait 60 sec.",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "Update Youtube URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Video": {
      "main": [
        [
          {
            "node": "Update result",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 60 sec.": {
      "main": [
        [
          {
            "node": "Get status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Url Video": {
      "main": [
        [
          {
            "node": "Generate title",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get new video": {
      "main": [
        [
          {
            "node": "Set data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate title": {
      "main": [
        [
          {
            "node": "Get File Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get File Video": {
      "main": [
        [
          {
            "node": "Upload Video",
            "type": "main",
            "index": 0
          },
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Get new video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}