{
  "name": "Automate sales order prioritization with ERP-WMS-TMS integration based on SLA tiers",
  "nodes": [
    {
      "id": "fed36f3d-9961-48ce-b978-016bd12a8454",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        272,
        1280
      ],
      "parameters": {
        "width": 352,
        "height": 800,
        "content": "## Overview\nAutomates sales order prioritization using customer SLA tiers, urgency, value, and margin. Critical orders trigger immediate alerts & tasks; normal orders are batched, scheduled, dispatche"
      }
    },
    {
      "id": "db57d111-77d4-4199-9285-5af954bd0049",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        816,
        1504
      ]
    },
    {
      "id": "867bf758-971b-4450-97e5-26e77489d626",
      "name": "Fetch Pending Orders",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1040,
        1504
      ]
    },
    {
      "id": "096bd3fd-85cc-4449-8837-14be45277738",
      "name": "Fetch Customer SLA Data",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1264,
        1504
      ]
    },
    {
      "id": "5b32443d-c53a-4ebe-b6c9-6efc2f9d9248",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1232,
        1344
      ],
      "parameters": {
        "width": 630,
        "height": 384,
        "content": "👥 pending orders Retrieves customer SLA tiers Delivery timeframes & priorities than\n🎯 Calculates priority scores Urgency 40% + Tier 30% + Value 20% + Margin 10% after we get calculates ⚠️ Identifies c"
      }
    },
    {
      "id": "6b358de4-cb68-4d1b-87be-1b19f3b239a5",
      "name": "Calculate Priority Scores",
      "type": "n8n-nodes-base.code",
      "position": [
        1488,
        1504
      ]
    },
    {
      "id": "b602f629-fbac-49a4-86d5-9281da31e1ca",
      "name": "Check if SLA Critical",
      "type": "n8n-nodes-base.if",
      "position": [
        1712,
        1504
      ]
    },
    {
      "id": "5cba1751-15e4-4d4c-bcfd-c28cae3db6f6",
      "name": "Create Urgent Picking Task",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1936,
        1408
      ]
    },
    {
      "id": "f1e04e3e-af01-4dc5-966d-c263901fa1f0",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1888,
        1280
      ],
      "parameters": {
        "width": 438,
        "height": 320,
        "content": "🚨 Creates urgent task Assign to senior picker immediately tha 📱 Alerts manager via SMS + Email High priority notification"
      }
    },
    {
      "id": "de7fa61a-28ee-4f68-8d31-d4dc5167d69a",
      "name": "Alert Warehouse Manager",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2160,
        1408
      ]
    },
    {
      "id": "3f2ee818-d814-4520-86e2-1d3caf5a4f86",
      "name": "Batch Normal Orders",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1936,
        1872
      ]
    },
    {
      "id": "599c9d46-8038-4aa8-a12a-eae69c7a95d0",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1888,
        1680
      ],
      "parameters": {
        "width": 422,
        "height": 352,
        "content": "📦 Batches orders in groups of 10 Optimizes processing after execution 📅 Smart scheduling by urgency High: 4hrs | Normal: Today | Low: 2-3 days"
      }
    },
    {
      "id": "a987eb38-c86a-4fe5-b34e-2c0c41cc6031",
      "name": "Generate Picking Schedule",
      "type": "n8n-nodes-base.code",
      "position": [
        2176,
        1872
      ]
    },
    {
      "id": "aff8f182-17c2-4762-943e-ebc7b7cfc1cb",
      "name": "Create Bulk Picking Tasks",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2384,
        1600
      ]
    },
    {
      "id": "ac398148-10e9-4064-9f1c-73c75956831a",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2336,
        1488
      ],
      "parameters": {
        "width": 1334,
        "height": 320,
        "content": "Creates tasks in WMS (auto-assign + route optimize) → Plans shipments (Express/Priority/Standard) → Sends to TMS (book carriers + reserve capacity) → Updates ERP (status, schedule, deadlines) → Genera"
      }
    },
    {
      "id": "107fd068-d573-448e-8d4a-9f9f526d4d5f",
      "name": "Generate Dispatch Schedule",
      "type": "n8n-nodes-base.code",
      "position": [
        2608,
        1600
      ]
    },
    {
      "id": "c53642b0-6cd8-4570-bc1a-aa00f5abf420",
      "name": "Schedule Dispatches in TMS",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2832,
        1600
      ]
    },
    {
      "id": "8c114593-3f39-4962-a4d3-e478eb5a4c9f",
      "name": "Update Order Statuses",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3056,
        1600
      ]
    },
    {
      "id": "0770cd61-31d9-4cbe-b225-a41c5b1eaeec",
      "name": "Generate Summary Report",
      "type": "n8n-nodes-base.code",
      "position": [
        3280,
        1600
      ]
    },
    {
      "id": "56d8fefd-1541-4792-acf5-61011feb4e5c",
      "name": "Send Summary Notification",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3504,
        1600
      ]
    },
    {
      "id": "fedd9164-d9fa-4081-a932-6a85b3cefe6a",
      "name": "Sticky Note15",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        789,
        1408
      ],
      "parameters": {
        "width": 422,
        "height": 272,
        "content": "⏰ Runs every 15 minutes Fetches pending orders than 📥 Gets pending/confirmed orders Limit: 100 per run"
      }
    },
    {
      "id": "1b8f961e-92d8-46f1-b238-4e2cc6786485",
      "name": "Sticky Note16",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3808,
        1312
      ],
      "parameters": {
        "width": 464,
        "height": 800,
        "content": "## Overview\n\n\nAutomates sales order prioritization using customer SLAs, inventory status, and margin criteria. Plans shipments, creates WMS & TMS tasks, and notifies teams automatically once scheduled"
      }
    }
  ],
  "connections": {
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Fetch Pending Orders",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Batch Normal Orders": {
      "main": [
        [
          {
            "node": "Generate Picking Schedule",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Pending Orders": {
      "main": [
        [
          {
            "node": "Fetch Customer SLA Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check if SLA Critical": {
      "main": [
        [
          {
            "node": "Create Urgent Picking Task",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Batch Normal Orders",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Order Statuses": {
      "main": [
        [
          {
            "node": "Generate Summary Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Alert Warehouse Manager": {
      "main": [
        [
          {
            "node": "Create Bulk Picking Tasks",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Customer SLA Data": {
      "main": [
        [
          {
            "node": "Calculate Priority Scores",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Summary Report": {
      "main": [
        [
          {
            "node": "Send Summary Notification",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Calculate Priority Scores": {
      "main": [
        [
          {
            "node": "Check if SLA Critical",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Bulk Picking Tasks": {
      "main": [
        [
          {
            "node": "Generate Dispatch Schedule",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Picking Schedule": {
      "main": [
        [
          {
            "node": "Create Bulk Picking Tasks",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Urgent Picking Task": {
      "main": [
        [
          {
            "node": "Alert Warehouse Manager",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Dispatch Schedule": {
      "main": [
        [
          {
            "node": "Schedule Dispatches in TMS",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Dispatches in TMS": {
      "main": [
        [
          {
            "node": "Update Order Statuses",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}