Demand forecasting

The demand forecast is Rinvy's prediction of how many units of each menu item you'll sell on each upcoming day. Claude (Anthropic's model) generates it from several inputs at once: sales history, burn rate, current stock, the business context you've entered, your day notes and how its own recent forecasts scored. Weather is an optional extra input.

Once a forecast is generated, two other features can read it:

  • Order list "Sales expectations" mode converts predicted sales into ingredient-level demand and projects stockouts. See order list with sales forecasts.
  • Forecast-based prep uses predicted sales to recommend batch counts for prep lists. See forecast-based prep.

Inputs to the forecast

InputWhere it comes from
Sales historyToast auto-sync or CSV upload
Burn rateInventory deltas + prep logs + waste
Current stockLatest inventory count + intervening receipts and consumption
Business contextOperator-entered notes on the forecast page (planned events, marketing pushes, etc.)
Day notesShift notes logged for days in the sales window. Demand-tagged notes come first.
Past forecast accuracyHow recent forecasts scored against actual sales. The model corrects for misses that repeat.
Weather (optional)OpenWeatherMap forecast for the window, based on your restaurant's weather location
Observed weather (optional)What the weather was on your history days. Rinvy compares demand on rainy vs. dry and warm vs. cold days, using your kitchen's own numbers

The more history and context, the better the forecast. With less than 30 days of sales data, the model leans heavily on burn rate. With several months, it can spot weekly patterns and seasonality, the periodic rises and falls that NIST's statistics handbook illustrates with the retail peak before Christmas.

Generating a forecast

  1. Go to Forecast.

  2. Enter or update your business context in the Additional context field. Write anything the model should know: upcoming holidays, marketing campaigns, weather expectations, new menu items, recent staff changes.

  3. Tap Generate forecast. The Claude API call takes a few seconds.
  4. Review the forecast. Each menu item gets daily predictions for the upcoming window, plus a short explanation of the reasoning.

The Demand forecast page's configuration form: Start date and End date pickers, the Additional context field with a placeholder example, an Advanced section, and the Generate forecast button

One forecast can cover at most 31 days.

How forecasts stay current

Forecasts are cached. When the latest forecast no longer reflects the inputs it was built from, an Outdated chip appears on it. Tap the chip to see the reasons. The reasons it can list:

  • Generated more than a day ago. Weather forecasts change, and so does the model's view.
  • Your business context changed. You edited the business context after the forecast was generated.
  • New sales data has come in since. The forecast used older sales baselines. This applies to synced and uploaded sales.
  • Your menu items changed. A new item has no prediction, and a removed item still draws ingredients.
  • The forecast window has already passed. The forecast has no prediction for today.

The order list and prep lists still use an outdated forecast. Use the reasons to decide whether to regenerate. A forecast that is only 25 hours old is usually still close. A forecast whose menu changed after it was generated is not. Regenerate when your situation changes, for example before a holiday weekend, a heat wave or a new menu item launch.

What to write as business context

Write specific facts, not general moods:

✅ Good: "Restaurant Week starts Monday — expect 40% bump on pasta dishes." ✅ Good: "Pre-Easter weekend; we usually see 25% lift on brunch items." ✅ Good: "New sushi roll launching Friday; expect strong opening then taper." ❌ Vague: "Busy week ahead." ❌ Vague: "Pretty normal."

The model gives business context a lot of weight. Wrong context gives a wrong forecast, so keep it factual.

Weather

If you set a weather location for the restaurant (Kitchen settings → Integrations → Weather), Rinvy pulls the OpenWeatherMap One Call forecast for the window and includes it in the prompt. That daily forecast reaches only 8 days ahead, so days further out in a long window get no weather input. The model uses it to adjust predictions — patio dishes go up on warm days, soups go up on cold days, drinks shift seasonally.

Weather is optional. Without it, the forecast still works, but it does not adjust for weather.

Reading the forecast

For each menu item you'll see:

  • An average daily prediction for the forecast window. "Daily" means per operating day. Closed days get no predicted sales, so the average does not count them.
  • A per-day breakdown. Expand an item to see its predicted portions for each date in the window. Each item keeps its own weekly pattern (a Saturday peak stays a Saturday peak), and this per-day shape is what the order list and prep lists read when they apply the forecast.
  • A confidence indicator (High, Medium, or Low).
  • A short reasoning paragraph from the model: the data and logic behind the number.

The forecast's Menu items card: each item lists a per-day prediction, a change chip, a confidence level, and a window total, with one item expanded to show its predicted portions for each day

Read the reasoning as well as the number. "Predicting 40 burgers Friday because last 3 Fridays averaged 38 with a slight upward trend" is a sound reason. "Predicting 80 burgers because Restaurant Week" is a problem if you did not enter that context.

How accurate was the last forecast?

Once a forecast's window has passed and your sales data covers it, Rinvy scores each item's prediction against what actually sold. The forecast page then shows a Last forecast vs. actual card: total predicted vs. sold for the window, a per-item list with over/under chips ("Over by 12%", "Under by 4%", "On target"), and a short history of how recent forecasts scored.

Accuracy scores also feed back into the next generation. If recent forecasts persistently over- or under-predicted an item (including on specific weekdays), the next forecast is told about the miss and corrects for it.

Common mistakes

Treating forecasts as deterministic

A forecast is a prediction with uncertainty. Use it as a starting point and adjust for what you know specifically about the day. The model doesn't know your aunt is in town or that the line cook called out.

Generating a forecast and ignoring the Outdated chip

An outdated forecast can be hours behind reality. Tap the chip to see what changed, and regenerate before you use the numbers for ordering or prep.

Not uploading enough sales history

With less than 30 days of sales, the forecast relies mostly on burn rate. The forecast page still shows numbers, but they are mostly extended averages. Get to at least 30 days of sales, and 90 or more if you can.

Vague business context

"Busy week" doesn't help the model. Specific details about events, weather expectations, and menu changes do. Treat business context like you're briefing a new manager.

Related