{
  "name": "Create viral social media videos with FalAI Flux/Kling and GPT-4 automation",
  "nodes": [
    {
      "id": "cec5f9ad-36f7-4058-8457-2b2522ae2440",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        6048,
        -1712
      ],
      "parameters": {
        "width": 528,
        "height": 80,
        "content": "## Create Voiceover and Upload Video to Drive\n\n"
      }
    },
    {
      "id": "14df5024-e051-473f-97e4-bf64e717b3e6",
      "name": "Upload file to drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        6224,
        -1008
      ]
    },
    {
      "id": "7566a56d-0417-4657-a252-95cc9bbce206",
      "name": "URL to file",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        5952,
        -1008
      ]
    },
    {
      "id": "e0befd74-9b5d-4c1b-91e6-dca10d907db5",
      "name": "Get Full Voiceover Prompt",
      "type": "n8n-nodes-base.code",
      "position": [
        5744,
        -1568
      ]
    },
    {
      "id": "7a3eb5bd-d354-4b6f-85a2-d18193340c86",
      "name": "Wait1",
      "type": "n8n-nodes-base.wait",
      "position": [
        5040,
        -1392
      ]
    },
    {
      "id": "eb52e5fb-1dbe-48e9-9994-007308743296",
      "name": "Wait11",
      "type": "n8n-nodes-base.wait",
      "position": [
        5040,
        -1168
      ]
    },
    {
      "id": "4b96227e-489d-4624-bc34-430dd7e33501",
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3760,
        -960
      ],
      "parameters": {
        "width": 320,
        "height": 100,
        "content": "## Step 4: Merge Videos\n\n"
      }
    },
    {
      "id": "56ac8431-b487-47a9-8155-e12eaa891de2",
      "name": "List Elements1",
      "type": "n8n-nodes-base.code",
      "position": [
        4368,
        -960
      ]
    },
    {
      "id": "23f4420e-67bb-4462-92d1-21a71dfe5fb7",
      "name": "Merge1",
      "type": "n8n-nodes-base.merge",
      "position": [
        4144,
        -960
      ]
    },
    {
      "id": "9fa34ca3-ac63-4900-9870-e76717c1d969",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3968,
        -1168
      ],
      "parameters": {
        "width": 320,
        "height": 100,
        "content": "## Step 3: Generate videos\n"
      }
    },
    {
      "id": "8f0801aa-f458-47a6-a362-6ac329a11345",
      "name": "Get Video1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        5504,
        -1168
      ]
    },
    {
      "id": "fb67f516-c2f9-4f4d-9405-f71081900cd3",
      "name": "Create Video1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        4608,
        -1168
      ]
    },
    {
      "id": "1ac22084-8049-408e-b38a-548c3c294939",
      "name": "Video Prompts1",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        4368,
        -1168
      ]
    },
    {
      "id": "f1cc898b-6f85-4f38-9eaa-e9c4fcaf0270",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4080,
        -1392
      ],
      "parameters": {
        "width": 320,
        "height": 100,
        "content": "## Step 2: Generate Images\n"
      }
    },
    {
      "id": "ee58c36c-446a-4116-9a19-a4c241f6cf11",
      "name": "Get Images1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        5504,
        -1392
      ]
    },
    {
      "id": "8b819c5c-3939-4142-9000-f5e49f56c75a",
      "name": "Create Images1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        4608,
        -1392
      ]
    },
    {
      "id": "b6fd4153-abf9-44c6-ba02-45702ccc3840",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4208,
        -1568
      ],
      "parameters": {
        "width": 320,
        "height": 100,
        "content": "## Step 1: Generate prompts\n"
      }
    },
    {
      "id": "dbf9c5dd-f7a3-4d85-8270-eaeacf778ac6",
      "name": "Unbundle prompts1",
      "type": "n8n-nodes-base.code",
      "position": [
        5504,
        -1568
      ]
    },
    {
      "id": "26d4b225-a478-4a7d-835b-b86c10d2cf1a",
      "name": "Create New Idea1",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        5120,
        -1776
      ]
    },
    {
      "id": "10a7f701-feaf-4a96-87e1-0c21d3e7ac50",
      "name": "Generating scenes1",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        5104,
        -1568
      ]
    },
    {
      "id": "ffbac481-add5-42a0-872c-316782beb11b",
      "name": "Organise idea, caption etc1",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        4608,
        -1568
      ]
    },
    {
      "id": "136ca028-9b42-4f1b-8f38-e892ff66b36c",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4640,
        -1776
      ],
      "parameters": {
        "width": null,
        "height": 100,
        "content": "## Input\nStarting idea"
      }
    },
    {
      "id": "788fbc81-cd89-4279-aba3-0f407139b5a1",
      "name": "Combine Voice and Video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        5952,
        -1376
      ]
    },
    {
      "id": "9d2de0c8-68c4-4565-bb1d-610cefa5e164",
      "name": "Get Voice and Video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        6560,
        -1376
      ]
    },
    {
      "id": "56bce7d8-5783-46de-a18c-6915724223a0",
      "name": "Wait10",
      "type": "n8n-nodes-base.wait",
      "position": [
        6272,
        -1376
      ]
    },
    {
      "id": "dbf802be-231d-4a63-a3a6-1f00e79103b5",
      "name": "Get Voiceover",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        6560,
        -1568
      ]
    },
    {
      "id": "0696cd4b-1d73-4ef2-a15e-f0208b9251ad",
      "name": "Create Voiceover",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        5952,
        -1568
      ]
    },
    {
      "id": "8fd256af-b26d-4a5c-b6e0-1e199bedfdbf",
      "name": "Wait9",
      "type": "n8n-nodes-base.wait",
      "position": [
        6272,
        -1568
      ]
    },
    {
      "id": "7ad22553-871b-47d6-a7fe-fe484849fde0",
      "name": "Final Video (Longest)",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        5952,
        -1184
      ]
    },
    {
      "id": "893d73b8-8c75-41e6-81a7-636cf09b2c7f",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        4928,
        -1776
      ]
    },
    {
      "id": "4083ca2c-d18d-45ae-a00a-9f57b48e1792",
      "name": "Generate Timed Script",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        4784,
        -1568
      ]
    },
    {
      "id": "d9f1dda7-d315-4fc7-92fd-c5864be299be",
      "name": "Get Final video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        5504,
        -960
      ]
    },
    {
      "id": "b84cf97a-2c35-4954-ad90-97e93f318d77",
      "name": "Create Final Video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        4608,
        -960
      ]
    },
    {
      "id": "699268b3-8ad2-41fc-b923-eab121d8294a",
      "name": "Wait3",
      "type": "n8n-nodes-base.wait",
      "position": [
        5040,
        -960
      ]
    },
    {
      "id": "6129b11e-b5de-42c4-bf37-5d944698b7fc",
      "name": "Workflow Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        5072,
        -2688
      ],
      "parameters": {
        "width": 600,
        "height": 450,
        "content": "## 🚀 AI Viral Video Factory - Overview\n\nThis workflow automates the creation of a 60-second, narrated, cinematic video from a single idea.\n\n**1. Ideation & Scripting (OpenAI)**\n* A viral concept, titl"
      }
    },
    {
      "id": "d24c5bab-09f6-42bf-833a-2f5e2d645767",
      "name": "Critical Setup",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4592,
        -2192
      ],
      "parameters": {
        "width": 380,
        "height": 376,
        "content": "## ⚠️ CRITICAL SETUP ⚠️\n\nThis workflow will **FAIL** without the correct credentials.\n\n1.  **Add Credentials in n8n:**\n    * OpenAI API Key\n    * Google Account (for Sheets & Drive)\n    * Fal.ai API K"
      }
    },
    {
      "id": "6f182fa4-a4ef-499d-ae20-b92f16e20122",
      "name": "Scene Generation Loop",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        5440,
        -2192
      ],
      "parameters": {
        "width": 420,
        "height": 346,
        "content": "## 🎬 The Scene Generation Loop\n\nThis section runs 12 times (once per scene) to create the visuals.\n\n1.  **Image Generation `(Create Images1)`**: Creates a still image from the script's text prompt usi"
      }
    },
    {
      "id": "469968fa-6fe9-414d-a331-89ae5aab6497",
      "name": "How to Customize",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        5024,
        -2192
      ],
      "parameters": {
        "width": 350,
        "height": 284,
        "content": "## 🔧 How to Customize & Run\n\n**To Run the Workflow:**\n* Click `Execute Workflow` to generate one full video based on the current prompt.\n\n**To Change the Video Topic:**\n1.  Select the **`Create New Id"
      }
    },
    {
      "id": "1699ce4f-49e3-464f-85c2-ac5435ab568f",
      "name": "Fal.ai API Reference",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        5920,
        -2192
      ],
      "parameters": {
        "width": 360,
        "height": 404,
        "content": "## Fal.ai API Reference\n\nThis workflow uses several Fal.ai models via the HTTP Request node.\n\n* **`fal-ai/flux/schnell`**\n    * *Purpose*: High-speed text-to-image generation.\n\n* **`fal-ai/kling-video"
      }
    }
  ],
  "connections": {
    "Wait1": {
      "main": [
        [
          {
            "node": "Get Images1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait3": {
      "main": [
        [
          {
            "node": "Get Final video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait9": {
      "main": [
        [
          {
            "node": "Get Voiceover",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge1": {
      "main": [
        [
          {
            "node": "List Elements1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait10": {
      "main": [
        [
          {
            "node": "Get Voice and Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait11": {
      "main": [
        [
          {
            "node": "Get Video1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Video1": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Images1": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 1
          },
          {
            "node": "Video Prompts1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "URL to file": {
      "main": [
        [
          {
            "node": "Upload file to drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Video1": {
      "main": [
        [
          {
            "node": "Wait11",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Voiceover": {
      "main": [
        [
          {
            "node": "Combine Voice and Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Images1": {
      "main": [
        [
          {
            "node": "Wait1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "List Elements1": {
      "main": [
        [
          {
            "node": "Create Final Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Video Prompts1": {
      "main": [
        [
          {
            "node": "Create Video1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Final video": {
      "main": [
        [
          {
            "node": "Get Full Voiceover Prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create New Idea1": {
      "main": [
        [
          {
            "node": "Organise idea, caption etc1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Voiceover": {
      "main": [
        [
          {
            "node": "Wait9",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Unbundle prompts1": {
      "main": [
        [
          {
            "node": "Create Images1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Final Video": {
      "main": [
        [
          {
            "node": "Wait3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generating scenes1": {
      "main": [
        [
          {
            "node": "Unbundle prompts1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Voice and Video": {
      "main": [
        [
          {
            "node": "URL to file",
            "type": "main",
            "index": 0
          },
          {
            "node": "Final Video (Longest)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Timed Script": {
      "main": [
        [
          {
            "node": "Generating scenes1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Combine Voice and Video": {
      "main": [
        [
          {
            "node": "Wait10",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Full Voiceover Prompt": {
      "main": [
        [
          {
            "node": "Create Voiceover",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Organise idea, caption etc1": {
      "main": [
        [
          {
            "node": "Generate Timed Script",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Create New Idea1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}