A Shopify order status chatbot should verify the shopper, fetch the order from a read-only integration, and report each shipment separately. Once the shopper is verified, tell them which package has a carrier update and which is still waiting. For a guest who cannot verify from chat, send them to the Shopify order status page from their own confirmation email. Shopify order status pages.
Confirm who can see the order
If the shopper is signed in, use the identity from the verified server-side session. Resolve the shop and order together, then enforce order ownership in your integration before returning any details to chat. If the customer is a guest, rely on your approved verification flow or direct them to their original order confirmation. An order number typed into chat is a lookup hint. Returning the same verification prompt for unmatched orders helps avoid confirming whether anyone else's order exists.
Keep API credentials on the server. Scope the integration for read-only order access and expose only the data needed to answer the question. The assistant may need a shipment status and tracking URL. It rarely needs the customer’s email, full address, or payment details. Shopify has separate requirements for access to protected customer data. Shopify protected customer data.
Fetch the shipment records
Once the server has verified the customer owns the order, call the Shopify Admin GraphQL order query with the internal order ID that the server resolved. This example reads fulfillment status, shipment display status, and carrier tracking. It leaves customer identity fields out of the response. Shopify Order reference and Fulfillment reference.
query VerifiedOrderTracking($id: ID!) {
order(id: $id) {
displayFulfillmentStatus
fulfillments {
id
displayStatus
trackingInfo {
company
url
}
}
}
}
Filter the result into an approved response format. Validate links against the carrier or Shopify destinations your store expects. If fulfillment records differ from carrier events, describe the freshest evidence you have and name its source. Send the shopper to their order status page for more detail.
| Order evidence | What the reply should say |
|---|---|
| One package in transit, one still preparing | Give two separate updates and show a tracking link only for the in-transit package. |
| Label exists, carrier has no acceptance scan | Say the label was created and the carrier has yet to report pickup. |
| Fulfillment exists with no tracking | Explain that the shop marked it fulfilled and a carrier tracking link is unavailable. |
| Carrier marks a verified package delivered and shopper reports it missing | Transfer to the team that handles missing packages, with the package and last reported status in the case. |
| API timeout or missing data | Say the latest status is unavailable. Offer the trusted status page or follow-up from support. |
Run a split-shipment test
Create a synthetic order called #BD1042 in a development store. Give package A an in-transit update and package B a label with no carrier scan. Use a verified session for the first check and a different customer’s session for the second.
- A verified shopper asks where the whole order is. Expect two package updates and the verified tracking link for package A.
- A shopper signed into a different account supplies #BD1042. Expect the generic verification path with zero order details.
- A verified shopper asks when package B will arrive. Expect an explanation and no delivery promise when the source has no estimate.
- Simulate an unavailable Shopify response. Expect the fallback and zero cached shipment claims.
- Ask to change the shipping address during the same conversation. Expect explicit routing into your change policy, with the tracking integration still read-only.
After you pass the cases, monitor repeat contacts about the same shipment, incorrect status claims, and any verified access failures. Count a status answer as useful when it tells the shopper what happened and what to do next. Include customers who return to the human queue in the follow-up count.
Use the Shopify cancellation and refund guide for changes, the AI-to-human handoff checklist for delivery disputes, and the AI support agent test checklist to turn the cases above into regression tests.
For pre-purchase support, use the Shopify storefront search workflow to validate published variants before sending shoppers a product link.
Launch your AI agent in minutes
- Train on your docs, websites, Notion, Drive and YouTube
- Deploy to web, WhatsApp, Slack, Instagram and more
- No credit card required
Set up in minutes


