Skip to content

Retail

Reorder assistant for small food and drink shops, with a real solver

A reorder assistant for independent food and drink shops that chats like an LLM but leaves the maths to a solver, from a 2025 NYU, Cornell and HKUST paper.

By SaaS White Published 13 min read

Cost cut by the solver-backed agent against GPT-4o, by test setting: All 70 scenarios, 32.1% Cost cut by the solver-backed agent against GPT-4o, by test setting: All 70 scenarios, 32.1%

Quick overview

Problem
Small shop owners reorder by rules of thumb, and the chat assistants now built into their tools give fluent ordering advice that can be badly calibrated or even impossible.
Solution
A point-of-sale add-on that asks the owner what the sales data cannot show, computes each item's reorder rule with a simulation solver, and explains the weekly order in plain words.
Customers
Owners and buyers at independent delis, bottle shops, greengrocers and specialty food stores with fewer than 20 staff, on cloud point-of-sale systems.
Difficulty
Medium The solver is textbook operations research; messy sales data, unrecorded stockouts and winning trust in a crowded field take the work.
Time to MVP
8–10 weeks for two developers, one with operations research experience
Field
Retail

Picture a bottle shop owner asking a chat assistant how much rioja to reorder. The answer comes back in seconds, polite and confident, and nobody checks whether the numbers make sense. This idea is a reorder assistant for independent food and drink shops that keeps the friendly conversation but hands the arithmetic to a proper inventory solver. It rests on a paper by Yaqi Duan (NYU Stern), Yichun Hu (Cornell) and Jiashuo Jiang (HKUST), Ask, Clarify, Optimize: Human-LLM Agent Collaboration for Smarter Inventory Control, posted on arXiv on 31 December 2025, which measured what it costs when a language model is trusted to do that arithmetic itself.

The “hallucination tax”, measured

The authors start from a familiar gap. Inventory theory has had good answers for decades, yet small retailers rarely use them; the introduction describes owners who reorder when the shelf looks low, double up before holidays and round to the nearest case. The barrier, they argue, is less the maths than the translation: turning what an owner knows (how long stock keeps, what happens when a customer finds the shelf empty, how slow the supplier is) into the precise inputs a model needs.

They built a three-part agent. A conversational part, running on GPT-5-mini, fills an explicit table of parameters (lead time, holding cost, shortage penalty, order cost, shelf life, whether unmet demand is lost or backordered, capacity, maximum order and risk appetite), asking follow-up questions and flagging contradictions. A solver then searches for the best (s,S) rule, “when stock on hand plus on order falls to s, order up to S”, by simulation, and also trains a deep reinforcement learning policy. A third part explains the chosen rule to the user.

To test it without recruiting hundreds of shopkeepers, they collected 1,184 conversational turns from 66 participants playing store managers and fine-tuned Qwen2.5-7B on them, producing a “Human Imitator” that answers vaguely and inconsistently, as people do (section 3). Over 70 generated single-item scenarios (table 5):

  • The solver-backed agent cut simulated inventory cost by 32.1% on average against GPT-4o used as an interactive, end-to-end adviser, and did better in 97.1% of scenarios. In the two where GPT-4o won, the margin was 2% and 6%, and GPT-4o had landed on almost the same rule.
  • Giving GPT-4o the true parameters directly did not help. The agent still beat it by 33.4%, every time, and the difference from the interactive GPT-4o was not significant (p = 0.66). The authors read this as a computational limit, not an information one.
  • The gap grew with lead time: 26.8% at one day against 33.8% at seven days for the same kind of demand. It was also larger when holding and shortage costs were high: in the top quartile of gains, holding costs were about 68% higher and penalty costs 58% higher than in the bottom quartile (table 6).
Cost cut by the solver-backed agent against GPT-4o, by test setting
  1. All 70 scenarios32.1%
  2. GPT-4o with true inputs33.4%
  3. Normal · 7-day lead34.2%
  4. Poisson · 7-day lead33.8%
  5. Poisson · 1-day lead26.8%

Average reduction in simulated inventory cost over 70 generated single-item scenarios; the users were a fine-tuned model imitating shop managers, not real people. Source: Duan, Hu and Jiang, 2025, table 5. Chart by SaaS White.

