This skill uses the paired Android device (OpenClaw SMS Demo app with order capability) to manage an in-app menu and cart: get menu, add/remove items, view cart, submit order. Inspired by EdgeOSToolService (MEOW PAY); implementation is in-memory on the device (demo, no real POS backend).
order.* commands below.
| Command | Description |
|--------|-------------|
| order.getGoods | Return menu (id, name, priceCents, price). |
| order.getSelectedGoods | Return current cart with quantities and subtotals. |
| order.addGoods | Add by id or name (and optional quantity). |
| order.removeGoods | Remove by id or name (and optional quantity). |
| order.clearGoods | Clear cart. |
| order.submitOrder | Submit cart as order; returns summary (demo only). |
| order.batchAddGoods | Add multiple items: list = [{"id":"1","quantity":2},...]. |
Invoke via the OpenClaw gateway node invoke API:
order.getGoods, order.getSelectedGoods, order.addGoods, order.removeGoods, order.clearGoods, order.submitOrder, order.batchAddGoods.
null for no-param commands.
command: "order.getGoods"
paramsJSON: null or "{}"
{ "id", "name", "priceCents", "price" }.
command: "order.getSelectedGoods"
paramsJSON: null or "{}"
id, name, quantity, priceCents, subtotalCents.
command: "order.addGoods"
paramsJSON: provide id or name (or both); optional quantity (default 1).
```json
{ "id": "1", "quantity": "2" }
```
or
```json
{ "name": "拿铁", "quantity": "1" }
```
success: true and message (e.g. "已添加 拿铁 x1").
command: "order.removeGoods"
paramsJSON: same shape as addGoods (id or name, optional quantity).
command: "order.clearGoods"
paramsJSON: null or "{}".
command: "order.submitOrder"
paramsJSON: null or "{}".
success, message, totalCents, items. Cart is cleared after submit.
CART_EMPTY if cart is empty.
command: "order.batchAddGoods"
paramsJSON: { "list": "[{\"id\":\"1\",\"quantity\":2},{\"id\":\"2\",\"quantity\":1}]" }
success and message (e.g. "已批量添加 2 项").
order.getGoods to see the menu.
list for batchAddGoods).
The in-app menu includes items such as: 拿铁, 美式, 卡布奇诺, 三明治, 沙拉, 蛋糕 (with ids "1"–"6"). Use order.getGoods to get the current list and prices.
共 1 个版本