{
  "name": "Generate product mockups with Nano Banana (Gemini 2.5 Flash Image)",
  "nodes": [
    {
      "id": "37bf3601-5310-4405-940e-0c6eea007e71",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -272,
        -48
      ]
    },
    {
      "id": "d1c1f126-3c07-4121-bba9-bd625b914fd6",
      "name": "User Asset Base64",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        -48,
        -48
      ]
    },
    {
      "id": "e2c0e978-9511-4952-b5f6-631a8d72def2",
      "name": "Template Base64",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        176,
        -48
      ]
    },
    {
      "id": "3981098c-c9ca-45b8-8242-d8511e68ae8f",
      "name": "Assemble Final Data",
      "type": "n8n-nodes-base.set",
      "position": [
        400,
        -48
      ]
    },
    {
      "id": "02ea84df-3688-491b-bc0c-801155e9fe1c",
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        624,
        -48
      ]
    },
    {
      "id": "a8efdcb7-cc46-4936-bdb8-8608abd94688",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        848,
        -48
      ]
    },
    {
      "id": "42c886b5-559e-4e51-9180-fbb52fd9f47a",
      "name": "Convert to File",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        1072,
        -48
      ]
    },
    {
      "id": "a6713708-22d2-4abd-8505-5cf169b2a0e0",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -576,
        -160
      ],
      "parameters": {
        "width": 448,
        "height": 240,
        "content": "## Workflow Initiation\n### Form to take the user asset image and the template image along with the prompt(describing of what is to be done)"
      }
    },
    {
      "id": "df9ddb5d-7c9f-4e5b-a8e8-5839ddbe5da0",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1008,
        112
      ],
      "parameters": {
        "width": 244,
        "height": 364,
        "content": "## Final Output\n![image](https://n3wstorage.b-cdn.net/n3witalia/result_sport.jpeg)"
      }
    },
    {
      "id": "98a1e947-d3d1-4dfd-8183-27e3ae3095f6",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        544,
        -480
      ],
      "parameters": {
        "width": 256,
        "height": 592,
        "content": "## Core AI Generation Step\n### Sends a `POST` request to the OpenRouter API with a multimodal prompt containing:\n### 1. The user's text instruction.\n### 2. The user's asset image (Base64).\n### 3. The "
      }
    },
    {
      "id": "7fc736d5-2f57-4748-9fb6-9ec0fc3ea783",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        112,
        112
      ],
      "parameters": {
        "width": 228,
        "height": 364,
        "content": "## Template Model\n![image](https://n3wstorage.b-cdn.net/n3witalia/model.jpg)"
      }
    },
    {
      "id": "d39b2682-e418-4eb5-868c-cf1448791894",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -112,
        -432
      ],
      "parameters": {
        "width": 232,
        "height": 364,
        "content": "## Product (User Asset)\n![image](https://n3wstorage.b-cdn.net/n3witalia/tshirt.jpg)"
      }
    }
  ],
  "connections": {
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Convert to File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Template Base64": {
      "main": [
        [
          {
            "node": "Assemble Final Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "User Asset Base64": {
      "main": [
        [
          {
            "node": "Template Base64",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "User Asset Base64",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Assemble Final Data": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}