Every 6 hours
Get warned before BigCommerce products sell out
Slack tells you which SKUs have fallen under their low-stock level, once per item.
- Runs
- Every 6 hours
- Apps
- BigCommerce
- AI
- Not needed
- Access
- Products read-only scope
Send this to your assistant
Create a ClickRuntime automation: every 6 hours, check my BigCommerce products and variants and post to #inventory in Slack any that are below their low-stock warning level, with the SKU and how many are left.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
Selling out of a popular product is good news until it happens before you reorder. A BigCommerce store with a few hundred SKUs cannot be checked product by product, and the stock level that triggers a reorder depends on supplier lead time. A bestseller reaches zero on a Friday, the supplier needs three weeks, and the listing sits as out of stock while advertising keeps sending shoppers to it.
Every six hours, ClickRuntime lists your products and variants with their inventory level and their inventory warning level, filters those at or below the warning level and skips any it has already reported. It sends one notification listing the SKUs that need reordering.
It suits stores that keep their own stock and have suppliers with long or unpredictable lead times. It also helps when a supplier raises prices and you want to know which lines to restock first.
What you get out of it
Reorders are placed before stock runs out
An alert at the warning level gives you the lead time you need. You avoid the lost sales and annoyed customers that come with empty shelves. You avoid the lost sales and annoyed customers that come with empty shelves.
Advertising money is not wasted
Ads that send shoppers to an out-of-stock product waste budget. Knowing when stock is low lets you pause or redirect spend in time. You can pause or redirect advertising before more shoppers land on an empty listing.
Thresholds follow each product
Each product has its own warning level in BigCommerce, so a fast-moving item warns earlier than a slow one. Alerts match the real reorder point for each SKU. Alerts follow the real reorder point for each product.
One alert per product prevents noise
Because reported SKUs are remembered, a product at low stock does not trigger a message every six hours. You get one reminder and then silence. You get one reminder and then silence until the situation changes.
Variants are checked individually
A shirt may be out of stock in one size and plentiful in the others. Checking variants shows which exact size or color needs reordering. You see which exact size or color needs reordering, not just the product name.
How it works
What happens, step by step
Every 6 hours, ClickRuntime checks the stock of your BigCommerce products and variants.
It compares each one with the low-stock level set in BigCommerce.
Items you were already warned about are skipped until they are restocked.
New low-stock items are posted to your #inventory Slack channel with the name, SKU and how many are left.
Before it runs live
- Connect BigCommerce
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 BigCommerce steps into one automation
Under the hood
The code that runs this automation
from clickruntime import on_trigger, credentials, http, state, notify
API = "https://api.bigcommerce.com/stores/your-store-hash/v3"
@on_trigger
def run(event):
headers = {"X-Auth-Token": credentials.secret("BIGCOMMERCE_TOKEN"), "Accept": "application/json"}
low, page = {}, 1
while True:
body = http.get(f"{API}/catalog/products", headers=headers,
params={"include": "variants", "limit": 250, "page": page}).json()
for p in body["data"]:
for v in p.get("variants", []):
if v["inventory_warning_level"] and v["inventory_level"] < v["inventory_warning_level"]:
low[str(v["id"])] = f"• {p['name']} ({v['sku']}): {v['inventory_level']} left"
if page >= body["meta"]["pagination"]["total_pages"]:
break
page += 1
alerted = set(state.get("alerted") or [])
new = [line for vid, line in low.items() if vid not in alerted]
state.set("alerted", list(low)) # restocked variants can alert again
if new:
notify.slack("Below low-stock level:\n" + "\n".join(new), channel="#inventory")
return {"low": len(low), "new": len(new)}FAQ
Common questions
Where do I set the warning level for a product?
Will it alert again after I restock?
Does it work for products without inventory tracking?
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 yesterday's BigCommerce revenue by email
A morning email gives yesterday's order count and total revenue.
See how it worksGet a daily list of new BigCommerce customers
Each evening you see who created an account that day, with their email and customer group.
See how it worksPost each BigCommerce order to Slack
Seconds after checkout, Slack shows the order number, customer and total.
See how it worksKeep exploring
Set up “Get warned before BigCommerce products sell out” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.