Set discounts with rule sets
Give EliteAI™ offers one flat discount, or a rule set with a default discount and rules that set a different one for some products.
Last updated
EliteAI™ picks a different product for each order, so you set its discount as a rule rather than per product. Each EliteAI™ offer uses either one flat percentage or a rule set. This article explains both, and how to build a rule set that gives some products a different discount.
Flat discount or rule set
In the flow's editor, the EliteAI™ card has a Flat | Rules switch next to its Discount:
- Flat: every product the offer picks gets the same percentage off. It starts at 30%. Enter 0 for no discount. A flat discount applies as soon as you save.
- Rules: the offer uses a rule set, chosen in the select next to the switch. Use this when some products need a different discount, for example a smaller one on low-margin products.
A new EliteAI™ offer starts on Rules, with your first rule set. See Use EliteAI™ in a flow for the rest of the card.
What a rule set is
A rule set is a Default discount plus up to 10 discount rules. For each product EliteAI™ offers:
- if one or more rules match the product, the highest of their discounts applies
- if no rule matches, the Default discount applies
So a rule can raise or lower the discount compared with the default. Rule sets are reusable: several offers, in different flows, can use the same one.
Every store starts with one rule set, Standard discount, with a 30% default discount and no rules. You can have up to 10 rule sets.
Create a rule set
Open Discount rules
Go to EliteAI™ & discounts and open the Discount rules tab. Or, from a flow's EliteAI™ card, click Manage rule sets.
Create it
Click Create discount rules. The app creates a rule set named Rule set (or Rule set 2, and so on) and opens it. Give it a Name you'll recognize; buyers never see it.
Set the default discount
In the Discount rules card, enter the Default discount, from 0 to 100%. A new rule set starts at 30%.
Add rules if you need them
Click Add discount rule and fill in the rule, as below. Click Add rule for each further one.
Save
Save from the save bar, or with Save at the top right when you're in the full-screen window.
Write a discount rule
Each rule reads If the offered product matches your conditions, then discount a percentage. A condition looks at the offered product's:
- Tag, Vendor, Product type or Collection: is one of or is not one of the values you add
- Title: contains or does not contain a word
- Price: is more than or is less than an amount
- Metafield: is one of, is not one of, starts with, has a value or has no value
With two or more conditions, choose Or | And: whether the product must match any or all of them.
Examples:
- If the offered product's Collection is one of Clearance, then discount 50%.
- If the offered product's Price is more than 100, then discount 10%.
- If the offered product's Tag is one of low-margin, then discount 0%.
When changes reach buyers
- A new Default discount applies right away, to every offer using the rule set.
- Changed rules apply after the next training run. The editor says: Rule changes can take up to one hour to be live, product changes up to 24 hours. Until then, offers use the rules from the last training run.
- A rule set with rules that no training run has trained yet, such as one you just created, gives no discount at all: 0% on every product, not its default discount. This lasts until a training run trains it, usually within 15 minutes of saving it or publishing a flow that uses it.
Offers are never paused while rules wait for training, so an offer using such a rule set still shows, at full price.
See How EliteAI™ training works.
The rule set list
The Discount rules tab lists each rule set's Status, its Discount (for example 30% default, 2 rules), and the flows it's Used on. A rule set without rules is always Ready. One with rules shows its training status, as an engine does.
To delete a rule set, open it and click Delete rule set at the foot of the page. You can't delete one that a flow still uses (archived flows don't count), or your only rule set. Offers with a flat discount don't use a rule set, so they never block a delete.
Still stuck?
Chat with us and we'll help you get your offer live. Or email contact@elitecart.app.