Back to Articles

How to Start Shopify Flow When a Product Reaches a Cart Adds Threshold

Oliver avatar
Written by Oliver ยท December 2026

Cartlytics can start your Shopify Flow workflows when a product gets popular in carts. It counts the cart adds of each product over the last few days. When a product reaches your threshold, Cartlytics starts your workflows for that product. The workflow decides what happens next: a discount, a tag or an email to your team.

The trigger is called "Product cart adds threshold reached". It is part of the Growth and Scale plans.

What the trigger does

Cartlytics counts the cart adds of each product over a rolling window. You choose the window, from 1 to 30 days. The default is 7 days. You also choose the threshold. The default is 50 cart adds.

Cartlytics checks every hour. When a product reaches the threshold, it starts your workflows once for that product. It does not start them again every hour. The product can start them again after one full window has passed, if its count is still at or over the threshold.

Each time, your workflow gets:

  • The product. Your workflow can read its title, price, compare-at price, tags and the other product fields.
  • Cart adds. The number of cart adds in the window.
  • Threshold. The threshold you set in Cartlytics.
  • Window days. The number of days Cartlytics counts.

What counts as a cart add

The count is the same as "Unique Cart Adds" in Cartlytics. Each unit added to a cart counts once, so a shopper who adds 3 units of a product adds 3. Removing a product from a cart does not lower the count. Products you hide in Cartlytics are skipped.

How to turn it on

You need the Shopify Flow app in your store.

  1. In Cartlytics, go to Settings > Integrations > Shopify Flow.
  2. Turn on "Start Flow when a product reaches the threshold".
  3. Set the "Cart adds threshold" and the "Days to count", then click "Save".
  4. In Shopify Flow, create a workflow and choose the trigger "Product cart adds threshold reached".
  5. Add your actions and turn the workflow on.

Example: a 10% discount for popular full-price products

A product that gets many cart adds is a good moment for a small push. This workflow gives it a 10% automatic discount for 7 days. Sale items already have a lower price, so the workflow skips them.

1

Trigger

Choose "Product cart adds threshold reached".

2

Condition: skip sale items

Add a condition on Product > Compare at price range > Max variant compare at price > Amount, "is greater than 0". Put the action on the False branch. A sale item has a compare-at price, so it goes to True and gets no discount. Do not use "is equal to 0" instead. A product with no compare-at price reads as "No value", not 0, so that condition skips every full-price product.

3

Action: create the discount

On the False branch, add "Send Admin API request". Choose the mutation discountAutomaticBasicCreate and use the input below. It gives 10% off that product, from now until 7 days later. The discount ends by itself, so you need no step to remove it. To change it, edit percentage (0.1 is 10%) and 604800 (the length in seconds, 7 days). The discount does not combine with other discounts unless you change its combination settings in Shopify.

{
  "automaticBasicDiscount": {
    "title": "{{ product.title }} 10% off",
    "startsAt": "{{ 'now' | date: '%FT%T%:z' }}",
    "endsAt": "{{ 'now' | date: '%s' | plus: 604800 | date: '%FT%T%:z' }}",
    "customerGets": {
      "value": { "percentage": 0.1 },
      "items": { "products": { "productsToAdd": ["{{ product.id }}"] } }
    }
  }
}

Start from a ready-made template

You do not have to build this workflow by hand. In Shopify Flow, open the template library and pick "Create a 10% automatic discount on a product when its cart adds reach your threshold". It has the same condition and action. Copy it, check it and turn it on.

A second template, "Alert the team about a trending product when a product reaches its cart adds threshold", sends your team an email with the product, its cart adds and the number of days. Your team can then restock, promote or feature it. Enter the email address after you copy the template.

Which plans include it

The Shopify Flow trigger is part of the Growth and Scale plans. On the other plans, the Shopify Flow block in Settings is locked and shows an upgrade link. If your plan changes to one without the trigger, Cartlytics stops starting your workflows and keeps your settings.

Common questions

Does the trigger start my workflow every hour?

No. Cartlytics checks every hour, but a product starts your workflows once per window. It can start them again only after one full window has passed, if its count is still at or over the threshold.

Can I use the trigger for something other than a discount?

Yes. Your workflow gets the product, so you can use any Flow action on it, for example add a tag or send an email. The settings in Cartlytics only decide when the workflow starts.

Is the count the same as in my Cartlytics dashboard?

Yes. The trigger counts like "Unique Cart Adds": each unit added to a cart counts once, and hidden products are skipped.

Which Cartlytics plan do I need?

Growth or Scale. On the other plans, the Shopify Flow settings are locked.

Act on the products shoppers want

Install Cartlytics, choose the Growth or Scale plan, and turn on the trigger in Settings > Integrations > Shopify Flow.

Install Cartlytics