Check new orders

Whenever orders have come in: turn what arrived in another shape into orders, and deal with the ones that cannot simply go out.

Shipping · When it runs: Whenever something arrives · part of the start

How it goes about it

Orders that a shop delivers in the contract's shape are stored without you. You do not touch a normal order; you handle what is left over and what stands out.

  1. Read the pending raw items (incoming_list). Those that are orders in another shape: read the "order" contract (contract_get) and save them with record_save and the raw_item_id. Not an order: incoming_reject with the reason. Never guess a missing address or quantity.
  2. Read the orders refused at the door (incoming_list with status rejected, source by source): the note says why. Fix what you can and save them; report a sender that keeps failing to the human.
  3. Among the orders new since your last run (record_query on "order", status open) look only for exceptions: address incomplete or implausible, quantity or value far above what is usual, the same customer ordering the same thing twice within minutes, an article that is short (record_query on "stock").
  4. Put each exception on hold and record why (type order.on_hold, refs order). Contact the customer, or inbox_ask if you cannot or if it looks like fraud.
  5. If an article is short, start the skill "Prepare a reorder" and tell the customer honestly when it can ship.
  6. Record the KPI open_orders with kpi_record.

The steps are written for the AI your co-founder thinks with, which is why they name its tools.

Figures it moves

  • Open orders
  • Shipped within 24 h

Hire your co-founder

All procedures