Built Word Documents (.docx):
Spensara Overview (.docx)
Capability Assessment (.docx)
Brink POS Ingestion Analysis (.docx)
The Borg Ingestion Architecture (.docx)
Categories
Monitor Specs (29)
Operational monitoring, alerting, anomaly detection, and health specifications.
- backend/Kds.Ai.Data/MonitorSpecs/customer-churn-risk.md
- backend/Kds.Ai.Data/MonitorSpecs/customer-profiles.md
- backend/Kds.Ai.Data/MonitorSpecs/daily-forecast.md
- backend/Kds.Ai.Data/MonitorSpecs/demand-drivers.md
- backend/Kds.Ai.Data/MonitorSpecs/forecast-demand.md
- backend/Kds.Ai.Data/MonitorSpecs/forgotten-items.md
- backend/Kds.Ai.Data/MonitorSpecs/identify-high-value-customers.md
- backend/Kds.Ai.Data/MonitorSpecs/identify-plowhorse-items.md
- backend/Kds.Ai.Data/MonitorSpecs/identify-star-items.md
- backend/Kds.Ai.Data/MonitorSpecs/incorporate-seasonality.md
- backend/Kds.Ai.Data/MonitorSpecs/inventory-levels.md
- backend/Kds.Ai.Data/MonitorSpecs/item-recall-storm.md
- backend/Kds.Ai.Data/MonitorSpecs/kitchen-performance.md
- backend/Kds.Ai.Data/MonitorSpecs/large-order-wave.md
- backend/Kds.Ai.Data/MonitorSpecs/menu-item-profitability.md
- backend/Kds.Ai.Data/MonitorSpecs/monthly-forecast.md
- backend/Kds.Ai.Data/MonitorSpecs/optimal-pricing-adjustments.md
- backend/Kds.Ai.Data/MonitorSpecs/optimize-order-quantities.md
- backend/Kds.Ai.Data/MonitorSpecs/order-surge.md
- backend/Kds.Ai.Data/MonitorSpecs/prep-time.md
- backend/Kds.Ai.Data/MonitorSpecs/pricing-recommendations.md
- backend/Kds.Ai.Data/MonitorSpecs/priority-flood.md
- backend/Kds.Ai.Data/MonitorSpecs/seasonality-trends.md
- backend/Kds.Ai.Data/MonitorSpecs/segment-customers.md
- backend/Kds.Ai.Data/MonitorSpecs/segment-descriptions.md
- backend/Kds.Ai.Data/MonitorSpecs/slow-kitchen.md
- backend/Kds.Ai.Data/MonitorSpecs/station-bottleneck.md
- backend/Kds.Ai.Data/MonitorSpecs/waste-reduction.md
- backend/Kds.Ai.Data/MonitorSpecs/weekly-forecast.md
id: 7a4c1e52-b9f2-4a7f-8e21-5c2b0e4d91b3 name: Generate weekly sales forecast kind: Forecast cron: 0 0 6 * * 1 analysis_window: 90d comparison_periods: [7d, 28d]
Generate accurate weekly sales forecasts to support inventory planning, staffing allocation, and operational decision-making.
The forecast should estimate total expected revenue for each of the next 4 weeks using historical sales data and relevant external signals.
The output must contain forecast data only, without explanations or descriptions of methodology.
Known Tables & Columns
curated.pos_transaction_items
- item (integer) - menu item identifier
- bohname (varchar) - menu item name when populated in the curated transaction-item surface
- price (decimal) - current selling price
- cost (decimal) - estimated cost of item when available in the curated item or catalog surfaces
- revid (integer) - revenue center identifier
curated.pos_hourly_sales
- dob (date) - transaction date
- starthour (integer) - start of hourly sales window
- stophour (integer) - end of hourly sales window
- keyvolume (integer) - quantity sold in the curated hourly sales surface
- revid (integer) - revenue center identifier
- amount (decimal) - total sales value
curated.pos_transactions
- dob (date) - transaction date
- revenue (integer) - revenue or reporting identifier available in the transaction surface
- revid2 (integer) - alternate revenue-center identifier when populated
- amount (decimal) - revenue generated — represents the amount per check row; aggregate with SUM(amount) for total revenue
- check (integer) - order identifier — derive total orders using COUNT(DISTINCT check)
Analysis Approach
- Extract historical sales data from the last 90 days using
curated.pos_hourly_sales.
- If the forecast needs item, catalog, or revenue-center enrichment, first inspect the available
curatedtables and columns, then join only on shared identifiers that are explicitly present in both tables. - Look for repeated business keys such as transaction identifiers, item identifiers, or revenue-center identifiers that appear in more than one
curatedtable. - Treat similarly named fields as join candidates only after confirming that their semantics line up in both tables.
- Aggregate historical revenue by:
- week
- week number
- revenue center.
- Identify recurring demand patterns such as:
- typical weekly revenue cycles
- peak and slow weeks
- trends over recent weeks.
- Detect recent anomalies within the last 90 days such as:
- sudden spikes or drops in revenue
- temporary demand caused by promotions or events.
- Enrich the dataset using external signals, including:
- holidays and public events
- local events (sports games, festivals)
- expected weather conditions.
- Retrieve current conditions and short-term forecast using the
get_weather_forecasttool to determine whether demand may deviate from historical baselines.
- Build a baseline weekly forecast for the upcoming weeks based on historical patterns and recent trends.
- Adjust the forecast based on:
- upcoming holidays
- forecasted weather conditions
- detected short-term trends or anomalies.
- Produce the final weekly revenue forecast for the next 4 weeks.
- Output constraints:
- return forecast data only
- do not include explanations, reasoning, or methodology
- output must contain exactly 4 forecast entries.
- Minimize database usage:
- prefer aggregated summaries
- avoid requesting more than 3 queries unless necessary.
Output Format
Return a structured list containing 4 weekly forecast values for the next 4 weeks.
No explanations or narrative text should be included in the output.