{
  "name": "Generate Funny AI Videos with Sora 2 and Auto-Publish to TikTok",
  "nodes": [
    {
      "id": "c3c8b7d9-b993-475b-88f7-196edb500473",
      "name": "Get status",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        832,
        576
      ]
    },
    {
      "id": "a0f0a4d4-aa2d-4296-ada1-c3ed2dc5e80f",
      "name": "Wait 60 sec.",
      "type": "n8n-nodes-base.wait",
      "position": [
        592,
        576
      ]
    },
    {
      "id": "52eb9e2c-5610-4bf5-b8c9-43c01d0abbd8",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -144,
        -80
      ],
      "parameters": {
        "width": 740,
        "height": 328,
        "content": "# Generate AI Videos (with audio), using Sora 2 and Upload to TikTok\n\nThis workflow allows users to **generate AI videos** using model **OpenAI Sora 2**, save them to **Google Drive**, generate optimi"
      }
    },
    {
      "id": "ba77687d-9e91-4dbc-8a90-f82290c93572",
      "name": "Completed?",
      "type": "n8n-nodes-base.if",
      "position": [
        1136,
        576
      ]
    },
    {
      "id": "363bc856-1ce2-42d4-b7f2-e41fbcddb7e1",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        640,
        128
      ],
      "parameters": {
        "width": 740,
        "height": 116,
        "content": "## STEP 3 - 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": "37f4778b-aa51-48ed-96af-da0413ad2ef4",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -144,
        288
      ],
      "parameters": {
        "width": 740,
        "height": 172,
        "content": "## STEP 1 - 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": "e8ac3c4c-d8b1-421c-b24c-f83e18845a20",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        192,
        528
      ],
      "parameters": {
        "width": 180,
        "height": 200,
        "content": "Set API Key created in Step 2"
      }
    },
    {
      "id": "15047d29-e63a-4d29-b21c-a1beec0b6f88",
      "name": "Create Video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        240,
        576
      ]
    },
    {
      "id": "487ab020-dfd8-4956-9263-ffe944840978",
      "name": "Get Url Video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -96,
        832
      ]
    },
    {
      "id": "616e4deb-c5f3-4a13-a970-5816a5327aae",
      "name": "Get File Video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        544,
        832
      ]
    },
    {
      "id": "0c25e7c8-f960-4f46-9530-437bece778a4",
      "name": "Generate title",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        192,
        832
      ]
    },
    {
      "id": "538d18c3-4049-4940-a08f-180c3871e9b9",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1104,
        784
      ],
      "parameters": {
        "width": 180,
        "height": 200,
        "content": "Set ChannelId Step 3"
      }
    },
    {
      "id": "1921e2b7-d6b7-41f2-83e0-b453b4902a11",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        640,
        -80
      ],
      "parameters": {
        "width": 740,
        "height": 184,
        "content": "## STEP 2 - Upload video on TikTok\n- Create an account on [Postiz](https://postiz.com/?ref=n3witalia) FREE 7 days-trial\n- Get your API Key and set it in Postiz node and Upload Image node\n- In Calendar"
      }
    },
    {
      "id": "6a914695-7ae2-4c67-bd2f-3946576a0a6a",
      "name": "TikTok",
      "type": "n8n-nodes-postiz.postiz",
      "position": [
        1152,
        832
      ]
    },
    {
      "id": "d90711bc-6528-437d-9214-8277941348ec",
      "name": "Upload Video to Postiz",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        832,
        832
      ]
    },
    {
      "id": "fa405717-0efa-4d6f-9a21-7abba6331fec",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -112,
        576
      ]
    }
  ],
  "connections": {
    "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
          }
        ]
      ]
    },
    "Wait 60 sec.": {
      "main": [
        [
          {
            "node": "Get status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Url Video": {
      "main": [
        [
          {
            "node": "Generate title",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate title": {
      "main": [
        [
          {
            "node": "Get File Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get File Video": {
      "main": [
        [
          {
            "node": "Upload Video to Postiz",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "Create Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Video to Postiz": {
      "main": [
        [
          {
            "node": "TikTok",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}