{
  "name": "Generate Shopify product images using AI Agent and deAPI",
  "nodes": [
    {
      "id": "0184e2f3-233f-4a7d-bca1-7b5affb97dde",
      "name": "Sticky Note - Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1120,
        -752
      ],
      "parameters": {
        "width": 652,
        "height": 700,
        "content": "## Try It Out!\n### Automatically generate professional product images when new products are added to your Shopify store.\n\nThis workflow uses AI to create optimized image generation prompts and produce"
      }
    },
    {
      "id": "e5bee131-f22f-4633-a059-210a8829d4db",
      "name": "Sticky Note - Trigger",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        400,
        16
      ],
      "parameters": {
        "width": 316,
        "height": 428,
        "content": "## 1. Shopify Product Trigger\n[Read more about Shopify Trigger](https://docs.n8n.io/integrations/builtin/trigger-nodes/n8n-nodes-base.shopifytrigger)\n\nListens for `products/create` webhook events from"
      }
    },
    {
      "id": "d5fb4878-052a-4d7d-b028-7ebeadc7b03c",
      "name": "Sticky Note - Edit Fields",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        752,
        0
      ],
      "parameters": {
        "width": 308,
        "height": 428,
        "content": "## 2. Extract Product Data\nPrepares product information for the AI Agent:\n\n- **category**: From `category.name` (e.g., \"Duffel Bags\")\n- **tags**: Product attributes (e.g., \"leather, premium, handmade\""
      }
    },
    {
      "id": "64eccbaa-22fe-4360-81ed-626db881262b",
      "name": "Sticky Note - AI Agent",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1120,
        -16
      ],
      "parameters": {
        "width": 464,
        "height": 732,
        "content": "## 3. AI-Powered Prompt Generation\n[Read more about AI Agents](https://docs.n8n.io/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.agent)\n\nThe AI Agent analyzes product data and uses"
      }
    },
    {
      "id": "9c3b7065-398e-49b5-92ab-0a878fd8dfee",
      "name": "Sticky Note - Generate",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1648,
        -16
      ],
      "parameters": {
        "width": 364,
        "height": 444,
        "content": "## 4. Generate Product Image\n[deAPI Documentation](https://docs.deapi.ai)\n\nGenerates a professional product image using the AI-boosted prompt.\n\nOutput includes binary image data ready for the next ste"
      }
    },
    {
      "id": "f7ed1eb6-18ba-475a-88a4-8cbe7105cd7c",
      "name": "Sticky Note - Remove BG",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2064,
        -16
      ],
      "parameters": {
        "width": 348,
        "height": 460,
        "content": "## 5. Remove Background\nCreates a transparent PNG version of the product image.\n\nIdeal for:\n- Product catalogs\n- Custom backgrounds\n- Marketing materials"
      }
    },
    {
      "id": "ef4a2b60-b941-4093-94fa-061f042e8dde",
      "name": "Sticky Note - Update",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2480,
        -16
      ],
      "parameters": {
        "width": 328,
        "height": 460,
        "content": "## 6. Update Product Images\n[Read more about Shopify node](https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.shopify)\n\nUploads both images to Shopify:\n- **Position 1** (main): Styled h"
      }
    },
    {
      "id": "ee142ea1-4f15-4a35-bb63-fbfe05126f2c",
      "name": "Shopify Trigger",
      "type": "n8n-nodes-base.shopifyTrigger",
      "position": [
        496,
        272
      ]
    },
    {
      "id": "11daa621-e991-4ed5-a644-91e5828fc4b0",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1248,
        272
      ]
    },
    {
      "id": "78fa1d80-a21e-42f5-bba3-3a3e5178a9c9",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1456,
        528
      ]
    },
    {
      "id": "4d0e8a45-1041-4b3d-a920-fc4b65fe57e1",
      "name": "deAPI Generate Image",
      "type": "n8n-nodes-deapi.deapi",
      "position": [
        1776,
        272
      ]
    },
    {
      "id": "8e801317-0731-4b88-9665-7cad613a5ab2",
      "name": "deAPI Remove Background",
      "type": "n8n-nodes-deapi.deapi",
      "position": [
        2192,
        272
      ]
    },
    {
      "id": "f68283e1-7cee-4172-ad3a-6169c8fdc874",
      "name": "Shopify Update Product",
      "type": "n8n-nodes-base.shopify",
      "position": [
        2592,
        272
      ]
    },
    {
      "id": "2eb2a543-5c34-47ff-99c7-0a21d2ebb694",
      "name": "Image prompt booster in deAPI",
      "type": "n8n-nodes-deapi.deapiTool",
      "position": [
        1328,
        528
      ]
    },
    {
      "id": "5fb5d091-9be6-4c11-8350-3d300de3eea6",
      "name": "Anthropic Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        1184,
        528
      ]
    },
    {
      "id": "272a1203-51fe-4535-b4ac-2b0e5cb8e3a4",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        848,
        272
      ]
    },
    {
      "id": "00627403-b83a-4321-b87d-11e02ac5b888",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2864,
        -16
      ],
      "parameters": {
        "width": 480,
        "height": 524,
        "content": "## Styled hero image\n![](https://res.cloudinary.com/dsmonpqk2/image/upload/f_auto,q_auto/v1772018279/SXwV7aOwQRgLoV48OyOKdEDmqTUnR7fANRXzd7DN_kdypx0.png#full-width)"
      }
    },
    {
      "id": "f6f3c4e9-8c95-4091-9bcc-b23b52116e1b",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2864,
        544
      ],
      "parameters": {
        "width": 480,
        "height": 524,
        "content": "## Transparent PNG\n![](https://res.cloudinary.com/dsmonpqk2/image/upload/f_auto,q_auto/v1772018280/xY5qVwrMQhjQtWKbKdvv6B1ySK8RKBUVHukDVVgL_dlpdzr.png#full-width)"
      }
    },
    {
      "id": "22921d2e-b717-4866-a3c8-1a9902052c19",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -144,
        16
      ],
      "parameters": {
        "width": 480,
        "height": 524,
        "content": "## Example product details from Shopify\n- **Title:** Classic Leather Weekend Bag\n- **Description:** Handcrafted from premium full-grain leather, this weekend bag combines timeless style with modern fu"
      }
    }
  ],
  "connections": {
    "AI Agent": {
      "main": [
        [
          {
            "node": "deAPI Generate Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Shopify Trigger": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "deAPI Generate Image": {
      "main": [
        [
          {
            "node": "deAPI Remove Background",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "deAPI Remove Background": {
      "main": [
        [
          {
            "node": "Shopify Update Product",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Image prompt booster in deAPI": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}