1. Poll the carrier API. Pull the latest milestones for every shipment in the active book. Pickup confirmed, in transit, at terminal, out for delivery, delivered, exception.
2. Match the milestone to the driver. The shipment record holds the driver phone number, the pickup window, and any special instructions. Join them once at the top of the flow.
3. Pick the right message. Each milestone gets its own template. Pickup confirmed reads one way. Delivery exception reads another. The template carries the variables that come off the milestone (load number, location, ETA).
4. Send the SMS through Twilio. The flow fires the message through the Twilio API. Long messages get split. International numbers get formatted correctly.
5. Log every send. Time, milestone, driver, message body, Twilio status. The log lands in your shipment tracking table so dispatch has a record without anyone screenshotting a phone.
6. Handle the reply. Twilio inbound webhook routes driver replies back into the flow, surfaces them in the dispatch dashboard, and flags anything urgent for follow-up.