Examples - AIOD Discount & Gift
AI agents & MCP
Examples
Real requests to an AI agent connected to AIOD, and exactly what happens for each one.
What you say, and what the assistant actually does with it.
Navigate to header: ”Spend $100, get 10% off — but not sale items” ”Spend $100, get 10% off — but not sale items”
What happens
1
It reads AIOD's rules
First the template contracts, then the condition syntax — it needs both to write a spend threshold and an exclusion.
2
It picks a template
There’s a real eligibility rule, which rules out the simple one. There’s a single reward, which rules out the multi-tier one. So: the custom rule builder.
3
It sets the spend condition
Cart subtotal of $100.
4
It sets the reward
10% off, applied at product level.
5
It works out which exclusion you meant
“Excluding sale items” from a
spend threshold
means sale items shouldn’t count toward the $100 — not that they shouldn’t be discounted. A good assistant will confirm this if it’s ambiguous.
6
It drafts it
Validated, cart-simulated, and staged. You get a link.
7
It hands you the link
And tells you the discount isn’t live until you open it and save.
Navigate to header: ”Free tote over $75” ”Free tote over $75”
What happens
It reads the free gift contract.
It confirms the tote is added by the app , not by the shopper. It is — so this is a gift, not a BOGO.
It works out which tote variant you mean, or asks. A gift has to be a specific item; “the Sale collection” can’t be a gift because nothing could decide which one to add.
It sets the $75 cart subtotal condition and a gift quantity of one.
It drafts it and hands you the link.
Navigate to header: ”Buy 2 get 1 free” ”Buy 2 get 1 free”
What happens
It reads the BOGO contract.
The shopper adds all three shirts themselves and the third is price-reduced — so BOGO, not a gift.
It sets the quantity to 3, not 2. The qualifying and rewarded items are the same thing, so the rule needs two paid plus the next one discounted.
It sets the reward: 100% off one t-shirt per qualification.
It asks whether the offer should repeat for every group of three, if you didn’t say.
It drafts it and hands you the link.
Miscounting is the most common mistake on this kind of offer. “Buy 2 get 1 free” on the same product needs a quantity of
3
.
Navigate to header: ”Spend more, save more” ”Spend more, save more”
What happens
It reads the tiered contract.
Every tier uses the same kind of condition — cart subtotal — with only the number rising. That makes it a straight ladder, not the multi-condition template. Different reward kinds per tier are fine here.
It writes all three tiers out in full, each with its own condition and reward.
It leaves stacking off: the highest unlocked tier wins . It only stacks every tier if you ask.
It drafts it and hands you the link.
Navigate to header: ”Raise the threshold on my existing offer” ”Raise the threshold on my existing offer”
What happens
1
It finds the discount
Usually by listing everything rather than searching — “my summer offer” rarely matches the stored name exactly. It’ll confirm which one it means before touching anything.
2
It reads the current setup
Because the change is a patch onto what’s there, not a replacement. It needs to know the current values.
3
It changes only the threshold
Everything else stays exactly as it was.
4
It hands you the link
Nothing is saved until you open it and save.
Navigate to header: When something is wrong with the request When something is wrong with the request
Sometimes a draft gets rejected. That’s the system working — AIOD checks the discount against a simulated cart before staging anything, so mistakes get caught before you ever see them.
The rejection names the exact field at fault and includes the correct syntax, so the assistant fixes that one field and tries again. Usually you never notice.
The one case worth knowing about: if you ask for a setting that a particular template genuinely doesn’t support, the assistant should
tell you that
rather than keep retrying. If it does, the answer is usually a different template — ask it which one would work.
Navigate to header: ”Create it so I can test it” ”Create it so I can test it”
What happens
You explicitly asked for it to be created, so the assistant publishes rather than drafts. (A successful draft on its own is not a reason to publish.)
The same validation and cart simulation runs. If it fails, nothing is created.
A real Shopify discount is created — in test mode .
The assistant tells you three things: The discount genuinely exists in Shopify. It only applies to your test email address, which it gives you. Real shoppers see nothing. You have to open it and switch it to active yourself. No tool can do that.
Creating never changes an existing discount. If you ask it to
replace
an existing discount, it uses a separate update tool, and that discount goes back into test mode — so one that was live for shoppers stops applying. The assistant should confirm before doing it, and most clients will ask you too.
Navigate to header: ”How did it do?” ”How did it do?”
What happens
It finds the discount.
It pulls the numbers for your date range: order count, revenue, margin given away, and average order value.
To compare against another offer, it looks that one up separately — there’s no all-at-once report.
If a recent discount shows zero orders, it should say attribution lags checkout by a short while rather than telling you the discount is broken.
Navigate to header: ”Spend $100, get 10% off — but not sale items”
Navigate to header: ”Free tote over $75”
Navigate to header: ”Buy 2 get 1 free”
Navigate to header: ”Spend more, save more”
Navigate to header: ”Raise the threshold on my existing offer”
Navigate to header: When something is wrong with the request
Navigate to header: ”Create it so I can test it”
Navigate to header: ”How did it do?”
You
Create a discount where customers spending $100 get 10% off,
but exclude products in the Sale collection.
You
Give a free tote bag when someone spends over $75.
You
Buy 2 t-shirts, get the third one free.
You
Spend $50 get 10% off, spend $100 get 20% off, spend $200 get 20% off
plus free shipping.
You
Raise the free-shipping threshold on my summer offer from $50 to $75.
You
Go ahead and create the BOGO so I can test it on the storefront.
You
How did my BOGO do last month, and is it worth re-running for Black Friday?