{
  "name": "Track WooCommerce inventory and send reorder alerts via Gmail and Slack",
  "nodes": [
    {
      "id": "a40203de-1271-4844-9d40-24ba95a8ce6f",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1632,
        -480
      ],
      "parameters": {
        "width": 720,
        "height": 624,
        "content": "## Inventory & Sales Intake\n\n\n### •Trigger :- The workflow starts automatically based on a scheduled trigger.\n### • WooCommerce Node :- Order data is fetched from WooCommerce using the Orders API.\n###"
      }
    },
    {
      "id": "1cd9d374-16bc-41e8-8194-320518dbf48e",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -848,
        -480
      ],
      "parameters": {
        "width": 624,
        "height": 624,
        "content": "## Product Mapping & Eligibility Validation\n\n### Product inventory details are fetched and aligned with sales data.\n### Current stock levels and low-stock thresholds are retrieved for each product.\n##"
      }
    },
    {
      "id": "6df12f5e-3acf-46c5-b98f-eed2c11b0f3c",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -128,
        -480
      ],
      "parameters": {
        "width": 576,
        "height": 624,
        "content": "## Reorder Calculation & Notifications\n\n### Code :-\n### The workflow calculates the required reorder quantity for eligible products.\n### Average daily sales, lead time and safety stock are applied to "
      }
    },
    {
      "id": "5018ae67-c1a8-4521-8b99-6e2a21b95858",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2336,
        -592
      ],
      "parameters": {
        "width": 672,
        "height": 1024,
        "content": "## How it Works:\n• This workflow automatically monitors product inventory and recent sales activity on a scheduled basis.\n\n• On each execution, the workflow fetches recent WooCommerce orders and calcu"
      }
    },
    {
      "id": "8cee01d6-fb79-4c60-a64e-daa179bfff12",
      "name": "Merge Sales & Inventory Data",
      "type": "n8n-nodes-base.merge",
      "position": [
        -592,
        -80
      ]
    },
    {
      "id": "343bbd75-fa34-49db-b63a-77e2a9f5aec2",
      "name": "Inventory Check",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -1584,
        -80
      ]
    },
    {
      "id": "e213338f-4aa3-4b73-bd97-9ae1e58e958e",
      "name": "Fetch Orders",
      "type": "n8n-nodes-base.wooCommerce",
      "position": [
        -1344,
        -80
      ]
    },
    {
      "id": "6a6da4b9-e73d-499e-99bd-b5a48d187acd",
      "name": "SKU Sales Volume",
      "type": "n8n-nodes-base.code",
      "position": [
        -1104,
        -80
      ]
    },
    {
      "id": "02720b8b-1aa6-4bf5-b3d7-3ebc04bcd17a",
      "name": "Fetch Products",
      "type": "n8n-nodes-base.wooCommerce",
      "position": [
        -800,
        -80
      ]
    },
    {
      "id": "0e358072-e091-4aa7-a961-54849ab7205e",
      "name": "Reorder Check",
      "type": "n8n-nodes-base.filter",
      "position": [
        -384,
        -80
      ]
    },
    {
      "id": "858fef79-d415-4ce5-ace1-8fae9ee66804",
      "name": "Reorder Calc",
      "type": "n8n-nodes-base.code",
      "position": [
        -64,
        -80
      ]
    },
    {
      "id": "96a631d1-e691-4e0f-99f2-b0f6635dbe5f",
      "name": "Send Email",
      "type": "n8n-nodes-base.gmail",
      "position": [
        128,
        -80
      ]
    },
    {
      "id": "7caf25c1-6bd3-4033-ad45-a06d3f52bfe6",
      "name": "Slack Alert",
      "type": "n8n-nodes-base.slack",
      "position": [
        320,
        -80
      ]
    }
  ],
  "connections": {
    "Send Email": {
      "main": [
        [
          {
            "node": "Slack Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Orders": {
      "main": [
        [
          {
            "node": "SKU Sales Volume",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Reorder Calc": {
      "main": [
        [
          {
            "node": "Send Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Reorder Check": {
      "main": [
        [
          {
            "node": "Reorder Calc",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Products": {
      "main": [
        [
          {
            "node": "Merge Sales & Inventory Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Inventory Check": {
      "main": [
        [
          {
            "node": "Fetch Orders",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "SKU Sales Volume": {
      "main": [
        [
          {
            "node": "Fetch Products",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Sales & Inventory Data": {
      "main": [
        [
          {
            "node": "Reorder Check",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}