The key points
- The bot is only as good as its lookup: it answers from the store and the courier, never from memory.
- Verification comes first: the order number must match the phone or another detail on that order before anything is shown.
- Proactive shipped, out-for-delivery and delay messages, sent as approved utility templates, cut the number of people who need to ask.
- Exceptions go to a person: delays past the promised date, failed attempts, parcels returning to you, refunds and angry messages.
Why do 'where is my order' questions fill the support inbox?
Every order creates a wait, and waiting buyers ask. A COD buyer wants to know which day to keep cash ready. A gift buyer wants to know whether it arrives before the birthday. Someone who opened the courier's tracking page and read bagged, manifested or RTO initiated wants a person to say what that means. The question is the same every time, it has one correct answer, and that answer already sits in two systems: your store and your courier. That combination is exactly what a bot handles well, which is why order status sits in the fully automatable tier in how much customer support you can automate.
The risk is the opposite case: a bot that has no live data and improvises. A confident wrong date is worse than no answer, because the customer plans around it and then writes in angrier. So every answer comes from the store and the courier, and the bot hands over the moment it cannot.
Which data does the bot read, and from where?
On Shopify, the Order object in the GraphQL Admin API carries the order name your customer sees, the phone number associated with the customer for that order, a display fulfillment status, refunds, a return status and a list of fulfillments. Each Fulfillment is one shipment with its tracking company, tracking number and tracking URL, an estimated delivery date, and the history of its events, whose statuses include in transit, out for delivery, delayed, attempted delivery and delivered. The app needs the read_orders scope, and Shopify exposes only the last 60 days of orders by default, so a store that gets questions about older orders requests the read_all_orders scope as well.
On WooCommerce, the REST API orders endpoint returns the billing details, shipping address, payment method and an order status from a fixed set: pending, processing, on-hold, completed, cancelled, refunded and failed. None of those says shipped or out for delivery, so the tracking side comes from the courier. Shiprocket's tracking API returns tracking by AWB, by shipment ID or by your store's order ID, and its status codes include Out For Delivery, In Transit, Delayed, Undelivered, RTO Initiated, Lost and Damaged. The AWB is saved against the order when the label is created, so every lookup has both halves.
The bot itself never holds these credentials. A small lookup service does: it takes a verified order reference, calls the store and the courier, and returns only the fields the bot is allowed to say. Read-only access is enough, because answering a tracking question never needs to change an order.
How does the bot avoid showing someone else's order?
Order numbers are short and sequential, so an order number alone proves nothing. The rule is two matching facts. On WhatsApp, the incoming message usually carries the sender's phone number, and the bot checks the order number against the phone on that order. Meta's messages webhook reference now says the phone number is omitted when the user has adopted a username and the number is unavailable, and tells integrations to identify users by their business-scoped user ID. For those senders, and on web chat, the bot asks for a second detail from the order instead, such as the email or the delivery pincode.
A mismatch gets a neutral reply, the same one a non-existent order would get, so nobody can test order numbers to learn which ones are real. After a few failed tries the chat goes to a person. A verified customer sees what they need and nothing more: item names, the status, the expected date and the delivery city, with the street address masked. The check runs inside the lookup service, not in the AI's instructions, because a prompt can be talked around and code cannot.
Which updates should go out before anyone asks?
The best tracking question is the one nobody needs to ask. Four messages cover most of the journey: shipped with the tracking link, out for delivery on the morning of delivery, delivered, and a delay notice with the new date when the courier reports one. Each is a template you start, and Meta's template overview says a template must be approved before it is sent and that templates are the only message type allowed outside a customer service window.
They belong in the utility category. Meta's categorization rules say order messages must not promote, recommend, upsell or cross-sell, and a template that does can be moved to marketing. So the shipped message carries the order number, the courier and the link, and no new-arrivals banner. The WhatsApp Business Policy requires opt-in before you message anyone, so the checkout asks for consent to order updates on WhatsApp, the same consent that covers the COD confirmation message sent before packing. When a customer replies to an update, a 24-hour customer service window opens and the bot can answer in free text. The same pattern for B2B consignments is set out in LR-number delivery updates on WhatsApp.
Which order messages stay utility, and which need marketing consent?
Add an order confirmation, sent seconds after the order is placed, with the order number, items and expected dispatch. A feedback request after delivery also stays utility when it names the specific order; Meta's template categorization rules say a generic request for feedback is not approved as utility.
A cross-sell, a restock alert or a coupon for the next purchase is a marketing template with its own consent. The WhatsApp Business Policy requires opt-in permission before you message anyone, and its best practices suggest collecting opt-in per message category, so checkout carries one consent for order updates and a separate, unticked one for offers. A stop on offers takes the number off offer sends; a request to stop WhatsApp messages altogether, which the policy requires you to honour, takes it off every list. Sending offers to a list at scale is covered in bulk messages on WhatsApp Business, and dues follow their own pattern in payment reminders on WhatsApp.
When does the bot hand the chat to a person?
The WhatsApp Business Policy requires automated experiences to offer prompt, clear and direct escalation paths, such as transfer to a live agent, a phone number or an email. Beyond that rule, set the triggers in advance: the promised date has passed, a delivery attempt failed, the parcel is returning to you, the courier reports it lost or damaged, the customer asks about a refund, the customer asks for a person, or the message reads angry. A customer asking about the same order for the second time in a day is also a trigger, because the first answer did not settle it.
The hand-over carries the context, so your agent never asks for the order number again: the verified order, every shipment with its latest scan, what the bot already said and why it escalated. Where several people answer from one number, the chat lands with a named owner, as in how small teams share one WhatsApp Business number. A failed attempt is also a chance to save the parcel: the same message that explains it offers a re-attempt or an address change, which is the NDR step in reducing RTO in ecommerce.
What about split shipments, returns and COD refunds?
These are the cases that break a bot built on one status field, so each one is written down before launch.
- Split shipments: on Shopify an order holds a list of fulfillments, each with its own tracking number. The bot answers parcel by parcel, for example two items delivered and one on its way with its own date, instead of one blended status.
- Parcel returning to you: once the courier reports RTO initiated, the bot stops saying on its way. It explains that the parcel is coming back, and hands over so a person can offer to reship or cancel.
- Returns after delivery: the question is about the reverse pickup, not the forward parcel. The bot reads the return status on the order and the pickup's own tracking, and explains the refund timeline from your written policy only.
- COD refunds: a delivered COD order that is returned needs a payout. The policy bars asking people to share financial account numbers in WhatsApp, so the bot never collects bank details in chat. It sends a secure link to your refund form or payment provider and confirms when the refund is recorded.
- Orders the store cannot find: an old order outside the scope the app holds, or an order placed through a marketplace. The bot says it will check and passes it on, never says the order does not exist.
How do you measure how many questions the bot takes?
From your own tickets, not a vendor's headline. Before launch, tag a few weeks of past conversations by reason and count the tracking questions per hundred orders. After launch, count a conversation as resolved by the bot only when no person replied and the customer did not ask about the same order again within two days. Track escalations by reason, wrong answers reported by customers or agents, and tracking questions per hundred orders. A drop in that last number after the proactive messages go live is the clearest sign that the updates, not only the bot, are doing the work.
Softivum builds this as an AI chatbot on your WhatsApp Business account and website, reading from your Shopify or WooCommerce store and courier through a lookup service, with the update templates running as workflow automation. The number, the templates and the conversation history stay in accounts registered to your business. If most of your orders still arrive in chat, settle whether to build an online store or keep selling through WhatsApp first.
What the bot says for each tracking state
| Tracking state | What the customer reads | Bot or person |
|---|---|---|
| Label created, pickup booked | Your order is packed and waiting for the courier to collect it | Bot |
| In transit | It is on its way and expected by the courier's date | Bot |
| Out for delivery | It is with the delivery agent today; keep your phone reachable | Bot |
| Delivered | Delivered, with the date and time | Bot, person if the customer says it did not arrive |
| Delayed or past the promised date | It is running late, with the new date if the courier has one | Bot for the update, person once the promised date has passed |
| Attempted delivery or undelivered | The attempt failed, with the reason and a choice to re-attempt or change the address | Bot offers the choice, person if there is no reply |
| RTO initiated | The parcel is coming back to us | Person |
| Lost or damaged | We are looking into it and a person will contact you | Person |
How the bot answers a tracking question
Recognise the question
The customer writes where is my parcel, kab aayega or sends just an order number. The bot classifies it as a tracking question and picks up any order number in the message.
Verify the customer
The order number is checked against the phone on the order, or against a second detail such as the email or delivery pincode. A mismatch gets a neutral reply that reveals nothing.
Read the store
The lookup service pulls the order: items, payment mode, cancellation or refund, and each shipment with its tracking number.
Read the courier
For each tracking number it calls the courier or aggregator tracking API and takes the latest scan and the expected delivery date.
Answer in plain words
Courier codes become sentences: packed and waiting for pickup, on its way and expected on a date, with the delivery agent today, delivered with the time.
Escalate the exceptions
A delay past the promised date, a failed attempt, a parcel returning, a refund question or an angry message goes to a person with the whole context attached.
Before the bot answers its first tracking question
- The lookup service has read-only store access and the courier tracking credentials
- The AWB or tracking number is saved on every order when the label is created
- Verification needs the order number plus the phone, email or pincode on that order
- Shipped, out-for-delivery, delivered and delay templates are approved as utility
- Checkout collects WhatsApp opt-in for order updates
- Escalation triggers are written down, and every hand-over carries the order context
- Past tickets are tagged by reason so deflection can be measured against a baseline
Sources
Rules and guidance this answer relies on. Policies change, so check the current version before acting on it.
- Shopify Dev Docs: Order object (GraphQL Admin API)
- Shopify Dev Docs: FulfillmentEventStatus
- WooCommerce: REST API documentation (orders)
- Shiprocket: API documentation (tracking)
- Meta for Developers: Messages webhook reference
- Meta for Developers: Template categorization
- Meta for Developers: Send messages and the customer service window
- WhatsApp: WhatsApp Business Policy