One example in section 4.3 makes the point better than the averages. GPT-4o accepted that a shop could hold at most 80 units, then advised reordering when stock fell to 89. The authors’ phrase for this failure is that “fluency is not the same as correctness.”

Read the results at the strength the paper claims. The scenarios are single products with at most 100 units of capacity, generated by GPT-4o; the users are a model imitating people, and the authors list validation with real users as future work. The baseline is GPT-4o, not what a shop does today, so the 32.1% is not a saving a shop can expect. The authors themselves say gains should be treated “as evaluable hypotheses that require backtesting and staged rollouts”.

Why it matters now: chat is arriving in the stockroom

The paper names Shopify Sidekick, Square AI and Toast IQ as examples of assistants that are good at answering questions about data, and warns about extending them to ordering decisions without a solver. That extension is happening. A Shopify post from June 2026 says Sidekick now looks at sales, stock and a demand forecast to recommend what to buy and how much, and can draft the purchase order. Prediko offers Pia, an “AI co-worker” that sends daily stock updates by email and Slack, recommends reorders and connects to Claude and ChatGPT through an MCP integration. Neither page says how much of the calculation is done by a model and how much by a forecasting engine.

At the same time, Shopify retired Stocky, its free planning app for shops on Shopify POS. A February 2026 post by Ordoro, which sells an alternative, reports that it would stop after 31 August 2026 and that Shopify was moving purchase orders into the admin without confirming any advanced forecasting. On Shopify’s community forum, a store owner on Shopify POS Pro called the removal a “material retail operations risk” and later wrote: “Stocky is what made the POS worth the pain.”

There is also evidence that many small operators still work in spreadsheets. In a March 2026 survey of 400 US operations professionals by inFlow, a vendor, 74.3% said spreadsheets were their sole or primary inventory tool and 44% ran out of stock at least once a month. The sample is not limited to small firms and the figures are self-reported.

Who sells in units, cases and days of shelf life

The paper aims at small and medium retailers in general. We would narrow it to independent food and drink shops: delis, cheese shops, greengrocers, bottle shops and specialty grocers. The paper’s model fits them closely. They buy from distributors on fixed delivery days, so lead time is real; much of their stock spoils, so the lost-sale and perishability settings matter; and their margins make both waste and empty shelves expensive.

Here is how many there are in the US. The Census Bureau’s Statistics of US Businesses for 2022 counts 113,123 food and beverage retailers with fewer than 20 employees, out of 124,868. That total includes convenience stores, which are a poorer fit. The core groups are smaller: 30,758 beer, wine and liquor retailers and 18,685 specialty food retailers under 20 employees.

US food and drink retailers with fewer than 20 employees, by type
  1. Beer, wine and liquor stores30,758 firms
  2. Grocery stores (not convenience)30,494 firms
  3. Specialty food stores18,685 firms
  4. Fruit and vegetable markets3,601 firms
  5. Baked goods stores2,073 firms
  6. Confectionery and nut stores1,901 firms

Firms (not shops) with under 20 employees across the whole enterprise, 2022. Source: US Census Bureau, Statistics of US Businesses 2022, US and states by 6-digit NAICS. Chart by SaaS White.

A deli owner today has a few routes: a spreadsheet and memory; the reorder alerts or automatic purchase orders in the till (Square’s UK page lists them in its Retail Plus plan); a paid planning add-on; or, increasingly, a question typed into the till’s assistant.

Who already suggests what to reorder

We searched on 26 November 2026 for reorder-point software for small retailers, Shopify and Square forecasting apps, AI inventory assistants for small businesses, bakery and fresh-food forecasting, and liquor store reorder tools. “Suggest what to reorder from sales history” is a crowded feature, and the table below is a sample, not a census.

Tool Reorder help it offers Published price
Square for Retail Automatic purchase orders when stock runs low, plus “smart forecasts”; you review before sending Retail Plus, £49 a month per location (UK page)
Shopify Sidekick Chat assistant in Shopify admin; recommends what to reorder and drafts the PO Not stated on the post
Prediko Shopify planning app: forecasting, POs, the Pia assistant $49 a month under $100k GMV, rising to $3,999 by revenue band
Thrive Inventory Inventory for Square, Clover and Shopify; forecasting, min/max and par levels Starter from $55–59 a month (the page shows two price sets)
Inventory Planner by Sage Forecasts and replenishment recommendations from Square data; says it has 2,600+ brands Not on the page we opened
Lightspeed Retail Order recommendations sent to suppliers via NuORDER; claims 26% fewer days out of stock for users Not stated; PO Sync is open to all Lightspeed Retail merchants
Reorda and Replinish New Shopify apps (July and September 2026) for reorder points and POs, partly aimed at former Stocky users $19 a month; $29–79 a month
Foodforecast Daily demand and production forecasts for bakery chains; 4–8 weeks to set up Not listed

