{
  "name": "Generate AI product photos using Gemini Nano Banana with Jotform & Google Sheets",
  "nodes": [
    {
      "id": "e71df02d-0562-4cce-a478-a7dc7fd1d243",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -240,
        -80
      ]
    },
    {
      "id": "a75b5a3c-6c0e-4baf-a392-491f33a857e6",
      "name": "Get row(s) in sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -32,
        -80
      ]
    },
    {
      "id": "18ce7b03-7ff8-4385-957c-61b7f27accd5",
      "name": "Message a model",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "position": [
        416,
        -80
      ]
    },
    {
      "id": "ddeb1d41-ba0c-4904-a854-d34dd46c846e",
      "name": "Get Image Contents",
      "type": "n8n-nodes-base.set",
      "position": [
        608,
        176
      ]
    },
    {
      "id": "1a7630c1-81de-4116-aaff-6f4dd59d0efc",
      "name": "Upload to Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        976,
        176
      ]
    },
    {
      "id": "3c09fc45-ace9-46f0-a360-4a41d06c7bea",
      "name": "Convert to File",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        784,
        176
      ]
    },
    {
      "id": "e36ee194-147c-40e6-8a76-ef40f9a77adc",
      "name": "Extract from File",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        1344,
        -80
      ]
    },
    {
      "id": "50a5cf60-9ab3-4f7d-ac22-4749f0ab9d84",
      "name": "Product",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        880,
        -368
      ]
    },
    {
      "id": "5a106c94-7701-4182-afff-1585a0f9bc6b",
      "name": "Reference Image 1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        880,
        -224
      ]
    },
    {
      "id": "67288856-65b9-4c0c-8740-dbda2277b32f",
      "name": "Reference Image 2",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        880,
        -80
      ]
    },
    {
      "id": "5687cc9c-f5b5-4fee-b4b2-92e34851947e",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        1152,
        -128
      ]
    },
    {
      "id": "a56adec8-21dd-46e6-97ef-638feae54fad",
      "name": "Aggregate",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        1520,
        -80
      ]
    },
    {
      "id": "7d1905dd-c4c0-417a-ab8d-fff552072586",
      "name": "Gemini Nano Banana",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        416,
        176
      ]
    },
    {
      "id": "e6e97e70-26ae-47a2-a52f-e837cf5a81b9",
      "name": "Update row in sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1488,
        384
      ]
    },
    {
      "id": "b7d366da-2337-4e1f-8814-569868db76c3",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -240,
        -240
      ]
    },
    {
      "id": "cba50728-4600-4fb7-b1b1-5b6f0f336896",
      "name": "JotForm Trigger",
      "type": "n8n-nodes-base.jotFormTrigger",
      "position": [
        -176,
        352
      ]
    },
    {
      "id": "dc416865-d5cb-495d-b2fd-200273ff51f9",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        1168,
        176
      ]
    },
    {
      "id": "d7303fbc-13f6-4efa-a31a-3760b5650965",
      "name": "Add row in sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1488,
        192
      ]
    },
    {
      "id": "1da62ce5-fff7-487e-8df8-3298733fca87",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        208,
        -80
      ]
    },
    {
      "id": "83a2bcf2-156a-4dc2-874a-dcd896113c27",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        720,
        -432
      ],
      "parameters": {
        "width": 768,
        "height": 512,
        "content": "## Images Downloader - For AI"
      }
    },
    {
      "id": "2da95b57-343e-47e6-bcd0-ef1bd6dd9833",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1344,
        112
      ],
      "parameters": {
        "width": 416,
        "height": 416,
        "content": "## Logging everything in google sheets"
      }
    },
    {
      "id": "98ed7751-12d6-4a1e-93cc-8dc96fbaf03f",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        384,
        112
      ],
      "parameters": {
        "width": 384,
        "height": 256,
        "content": "## Photograph Generation"
      }
    },
    {
      "id": "a005be5a-d645-4bfa-8929-654358e39fcd",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -320,
        -304
      ],
      "parameters": {
        "width": 416,
        "height": 384,
        "content": "## Scheduled Execution"
      }
    },
    {
      "id": "430cc952-6778-4148-aef7-e57583ae19d5",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -320,
        112
      ],
      "parameters": {
        "width": 416,
        "height": 416,
        "content": "## Start execution whenever a jotform is submitted. Signup here on JotForm: https://www.jotform.com/?partner=zainurrehman"
      }
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Update row in sheet",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Add row in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "Extract from File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Product": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate": {
      "main": [
        [
          {
            "node": "Gemini Nano Banana",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Message a model",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert to File": {
      "main": [
        [
          {
            "node": "Upload to Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "JotForm Trigger": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Message a model": {
      "main": [
        [
          {
            "node": "Product",
            "type": "main",
            "index": 0
          },
          {
            "node": "Reference Image 1",
            "type": "main",
            "index": 0
          },
          {
            "node": "Reference Image 2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload to Drive": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get row(s) in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract from File": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Reference Image 1": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Reference Image 2": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Gemini Nano Banana": {
      "main": [
        [
          {
            "node": "Get Image Contents",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Image Contents": {
      "main": [
        [
          {
            "node": "Convert to File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Get row(s) in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}