{
  "name": "Create and publish AI videos with Sora 2 Cameos, Gemini, and Blotato",
  "nodes": [
    {
      "id": "b80d7c0f-23bd-49a0-8859-f1eb143113a8",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1296,
        224
      ],
      "parameters": {
        "width": 464,
        "height": 1152,
        "content": "### Video Generation\nAutomatically creates AI videos using Sora 2 Cameos based on generated prompts, with retry and status handling."
      }
    },
    {
      "id": "875f6c25-175c-4aa2-9687-d0d334895a9e",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1760,
        224
      ],
      "parameters": {
        "width": 320,
        "height": 1152,
        "content": "### Video Merges\nMerges, processes, and finalizes video outputs into a publish-ready format."
      }
    },
    {
      "id": "3dcc173b-5660-45d8-bb90-dd97726a6b9d",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2080,
        224
      ],
      "parameters": {
        "width": 384,
        "height": 1152,
        "content": "### Auto Publishing\nAutomatically publishes videos to multiple social platforms (TikTok, Facebook, Instagram)."
      }
    },
    {
      "id": "85729f71-c04b-4a93-a0c0-08f83ca487b8",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2464,
        224
      ],
      "parameters": {
        "width": 384,
        "height": 1152,
        "content": "### Logging & Status Tracking\nUpdates Google Sheets with success or error status for monitoring and analytics."
      }
    },
    {
      "id": "c2dae1ed-7001-4b63-81e6-ba6920fce2f4",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        592,
        -80
      ],
      "parameters": {
        "width": 2256,
        "height": 304,
        "content": "### Viral Content Collector\nAutomatically collects viral content ideas for AI video creation."
      }
    },
    {
      "id": "57f9c9b9-5f81-4c0a-aa10-64f15392755e",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        592,
        224
      ],
      "parameters": {
        "width": 704,
        "height": 1152,
        "content": "### Prompt & Script Generation\nAnalyzes viral content and uses AI to generate structured video prompts and scripts optimized for Sora 2 Cameos."
      }
    },
    {
      "id": "4ce28d56-06a9-4c46-be84-dfc5f5aee3c5",
      "name": "Daily Content Scheduler",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        688,
        0
      ]
    },
    {
      "id": "fac463de-b27b-4561-8dad-3f74e01c7e7b",
      "name": "Fetch Viral Content Dataset",
      "type": "@apify/n8n-nodes-apify.apify",
      "position": [
        928,
        0
      ]
    },
    {
      "id": "be55f7c2-716c-4893-af5d-e85dee06d9d1",
      "name": "Normalize Content Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        1200,
        0
      ]
    },
    {
      "id": "bb187067-1533-4414-8609-ceccbe27d3f1",
      "name": "Save Viral Content to Sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1440,
        0
      ]
    },
    {
      "id": "9dfc9a29-9f41-4935-ad86-d5d4efe79542",
      "name": "Video Processing Scheduler",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        688,
        368
      ]
    },
    {
      "id": "66891aca-93d0-4202-8654-c6c62100f588",
      "name": "Load Viral Content",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        896,
        368
      ]
    },
    {
      "id": "0fdc3458-243f-4e08-99d3-67ef0fab1b75",
      "name": "Analyze Viral Idea",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "position": [
        1120,
        368
      ]
    },
    {
      "id": "379ea756-c13c-4da6-9e2e-a49fa4010366",
      "name": "AI Script & Prompt Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        944,
        624
      ]
    },
    {
      "id": "b32b4115-e3da-4c33-a481-ec7f402d5c1d",
      "name": "Reasoning Engine",
      "type": "@n8n/n8n-nodes-langchain.toolThink",
      "position": [
        928,
        816
      ]
    },
    {
      "id": "ec3ddaca-df72-495a-a2fb-f958edee3a03",
      "name": "Parse Script Output",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1024,
        880
      ]
    },
    {
      "id": "65b6d1e8-f94a-42f5-8f4d-698fe7f1c4b1",
      "name": "Gemini LLM",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        704,
        720
      ]
    },
    {
      "id": "5eda7ff6-b0d1-4310-a6a4-2ef982005877",
      "name": "Split Video Prompt",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        1440,
        352
      ]
    },
    {
      "id": "2d0f4341-cc2e-4924-b503-8ac0f5a5a8b7",
      "name": "Generate Sora Video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1456,
        560
      ]
    },
    {
      "id": "8c6cbce3-7cce-4e1a-ac14-92dda477147a",
      "name": "Render Status Check1",
      "type": "n8n-nodes-base.switch",
      "position": [
        1472,
        1168
      ]
    },
    {
      "id": "b8adf756-c964-497f-b976-85ee50438cc4",
      "name": "Get Video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1456,
        976
      ]
    },
    {
      "id": "d21b9012-7fad-400a-81a3-cd5c0a097d26",
      "name": "Aggregate Video Parts",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        1872,
        464
      ]
    },
    {
      "id": "ab96d636-9f49-4b22-b511-c663f200a80b",
      "name": "Prepare Video Metadata",
      "type": "n8n-nodes-base.code",
      "position": [
        1872,
        720
      ]
    },
    {
      "id": "bf682a1b-a5ed-4532-9cb0-350ac1281fbf",
      "name": "Merge Video Clips",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1888,
        960
      ]
    },
    {
      "id": "68f10f92-c592-4edb-99f2-844adfbeaafd",
      "name": "Publish to TikTok",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "position": [
        2192,
        528
      ]
    },
    {
      "id": "2c5547b2-5ebf-4f0f-853d-c3583a574589",
      "name": "Publish to Facebook",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "position": [
        2192,
        816
      ]
    },
    {
      "id": "6561b970-a1fa-4c8d-b6bb-a2ea6fa415a8",
      "name": "Publish to Instagram",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "position": [
        2208,
        1120
      ]
    },
    {
      "id": "4c18ae2b-509b-4e1f-a735-b46cb46c14b7",
      "name": "Update Success Status",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2672,
        752
      ]
    },
    {
      "id": "db2a54c4-c5ce-4be6-b917-892dbb36266d",
      "name": "Update Error Status",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2656,
        976
      ]
    },
    {
      "id": "fb947e43-07cd-43ea-bfd2-bb21c88a8a38",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        -80
      ],
      "parameters": {
        "width": 592,
        "height": 1456,
        "content": "# 🛠️ Workflow Setup Guide\n\nAuthor: [GiangxAI](https://www.youtube.com/@giangxai.official)\n\n## How it works\n- Viral video ideas are automatically collected and stored in Google Sheets  \n- A Sora 2 Came"
      }
    },
    {
      "id": "833e02ad-82f8-4706-a7e4-512a94c566ec",
      "name": "Wait for Render",
      "type": "n8n-nodes-base.wait",
      "position": [
        1456,
        768
      ]
    }
  ],
  "connections": {
    "Get Video": {
      "main": [
        [
          {
            "node": "Render Status Check1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gemini LLM": {
      "ai_languageModel": [
        [
          {
            "node": "Parse Script Output",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "AI Script & Prompt Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Wait for Render": {
      "main": [
        [
          {
            "node": "Get Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Reasoning Engine": {
      "ai_tool": [
        [
          {
            "node": "AI Script & Prompt Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Merge Video Clips": {
      "main": [
        [
          {
            "node": "Publish to Facebook",
            "type": "main",
            "index": 0
          },
          {
            "node": "Publish to TikTok",
            "type": "main",
            "index": 0
          },
          {
            "node": "Publish to Instagram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Publish to TikTok": {
      "main": [
        [
          {
            "node": "Update Success Status",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Update Error Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze Viral Idea": {
      "main": [
        [
          {
            "node": "AI Script & Prompt Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Load Viral Content": {
      "main": [
        [
          {
            "node": "Analyze Viral Idea",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Video Prompt": {
      "main": [
        [
          {
            "node": "Generate Sora Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Sora Video": {
      "main": [
        [
          {
            "node": "Wait for Render",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Script Output": {
      "ai_outputParser": [
        [
          {
            "node": "AI Script & Prompt Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Publish to Facebook": {
      "main": [
        [
          {
            "node": "Update Success Status",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Update Error Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Publish to Instagram": {
      "main": [
        [
          {
            "node": "Update Success Status",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Update Error Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Render Status Check1": {
      "main": [
        [
          {
            "node": "Wait for Render",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Aggregate Video Parts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate Video Parts": {
      "main": [
        [
          {
            "node": "Prepare Video Metadata",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Video Metadata": {
      "main": [
        [
          {
            "node": "Merge Video Clips",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Daily Content Scheduler": {
      "main": [
        [
          {
            "node": "Fetch Viral Content Dataset",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Script & Prompt Agent": {
      "main": [
        [
          {
            "node": "Split Video Prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Normalize Content Fields": {
      "main": [
        [
          {
            "node": "Save Viral Content to Sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Video Processing Scheduler": {
      "main": [
        [
          {
            "node": "Load Viral Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Viral Content Dataset": {
      "main": [
        [
          {
            "node": "Normalize Content Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}