The agent queries connected carrier APIs and rate engines, FedEx, UPS, DHL, regional LTL carriers, and freight brokers exposing REST or EDI interfaces, using the shipment parameters (origin, destination, weight, dimensions, service level, and any shipper-specific routing rules) as the structured input. Rate comparison applies your routing guide logic: preferred carriers per lane, rate cap thresholds, service level requirements, and any carrier scorecards configured in the TMS.
When a carrier meets all selection criteria, the agent generates the booking request, submits it via the carrier's booking API or EDI 204 transaction, and writes the confirmation back to the TMS record, including PRO number, estimated pickup window, and carrier contact. Confirmation is sent to the warehouse team via the configured notification channel (email, Slack, or TMS task) with the full booking summary.
The agent handles the matching and booking; business logic for lane exceptions, spot-market decisions, and new carrier relationships remains with your team. Bookings outside the routing guide, loads requiring manual negotiation, oversized freight, or hazmat shipments with carrier-specific requirements, are flagged with the specific gap and routed to the appropriate person. The audit trail captures every rate query, carrier ranked, and booking submitted, so lane performance data accumulates automatically without dispatcher data entry.
Stateful workflow management using LangGraph models the multi-step booking process, rate query, carrier ranking, routing guide match, booking submission, confirmation write-back, as a directed graph with explicit state transitions. Human-in-the-loop checkpoints are configurable per shipment type, so high-value or sensitive lanes can require approval before the agent submits a booking.