Daily
Catch Shopify pricing and discount mistakes
Each morning you get an email if any price dropped below your floor, changed sharply, or a discount code is larger than your rules allow.
- Runs
- Daily
- Apps
- Gmail, Shopify
- AI
- Not needed
- Access
- read_products, read_discounts; gmail.send
Send this to your assistant
Create a ClickRuntime automation: every morning, check my Shopify prices and active discounts: email me if any variant is below its compare-at floor, changed by more than 30% since yesterday, or a discount is over 40%.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A homeware shop runs several sales a year, and staff edit prices and discount codes in a hurry. Once, a code meant for 15% went live at 50% and was shared on a deals site overnight. Another time a price lost a digit and a lamp sold for a tenth of its cost.
A daily check of every price and active discount against a few simple rules catches these slips before they cost real money. It is the second pair of eyes that a busy team rarely has time to be.
What you get out of it
Typos are caught within a day
A price that drops sharply or below your floor is flagged the next morning. You fix it before many orders come in.
Discount codes stay within limits
Codes larger than your maximum, or with no end date, are listed. A code meant for a few people does not quietly run forever.
Changes are compared with yesterday
The check remembers each price, so sudden jumps or drops stand out. Planned changes are easy to recognise and ignore.
Quiet when all is well
You only get an email when something breaks a rule. No daily noise to learn to ignore.
How it works
What happens, step by step
Every morning, ClickRuntime reads the price of every product variant and every active discount in your Shopify store.
It compares each price with yesterday's, which it remembers, and with the minimum you set.
It checks each discount against your maximum percentage.
If anything breaks a rule, you get one email listing the problems.
Before it runs live
- Connect Google through your own Google app (a one-time, 10-minute setup), so it works with your own Gmail
- Connect Shopify
What you get
Build your own
Need it to work differently?
Your own rules
Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.
Any number of apps
One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.
AI where it helps
Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.
On a schedule or on each event
Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.
Changes you can ask for
- Run it at a different time, more or less often, or only on weekdays
- Add an AI step, for example to summarize, sort or draft a reply
- Add another app, for example also send it to Slack
- Combine it with other Gmail and Shopify steps into one automation
Under the hood
The code that runs this automation
from clickruntime import on_trigger, credentials, http, notify, state
STORE = "your-store.myshopify.com"
def gql(query, variables=None):
resp = http.post(f"https://{STORE}/admin/api/2025-07/graphql.json", json={"query": query, "variables": variables or {}},
headers={"X-Shopify-Access-Token": credentials.connection("shopify", "store")})
return resp.raise_for_status() or resp.json()["data"]
MIN_PRICE, MAX_CHANGE, MAX_DISCOUNT = 5.0, 0.30, 0.40
@on_trigger
def run(event):
variants = gql("{ productVariants(first: 250) { nodes { id displayName price } } }")["productVariants"]["nodes"]
before, problems = state.get("prices") or {}, []
for v in variants:
price, old = float(v["price"]), before.get(v["id"])
if price < MIN_PRICE:
problems.append(f"{v['displayName']} is {price:.2f}, below the {MIN_PRICE:.2f} floor")
elif old and abs(price - old) / old > MAX_CHANGE:
problems.append(f"{v['displayName']} changed from {old:.2f} to {price:.2f}")
discounts = gql("""{ discountNodes(first: 100, query: "status:active") { nodes { discount { ... on DiscountCodeBasic { title
customerGets { value { ... on DiscountPercentage { percentage } } } } } } } }""")["discountNodes"]["nodes"]
for d in discounts:
pct = ((d["discount"].get("customerGets") or {}).get("value") or {}).get("percentage")
if pct and pct > MAX_DISCOUNT:
problems.append(f"Discount {d['discount']['title']} is {pct:.0%}")
if problems:
notify.email_me(f"{len(problems)} Shopify pricing issues", "\n".join(problems))
state.set("prices", {v["id"]: float(v["price"]) for v in variants})
return {"problems": len(problems)}FAQ
Common questions
What rules can I set?
Does it change prices back?
Does it check automatic discounts as well as codes?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Get emailed when Shopify orders stop or run late
You get an email if no orders arrive for longer than usual, or if paid orders pass your dispatch deadline without shipping.
See how it worksGet a daily email about low Shopify stock
Each morning you get an email listing products that will run out soon at their current pace, plus any that are not selling.
See how it worksGet a daily Shopify order summary by email
Each morning you get yesterday's orders, revenue, average order value and top products in one short email.
See how it worksKeep exploring
Set up “Catch Shopify pricing and discount mistakes” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.