For the complete documentation index, see llms.txt. This page is also available as Markdown.

Rules

Overview

Rules decide which products a shopper sees in an upsell. You describe the logic in plain language, Atlas builds it, and you attach the finished rule to any onsite, checkout or post-purchase upsell

A rule can do things a fixed product list can't. For example: "At checkout, show the cheapest free products that still get the customer over the free shipping threshold. Match on the size(s) they have in their cart."

In addition to being easier to set up, rules are reusable. Build one once and use it across as many experiences as you like. A rule never reaches shoppers until you attach it to a placement on an experience.

The Rules page

The Rules page lists every rule in your store. It has two tabs: Rules and Exclusions (covered below).

Each rule in the list shows:

Column
What it tells you

Rule

The rule's name. Click it to open the rule.

Status

Where the rule is in its lifecycle. See statuses below.

Eligible surfaces

Where the rule can be used: Onsite, Checkout, Post-purchase.

Used in

The experiences and test groups the rule is attached to, or "Not used yet".

Use the search box to find a rule by name, or filter by Status or Surface.

Statuses

Status
Meaning

Draft

The rule exists but hasn't passed its checks yet, so it can't serve.

Live

The rule passed its checks and is published. It serves wherever it's attached.

Live · unapplied changes

A version is live, and you've saved edits that aren't live yet.

Create a rule

Click New rule on the Rules page. You can describe the rule to Atlas, or start from a template and help Atlas fill in the details.

Option 1: Ask Atlas

  1. In Ask Atlas to build a rule, describe which products should show and for whom. Example: "Onsite: For Selling Plans Ski Wax pages, show in-stock Premium snowboards by inventory; fallback Hydrogen."

  2. Click Build rule. Atlas reviews the rule templates and reads your catalog fields (tags, collections, product types, metafields, inventory, etc.) to understand your store.

  3. Atlas replies with a plain-language summary of the rule: its name, what it shows, where it runs, and its default settings. A preview of the logic appears on the canvas.

  4. Read the summary closely. If anything is off, provide feedback in the chat. Atlas will create a new summary with the requested changes.

  5. Choose Create rule once the summary sounds accurate.

Tips for a good prompt

  • Name the surface(s) where you are planning to use this logic: Onsite, Checkout, or Post-purchase.

  • Name the trigger: which product page, or what's in the cart.

  • Name what to show and how to sort it: "tagged Premium", "highest inventory first", "lowest price".

  • Say what to do if nothing qualifies: a fallback product, or hide the upsell.

Option 2: Start from a template

Pick a template, then Atlas helps you complete it.

Template
Use it to

Curated list

Show specific products you pick, in the order you set.

From a collection

Recommend products from one or more Shopify collection.

Product tags

Recommend products that match one or more catalog tags.

Smart recommendations

Use Shopify's related or complementary product rankings.

Branching logic

Try ordered shopper rules, with recommendation fallbacks.

Reach free shipping

Recommend products that get the cart to free shipping, which lifts AOV.

Read the selection logic

The Selection logic tab draws your rule as a set of steps, read top to bottom. The rule's name, surface badge, usage, and plain-language description sit above it.

Each row is one attempt at filling the upsell. Within a row, steps run left to right and each one narrows the products. If a row returns nothing, the rule moves down to the next If nothing matches then row.

Your changes save as a draft automatically. Click Done when you're finished. Use the zoom control in the bottom right to resize the canvas.

Test a rule

Test your rule against sample carts to see exactly what a shopper would get. After you create a rule, Atlas asks which cart to run it against.

  1. Pick one of the example carts Atlas generates, or choose Pick your own cart. Atlas builds examples that cover the main paths through your rule.

  2. The canvas shows the test cart on the left and highlights the path the rule took. The row that produced results is marked matched with a product count. Rows that were skipped are greyed out and marked no match.

  3. What the shopper sees shows the products returned, with prices, and a one-line explanation of which step produced them.

  4. Atlas also summarizes the result in the chat, for example: "The Premium snowboards step matched and returned 3 in-stock snowboards. The Hydrogen fallback wasn't needed."

Run a few carts, especially the edge cases. The fallback rows only show up in a test when the earlier rows come back empty.

Checks and publishing

Every rule runs 13 automatic checks before it can go live. You don't publish a rule yourself: if all checks pass, version 1 is published for you.

A Live rule still shows to no shopper until you attach it to a placement on an experience.

While checks run, a progress bar appears above the canvas (for example, "Running checks · 4 of 13"). Click View checks to see each one and its result. Checks cover things like whether the rule is ready to run, passes safety checks, isn't too large, and runs fast enough.

Display settings

The Display settings tab controls how many products the rule returns and what it skips. Atlas sets the defaults below; change them here or ask Atlas in the chat.

Setting
Default
What it does

Products returned

3

The most products the rule returns.

If the rule returns no products

Hide the placement

What shoppers see when nothing qualifies.

Exclude out of stock products

On

Skips products with no available inventory.

Exclude products already in the cart

On

Skips anything the shopper already added.

Exclusions

Exclusions are products that never show in any rule's results, no matter what Shopify returns. They apply to every rule in your store, so you set them once instead of in each rule.

Good candidates: gift cards, samples, shipping protection, or anything else you never want to upsell.

To add an exclusion, go to Rules → Exclusions and use the button for the type you want:

  • Add product: exclude specific products.

  • Add tag: exclude every product with a product tag.

  • Add collection: exclude every product in a collection.

  • Add vendor: exclude every product from a vendor.

On the canvas, the Exclusions step shows which store-wide exclusions apply to the rule, or "No org-wide exclusions" if there are none.

Use a rule in an experience

Use a rule in an experience

A rule only reaches shoppers once it's attached to an upsell on an experience. You can attach the same rule to as many experiences and test groups as you like, so one rule can drive AOV across every surface you upsell on.

Onsite upsells

  1. Open your Onsite Upsell experience, go to Modifications, and click Edit to open the visual builder.

  2. Click the Onsite upsell modification in the left panel.

  3. Under Rules, pick a rule from the Assigned rule dropdown. To build a new one without leaving the builder, choose + New rule.

  4. Check the Rule summary to confirm it's the logic you want, then click Apply and Save.

Checkout upsells

  1. In your checkout experience, choose Configure Modification, select Product Tiles, and click Next.

  2. Pick a rule from the list of rules you've set up. The rules you select are the ones that decide which products show.

A rule can only be placed on the surfaces it's eligible for. An Onsite rule can't be used in a Checkout or Post-purchase placement.

Once attached, the experience and test group appear in the rule's Used in column on the Rules page.

Last updated

Was this helpful?