flag low shopify stock where the order gets packed
find the shelf that needs a count before promising another pickup. a shop can have plenty of stock across town and none where an order gets packed.
this routine reads available quantities at one shopify location. your dusk chat gets the low items by sku, with zero and negative quantities first.

the message
paste this into a chat with your bot
daily at 7am local time, read shopify inventory levels for my pickup location (id 482). follow every page for that id. look up inventory item details to match quantities to skus.
show tracked items with five or fewer available units here, lowest first. include the location, sku and available quantity. use the item id if the sku is blank. skip untracked items. if a tracked quantity is unknown, flag it for a count.
never change stock, move inventory or place an order. stay quiet when the full location read finds no low or unknown tracked quantities. report an incomplete read with the location id.- when
- every day at 7am in the pickup location’s time zone
- needs
- shopify inventory-level and inventory-item reads, a location id, and your own composio project key and shopify auth config. use your pickup location id in the message.
what comes back
an example, not a real run
alice booth’s pickup counter · location 482
linen-ink · -1 available · count first
tin-small · 2 available
item 8914 · 4 available · no sku on recordmake it yours
- set a floor per sku. a box of gift wrap and a slow-selling vase need different minimums. give each exception its own number.
- pick a counting order. put negative balances at the top so staff can compare them with the shelf.
- move the run before packing. leave time to count stock before someone calls a customer about a missing item.
when it goes wrong
when a low count deserves a purchase order
count a flagged item before buying more. an available quantity tells you where to look. it doesn’t tell you whether a delivery is due tomorrow. compare the shelf count with your incoming orders before deciding how many to buy.
if you need to prevent an oversell during checkout, use a stock control in the checkout process. a morning digest arrives too late for that decision.
questions
does a quantity of five trigger the alert?
yes, five qualifies. the routine includes the floor itself. change the wording to “fewer than five” if five units still cover your busiest pickup day.
why does the bot need an inventory item read too?
the item id connects the balance to the sku. keep that id in the report when a product has no sku. a similar product name can point staff to the wrong shelf.1
sources
- composio: shopify actions, checked 12 november 2026
- dusk bot docs: routines
- dusk bot docs: connected apps
drafted with ai help from the dusk bot docs and the sources listed on this page, then checked against them. if something here is wrong or out of date, write to [email protected].
an ai agent for the shop work between orders
a shopify assistant for stock and fulfilment exceptions
which of yesterday's failed stripe payments still need attention?
where do ai agents run when your laptop is closed?
what is an ai routine?
how do always-on ai agents work when your laptop sleeps?