Developer Builds Stateful Shipment Agent That Texts Customers and Handles Replies
A developer has built a Python Flask application that turns each shipment into a persistent agent capable of proactively sending SMS updates and responding to customer replies via Telnyx. Unlike traditional one-way tracking notifications, the agent retains full shipment context — including status, ETA, and event history — across multiple interactions and channels. The agent is triggered by carrier webhook events such as PICKED_UP, DELAYED, and DELIVERED, and reacts accordingly by messaging customers or scheduling follow-ups. It also supports inbound customer SMS replies and voice call paths, all tied to the same shipment context. The demo stores state in memory, though the developer notes that production deployments should use a durable store like Postgres or Redis alongside a proper job scheduler.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in