Skip to content

πŸ“¦ Order Status Tracking ​

Goal: Let customers check their order status directly through Ainisa chat.


🧩 Example Flow ​

  1. User: β€œWhere is my order #12345?”

  2. AI detects order-related intent and triggers the checkOrderStatus Custom API action.

  3. The action sends a request to your API endpoint:

    GET https://api.shop.com/orders/12345

  4. Example response:

    {
      "order_id": "12345",
      "status": "Shipped",
      "expected_delivery": "2025-11-07",
      "tracking_link": "https://shop.com/track/12345"
    }
  5. The assistant replies in chat:
    β€œπŸ“¦ Your order #12345 is Shipped and expected to arrive by Nov 7.
    Track Order”


🧠 Notes ​

  • You can set a Custom UI Template to display order status in card format (e.g., product image, shipping address, and status timeline).
  • Combine this with authentication headers to ensure only authorized users can access order details.
  • Ideal for e-commerce or logistics companies that want self-service tracking through AI chat.