{
  "name": "Create AI generated videos 4x cheaper than veo3 with Google Sheets & Fal.AI",
  "nodes": [
    {
      "id": "7beb408f-128b-4e4c-8d03-e5625fbcb2eb",
      "name": "Wait 5s",
      "type": "n8n-nodes-base.wait",
      "position": [
        340,
        620
      ]
    },
    {
      "id": "77d6a74f-b704-40f2-b054-fbf91c93726a",
      "name": "Check if video is ready",
      "type": "n8n-nodes-base.if",
      "position": [
        160,
        620
      ]
    },
    {
      "id": "cd94d480-3562-4ce3-aff0-9caf5dee9f72",
      "name": "Get video url",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        20,
        940
      ]
    },
    {
      "id": "a5864945-030e-4d80-83cb-2f558399d8bf",
      "name": "Submit Request to generate video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        340,
        300
      ]
    },
    {
      "id": "00f339c8-f6e3-42b3-aa56-abe34268c68a",
      "name": "Set variables for Video generation",
      "type": "n8n-nodes-base.set",
      "position": [
        0,
        300
      ]
    },
    {
      "id": "88429b78-fe9f-42ca-81e1-0b364703ab2a",
      "name": "Check video status",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        0,
        620
      ]
    },
    {
      "id": "26e74f30-575f-407a-99ee-f75daad9a2e4",
      "name": "Google Sheets Trigger",
      "type": "n8n-nodes-base.googleSheetsTrigger",
      "position": [
        0,
        -20
      ]
    },
    {
      "id": "57f0306d-3b12-4717-afc6-c548863c2f7f",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -900,
        -120
      ],
      "parameters": {
        "width": 820,
        "height": 1220,
        "content": "## Create AI Generated Videos 4x cheaper than veo3 with Google Sheets & Fal.AI\n\nEasily generate 5-second videos using Fal.AI’s Kling 2.1 model—just add a row to your Google Sheet with your idea, the v"
      }
    },
    {
      "id": "774b9b76-4cd8-4d5a-8b8b-587ee1cae464",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -40,
        -140
      ],
      "parameters": {
        "width": 540,
        "height": 300,
        "content": "## Stage 1: Trigger & Prompt Generation\nStarts the workflow when a new row is added in Google Sheets, then when the workflow is actioned, it generates a prompt for the Kling 2.1 video model based on t"
      }
    },
    {
      "id": "169699a3-6208-4586-8c3c-a3df7f3cdaf2",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -40,
        180
      ],
      "parameters": {
        "width": 540,
        "height": 300,
        "content": "## Stage 2: Prepare & Submit Video Request\nSets up all necessary variables for video creation and sends a request to Fal.AI to generate the video."
      }
    },
    {
      "id": "739cdf63-5e11-4364-b4f8-3b65e962ce3e",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -40,
        500
      ],
      "parameters": {
        "width": 540,
        "height": 300,
        "content": "## Stage 3: Monitor Video Status\nChecks the status of the video generation. Waits and repeatedly checks every 5 seconds until the video is ready."
      }
    },
    {
      "id": "49c27097-de0e-4516-8ee0-8936507d7455",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -40,
        820
      ],
      "parameters": {
        "width": 540,
        "height": 300,
        "content": "## Stage 4: Retrieve & Update Results\nGets the final video URL and updates the Google Sheet with the video link and the prompt used."
      }
    },
    {
      "id": "9dc75bc3-25a7-4c3c-bb65-8372acb2703b",
      "name": "Update sheet with video url and prompt used in Kling 2.1",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        340,
        940
      ]
    },
    {
      "id": "5267ac1d-36ad-449a-9f5f-cae01a090b33",
      "name": "Generate prompt for Kling 2.1 model",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        180,
        -20
      ]
    }
  ],
  "connections": {
    "Wait 5s": {
      "main": [
        [
          {
            "node": "Check video status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get video url": {
      "main": [
        [
          {
            "node": "Update sheet with video url and prompt used in Kling 2.1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check video status": {
      "main": [
        [
          {
            "node": "Check if video is ready",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Sheets Trigger": {
      "main": [
        [
          {
            "node": "Generate prompt for Kling 2.1 model",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check if video is ready": {
      "main": [
        [
          {
            "node": "Get video url",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait 5s",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Submit Request to generate video": {
      "main": [
        [
          {
            "node": "Check video status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set variables for Video generation": {
      "main": [
        [
          {
            "node": "Submit Request to generate video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate prompt for Kling 2.1 model": {
      "main": [
        [
          {
            "node": "Set variables for Video generation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}