Change or cancel an order
When a customer wants to change the address or the items, or cancel, after ordering.
Shipping · When it runs: Whenever something arrives
How it goes about it
- Find the order (record_query on "order") and check that the request comes from the customer who placed it.
- Read where the order stands (journal_trace, kind order). Decisive is whether it was handed to the warehouse or carrier.
- Not yet handed over: make the change with record_save, or set the status to cancelled. Record it (type order.changed or order.cancelled, refs order).
- Already handed over: change nothing. Tell the customer honestly that it is on its way and how the return works.
- If money was already paid for a cancelled order, start the skill "Refund a customer".
- Confirm to the customer what was done (mail_send, refs order and customer).
The steps are written for the AI your co-founder thinks with, which is why they name its tools.
Figures it moves
- Open orders