AI agent that sends order and shipping updates
How an e-commerce store puts an AI agent on a phone number to send order confirmations and shipping updates by text, answer the replies, and reach international customers over WhatsApp.

A customer buys a pair of boots from a Shopify store at lunch. At 2 p.m. she gets a text: order confirmed, ships in two days. On Thursday: shipped, here is the tracking link. On Saturday she replies "says delivered but it's not here??" and, instead of an email form that answers on Monday, something texts back in a minute with the carrier's delivery photo and a note that it went to the side porch.
That last part is the difference between a notification pipeline and an agent. Every store sends the first two texts. Few can answer the third.
The messages that go out
Transactional updates are the easiest texts to get right because the customer wants them. The set most stores send:
- 1Order confirmed, with the order number.
- 2Shipped, with the tracking link.
- 3Out for delivery, if the carrier provides it.
- 4Delivered.
- 5A single "how did it go" after delivery, if you want it, and only if your consent language covers it.
Each one is a POST /v1/messages call from your order webhook handler. Shopify fires an event for each state change, your backend maps it to a short message and sends it. Record the order id and event name before you send so a redelivered webhook does not text twice.
curl https://api.agentphone.ai/v1/messages \-H "Authorization: Bearer $AGENTPHONE_API_KEY" \-H "Content-Type: application/json" \-d '{"number_id": "num_store01","to_number": "+14155550166","body": "Fernhill Boots: order #10432 shipped via UPS. Track it at https://fernhill.example/t/10432. Reply here with any questions. Reply STOP to opt out."}'
The replies that come back
"Where is my order", "can I change the address", "wrong size, how do I return". These arrive as agent.message events with the thread's recentHistory, so the model already knows this is order 10432 without asking. Keep the order id in conversationState the moment you send the confirmation and every later reply carries it.
From there the agent does what a good support rep does with read access to your store: looks up the tracking, quotes the return policy, starts a return or says "I am handing this to Jess, she will text you here". The handoff keeps the same number and thread. The customer never has to repeat the order number.
A rule we hold to: the agent answers questions about the order the customer already placed. It does not use the thread to sell the next pair. That is marketing, and it needs a different consent and a different registration.
Consent at checkout
Transactional texts still need consent. The phone field at checkout with a line beneath it saying "we will text you order updates, reply STOP to opt out" is enough for transactional. Keep a screenshot of the checkout page showing that language, because it is what the 10DLC registration asks for.
Registration is required before the first outbound text from a US local number. We submit it from the dashboard, review it, and carrier approval is usually one to three business days. $25 once for a sole proprietor or standard brand, $70 for high volume if you send a lot. STOP and HELP are recorded on the number automatically, and an opted-out customer is blocked on the next send.
International customers on WhatsApp
A store shipping to the UK, India or Brazil will find SMS expensive or unreliable and its customers already on WhatsApp. The same POST /v1/messages and the same agent.message webhook work on WhatsApp, with the channel field set so your code knows. Bring your own WhatsApp Business Account. We charge nothing for WhatsApp; Meta bills its conversation fees to you directly. WhatsApp is in beta on AgentPhone.
Shipping updates on WhatsApp can use buttons ("Track package", "Change address") rather than making the customer type, which is one of the few places where the richer channel earns its setup.
What it costs
| Item | Price |
|---|---|
| Number | $3 per month |
| Each update sent, US/CA | $0.02 per segment |
| Each reply received | $0.02 per segment |
| MMS, for a delivery photo | $0.03 per message |
| WhatsApp message | $0 from us, Meta bills conversation fees |
| 10DLC registration | $25 once for a sole proprietor or standard brand, $70 high volume |
A store doing 2,000 orders a month with three updates each and a 15% reply rate spends about $130 on messages. Prices are from the pricing page.
FAQ
Do order updates need 10DLC registration? Yes, if sent from a US local number. The consent is clear since the customer gave their number at checkout, and AgentPhone submits the registration for $25 (sole proprietor or standard brand) with carrier approval usually in one to three business days.
Can the agent answer "where is my order"? Yes. The reply arrives on your webhook with the conversation history and the order id you stored in conversationState, so your agent looks up tracking and answers in the same thread.
How do I avoid sending duplicate shipping texts? Keep a record of order id plus event name for every text you send and check it before calling POST /v1/messages. A redelivered Shopify webhook then finds the record and sends nothing.
Can I send order updates on WhatsApp? Yes, through the same API and webhook with your own WhatsApp Business Account. AgentPhone charges nothing for it; Meta bills conversation fees directly. WhatsApp support is in beta.
Can I use the same number to send promotions? Not under a transactional registration. Marketing texts need marketing consent and a registration that says so. See abandoned checkout texts.


