{
  "name": "Track inventory levels with automated alerts",
  "nodes": [
    {
      "id": "d9bb9707-2027-44d7-b036-24bc3dcef76e",
      "name": "Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -7920,
        -2128
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "8bbf691c-332f-4b83-b9dc-f3cc76c1db00",
      "name": "Movement Intake",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -7456,
        -2128
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "8c4a2dc2-387b-4cc5-8624-2b575c30df96",
      "name": "Stock Update",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -6560,
        -2128
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "29cd6c86-06d6-47cd-908e-8fe37f6ea059",
      "name": "Alert System",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -5888,
        -2128
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "6e376ba9-841b-4510-8219-cdb94f6bf3a6",
      "name": "Audit & Response",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -4512,
        -2128
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "80375bb3-b420-4c97-bf8e-a2f9da121519",
      "name": "Error Handling",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -7872,
        -1120
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "ceb89636-7867-4272-a737-9bcdd0c7bd26",
      "name": "Webhook - Inventory Movement",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -7376,
        -2000
      ]
    },
    {
      "id": "4b88f273-5216-4613-aad0-d0a424d4cc76",
      "name": "Validate Movement",
      "type": "n8n-nodes-base.code",
      "position": [
        -7184,
        -2000
      ]
    },
    {
      "id": "80fb9109-2525-4a85-aa56-5ff5edaf873f",
      "name": "IF - Valid Movement",
      "type": "n8n-nodes-base.if",
      "position": [
        -6944,
        -2000
      ]
    },
    {
      "id": "5dc83cbc-61a2-446d-9d77-bfb755238610",
      "name": "Format Validation Error",
      "type": "n8n-nodes-base.code",
      "position": [
        -6944,
        -1808
      ]
    },
    {
      "id": "2f5417f3-cb5c-4844-a74c-a3bec65bdd0e",
      "name": "Respond - Validation Error",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        -6720,
        -1808
      ]
    },
    {
      "id": "d03b4bbb-fb06-4b2a-b7eb-f277ff6b6312",
      "name": "Prepare API Body",
      "type": "n8n-nodes-base.code",
      "position": [
        -6544,
        -2000
      ]
    },
    {
      "id": "c74402fb-5667-4378-83e2-956de1d73292",
      "name": "API - Record Movement",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -6304,
        -2000
      ]
    },
    {
      "id": "9c202be8-8975-4f8f-b58e-4b2087516167",
      "name": "API - Get Current Stock",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -6064,
        -2000
      ]
    },
    {
      "id": "b4d80908-f652-4206-a10f-4187e838bbc2",
      "name": "Check Stock Levels",
      "type": "n8n-nodes-base.code",
      "position": [
        -5792,
        -2000
      ]
    },
    {
      "id": "adb5be6b-9002-49b3-9f14-c7cef50f396d",
      "name": "Alert Router",
      "type": "n8n-nodes-base.switch",
      "position": [
        -5552,
        -1856
      ]
    },
    {
      "id": "3c4cb892-bb20-453a-8424-71f5c101df3d",
      "name": "Format Critical Alert",
      "type": "n8n-nodes-base.code",
      "position": [
        -5376,
        -2016
      ]
    },
    {
      "id": "70c66771-88bc-454a-84ed-471a2b272ef5",
      "name": "Slack - Critical Alert",
      "type": "n8n-nodes-base.slack",
      "position": [
        -5152,
        -2000
      ]
    },
    {
      "id": "71ff021d-3ed4-4692-9063-5da5d2b63861",
      "name": "Email - Critical Alert",
      "type": "n8n-nodes-base.gmail",
      "position": [
        -5136,
        -1840
      ]
    },
    {
      "id": "61881728-c4e8-487c-b1e0-1298c36d5c6d",
      "name": "Format Urgent Alert",
      "type": "n8n-nodes-base.code",
      "position": [
        -5376,
        -1808
      ]
    },
    {
      "id": "a191476f-b1c1-493b-8133-e68b8df213d2",
      "name": "Slack - Urgent Alert",
      "type": "n8n-nodes-base.slack",
      "position": [
        -5136,
        -1728
      ]
    },
    {
      "id": "f6e58511-587a-4c6c-aefb-6b2eb8d2dee3",
      "name": "Format Warning Alert",
      "type": "n8n-nodes-base.code",
      "position": [
        -5376,
        -1632
      ]
    },
    {
      "id": "cd1e8c22-09b6-46d0-8392-8b4da36c4a95",
      "name": "Slack - Warning Alert",
      "type": "n8n-nodes-base.slack",
      "position": [
        -5136,
        -1552
      ]
    },
    {
      "id": "7842fe01-d288-427a-a2d8-d69e16a39a2b",
      "name": "No Alert Needed",
      "type": "n8n-nodes-base.noOp",
      "position": [
        -5376,
        -1488
      ]
    },
    {
      "id": "19cedbe5-fb1b-4ae1-8504-db41519ea054",
      "name": "Prepare Audit Entry",
      "type": "n8n-nodes-base.code",
      "position": [
        -4480,
        -2000
      ]
    },
    {
      "id": "f3e68bea-a46f-48b9-842a-ea3a77d93b5d",
      "name": "API - Log Audit Trail",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -4272,
        -2000
      ]
    },
    {
      "id": "b1645fda-4aa2-488a-a03b-c296d3a1f02e",
      "name": "Format Success Response",
      "type": "n8n-nodes-base.code",
      "position": [
        -4064,
        -2000
      ]
    },
    {
      "id": "7f0941cf-59c1-480e-a65b-11aae004bc6e",
      "name": "Respond - Success",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        -3872,
        -2000
      ]
    },
    {
      "id": "a96b738a-9bea-4346-8069-58bac6481f76",
      "name": "Error Trigger",
      "type": "n8n-nodes-base.errorTrigger",
      "position": [
        -7840,
        -1008
      ]
    },
    {
      "id": "fb9d99f3-4f2f-41c6-a024-5f27545a6bd4",
      "name": "Format Error",
      "type": "n8n-nodes-base.code",
      "position": [
        -7600,
        -1008
      ]
    },
    {
      "id": "aceee1ca-0a7a-45e2-bced-0933b131870d",
      "name": "Slack - Error Alert",
      "type": "n8n-nodes-base.slack",
      "position": [
        -7360,
        -1008
      ]
    }
  ],
  "connections": {
    "Alert Router": {
      "main": [
        [
          {
            "node": "Format Critical Alert",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Format Urgent Alert",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Format Warning Alert",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "No Alert Needed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Error": {
      "main": [
        [
          {
            "node": "Slack - Error Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Error Trigger": {
      "main": [
        [
          {
            "node": "Format Error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "No Alert Needed": {
      "main": [
        [
          {
            "node": "Prepare Audit Entry",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare API Body": {
      "main": [
        [
          {
            "node": "API - Record Movement",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Validate Movement": {
      "main": [
        [
          {
            "node": "IF - Valid Movement",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Stock Levels": {
      "main": [
        [
          {
            "node": "Alert Router",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Urgent Alert": {
      "main": [
        [
          {
            "node": "Slack - Urgent Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "IF - Valid Movement": {
      "main": [
        [
          {
            "node": "Prepare API Body",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Format Validation Error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Audit Entry": {
      "main": [
        [
          {
            "node": "API - Log Audit Trail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Warning Alert": {
      "main": [
        [
          {
            "node": "Slack - Warning Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Slack - Urgent Alert": {
      "main": [
        [
          {
            "node": "Prepare Audit Entry",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "API - Log Audit Trail": {
      "main": [
        [
          {
            "node": "Format Success Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "API - Record Movement": {
      "main": [
        [
          {
            "node": "API - Get Current Stock",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Critical Alert": {
      "main": [
        [
          {
            "node": "Slack - Critical Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Slack - Warning Alert": {
      "main": [
        [
          {
            "node": "Prepare Audit Entry",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Email - Critical Alert": {
      "main": [
        [
          {
            "node": "Prepare Audit Entry",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Slack - Critical Alert": {
      "main": [
        [
          {
            "node": "Email - Critical Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "API - Get Current Stock": {
      "main": [
        [
          {
            "node": "Check Stock Levels",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Success Response": {
      "main": [
        [
          {
            "node": "Respond - Success",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Validation Error": {
      "main": [
        [
          {
            "node": "Respond - Validation Error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook - Inventory Movement": {
      "main": [
        [
          {
            "node": "Validate Movement",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}