Physical products differ from courses in just three ways: they need shipping, they have stock, and they may come in colors or sizes.
1. Create the product
Have your AI call upsert_product with type set to physical, plus these fields:
| Field | What it means |
|---|---|
stock | Number of units in stock. Leave it out = sell without a stock limit |
sku | Your own product code, used for reconciliation and shipping |
weightGrams | Weight in grams. Used later for weight-based shipping rates |
requiresShipping | Whether it needs to be shipped to the buyer. On by default for physical products |
allowBackorder | Whether customers can still order when stock hits 0 (pre-sale, waiting for restock). Off by default |
2. Set up variants (color / size) in one step
Do both parts in the same call:
options: which option types exist —[{name:"Color",values:["Red","Blue"]},{name:"Size",values:["M","L"]}]variants: the price and stock for each combination —[{optionValues:{"Color":"Red","Size":"L"},priceCents:9900,stock:10,sku:"RED-L"}]
When a buyer picks a variant on the product page, they're buying that specific variant: its own price and stock apply. The price shown on the base product is just a display price for when no variant is selected yet.
variants is a full replacement: whatever you send becomes the new set, and the old variants are replaced. So if you only want to change the price or stock of one size, use the call below instead of resending the whole set.
3. Edit a single variant
upsert_product_variant: give the product slug, then identify the variant with either sku or optionValues, and send only the fields you want to change (stock / priceCents / imageUrl / isActive). If that variant doesn't exist yet, it will be created.
4. Read it back to check
get_product returns options and variants together; in list_products, hasVariants and variantCount tell you which products have variants. Read it back after writing — don't just trust "saved successfully."
What tools has the AI been using
To see what features your AI has actually been using, have it call get_tool_usage (shows the last 7 days by default).
It only logs the tool name, the time, and whether it succeeded — not the parameters, and not who called it. Your customers' emails, order contents, and copy text never go into this log.
What this data is for: the platform uses it to decide which tools the AI should have on hand as soon as it connects. Tools used often stay available by default; ones rarely used get moved into a group (still usable, the AI just has to ask one more question first).
Shipment tracking
The platform doesn't connect to any tracking API and doesn't integrate with AfterShip — there's no "tracking quota," and there's nothing like an AfterShip key to add. The order page shows the carrier + tracking number (one-click copy), plus a link to the carrier's own official tracking page; for where the package actually is, the customer checks that page themselves — we don't auto-sync status or estimate delivery times on our end.
Once the customer has the package, you (or your AI) click mark_order_delivered to flag it "Delivered," which triggers the "Delivered" automation event (you can set up "Delivered → ask for a review"). Exceptions and returns aren't auto-detected either — when you see one, you decide what to do.
Order bump at checkout
The "add one more?" offer buyers see before paying. Have your AI call set_order_bump:
slug: which productenabled: true to make it an order bump / false to turn it offblurb: the one-line pitch shown next to it, e.g. "Add a spare cable — keep one at home and one at the office"
The product itself must be published (status=active) for buyers to see it; if it's still a draft, the tool will warn you. After setting it, use get_product to check isOrderBump / bumpBlurb.
What makes a good order bump: something cheaper than the main product, and an easy, no-hesitation add-on (accessories, consumables, extended warranty).
New products start as drafts
A new product isn't published right away (buyers won't see it in the store); you need to change its status to "Publish" once you've confirmed it's correct. This is intentional: products that were set up wrong, created just to test something, or imported in bulk, shouldn't be visible to buyers immediately. Your AI can publish a product right away when creating it, or you can review it first.
How stock gets deducted
- Stock is checked in three places — adding to cart, changing quantity, and going to checkout — and if there isn't enough, the action is blocked on the spot and the customer is told how many are left
- Stock is held the moment checkout starts (a reservation): while the customer is filling in their address on the payment page, nobody else can buy that unit. A successful payment turns the hold into a real deduction; if the customer abandons checkout, payment fails, or it times out unpaid, the held stock is automatically released
- Products with "allow backorder" turned on don't hold or block stock — they're treated as pre-sale
- Refunds: a full refund for the whole order automatically adds the physical stock back; a partial refund does not (the system can't tell which specific item was returned — guessing wrong would create stock out of nowhere and risk overselling), and the order notes will record this. If the customer actually mails the item back, use
adjust_stockto add it back manually (deltaas a positive number of units, with areasonexplaining why — you'll need this for reconciliation later); also use it for inventory count corrections, restocking, and shrinkage - If "payment went through but there isn't enough stock" still happens (rare, under concurrent orders), the order is flagged ⚠️ Needs restock: it shows
needsRestockin the order list, and the site owner gets an alert email naming the order and item. When you see it, either restock and ship, or refund the buyer with an explanation
Not built yet (don't assume it is)
- Shipping cost: the default is "one flat amount" (site setting
shopFlatShippingCents, in cents, 0 = free shipping). To charge by region / weight, or offer free shipping above a threshold, useupsert_shipping_zoneto create region groups (["CN"], or["*"]as a catch-all) plusupsert_shipping_rateto create rate tiers (by total weight or by subtotal); uselist_shipping_rulesto read them back and check. A zone with no rate tier does nothing — if you create a zone but no rate, it still charges the flat amount; remove withdelete_shipping_ratefor one tier ordelete_shipping_zonefor a whole group (delete every zone and it falls back to the flat amount) - No tax support
- Shipping: use
mark_order_shippedto ship the whole order in one package; for shipping an order in multiple parts (partial stock available now, or large and small items shipped separately), useadd_order_shipmentto add a package (itemslists only what's in this package; leave it out = the whole order), andlist_order_shipmentsto see how many packages have shipped and whether the order is done (pending / partial / shipped). Each package only notifies the customer once; orders that are courses or downloads only can't be marked as shipped (so course buyers don't get a "your package has shipped" email). Made a mistake?unmark_order_shippedundoes the shipped flag (wrong tracking number, wrong recipient, customer canceled at the last minute) — the order goes back to "to fulfil," the tracking number is cleared, and the package record is deleted. No email goes out for this (sending another "actually, it wasn't shipped" email would only confuse things more) — please tell the customer yourself. Record why you undid it; it's saved on the order.
Item shipped back to you: use mark_order_returned to flag it as "returned." Note this is separate from "refunded" — whether the money was refunded is tracked on the order status, whether the item came back is tracked here; once a returned item is back in stock, add it back with adjust_stock.
Customer received the item: use mark_order_delivered to flag it as "delivered," which triggers the "Delivered" automation event (you can set up "Delivered → ask for a review"). This has to be done by hand: the platform doesn't connect to courier status feeds — that's a design choice, not something still pending.
Tracking: the platform doesn't connect to any tracking API or logistics aggregator — that's a design choice. To see where a package is, the order page gives the carrier + tracking number (one-click copy) plus a link to the carrier's own official tracking page; customers check there.
Region/weight-based shipping rates and tax support are on the platform's roadmap — until they ship, please describe things to your customers as they actually work today.