Sub topic 8
CRM: forecasts and next-best-action suggestions
This chapter assumes you know what a pipeline, a deal stage, and a close date are in a CRM. It also assumes you have read the earlier chapters on lead scoring and on activity capture. Forecasting and next-best-action suggestions both build on those two features. Forecasting needs the probabilities and clean records they produce. Next-best-action needs the same inputs and turns them into a recommendation for a person.
What these two features do
A sales forecast estimates how much revenue the team will close in a period, such as this quarter. A next-best-action (NBA) suggestion tells a salesperson what to do next on one deal or contact, such as "send the pricing summary" or "bring in a technical contact".
They are different kinds of AI feature:
| Feature | Question it answers | Typical technique | Output |
|---|---|---|---|
| Forecast | How much will we close, and how sure are we? | Predictive: deal probabilities aggregated, or a time-series model | A number with a range |
| Next-best-action | What should this rep do on this deal now? | Predictive ranking plus rules, sometimes a language model to word the suggestion | A ranked list of actions |
Both are mostly predictive, not generative. A language model may explain a forecast or phrase a suggestion. The number or the ranking comes from a statistical model or a rule.
How forecasts are produced
Platforms use three approaches. Many combine them.
- Rep-submitted (roll-up) forecasts. Reps and managers enter a number or tag deals as "commit" or "best case". The system adds them up. This is human judgment with no model.
- Weighted pipeline. Each open deal gets a win probability. Expected revenue is the sum of
amount × probability. The probability may be a fixed rate per stage (for example, 20% for "proposal") or the output of a deal-scoring model like the one in the lead-scoring chapter. - Time-series forecasting. A model looks at past closed revenue by week or month, and at seasonality and trend, and projects forward. It needs little deal-level detail, so it works when records are sparse.
The weighted pipeline is the easiest to inspect, so it is worth running yourself. The script below computes the expected value and then simulates many possible outcomes to show the spread.
import random
deals = [
{"name": "Acme", "amount": 40000, "p_win": 0.80},
{"name": "Birch", "amount": 25000, "p_win": 0.50},
{"name": "Cedar", "amount": 60000, "p_win": 0.20},
{"name": "Delta", "amount": 15000, "p_win": 0.90},
]
expected = sum(d["amount"] * d["p_win"] for d in deals)
print(f"Weighted pipeline: {expected:,.0f}")
random.seed(7)
runs = 10_000
totals = sorted(
sum(d["amount"] for d in deals if random.random() < d["p_win"])
for _ in range(runs)
)
low = totals[int(runs * 0.05)]
high = totals[int(runs * 0.95)]
print(f"90% range from simulation: {low:,} to {high:,}")The weighted total is 70,000. No single outcome equals 70,000, because each deal is either won or lost. The simulation draws a win or loss for each deal and repeats it 10,000 times. The range between the 5th and 95th percentile is the part that matters for planning. A forecast shown as one number hides that range.
The line above is a placeholder only. Use the diagram below.
How next-best-action is produced
A typical NBA system has three parts.
- Candidate actions. A fixed list the platform or admin defines, for example "schedule a demo", "send a case study", "ask for an introduction to the budget owner", "re-engage after 14 days of silence".
- Eligibility rules. Hard conditions that remove actions that do not apply. Do not suggest a demo if one is already scheduled. Do not email a contact who opted out.
- A ranking model. A model estimates how much each remaining action is expected to help, for instance by raising the win probability, and orders them.
The sketch below shows the structure. The uplift numbers are made up. In a real system a model produces them from past outcomes.
def next_best_actions(deal, uplift, limit=2):
"""Return the top actions for a deal after applying eligibility rules."""
eligible = []
for action, gain in uplift.items():
if action == "schedule_demo" and deal["demo_scheduled"]:
continue
if action.startswith("email") and deal["contact_opted_out"]:
continue
eligible.append((action, gain))
eligible.sort(key=lambda pair: pair[1], reverse=True)
return eligible[:limit]
deal = {"demo_scheduled": True, "contact_opted_out": False}
uplift = {
"schedule_demo": 0.12,
"email_case_study": 0.05,
"ask_for_budget_owner_intro": 0.09,
"email_reengagement": 0.02,
}
for action, gain in next_best_actions(deal, uplift):
print(f"{action}: expected +{gain:.0%} win probability")The demo action has the highest uplift, but the rule removes it because a demo is already booked. The output is the intro request and the case-study email. The rules run before the ranking, so a model error cannot recommend a forbidden action.
Some platforms add a language model on top. It reads the recent call summary and email thread and writes the suggestion in plain words ("The buyer asked about security review; share the compliance document"). Treat that wording as generated text. It can misread the thread, so the same review rules apply as for any drafted content.
What data the models need
Forecast and NBA quality depend on a few fields more than on model choice.
- Stage history. When each deal entered and left each stage. Without it a model cannot learn how long deals normally take.
- Close dates and amounts. If reps push close dates every month, the model learns that dates are unreliable.
- Captured activity. Emails, meetings, and calls logged against the deal. Missing capture makes a healthy deal look inactive.
- Outcome labels. Won or lost, ideally with a loss reason. Deals deleted instead of marked lost bias the model toward optimism.
- History length. Most models need at least several quarters of closed deals in a similar sales process.
Failure modes and edge cases
- Small samples. A new product line or region with few closed deals gives noisy probabilities. Many platforms fall back to stage-based rates or to the rep's own number. Check which method is running for a given segment.
- Process changes. If the team changes stage definitions or pricing, past patterns stop applying. The model keeps using the old pattern until enough new deals close.
- Large deals dominate. One 60,000 deal at 20% moves the expected total by 12,000 and widens the range a lot. Look at the largest deals individually.
- Probabilities are not calibrated. A model that says 80% should be right about 80% of the time across many such deals. Many are not. Compare predicted rates with actual win rates on past deals.
- Feedback loops. If reps only act on suggested actions, the data then shows those actions followed by wins, and the model reinforces its own advice. A holdout group of reps or deals that do not see suggestions is the way to measure the real effect. The chapter on measurement covers this.
- Gaming. Reps who know the model rewards logged activity may log meaningless activity. Forecast accuracy then drops without any visible error.
- Late-quarter drift. Deals pushed from one quarter to the next make early-quarter forecasts look too high. Time-series models trained on closed revenue often miss this, and deal-level models handle it better.
Judging a forecast
Judge a forecast by comparing it with what happened, over many periods. Two simple measures are useful:
- Error: the difference between forecast and actual, as a percentage of actual.
- Bias: whether errors lean in one direction. A forecast that is 10% high every quarter is more useful once you know it, because you can correct for it.
Also compare the AI forecast against a baseline, such as last quarter's revenue or the rep roll-up. If the model does not beat a simple baseline, it adds cost and complexity without value.
Where humans stay in the loop
Forecasts feed hiring plans, budgets, and targets, so a manager should review the number and the largest deals before it is shared. NBA suggestions are low risk when they only appear as a recommendation inside the CRM. Risk rises when a suggestion triggers an action automatically, such as sending an email to a customer. Use an approval step for external actions, as in the approval-gate pattern covered in the human-in-the-loop chapter.
Exercise
A CRM forecasts 500,000 for the quarter using a weighted pipeline. Over the last four quarters it has been 15% to 20% above actual revenue each time. Name two likely causes in the data and one check you would run before trusting the next forecast.
Show answer
Likely causes: deals are left open past their real close date, or lost deals are deleted or left open instead of being marked lost, so the model sees too many wins; stage-based probabilities may also be too high for the current sales process. A useful check is to compare predicted win probabilities with actual win rates on past closed deals (calibration), and to compare the forecast with a simple baseline such as the rep roll-up. A consistent 15% to 20% overshoot also shows bias, which you can correct for while you fix the data.
Exercise
In the next-best-action sketch, why do the eligibility rules run before the ranking instead of after it?
Show answer
Rules remove actions that must never be suggested, such as emailing a contact who opted out or booking a demo that is already scheduled. Running them first means a ranking error or a high uplift number cannot put a forbidden or pointless action at the top. It also means the ranked list contains only actions the rep can actually take.