{
  "name": "Synchronizing WooCommerce inventory and creating products with Google Gemini AI and BrowserAct",
  "nodes": [
    {
      "id": "359efd1f-8b53-4856-aa26-48103897473d",
      "name": "Get many products",
      "type": "n8n-nodes-base.wooCommerce",
      "position": [
        256,
        -144
      ]
    },
    {
      "id": "5d014a7c-5952-41de-8be2-08435144fab4",
      "name": "Update a product",
      "type": "n8n-nodes-base.wooCommerce",
      "position": [
        944,
        -160
      ]
    },
    {
      "id": "f3091026-476d-48e7-8768-0015c03564a1",
      "name": "Get Product Stock Data",
      "type": "n8n-nodes-browseract-workflows.browserAct",
      "position": [
        -512,
        -80
      ]
    },
    {
      "id": "16539d4b-2817-4dc2-abac-2c58bc3ad5d8",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        736,
        240
      ]
    },
    {
      "id": "e7b713db-9a9b-41e1-accd-2c7a3fe6b737",
      "name": "Send a message",
      "type": "n8n-nodes-base.slack",
      "position": [
        -512,
        -240
      ]
    },
    {
      "id": "60842653-3eec-4b3f-a80a-cf8cf3da97d7",
      "name": "Create a product",
      "type": "n8n-nodes-base.wooCommerce",
      "position": [
        960,
        48
      ]
    },
    {
      "id": "8b95853a-0792-4c73-bbfe-07c8921844e5",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        1392,
        16
      ]
    },
    {
      "id": "358f3506-7b05-48e8-9e75-d9315c22b90e",
      "name": "Add Missing Product",
      "type": "n8n-nodes-browseract-workflows.browserAct",
      "position": [
        336,
        64
      ]
    },
    {
      "id": "7de632a3-0a8e-483e-95b0-5751bb738968",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -1088,
        -96
      ]
    },
    {
      "id": "1384104c-8f59-459a-a563-f814fa395e91",
      "name": "Sticky Note - Intro",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1136,
        96
      ],
      "parameters": {
        "width": 672,
        "height": 560,
        "content": "## Try It Out!\n### This sophisticated n8n template automates WooCommerce inventory management by scraping supplier stock data, updating existing products, and intelligently creating new ones with AI-f"
      }
    },
    {
      "id": "6e2da3a0-7637-427e-9b54-c2c30032cc91",
      "name": "Sticky Note - How to Use",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -448,
        384
      ],
      "parameters": {
        "width": 528,
        "height": 264,
        "content": "## How to use\n\n1.  **Set up Credentials:** Add your credentials for **BrowserAct**, **Google Sheets**, **WooCommerce**, **Google Gemini**, and **Slack**.\n2.  **Set up BrowserAct Templates:** Ensure yo"
      }
    },
    {
      "id": "82e23aaf-ceca-4015-9136-bf23ff035997",
      "name": "Sticky Note - Need Help",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -448,
        224
      ],
      "parameters": {
        "width": 336,
        "height": 152,
        "content": "### Need Help?\n* #### [How to Find Your BrowseAct API Key & Workflow ID](https://www.youtube.com/watch?v=pDjoZWEsZlE)\n* #### [How to Connect n8n to Browseract](https://www.youtube.com/watch?v=RoYMdJaR"
      }
    },
    {
      "id": "9d902298-8b60-4646-abaf-e7383878b6ff",
      "name": "Sticky Note - Input & Scrape Loop",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -848,
        -432
      ],
      "parameters": {
        "width": 624,
        "height": 176,
        "content": "### 📋 1. Input & Scrape Loop\n\n* **Trigger:** Starts the process manually or on a schedule.\n* **Google Sheets:** Fetches your list of suppliers and their inventory page URLs.\n* **Loop Over Items:** Pro"
      }
    },
    {
      "id": "14b77e15-d220-4687-b260-1679b1d7649f",
      "name": "Sticky Note - Product Processing Loop",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        304,
        -400
      ],
      "parameters": {
        "width": 560,
        "height": 200,
        "content": "### 🔄 2. Product Processing Loop & Update Existing Product\nThis section runs for every product scraped from the supplier.\n\n* **Loop Over Items1:** Handles each product individually.\n* **Get many produ"
      }
    },
    {
      "id": "7b291eaf-c4a1-46fd-9083-cf7e81a57ff0",
      "name": "Sticky Note - Create New Product",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        384,
        368
      ],
      "parameters": {
        "width": 480,
        "height": 216,
        "content": "### ✨ 4. Create New Product (If Missing)\n\nIf the product was *not* found:\n\n* **If1 (Category Check - Optional):** Filters if you only want to add products matching a specific type.\n* **Add Missing Pro"
      }
    },
    {
      "id": "bd5c0de3-4b7a-4f31-9d78-3dda3bcd1c2b",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        -176
      ],
      "parameters": {
        "width": 1184,
        "height": 208,
        "content": ""
      }
    },
    {
      "id": "f75b433a-1c8c-458b-aecf-879a6881f23d",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        112,
        48
      ],
      "parameters": {
        "width": 976,
        "height": 304,
        "content": ""
      }
    },
    {
      "id": "06d9505d-d672-469e-b0d0-36fdf1a5abd9",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -960,
        -240
      ],
      "parameters": {
        "width": 848,
        "height": 320,
        "content": ""
      }
    },
    {
      "id": "7535c929-96b9-451e-bf9e-c6a6b440d6b3",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1104,
        48
      ],
      "parameters": {
        "width": null,
        "height": 208,
        "content": ""
      }
    },
    {
      "id": "98d804e1-f59d-4020-844c-d7e04b86a57c",
      "name": "Sticky Note - Create New Product1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1104,
        272
      ],
      "parameters": {
        "width": null,
        "height": 104,
        "content": "✅ 4. Error Handling\n\nWhen the process encounters an error, the **Slack** node notifies the team."
      }
    },
    {
      "id": "b5cb6c9a-edc9-4aef-9750-e95985d80e34",
      "name": "Send Error 2",
      "type": "n8n-nodes-base.slack",
      "position": [
        544,
        224
      ]
    },
    {
      "id": "b5d687e7-5781-4b29-b96e-a1cff88d6dea",
      "name": "Send Error",
      "type": "n8n-nodes-base.slack",
      "position": [
        1184,
        96
      ]
    },
    {
      "id": "d4812931-1bca-4892-9133-88c36e1558e5",
      "name": "Loop Over Suppliers",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -720,
        -96
      ]
    },
    {
      "id": "703e314d-8e2a-4bec-90ee-76397090591e",
      "name": "Loop Over Products",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -64,
        -96
      ]
    },
    {
      "id": "b6239845-f5f7-4bfa-9c69-89508b96793c",
      "name": "Send BrowserAct Error",
      "type": "n8n-nodes-base.slack",
      "position": [
        -288,
        80
      ]
    },
    {
      "id": "e7b9c737-521c-4b52-bc41-7bb63b92a3eb",
      "name": "Check the Category",
      "type": "n8n-nodes-base.if",
      "position": [
        160,
        80
      ]
    },
    {
      "id": "59f6c99e-fffc-48d6-beb2-8c08c34d40e3",
      "name": "Check for Product availability",
      "type": "n8n-nodes-base.if",
      "position": [
        544,
        -144
      ]
    },
    {
      "id": "fdbbae9a-fad8-4180-9e8b-b3a9013eace9",
      "name": "BrowserAct JSON Breakdown",
      "type": "n8n-nodes-base.code",
      "position": [
        -288,
        -96
      ]
    },
    {
      "id": "68ac7520-266b-45d1-b4ef-888cde19c635",
      "name": "BrowserAct Json Breakdown",
      "type": "n8n-nodes-base.code",
      "position": [
        512,
        48
      ]
    },
    {
      "id": "5b2bbcd8-551a-4ad5-bd8a-c8c9a08cd4f8",
      "name": "Create the HTML Data Table",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        688,
        48
      ]
    },
    {
      "id": "fde001d3-f383-47ea-a38c-3f86ebb1a886",
      "name": "Get Suppliers & Links",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -928,
        -96
      ]
    }
  ],
  "connections": {
    "Merge": {
      "main": [
        [
          {
            "node": "Loop Over Products",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Error": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Create a product": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ],
        [
          {
            "node": "Send Error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update a product": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send Error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get many products": {
      "main": [
        [
          {
            "node": "Check for Product availability",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check the Category": {
      "main": [
        [
          {
            "node": "Add Missing Product",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Loop Over Products",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Products": {
      "main": [
        [
          {
            "node": "Loop Over Suppliers",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get many products",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add Missing Product": {
      "main": [
        [
          {
            "node": "BrowserAct Json Breakdown",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send Error 2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Suppliers": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get Product Stock Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Suppliers & Links": {
      "main": [
        [
          {
            "node": "Loop Over Suppliers",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Product Stock Data": {
      "main": [
        [
          {
            "node": "BrowserAct JSON Breakdown",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send BrowserAct Error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Create the HTML Data Table",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "BrowserAct JSON Breakdown": {
      "main": [
        [
          {
            "node": "Loop Over Products",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "BrowserAct Json Breakdown": {
      "main": [
        [
          {
            "node": "Create the HTML Data Table",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create the HTML Data Table": {
      "main": [
        [
          {
            "node": "Create a product",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check for Product availability": {
      "main": [
        [
          {
            "node": "Update a product",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Check the Category",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Get Suppliers & Links",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}