Berrydesk

Berrydesk

  • Home
  • How it Works
  • Features
  • Pricing
  • Blog
Dashboard
All articles
InsightsNovember 23, 2026· 6 min read

How to Build a Shopify Order Status Chatbot

Verify the Shopify shopper before sharing order status. Handle split shipments, missing tracking links, and carrier delays with read-only access.

Two Shopify shipments branch from a verified order status card on a cream background.

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 evidenceWhat the reply should say
One package in transit, one still preparingGive two separate updates and show a tracking link only for the in-transit package.
Label exists, carrier has no acceptance scanSay the label was created and the carrier has yet to report pickup.
Fulfillment exists with no trackingExplain that the shop marked it fulfilled and a carrier tracking link is unavailable.
Carrier marks a verified package delivered and shopper reports it missingTransfer to the team that handles missing packages, with the package and last reported status in the case.
API timeout or missing dataSay 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.

  1. A verified shopper asks where the whole order is. Expect two package updates and the verified tracking link for package A.
  2. A shopper signed into a different account supplies #BD1042. Expect the generic verification path with zero order details.
  3. A verified shopper asks when package B will arrive. Expect an explanation and no delivery promise when the source has no estimate.
  4. Simulate an unavailable Shopify response. Expect the fallback and zero cached shipment claims.
  5. 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.

#shopify#customer-support#ai-agents#order-status

On this page

  • Confirm who can see the order
  • Fetch the shipment records
  • Run a split-shipment test
Berrydesk logoBerrydesk

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
Build your agent for free

Set up in minutes

Share this article:

Article by

BerryDesk Team

BerryDesk product team

On this page

  • Confirm who can see the order
  • Fetch the shipment records
  • Run a split-shipment test
Berrydesk logoBerrydesk

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
Build your agent for free

Set up in minutes

Keep reading

Cancel or refund a Shopify order. A parcel pauses before shipment and a separate payment card represents the refund.

When Should an AI Agent Cancel or Refund a Shopify Order?

Decide when an AI support agent should cancel a Shopify order, request a refund, or hand off. Map the decision to Shopify’s GraphQL Admin API.

BerryDesk Team·Nov 22, 2026
One payment card, a timeout clock, and a single confirmed refund.

What to Do When a Stripe Refund Request Times Out

Recover a Stripe refund after a timeout. Reuse the original idempotency key, reconcile the Refund object, and avoid issuing a duplicate.

BerryDesk Team·Nov 23, 2026
Two AI customer support agent cards are compared across routing and cost.

4 Chatbase Alternatives for AI Customer Support

Compare Chatbase, Fin, BerryDesk, Gorgias, and Zendesk for human handoffs, helpdesk fit, and billing. Use the same seven cases in every trial.

BerryDesk Team·Nov 23, 2026
Berrydesk

Berrydesk

Deploy intelligent AI agents that deliver personalized support across every channel. Transform conversations with instant, accurate responses.

  • Company
  • Blog
  • Product
  • Features
  • Pricing
  • ROI Calculator
  • Open in WhatsApp
  • Legal
  • Privacy Policy
  • Terms of Service
  • OIW Privacy