Logistics Route Optimization
AI ↔ AIBatch orders, compute distances, solve constraints, assign routes, dispatch.
5 nodes · 5 edgeslogistics
agentapisystem
Visual
Order Batch Agentagent
Group pending orders by region, priority, and delivery window.
↓sequential→ Distance Matrix API Agent
Distance Matrix API Agentapi
Query Google Maps / OSRM for pairwise travel times between all stops.
↓sequential→ Constraint Solver Agent
Constraint Solver Agentagent
Solve vehicle routing problem with capacity, time-window, and driver-hour constraints.
↓sequential→ Route Assignment Agent
↓fallback→ Order Batch Agent
Route Assignment Agentagent
Assign optimized routes to available drivers based on vehicle type and location.
↓sequential→ Dispatch Notifications
Dispatch Notificationsapi
Push route sheets to driver mobile apps and update TMS dashboard.
uc-route-optimization.osop.yaml
osop_version: "1.0"
id: "route-optimization"
name: "Logistics Route Optimization"
description: "Batch orders, compute distances, solve constraints, assign routes, dispatch."
nodes:
- id: "order_batch"
type: "agent"
subtype: "worker"
name: "Order Batch Agent"
description: "Group pending orders by region, priority, and delivery window."
- id: "distance_matrix"
type: "api"
name: "Distance Matrix API Agent"
description: "Query Google Maps / OSRM for pairwise travel times between all stops."
timeout_sec: 30
- id: "constraint_solver"
type: "agent"
subtype: "llm"
name: "Constraint Solver Agent"
description: "Solve vehicle routing problem with capacity, time-window, and driver-hour constraints."
- id: "route_assign"
type: "agent"
subtype: "planner"
name: "Route Assignment Agent"
description: "Assign optimized routes to available drivers based on vehicle type and location."
- id: "dispatch_notify"
type: "api"
name: "Dispatch Notifications"
description: "Push route sheets to driver mobile apps and update TMS dashboard."
edges:
- from: "order_batch"
to: "distance_matrix"
mode: "sequential"
- from: "distance_matrix"
to: "constraint_solver"
mode: "sequential"
- from: "constraint_solver"
to: "route_assign"
mode: "sequential"
- from: "route_assign"
to: "dispatch_notify"
mode: "sequential"
- from: "constraint_solver"
to: "order_batch"
mode: "fallback"
label: "Infeasible solution, re-batch with relaxed windows"