{
  "name": "Generate short joke videos from Google Sheets with Google Gemini and Wavespeed AI",
  "nodes": [
    {
      "id": "f82656f1-b7ba-4b10-8267-f908f544c848",
      "name": "Wait for Video Gen",
      "type": "n8n-nodes-base.wait",
      "position": [
        2032,
        208
      ]
    },
    {
      "id": "9d28fd1d-6844-48d6-b0e3-10707b5909e5",
      "name": "Get Video Result",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2208,
        208
      ]
    },
    {
      "id": "57e1b528-0297-4908-99a2-45fb95a77731",
      "name": "Generate Video (Img2Vid)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2384,
        16
      ]
    },
    {
      "id": "3be4f1a9-90d7-467e-84ae-61e84430e0ed",
      "name": "Gemini Model (Creative)",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        944,
        160
      ]
    },
    {
      "id": "6dac65ee-450b-473c-99cd-10371542526c",
      "name": "Gemini Model (Scripting)",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1568,
        0
      ]
    },
    {
      "id": "4b9ebd5d-730b-4914-81f7-917bb949eedf",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        2208,
        -192
      ]
    },
    {
      "id": "9502bb0e-1a3d-464b-b7fe-26fe0d358d0a",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        896,
        -320
      ]
    },
    {
      "id": "79c89ff7-a58b-4a27-8235-9c89ba2ebe09",
      "name": "Generate Background Edit",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2384,
        -192
      ]
    },
    {
      "id": "ad914d50-a632-4db2-b00b-44137b6e47a9",
      "name": "Wait for Edit",
      "type": "n8n-nodes-base.wait",
      "position": [
        2032,
        16
      ]
    },
    {
      "id": "42771da0-fef0-4e9a-9573-d04f60a4febd",
      "name": "Get Edit Result",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2208,
        16
      ]
    },
    {
      "id": "b5198495-ad9e-43cb-bd04-ff2d271ad318",
      "name": "Format Scene JSON",
      "type": "n8n-nodes-base.code",
      "position": [
        2032,
        -192
      ]
    },
    {
      "id": "0f71c5e7-f104-4ebe-ad7f-b5db5deabd2d",
      "name": "Google Sheet Jokes",
      "type": "n8n-nodes-base.googleSheetsTool",
      "position": [
        1296,
        160
      ]
    },
    {
      "id": "8a59b656-2ee0-4960-a1ab-d39bd19b7675",
      "name": "Google Sheet Past Jokes",
      "type": "n8n-nodes-base.googleSheetsTool",
      "position": [
        1104,
        160
      ]
    },
    {
      "id": "80147caa-2a0f-4271-a225-6a3bc724803e",
      "name": "Save Final URL",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2384,
        208
      ]
    },
    {
      "id": "b429a5ce-7b61-4520-bba3-935cfc780afb",
      "name": "Inject Idea",
      "type": "@n8n/n8n-nodes-langchain.toolThink",
      "position": [
        1072,
        0
      ]
    },
    {
      "id": "17863f6c-be5a-45b7-96fc-9a53546c8d78",
      "name": "Parse AI Output",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1232,
        0
      ]
    },
    {
      "id": "34f231d3-8b31-40ab-943d-b87bd7039392",
      "name": "Refine and Validate Prompts",
      "type": "@n8n/n8n-nodes-langchain.toolThink",
      "position": [
        1696,
        32
      ]
    },
    {
      "id": "cdb468a1-feef-4e36-8bd6-27598d57ff97",
      "name": "Parse Video Prompt",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1824,
        0
      ]
    },
    {
      "id": "d9f813c6-6ccb-49b4-91e7-b25010f36cb3",
      "name": "Save Idea & Metadata",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1392,
        -192
      ]
    },
    {
      "id": "fdae8d82-08fd-4b6c-b3fc-6ecf0519938e",
      "name": "Creative Video Idea",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1072,
        -192
      ]
    },
    {
      "id": "bddadc33-203b-45de-aa46-ed7c0d237655",
      "name": "Detailed Video Prompts",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1600,
        -192
      ]
    },
    {
      "id": "d98e0709-af6c-4414-a18e-8e2e7e6644d3",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1872,
        368
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "e816349d-69af-4e07-95cc-3174d7521860",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1136,
        -672
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "cc819da6-7c00-4c67-a44c-b8683dcac334",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1968,
        -672
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "92cd82d2-ab98-4913-a4cb-0b0b9d3ac1a6",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1264,
        304
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "e10d2726-6621-4fe4-a203-2c8cacb152ec",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -32,
        -608
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "04fb9d0d-ed0b-414e-bf11-28ca82e7916a",
      "name": "Youtube",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "position": [
        2704,
        64
      ]
    },
    {
      "id": "7e7c4d25-3d7b-407c-95b1-e52e091f0632",
      "name": "Tiktok",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "position": [
        2704,
        -224
      ]
    },
    {
      "id": "73c3b714-7c92-4c72-a028-73d29f42572d",
      "name": "Update Status to \"DONE\"",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        3136,
        -16
      ]
    },
    {
      "id": "2145ac45-889b-4c1f-bc94-17eb36b560d3",
      "name": "Instagram",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "position": [
        2704,
        -80
      ]
    },
    {
      "id": "b0399ca4-7f17-4cf4-9178-27836d84163b",
      "name": "Twitter (X)",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "position": [
        2704,
        208
      ]
    },
    {
      "id": "084fc8fd-b4f8-42ee-b824-6e5bbde4767b",
      "name": "Merge1",
      "type": "n8n-nodes-base.merge",
      "position": [
        2928,
        -48
      ]
    },
    {
      "id": "cf7a1e10-79d4-4c47-9d11-66891a02da5f",
      "name": "Sticky Note12",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2928,
        -320
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "e4c81f14-bfae-4f78-9043-24ef6ed48489",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        896,
        -192
      ]
    }
  ],
  "connections": {
    "Merge1": {
      "main": [
        [
          {
            "node": "Update Status to \"DONE\"",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Tiktok": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Youtube": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Instagram": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Generate Background Edit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Inject Idea": {
      "ai_tool": [
        [
          {
            "node": "Creative Video Idea",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Twitter (X)": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 3
          }
        ]
      ]
    },
    "Wait for Edit": {
      "main": [
        [
          {
            "node": "Get Edit Result",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save Final URL": {
      "main": [
        [
          {
            "node": "Tiktok",
            "type": "main",
            "index": 0
          },
          {
            "node": "Instagram",
            "type": "main",
            "index": 0
          },
          {
            "node": "Youtube",
            "type": "main",
            "index": 0
          },
          {
            "node": "Twitter (X)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Edit Result": {
      "main": [
        [
          {
            "node": "Generate Video (Img2Vid)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse AI Output": {
      "ai_outputParser": [
        [
          {
            "node": "Creative Video Idea",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Get Video Result": {
      "main": [
        [
          {
            "node": "Save Final URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Creative Video Idea",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Scene JSON": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Sheet Jokes": {
      "ai_tool": [
        [
          {
            "node": "Creative Video Idea",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Parse Video Prompt": {
      "ai_outputParser": [
        [
          {
            "node": "Detailed Video Prompts",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Wait for Video Gen": {
      "main": [
        [
          {
            "node": "Get Video Result",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Creative Video Idea": {
      "main": [
        [
          {
            "node": "Save Idea & Metadata",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save Idea & Metadata": {
      "main": [
        [
          {
            "node": "Detailed Video Prompts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Detailed Video Prompts": {
      "main": [
        [
          {
            "node": "Format Scene JSON",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gemini Model (Creative)": {
      "ai_languageModel": [
        [
          {
            "node": "Creative Video Idea",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Parse AI Output",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Google Sheet Past Jokes": {
      "ai_tool": [
        [
          {
            "node": "Creative Video Idea",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Gemini Model (Scripting)": {
      "ai_languageModel": [
        [
          {
            "node": "Detailed Video Prompts",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Generate Background Edit": {
      "main": [
        [
          {
            "node": "Wait for Edit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Video (Img2Vid)": {
      "main": [
        [
          {
            "node": "Wait for Video Gen",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Refine and Validate Prompts": {
      "ai_tool": [
        [
          {
            "node": "Detailed Video Prompts",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Creative Video Idea",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}