Demo

AI Supplier Matching Engine

Tune the weight sliders, re-rank suppliers in real time, and simulate routing a Shopify order to the top-ranked supplier. Every read and write funnels through the /api route handlers — no direct Shopify or Prisma access from this page.

Tune weights
Higher weight = the factor contributes more to the composite (lower-is-better for price + delivery days; higher-is-better for rating).

Simulated order id: demo-order-1

Ranked suppliers
Composite = weighted sum of 0..1 normalised factors. Best overall tops the list.

Pick weights and click Run scoring to see rankings.

Latest routing decision
Persisted to RoutingDecision; when Shopify credentials are configured the fulfillment id is echoed back.

No decision yet. Click Simulate Shopify order to persist one.