π¦ Order Status Tracking β
Goal: Let customers check their order status directly through Ainisa chat.
π§© Example Flow β
User: βWhere is my order #12345?β
AI detects order-related intent and triggers the checkOrderStatus Custom API action.
The action sends a request to your API endpoint:
GET https://api.shop.com/orders/12345Example response:
{ "order_id": "12345", "status": "Shipped", "expected_delivery": "2025-11-07", "tracking_link": "https://shop.com/track/12345" }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.