{
  "name": "Redesign t-shirt mockups to print-ready files with GPT-4 vision & Imagen 4",
  "nodes": [
    {
      "id": "dc90044d-f5a1-4f75-80c2-d8ae33fe66e3",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -560,
        -160
      ]
    },
    {
      "id": "b4a4329a-1687-470b-9531-03ee56ad8c9e",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -640,
        80
      ]
    },
    {
      "id": "fc9db6a3-3890-4f9b-928a-c8dd0f8141fa",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -1280,
        -160
      ]
    },
    {
      "id": "22756276-04ed-43bd-aa58-9e45a751f218",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        -1040,
        -160
      ]
    },
    {
      "id": "f39376fd-6310-4576-b07c-38c91f17de8c",
      "name": "Code",
      "type": "n8n-nodes-base.code",
      "position": [
        -260,
        -160
      ]
    },
    {
      "id": "b5d6638a-683a-41c9-a2a2-349b7390d2da",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1380,
        -260
      ],
      "parameters": {
        "width": 280,
        "height": 260,
        "content": "## Send a mockup image url to chat"
      }
    },
    {
      "id": "3c81f3be-d7f8-4874-a48b-29b9b8da1496",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -880,
        -260
      ],
      "parameters": {
        "width": 200,
        "height": 260,
        "content": "## Analyze image and generate new prompt"
      }
    },
    {
      "id": "361d4c52-3edc-464d-af89-4013dd4b95f0",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -100,
        -260
      ],
      "parameters": {
        "width": 440,
        "height": 260,
        "content": "## Generate the new Tshirt design by GPT Image 1"
      }
    },
    {
      "id": "8fa31818-fb07-4571-8ec6-c740041c3a82",
      "name": "OpenAI1",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        60,
        -160
      ]
    },
    {
      "id": "2f5b907e-d979-4db1-954a-bb87af09dafd",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -620,
        -260
      ],
      "parameters": {
        "width": 460,
        "height": 260,
        "content": "## Prompt Generation"
      }
    },
    {
      "id": "1ffe82c1-fb36-4776-bdc4-775571deb303",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -100,
        60
      ],
      "parameters": {
        "width": 440,
        "height": 240,
        "content": "## Generate the new Tshirt design by Gemini Imagen 4"
      }
    },
    {
      "id": "32c939e3-e05b-4e5a-becb-a0fde7f9588f",
      "name": "Convert to File",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        180,
        140
      ]
    },
    {
      "id": "8d0d5db5-2762-4751-9580-5df640d12e4c",
      "name": "Gemini Generate Image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -40,
        140
      ]
    },
    {
      "id": "2e2f4744-5cd0-48ca-a547-26f6b48563c0",
      "name": "Analyze image",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -840,
        -140
      ]
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Analyze image",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    },
    "Code": {
      "main": [
        [
          {
            "node": "Gemini Generate Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze image": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Gemini Generate Image": {
      "main": [
        [
          {
            "node": "Convert to File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}