Get in touch
Close

Predictive Sales Using Google AI (Step-by-Step, No-Fluff)

Articles

🧠 TL;DR

Want to see into the future of your sales?
Google’s AI tools make that easier than ever.

  • Quickest way: Use BigQuery ML — it runs powerful AI models directly inside your data, using simple SQL (or even just point-and-click through the interface).
  • More advanced setup: If you want forecasts that also factor in things like pricing, promotions, and seasonality — move up to Vertex AI Forecasting.

Both are part of the Google Cloud ecosystem — reliable, scalable, and surprisingly accessible.

📊 Step 1: What Data You’ll Need

Start simple. All you need is:

Column

Example

Description

date

2025-01-01

The day of the sales

sales

1520

How much you sold that day

(optional) product_id

A001

If you want forecasts per product or store

👉 Pro tip: Start with total sales across your store. Once you’re comfortable, you can expand to specific SKUs or branches.

If you don’t have your own data yet, you can even test with Google’s public retail dataset inside BigQuery — perfect for practice.

⚡ Step 2: Build Your First Forecast (No Heavy Coding)

  1. Open Google Cloud → BigQuery → Create Dataset.
    (Think of this as making a new folder for your sales forecasts.)
  2. Upload your sales file (CSV/Excel).
  3. Click “Create Model” → “Time Series” and select ARIMA_PLUS — this is Google’s built-in forecasting model.
  4. Choose your date and sales columns.
  5. Press Run.

That’s it. BigQuery will automatically:

  • Detect your trends and seasonality.
  • Adjust for holidays (you can even select your region).
  • Create a prediction for the next 30, 60, or 90 days.

You’ll instantly see a forecast chart — actual vs. predicted sales.

📈 Step 3: Understand the Results

Metric

What It Means

Forecast value

The predicted daily sales number

Confidence interval

The upper/lower range where sales are likely to fall

MAPE / RMSE

Fancy ways of saying “how accurate your forecast is”

Don’t get lost in the math — the key is to focus on direction:
Are your predicted sales going up or down next month? How confident is the model?

🧩 Step 4: Forecast for Multiple Products or Stores

Once you get the hang of it, you can train the model for multiple product lines or stores.
Just add a new column (like store_id or product_id) before uploading, and BigQuery will automatically generate separate forecasts for each.

This is where it gets exciting — you can see which products are expected to spike or slow down, and plan promotions or inventory around that.

☁️ Step 5: When to Move to Vertex AI

If you want to go beyond sales and include:

  • Pricing changes
  • Promotional campaigns
  • External factors like weather or holidays

… then it’s time to graduate to Vertex AI Forecasting.

Vertex AI handles:

  • Complex, multi-factor forecasting
  • Automated backtesting
  • Model tuning and versioning
  • Easy deployment into production (for dashboards, apps, or ERPs)

In short:
BigQuery ML = Fast and simple.
Vertex AI = Smarter and scalable.

🧭 Step 6: Tips for Great Forecasts

Here’s how to make your predictions useful (and accurate):

  • Keep your data daily — weekly is fine if that’s all you have.
  • Limit your forecast horizon to 30–90 days.
  • Re-train your model monthly — AI learns better with fresh data.
  • If you launch a new product, group it with similar items until it builds history.
  • Always check if forecasts make sense — even AI can overreact to sudden spikes.

🚀 Step 7: What “Good” Looks Like

In the world of forecasting:

  • A MAPE (error rate) under 20% is good.
  • Under 10% is excellent.
  • What matters most: the trend direction (up/down) and how it informs your decisions.

Use forecasts to:

  • Order smarter.
  • Plan marketing campaigns.
  • Predict cash flow.
  • Avoid running out of stock during high seasons.

🧰 Step 8: Next Steps — Your Turn

You now have a foundation to:

  1. Upload your sales data.
  2. Run a 30-day forecast in BigQuery.
  3. Move to Vertex AI for deeper insights.
  4. Share results with your ops and marketing teams.

You’ll quickly notice how much more confident planning becomes when it’s backed by predictive insights instead of gut feeling.

🔗 References (to explore more)