Two things stand out. First, nearly all of these work from sales history and a lead time, which is the right foundation, but none of the pages we read says how it handles unmet demand that never appears in the till, perishability, or an owner’s tolerance for risk. Second, the tools that offer chat do not say whether the chat or a solver produces the quantity. This idea would publish its method, explain its working, and never let the language model choose a number.

How ready the market is: established for basic reorder suggestions, emerging for chat-based ordering. The opening is narrow, and it is about method and trust rather than a missing feature.

The assistant, piece by piece

One sentence: a weekly order you can question, from a solver that knows what your till does not.

  1. Reads the till. Connects to Square (later Clover and Shopify POS) and pulls item sales, stock counts and open purchase orders. The Square Inventory API exposes counts and the history of adjustments.
  2. Asks only what the data lacks. A short chat per supplier and product group: delivery days and order cut-off, case sizes and minimums, how many days the product keeps, and what happens when it runs out (does the customer buy something else, or leave?). Like the paper’s agent, it keeps an explicit parameter table, shows it to the owner and flags contradictions (“you said Tuesday deliveries, but the last six arrived on Thursdays”).
  3. Solves per item. For each item, simulate demand from its sales history and search for the (s,S) rule with the lowest expected cost under the owner’s lead times, case sizes, capacity and shelf life. The language model never produces a quantity.
  4. Explains the order. Every Monday: the suggested order grouped by supplier, each line with one sentence of reasoning, and the cost of overriding it (“ordering two cases instead of three raises the chance of running out before Friday’s delivery”).
  5. Checks a plan. The owner can paste the order they had in mind, or the one the till’s own assistant suggested, and see where it breaks a constraint or carries more risk.

From connection to first value: the owner connects the till, spends ten to fifteen minutes on the questions for their top suppliers, and gets a first order with explanations for their 50 best-selling items. That first order, set against the one they would have placed, is the moment to test.

The solver is the small part of the build

The optimisation is the easy part. The paper’s (s,S) grid search by Monte Carlo simulation is standard operations research, and we would expect a small, well-tested module to cover it. The deep reinforcement learning policy can wait: the paper itself prefers to show the (s,S) rule when it is close, because owners can follow it.

Suggested stack: Python with NumPy for simulation; Postgres for sales history and parameter tables; the Square APIs first; a small LLM for the parameter chat with structured JSON output, as the paper did with GPT-5-mini; a plain web app and a weekly email or text message.

Why Medium:

  • Unrecorded demand. When an item is out of stock, the till records no sale; the paper’s model also treats unmet demand as unobserved. Sales history understates demand for exactly the items that matter, so the estimates need correcting for days with zero stock.
  • Messy catalogues. Bottles sold singly but bought by the case, variants, seasonal lines and items with a handful of sales a month all need rules.
  • Multiple items, one delivery. The paper solves one item at a time. Real orders share a delivery minimum and van space, which adds a layer on top.

Team: one developer with operations research or supply chain modelling experience and one full-stack developer who knows POS APIs. MVP: 8 to 10 weeks for a single POS and a single country.

Pricing it against $19 apps and £49 tills

Model: a monthly subscription per location, with a free “check my order” tool as the way in.

Range to test: $39 to $79 a month per location. That is our starting assumption: above the newest Shopify apps (Reorda at $19, Replinish from $29), close to Thrive’s starter plan and Prediko’s entry band, and below the cost of a till plan that bundles its own purchase orders.

A rough US sketch for the first market:

Input Figure Basis
Beer, wine and liquor plus specialty food retailers under 20 employees 49,443 firms Census SUSB 2022 (30,758 + 18,685)
Share on a cloud POS the product connects to 30–50% Assumption; we found no source
Share that buys 2–5% Assumption
Price a year $480–960 Assumption, from the range above
Annual revenue about $0.14M–1.2M Arithmetic: 49,443 × share on POS × share buying × price

