{
  "name": "Generate 8-second product ad videos from Drive images with Gemini and Veo",
  "nodes": [
    {
      "id": "dc559123-db84-446f-aae5-288ea9a3c860",
      "name": "Section – Input image",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1168,
        496
      ],
      "parameters": {
        "width": 1496,
        "height": 280,
        "content": "## Input image\nDownload the input image from Drive and convert it to base64."
      }
    },
    {
      "id": "c8d459cb-a7c6-490c-b05c-c25549cf5821",
      "name": "When clicking 'Test workflow'",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        928,
        624
      ]
    },
    {
      "id": "d217ae22-cbe8-4404-a5ce-b1a8f4a9afdd",
      "name": "Sample Promt",
      "type": "n8n-nodes-base.set",
      "position": [
        1312,
        1344
      ]
    },
    {
      "id": "8851f0d7-1b4f-47a4-9462-08bdef172b35",
      "name": "Main overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -16,
        -112
      ],
      "parameters": {
        "width": 784,
        "height": 720,
        "content": "## AI Product Advertising Video\n\n### How it works\nThis workflow generates an 8-second product advertising video from a single input image. It downloads the image from Google Drive, converts it to base"
      }
    },
    {
      "id": "55e14a38-fde6-4896-b6cb-98d05ebf2fc4",
      "name": "Creative Visualiser",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "position": [
        1760,
        896
      ]
    },
    {
      "id": "815ba6fa-9366-4ba8-b0d6-18a92fd66624",
      "name": "Google Gemini Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        2000,
        1008
      ]
    },
    {
      "id": "5e89ad0b-a835-4111-9416-8c85988df66b",
      "name": "Get URL Download",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1264,
        1200
      ]
    },
    {
      "id": "cc8c78e2-2105-4fcc-a637-ca1df46102b7",
      "name": "Get Dowload Video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2032,
        1200
      ]
    },
    {
      "id": "1011d3d1-2dad-4f93-8825-fed25f7085be",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        1488,
        1200
      ]
    },
    {
      "id": "5ab8dd47-7a71-4ee7-b909-f8b5be8fdd3f",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        1744,
        1200
      ]
    },
    {
      "id": "daa26102-8a77-4368-aab6-7194b7f15685",
      "name": "Extract Model Image",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        1872,
        624
      ]
    },
    {
      "id": "e38e9245-aee8-490e-97b9-c8a9fb45eab0",
      "name": "Download ad image",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1408,
        624
      ]
    },
    {
      "id": "c9f08db3-900d-4a0c-8979-c8d13c41f22b",
      "name": "Section – Create video prompt",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1168,
        848
      ],
      "parameters": {
        "width": 1432,
        "height": 280,
        "content": "## Create video prompt\nGemini turns the image brief into an 8s Vietnamese script."
      }
    },
    {
      "id": "faa75552-a362-4a31-8808-a2dcb96859ea",
      "name": "Product Video Prompt",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        2112,
        896
      ]
    },
    {
      "id": "7b52de5a-ee5a-4aa5-a428-d03572b90d33",
      "name": "Section – Generate video",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        992,
        1152
      ],
      "parameters": {
        "width": 936,
        "height": 376,
        "content": "## Generate video\nStart the Veo job using the image + prompt."
      }
    },
    {
      "id": "b57c1b00-89ce-42a8-847c-3acaeccdc310",
      "name": "Section – Download & upload",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1968,
        1152
      ],
      "parameters": {
        "width": 936,
        "height": 376,
        "content": "## Download & upload\nPoll until ready, download MP4, upload to Drive."
      }
    },
    {
      "id": "dbc447d3-b75a-4a95-adfd-eb64245d4120",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        2432,
        640
      ]
    },
    {
      "id": "f5eabfae-c5a1-40a3-b89c-a8144522d9da",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        2320,
        1008
      ]
    },
    {
      "id": "6b7ccebf-7bed-41d1-af6e-74ac8e1fa072",
      "name": "Generate Video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        992,
        1200
      ]
    },
    {
      "id": "7019d86a-5ddb-46cb-a254-82d05ecb5b16",
      "name": "Upload to Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        2384,
        1200
      ]
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Get Dowload Video",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get URL Download",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "Generate Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Video": {
      "main": [
        [
          {
            "node": "Get URL Download",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get URL Download": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download ad image": {
      "main": [
        [
          {
            "node": "Extract Model Image",
            "type": "main",
            "index": 0
          },
          {
            "node": "Creative Visualiser",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Dowload Video": {
      "main": [
        [
          {
            "node": "Upload to Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Creative Visualiser": {
      "main": [
        [
          {
            "node": "Product Video Prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Model Image": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Product Video Prompt": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Product Video Prompt",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Product Video Prompt",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "When clicking 'Test workflow'": {
      "main": [
        [
          {
            "node": "Download ad image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}