Skip to main content
An AI agent connected to AIOD can build promotions that only apply when something is true: about the cart, the customer, the destination, or the date. It can also exclude products and collections, schedule promotions, and block specific discount codes.

Just ask

What a condition can check

Conditions combine with AND and OR, so several can apply at once.

Which template gets used

Merchant-facing settings: Custom Rule Builder, Combined Multi Discounts, Shipping Discount, Reject Discount Codes.

Two kinds of exclusion

These sound the same and aren’t:
  • Excluding items from the reward — those items don’t get discounted.
  • Excluding items from the condition — those items don’t count toward the threshold that unlocks the discount.
“Spend 100excludingsaleitems,get10100 excluding sale items, get 10% off" is the second one: sale items must not count toward the 100. A good agent will check which you meant if it’s ambiguous.

Customer-specific offers

Customer tags and segments are just conditions, so a VIP-only or wholesale-only discount is an ordinary conditional discount. Nothing special is needed.

Scheduled promotions

Dates are part of the discount, so a seasonal sale can be built now and dated for later. It still has to be switched on by a person before real shoppers see it.

What the agent does

  1. Reads the template contracts and the condition syntax — the contracts alone don’t cover how conditions are written.
  2. Separates the gate from the target: the condition decides whether the discount applies, the reward decides what gets discounted.
  3. Keeps the reward type consistent — one rule can’t mix product, order, and shipping rewards. Several reward kinds in one offer means combined_discount.
  4. Drafts it. Conditions are cart-simulated, so a rule that would never fire gets caught before you see it.

Worth knowing

  • Conditions are simulated, not just validated. AIOD runs the merged rule against a test cart, which catches shapes that pass a schema check but wouldn’t actually work.
  • One rule, one discount type. All product-level, all order-level, or all shipping.
  • reject_codes gives nothing. It only blocks the codes you name, when your conditions are met.