Original Reddit post

​ I put together a Python/Flask example for a “shipment agent” pattern. Instead of treating package tracking as a static tracking page, the app gives each shipment its own agent. Carrier updates wake the agent, update package state, and send proactive SMS updates through Telnyx Messaging. If the customer replies, the inbound SMS webhook is verified and routed back to the right shipment context. The useful bit is the architecture: the package behaves like a durable object that can communicate across events, SMS, and voice instead of being just a tracking number. Code: https://github.com/team-telnyx/telnyx-code-examples/tree/main/shipment-agent Would love feedback on the pattern, especially from anyone building logistics/customer support workflows. submitted by /u/AIBotFromFuture

Originally posted by u/AIBotFromFuture on r/ArtificialInteligence