The share of shops that pay moves this range more than any other input, and the result is small. Counting firms also understates multi-shop owners. Two ways to grow it are adding other food retailers (the full 113,123 food and beverage firms under 20 employees, less the convenience stores) and licensing the solver to POS vendors or assistants as an API, so their chat can call it rather than guess.

Winning and keeping customers: we expect most to arrive through POS app marketplaces and food trade bodies, which should keep the cost per customer low, provided the first order shows something useful within a day. Retention depends on the owner following the orders; the paper cites earlier research showing store managers often override automated recommendations. Our guess is that a monthly note on stockouts avoided and stock written off would do most to keep a subscription.

Four ways the shop says no

  1. Bundling. Square, Shopify and Lightspeed already suggest reorders inside the till. If they add a solver behind their chat, the gap closes. The defence is depth for perishables and lost sales, and being a solver they could license.
  2. The evidence is simulated. The 32.1% compares two machines on generated scenarios; it says nothing yet about a real deli’s books. A backtest on real shops is the first job, and if the gain over the till’s own suggestions is small, there is no business.
  3. Bad data in. Stock counts in small shops drift; a solver fed wrong counts gives confident wrong answers. The product needs to prompt counts on its riskiest items.
  4. Owners ignore it. If the explanation does not persuade, the order will be overridden and the value lost.

There is little regulation in the way; the main compliance work is data protection for the sales data the product reads, and honouring each POS marketplace’s terms.

Ten shops’ sales history before any code ships

Questions to settle first:

  1. On real till data, how much lower is the simulated cost of the solver’s rules than the orders the shop actually placed, and than the till’s own suggestions?
  2. Can owners answer the parameter questions (lead time, shelf life, what happens when an item runs out) in under fifteen minutes, and do their answers agree with the data?
  3. Will they follow an order they did not write, and pay monthly for it?

Steps:

  1. Recruit ten delis and bottle shops on Square, ask for read access to a year of sales and purchase orders, and backtest: replay their year under the solver’s rules and under their own orders.
  2. Run the parameter chat with each owner live, and record where they hesitate or contradict their data.
  3. Publish a free “check my reorder rule” page: enter an item’s sales, delivery days and case size, see the cost of the rule you use today against the solver’s.
  4. Run four weeks of live orders with three shops and track overrides.

Signals we suggest, not from the paper: a simulated cost reduction of at least 10% against the shops’ own orders in seven of ten backtests; owners completing the setup chat in under 15 minutes; under 30% of order lines overridden by the fourth week; three of ten shops paying at the end of the trial.

Where to find delis and bottle shops

  • Marketplaces: the Square App Marketplace first, then Clover and Shopify POS. Former Stocky users on Shopify’s community forum are a known group of unhappy physical retailers.
  • Trade bodies: the Specialty Food Association, whose members include retailers as well as makers and distributors, and which runs the Summer Fancy Food Show.
  • First ten customers: shops with long lead times and costly stock, where the paper found the largest gains, such as importers’ delis, wine shops and cheese counters, rather than shops with daily deliveries.
  • Messages to test:
    • “Your till’s assistant suggested an order. Here is what it would cost you.”
    • “Tell us when your supplier delivers. We will tell you what to order, and why.”
    • “Fewer empty shelves on Saturday, less in the bin on Monday.”
  • Partners: POS vendors that want a solver behind their assistant; inventory apps such as Thrive that serve Square and Clover shops; distributors that want steadier orders.

Papers, a precedent and the basics

  • The source: Duan, Hu and Jiang, Ask, Clarify, Optimize (December 2025). Section 4.3 and appendix C show the conversations and the system prompts; appendix A states the inventory model. The authors write that the Human Imitator model will be released on publication.
  • Related research: OptiMUS-0.3 by AhmadiTeshnizi and colleagues, on language models that turn plain-language problems into solver-ready models.
  • A precedent: Afresh sells AI ordering recommendations for fresh food to grocery chains and raised a $115 million Series B in 2022, reporting customers such as Albertsons and WinCo. It shows the demand at the large end; this idea is the small-shop version.
  • What to learn first: the (s,S) policy and the newsvendor ratio in any operations management textbook (the paper cites Simchi-Levi and colleagues), then how to estimate demand when stockouts hide sales.

More ideas