{
  "name": "Generate AI product marketing photos from Google Sheets with Google Gemini and Drive",
  "nodes": [
    {
      "id": "496a71a4-198f-4ac8-985f-6b033ae583a0",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        1696,
        592
      ]
    },
    {
      "id": "715cb1c8-f96c-4315-a4bc-81bc9eedc554",
      "name": "Read Image URLs",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        448,
        576
      ]
    },
    {
      "id": "2d6165ed-9657-4481-be24-e6c04b8fcda0",
      "name": "Download Images",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        656,
        576
      ]
    },
    {
      "id": "2181b7b1-2156-4d86-ab7f-27787caefb55",
      "name": "Product Photography Prompt",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        1216,
        896
      ]
    },
    {
      "id": "9cbc8467-d119-408b-853b-bd21d6fd6eda",
      "name": "Upload to Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        2608,
        608
      ]
    },
    {
      "id": "afe3c6c3-8fa4-4c09-99f5-2d33b0731ebf",
      "name": "Insert Image URL in Table",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2832,
        608
      ]
    },
    {
      "id": "e3d08de8-af32-4047-91c7-ff55281458ea",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        192,
        384
      ],
      "parameters": {
        "width": 712,
        "height": 440,
        "content": "## Phase 1 – Input & Load Product Images\n"
      }
    },
    {
      "id": "9a75717d-6f37-4ea5-9c49-ef60457054bb",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        928,
        736
      ],
      "parameters": {
        "width": 744,
        "height": 664,
        "content": "## Phase 2 – Analyze Image & Create Prompt\n"
      }
    },
    {
      "id": "6f82c51a-1d95-4b86-899b-621d9454aeba",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1680,
        384
      ],
      "parameters": {
        "width": 796,
        "height": 456,
        "content": "## Phase 3 – Combine Product + Model + Prompt"
      }
    },
    {
      "id": "79eee7b9-81ef-48cf-8f6a-2e4f14754a73",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2544,
        480
      ],
      "parameters": {
        "width": 520,
        "height": 360,
        "content": "## Phase 4 – Generate AI Image & Save Results"
      }
    },
    {
      "id": "bc6c7779-08f1-4457-8641-ebb57aa6e344",
      "name": "When clicking 'Test workflow'",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        256,
        576
      ]
    },
    {
      "id": "d46a35cc-58b1-48df-b942-701e1f9e5b52",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1152,
        1088
      ]
    },
    {
      "id": "f9009c1f-5b64-4b9c-8160-46dfa9a71177",
      "name": "Analyze an image",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "position": [
        992,
        896
      ]
    },
    {
      "id": "2a99e199-9825-4377-a2fc-244505ab9dde",
      "name": "Edit an image",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "position": [
        2336,
        608
      ]
    },
    {
      "id": "1646e2eb-46fb-42a2-ae8c-f763d2e5c619",
      "name": "Download model image",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        800,
        448
      ]
    },
    {
      "id": "2a003814-e5e9-4f67-870a-a38449ea0a3d",
      "name": "Merge1",
      "type": "n8n-nodes-base.merge",
      "position": [
        1888,
        464
      ]
    },
    {
      "id": "81d1a41d-fd7e-4753-bd96-6077ae19f2c8",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        2096,
        592
      ]
    },
    {
      "id": "960e3db4-b29b-4312-8ddc-abf738c2cb08",
      "name": "Sample Promt",
      "type": "n8n-nodes-base.set",
      "position": [
        976,
        1264
      ]
    },
    {
      "id": "f96241e5-2a3b-47a3-84ef-8637f5a1472f",
      "name": "Main overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -352,
        -192
      ],
      "parameters": {
        "width": 784,
        "height": 720,
        "content": "## AI Product Advertising Photos\n\n### How it works\nThis workflow turns product image links in a Google Sheet into AI-generated advertising photos. It reads each `Image-URL`, downloads the product imag"
      }
    }
  ],
  "connections": {
    "Merge": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Merge1": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Sample Promt": {
      "main": [
        []
      ]
    },
    "Edit an image": {
      "main": [
        [
          {
            "node": "Upload to Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Images": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          },
          {
            "node": "Download model image",
            "type": "main",
            "index": 0
          },
          {
            "node": "Analyze an image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Edit an image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read Image URLs": {
      "main": [
        [
          {
            "node": "Download Images",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload to Drive": {
      "main": [
        [
          {
            "node": "Insert Image URL in Table",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze an image": {
      "main": [
        [
          {
            "node": "Product Photography Prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download model image": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Product Photography Prompt",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Insert Image URL in Table": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Product Photography Prompt": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "When clicking 'Test workflow'": {
      "main": [
        [
          {
            "node": "Read Image URLs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}