Daily BigCommerce low-stock digest with restock picks

Every weekday morning, get a Slack summary of BigCommerce SKUs about to run out, sorted by which to reorder now and which can wait.

Agentic Task
BigCommerceSlack BotOperationsDaily DigestsNotifications & AlertsAI Reports
PromptCreate

Every weekday at 8am, generate a BigCommerce low-stock digest with restock recommendations and post it to a Slack channel. This is an agent workflow (not code) because ranking, grouping, and the reorder-now-versus-watch judgement all depend on what the numbers actually say.

Trigger: cron, every weekday (Mon–Fri) at 8:00am in the store's local timezone. BigCommerce is not a poll provider, so cron is the right trigger.

Adjustable inputs to expose at the top of the workflow:

• SAFETY_THRESHOLD — the inventory level at or below which a variant counts as low stock (default: 10).

• SLACK_CHANNEL — the Slack channel name or ID where the digest should be posted.

• LOOKBACK_DAYS — how many days of sales history to use for velocity (default: 30).

Step 1 — Find the low-stock variants. Call BigCommerce Get All Variants and page through the full result set. Keep only variants where inventory_level is at or below SAFETY_THRESHOLD. Skip variants where inventory_tracking is 'none' (those have no meaningful stock count). Record sku, product_id, variant_id, inventory_level, and price for each surviving variant.

Step 2 — Enrich with product context. For each low-stock variant, use BigCommerce Get All Products (or Get a Product per unique product_id, whichever is cheaper given the count) to attach product name and primary category. Cache product lookups so the same product isn't fetched twice.

Step 3 — Pull sales velocity. Call BigCommerce Get All Orders filtered to the last LOOKBACK_DAYS days. Exclude non-sales statuses (Cancelled, Refunded, Declined, Incomplete, Pending). For each surviving order, call List Order Products to get the line items. Sum quantity by SKU across every line item to get units_sold_30d for each SKU. SKUs with no sales in the window get zero.

Step 4 — Judge each low-stock variant. Compute daily_velocity = units_sold_30d / LOOKBACK_DAYS. Compute days_of_cover = inventory_level / daily_velocity (or mark as 'no recent sales' when velocity is zero). Then bucket:

• Reorder now — the SKU is at or below threshold AND selling at a meaningful clip. Use judgement: an item with 3 days of cover left is clearly urgent; an item with 60 days of cover isn't. Look at the actual distribution of days_of_cover across the low-stock set and pick the cutoff where the ranking naturally breaks.

• Watch — below threshold but selling slowly or not at all. These don't need reordering yet; they need attention.

For each Reorder-now item, suggest a reorder quantity sized to cover roughly the next 30 days at current velocity, rounded up to a sensible whole number.

Step 5 — Draft the digest as Slack mrkdwn. Open with a one-line headline showing totals, e.g. '*12 low-stock SKUs today — 4 need reordering now*'. Then two sections:

• *Reorder now* — one bullet per item: 'Product name (SKU) — X units left, selling ~Y/day, ~Z days of cover, suggested reorder: Q units'. Sort by urgency (fewest days of cover first).

• *Watch* — one bullet per item: 'Product name (SKU) — X units left, ~Y sold in the last 30 days, category: <category>'. Sort by SKU or category for scannability.

If a section is empty, say so explicitly ('Nothing selling fast enough to worry about today'). If no variants are below threshold at all, post a single 'All inventory above threshold' message instead of the full digest.

Step 6 — Post the digest to SLACK_CHANNEL using the Slack Bot Send a Message action. Use mrkdwn formatting (single asterisks for bold, hyphens or bullets for lists).

Guardrails: if Get All Variants returns nothing, post a short flag that the catalog read came back empty rather than sending an empty digest. If the velocity fetch fails partway through, post what you have and note which parts are incomplete. Never invent SKU names, categories, or velocity numbers — only use what BigCommerce actually returns.

Additional information

What does this prompt do?
  • Every weekday at 8am, a fresh low-stock digest lands in your chosen Slack channel.
  • Splits low-stock items into 'reorder now' (selling fast) versus 'watch' (moving slowly) so you don't tie up cash on the wrong SKUs.
  • Suggests reorder quantities for each fast-moving item based on the past 30 days of sales velocity.
  • Adjust the stock threshold, sales window, and Slack channel to match how your store actually operates.
What do I need to use this?
  • A BigCommerce store login
  • A Slack workspace and a channel where the digest should land
  • A rough safety threshold for when a variant should count as low stock
How can I customize it?
  • Change the low-stock threshold to match your supplier lead times.
  • Point the digest at a different Slack channel for ops, buyers, or the warehouse team.
  • Shift the schedule earlier or later, or switch from weekdays only to every day.

Frequently asked questions

Will it recommend the same items every day forever?
The digest recomputes each morning, so once you reorder and stock climbs back above the threshold, that item drops off the list. Slow-moving low-stock items stay in the 'watch' section until they sell down or you clear them out.
How does it decide 'reorder now' versus 'watch'?
It combines your current inventory against the threshold with actual sales over the last 30 days. Fast-selling items below threshold land in 'reorder now'. Slow-selling items below threshold land in 'watch' so you don't over-order dead stock.
Where do the reorder quantities come from?
They're a suggestion, not a rule. The digest looks at how many units of each low-stock SKU sold in the past 30 days and estimates enough new stock to cover the next stretch at the same pace.
Does this update BigCommerce or place any orders?
No. It only reads from BigCommerce and posts a summary to Slack. All purchase decisions and reorder actions stay with your team.
Can I run it more than once a day, or on weekends?
Yes. The schedule is a setting: change it to daily, twice a day, or any weekday cadence that suits your buying rhythm when you set the workflow up.

Stop finding out about stockouts from customers.

Turn BigCommerce inventory into a morning Slack digest that flags what to reorder now and what can wait.