# AI in store operations and fulfillment
A customer walks into a store on a Saturday afternoon. The cereal shelf is half-empty, a promotional endcap has the wrong price tag, three staff are clustered at the registers while the fitting room line grows, and an online order sitting in the system will not get picked for another hour. Nothing here is broken exactly. Everything here is slightly wrong. That slight wrongness, multiplied across thousands of square feet and hundreds of stores, is where retail margin quietly leaks.
This lesson is about closing those gaps with AI applied to three concrete problems: knowing what is on the shelf, putting the right people in the right place, and turning stores into fulfillment engines.
Most retailers know their sales to the penny. What happens on the physical floor is far murkier. A stockout (an item a customer wants but cannot find) often goes unrecorded because the sale simply never happens. Industry estimates commonly put on-shelf availability gaps in the high single digits to low teens as a percentage, though the real number varies wildly by category and store.
The core problem: the shelf is the source of truth, and until recently nobody was watching it continuously.
AI changes the economics of watching.
Computer vision is software that interprets images the way a trained employee would, but at scale and without fatigue. Point cameras at shelves (fixed cameras, employee phone photos, or cameras mounted on autonomous floor robots) and a model can answer three questions:
A well-tuned system flags an empty facing (the front-row slot for a product) before a human notices, cross-references it against the stockroom inventory, and generates a task: "restock aisle 7, bay 3, item still in back."
The high-value insight is the split between two very different failures:
Traditional systems cannot tell these apart. Vision plus inventory data can. That distinction alone changes what you tell the store to do.
Computer vision struggles with reflective packaging, deep shelves, obstruction by customers, and products that look nearly identical (think flavor variants of the same drink). Accuracy also degrades fast if the model is not retrained as packaging changes. Treat vendor accuracy claims as best-case lab numbers, not store-floor guarantees. Always run a pilot in a handful of real stores before committing.
For a plain-language primer on how this technology works, the Google Cloud overview of computer vision is a solid free starting point.
🎬 [VIDEO: "How Computer Vision Is Transforming Retail" — youtube.com — a short accessible walkthrough of shelf monitoring and in-store vision use cases]
Now to the staff clustered at the registers while the fitting room backs up. This is a scheduling and allocation problem, and it is where AI delivers fast, unglamorous wins.
Legacy scheduling relies on rough weekly patterns and a manager's gut. AI-driven workforce management forecasts labor demand in fine time slices (often 15 or 30 minute intervals) using inputs like historical foot traffic, local weather, promotions, paydays, school calendars, and events.
The output is not "how many people this week." It is "how many people, doing what, at 2:15pm on Saturday."
The harder half is constraint solving. A schedule has to satisfy:
AI can generate schedules that respect all of these at once, something a spreadsheet cannot do well. Here is the shape of the problem in simplified terms:
minimize: labor_cost + understaffing_penalty + overstaffing_penalty
subject to:
staff_on_shift[t] >= forecast_demand[t] for each 15-min slot t
hours_per_employee <= contracted_max
required_skill_coverage[station] == True for each station
advance_notice_rule == satisfied
employee_availability == respectedThe point is not the math. It is that AI balances competing costs simultaneously: understaffing loses sales and frustrates customers, overstaffing burns margin. The optimum sits between them, and it moves hour by hour.
Algorithmic scheduling has a bad reputation where it has been used to squeeze workers with erratic "clopening" shifts and zero predictability. That backfires: turnover is expensive, and in retail it is brutal. Use these tools to improve fit and give workers more input and stability, not less. In several jurisdictions, fair workweek laws now make the abusive version legally risky anyway.
The online order sitting unpicked is the third gap, and it is now often the most strategic one. Stores are no longer just places to shop. They are miniature warehouses.
Two dominant models:
When an online order comes in, an AI system decides which location should fill it. This is an optimization across:
A good router might split one order across two stores, or route it to a slightly farther store because the nearest one is out of labor hours. The goal is lowest total cost to serve while keeping the delivery promise.
Once assigned, AI sequences the pick: the order in which a worker collects items so they walk the shortest route through the store. In a store not designed as a warehouse, walking is the dominant cost. Shaving seconds per item compounds across thousands of orders.
The whole system depends on trustworthy inventory data, which loops back to computer vision. This is the key architectural insight of the lesson: these three capabilities reinforce each other. Vision feeds accurate availability into the fulfillment router. Fulfillment demand feeds labor scheduling. Better staffing keeps shelves accurate. Deploy them in isolation and each underperforms.
Vérification des acquis
1. Why does the lesson describe the physical store as a 'data-poor environment' despite retailers knowing their sales precisely?
2. In the context of shelf monitoring, what does 'planogram compliance' primarily verify?
3. The lesson frames retail margin as leaking through 'slight wrongness' rather than outright failures. What is the key implication of this framing for applying AI?
4. Select ALL correct answers. According to the lesson, what can a well-tuned computer vision shelf-monitoring system do?
Sélectionnez toutes les réponses correctes.
5. Select ALL correct answers. Why is computer vision described as changing 'the economics of watching' the shelf?
Sélectionnez toutes les réponses correctes.
Return to that Saturday store, now with the stack running.
Overnight, vision-equipped scans flagged the half-empty cereal shelf as a phantom stockout. A restock task was queued for opening. The labor model, seeing forecasted afternoon traffic plus a local event, scheduled an extra floor associate from 1pm to 5pm and pulled one cashier over to self-checkout support. The mispriced endcap was caught by label-detection and corrected before the promotion drove traffic.
When the online order arrived, the router checked that the item was genuinely on the shelf (not just in the system), confirmed the store had labor headroom, and released it with an optimized pick path. The customer collected it in fifteen minutes.
None of these are moonshots. They are the removal of slight wrongness, systematically.
For a retailer starting out, a sensible order:
1. Fix inventory visibility first. Everything downstream depends on it. Start with vision in a few high-traffic, high-stockout categories.
2. Layer in labor forecasting where sales are most traffic-sensitive.
3. Add fulfillment routing once inventory accuracy is trustworthy enough to promise against.
Skipping step one is the most common and most expensive mistake. A fulfillment router built on bad inventory data cancels orders, and canceled orders lose customers faster than slow ones.