Online Stores / A live-chat bot for order status and delivery dates

A live-chat bot for order status and delivery dates Advanced

A website chat bot can answer "where's my order?" by checking the order and carrier tracking, after confirming who it's talking to.

What you'll learn

  • Verifying the customer
  • Looking up order and tracking
  • Handing off to a human

Before you start

1. The flow

  1. The customer types their order number plus the order email or ZIP.
  2. The bot checks both match before sharing anything.
  3. It looks up the order status and tracking number.
  4. It checks the carrier (UPS, USPS, FedEx) for the latest status and estimated delivery.
  5. It answers in plain words.
  6. If unsure or the customer is upset, it hands off to a human.
Screenshot: A chat widget answering "Where is my order?" with status and delivery estimate.

2. Build pieces

A small backend (for example a Cloudflare Worker) holds API keys, never the web page. See Your First Bot for the receive-think-respond loop.

3. Safety

Ideas to try

  • Plan it.
    Sketch the architecture for an order-status chat on my Shopify site.
  • Test data.
    Write 10 test conversations, including wrong ZIP codes.
  • Handoff.
    Draft the message the bot shows when handing off to me.
  • FAQ.
    Also let it answer our shipping-time FAQ from this page.

Tips

  • Never reveal data before verification.
  • Keep keys on the server.
  • Test with fake orders first.

Facts about the Grok Bot app come from Cursor's official Grok Bot documentation. Menus and services change; if something looks different, check the official docs or ask your bot.