Skip to content

Forecaster Tool

The Forecaster tool builds predictive models for time series data, helping you anticipate future values based on historical patterns. It’s designed for business forecasting scenarios like demand planning, revenue projections, and inventory management.

The Forecaster analyzes your historical data and generates predictions with confidence intervals. It automatically selects the best forecasting method (ARIMA, ARIMAX, or Prophet) based on your data characteristics.

Key capabilities:

  • Predict future values for any numeric metric over time
  • Generate confidence intervals showing the range of likely outcomes
  • Forecast multiple series at once (e.g., per product, per region)
  • Handle seasonality automatically when patterns exist in your data
  • Create visualizations showing historical data alongside predictions
ScenarioExample
Revenue projections”Forecast monthly revenue through year-end”
Demand planning”Predict units sold per product for next 12 weeks”
Inventory management”Project stock levels by warehouse”
Traffic forecasting”Forecast daily website visitors for next month”
Capacity planning”Predict server load for next quarter”

The Forecaster isn’t the right tool when:

  • Data isn’t time-based — no dates or timestamps to forecast against
  • Too little history — fewer than 20 data points won’t produce reliable forecasts
  • You need classification — use the Researcher for categorization tasks
  • One-time calculations — forecasting is for projecting trends, not single computations

Simply describe what you want to predict and for how long. The agent recognizes forecasting requests and automatically invokes the Forecaster tool.

Basic forecasting:

  • “Forecast revenue for the next 3 months”
  • “Predict customer growth through year-end”
  • “Project sales for the next 12 weeks”

With time frame specification:

  • “Forecast demand for the next 6 months”
  • “Predict inventory levels through Q4”
  • “Project website traffic for the next 30 days”

Multiple series forecasting:

  • “Forecast sales for each product category”
  • “Predict demand by region for the next quarter”
  • “Project revenue per customer segment through December”

If you don’t specify a time frame, the Forecaster defaults to 16 weeks ahead. You can always request a different period:

"Forecast revenue for the next 3 months"
"Predict demand through the end of 2024"
"Project the next 52 weeks of sales"

When the Forecaster runs, it creates an updated_df with both your original data and predictions:

ColumnDescription
Your date columnTime periods (original + future)
Your value columnActual values (historical) and predicted values (future)
value_type”observed” for historical, “predicted” for forecasts
{column}_lower_estimateLower bound of confidence interval
{column}_upper_estimateUpper bound of confidence interval

Example output:

monthrevenuevalue_typerevenue_lower_estimaterevenue_upper_estimate
2024-0150000observed
2024-0252000observed
2024-0355000predicted5100059000
2024-0458000predicted5200064000

The Forecaster automatically creates a chart showing:

  • Solid line: Historical (observed) data
  • Dashed line: Predicted values
  • Shaded area: Confidence interval (the range where actual values are likely to fall)

The wider the shaded area, the more uncertainty in the prediction. Confidence intervals typically widen as you forecast further into the future.

For reliable forecasts, your data should have:

  1. A time column — dates, timestamps, weeks, months, or quarters
  2. A numeric value to forecast — revenue, units, visitors, etc.
  3. At least 20 data points — more history generally means better predictions
  4. Consistent time intervals — weekly data, monthly data, etc. (gaps are okay but should be minimal)

Aggregate before forecasting:

"Aggregate to weekly totals, then forecast for the next 12 weeks"

Handle missing periods:

"Fill missing dates with zeros, then forecast revenue"

Group by category first:

"Group sales by product, then forecast each product separately"
Forecast TypeMinimum HistoryRecommended
Simple trends20 data points50+ points
Weekly seasonality4 weeks12+ weeks
Monthly seasonality12 months24+ months
Yearly seasonality2 years3+ years

More history helps the model identify patterns and produce tighter confidence intervals.

If your data has seasonal patterns (holiday spikes, summer slowdowns, etc.), the Forecaster can detect and incorporate them—but only if you have enough history:

  • Weekly patterns: Need 4+ weeks of daily data
  • Monthly patterns: Need 12+ months of data
  • Yearly patterns: Need 2+ years of data
"Forecast monthly sales, accounting for seasonal patterns"

You can forecast many series at once by specifying groupings:

"Forecast demand for each product over the next 8 weeks"
"Predict revenue by region through Q4"
"Project sales per salesperson for the next month"

The Forecaster will build separate models for each category and return results for all of them.

If your forecast shows a flat line with no trend:

  • Your historical data may not have a clear trend
  • Try aggregating to a coarser time grain (daily → weekly → monthly)
  • Check if there’s enough variation in your data

Wide confidence intervals indicate uncertainty. This happens when:

  • You have limited historical data
  • Your data has high volatility
  • You’re forecasting far into the future

To narrow intervals:

  • Add more historical data
  • Aggregate to reduce noise
  • Forecast shorter time periods

Starting data: 24 months of monthly revenue

Step 1: Check your data

"Show me monthly revenue for the past 2 years"

Step 2: Generate forecast

"Forecast monthly revenue for the next 6 months with confidence intervals"

Step 3: Visualize

"Create a line chart showing historical and forecasted revenue"

Starting data: Weekly sales by product

Step 1: Prepare data

"Aggregate to weekly totals by product"

Step 2: Forecast

"Forecast demand for each product for the next 12 weeks"

Step 3: Focus on top products

"Show the forecast chart for the top 5 products by volume"

Starting data: Daily stock levels by warehouse

Step 1: Aggregate

"Calculate weekly average stock levels by warehouse"

Step 2: Forecast

"Predict stock levels for each warehouse over the next 8 weeks"

Step 3: Identify risks

"Show warehouses where predicted stock falls below 100 units"

”Not enough data to perform forecasting”

Section titled “”Not enough data to perform forecasting””

Cause: Fewer than 20 data points for a series.

Fix:

  • Add more historical data
  • Aggregate to fewer, larger time periods (daily → weekly)
  • Remove category groupings to forecast the total instead

Cause: Outliers or data quality issues in historical data.

Fix:

  • Check for and remove outliers: “Remove months where revenue was zero”
  • Verify data is clean: “Show me any unusual values in the revenue column”
  • Use a shorter forecast horizon

Cause: Data patterns too complex or inconsistent for the model.

Fix:

  • Simplify by aggregating: “Convert to monthly totals first”
  • Remove problematic series: “Exclude products with fewer than 20 weeks of data”
  • Try a different time grain

”Confidence intervals are extremely wide”

Section titled “”Confidence intervals are extremely wide””

Cause: High volatility or insufficient history.

Fix:

  • Add more historical data if available
  • Aggregate to smooth out noise
  • Accept that some forecasts are inherently uncertain
  1. Start with exploration — understand your data before forecasting
  2. Aggregate appropriately — daily data often needs to become weekly or monthly
  3. Check for outliers — unusual values can skew predictions
  4. Validate with holdout — if possible, test on recent data you already have
  5. Update regularly — refresh forecasts as new data arrives
  6. Communicate uncertainty — always show confidence intervals to stakeholders