What you need
Data sources
- TMS database — Shipment records with order ID, carrier, tracking number, origin, destination, and committed delivery date
- Carrier tracking APIs — Real-time tracking events from all carriers (FedEx, UPS, USPS, regional carriers, LTL providers)
- Customer database — Customer contact information, notification preferences, and order history
Knowledge spaces
- Carrier status code mappings — Translation tables that map each carrier’s proprietary status codes to a normalized set (in transit, out for delivery, delivered, exception)
- Customer communication templates — Approved notification templates for shipping confirmation, out-for-delivery, delivered, and delay alerts
| Component | Name | Definition |
|---|---|---|
| Object | Shipment | Maps to the TMS shipments table. Represents a delivery in progress with its normalized tracking status |
| Object | TrackingEvent | Maps to the consolidated tracking events table. Represents a single status update with timestamp and location |
| Metric | ETAAccuracy | Percentage of shipments where the actual delivery time fell within the committed delivery window |
| Dimension | DeliveryStatus | Normalized categorization: label created, picked up, in transit, out for delivery, delivered, exception, returned |
Agent setup
Create the agent
Go to Agent Space → New agent.
| Field | Value |
|---|---|
| Name | Shipment Tracker |
| Role | Shipment visibility and exception specialist |
| Goal | Keep stakeholders informed and catch delays before they impact customers |
Set the description
You track shipments across carriers and provide real-time status updates. When someone asks “where is my shipment,” respond with the normalized status, current location, and estimated delivery time — not raw carrier codes. For delays, include the cause, the revised ETA, and what is being done about it. Use a factual, calm tone. Proactively mention if other shipments on the same order are also affected. Always provide the tracking number and carrier name for reference.
Scope data access
Grant access to:
- TMS database (shipments, tracking numbers, order IDs)
- All carrier tracking APIs
- Customer database (contact information, preferences)
- Carrier status code mappings knowledge space
- Customer communication templates knowledge space
Shipment,TrackingEventobjects andETAAccuracymetric
Add skills
Look up shipment status
Look up shipment status
Trigger: User asks about a shipment, tracking number, or order
- Identify the shipment from the provided tracking number, order ID, or customer name.
- Query the carrier tracking API for the full event history.
- Normalize the carrier status codes to the standard set (label created, picked up, in transit, out for delivery, delivered, exception, returned).
- Determine the current status and location.
- If in transit, estimate the remaining delivery time based on the current location and the carrier’s typical transit speed for this lane.
- Present the status summary: current status, location, ETA, and a timeline of key events.
Proactive delay notification
Proactive delay notification
Trigger: Tracking event indicates a delay or exception
- Detect the delay from the carrier tracking event (missed scan, exception code, or ETA pushed past the committed date).
- Classify the delay type: carrier delay, weather, address issue, customs hold, or capacity shortage.
- Estimate the revised ETA based on the delay type and historical resolution times.
- Retrieve the customer’s notification preferences from the customer database.
- Draft a notification using the approved delay template, including the revised ETA and a reference number.
- Send via the customer’s preferred channel (email or SMS).
Automation
Playbook: Proactive delivery status updates
Set the trigger
Schedule: Every 2 hours from 6:00 AM to 10:00 PM to catch status changes throughout the delivery day.
Build the workflow
- Query the TMS for all shipments currently in transit or out for delivery.
- Loop through each shipment:
- Query the carrier tracking API for the latest event.
- Compare the latest event against the last known status in the consolidated tracking table.
- If the status has changed, update the consolidated table and check if a customer notification is warranted.
- Condition: If the new status is “delivered,” send a delivery confirmation. If the new status is “exception” or the ETA has slipped past the committed date, send a delay alert.
- Aggregate a summary of all status changes for the operations team: total deliveries confirmed, total delays detected, and total notifications sent.
Configure delivery
Customer notifications go via the customer’s preferred channel (email or SMS). The operations summary goes to the
#last-mile-ops Slack channel. If delay notifications exceed 10% of active shipments, send an escalation email to the logistics director.What’s next
Delivery exception management
Go deeper on exception handling with root cause analysis and structured escalation workflows.
All logistics use cases
See the full list.

