Predictive lead scoring

How to Build a Predictive Lead Scoring Model From CRM History

When engagement rules are enough, when a predictive lead scoring model earns its place, and how to build one from CRM history without leakage.

On this page

Most B2B teams should keep scoring leads with engagement and fit rules until their CRM holds enough conversions to teach a model something the rules cannot see. When that point arrives, nearly all of the risk sits in the training table. In its Winter '27 setup guide, last updated July 22, 2026, Salesforce asks for at least 1,000 leads created in the last 200 days, with at least 120 of them converted to an account and contact, and applies that bar to every lead segment. If you score all leads together and fall short, Einstein uses a global model built on anonymous data from many Salesforce customers. For a model built from your own CRM history, our method freezes every feature at lead creation, tests on a later period than it trains on, and checks that leads scored at 20% convert about one time in five.

Engagement scores and predictive scores answer different questions

The first best practice in choosing a lead scoring model, predictive conversion scoring or engagement scoring, is to be clear about what each number claims. HubSpot describes engagement scores as qualifying records "based on their actions and interactions, such as visiting your website, subscribing to your newsletter, clicking a CTA, or opening a marketing email," and fit scores as qualifying them on property values such as job title, company size or annual revenue. People set the points. Score decay can shrink an event's points every 1, 3, 6 or 12 months, and thresholds sort records into High, Medium and Low, or A1 to C3 for combined scores. What comes out is a ranking someone designed, and it is good at showing who is active right now.

A predictive score makes a stronger claim. HubSpot's Likelihood to close property, available on Marketing Hub Enterprise and Sales Hub Enterprise, is "a score that represents the percentage probability of a contact closing as a customer within the next 90 days based on certain contact properties and activities." HubSpot also says it uses "blackbox machine learning," so you cannot see how each input moves a contact's score. Its AI-built scores, on Marketing Hub Enterprise, sit between the two: HubSpot evaluates the contacts that made a lifecycle stage change you pick, within a timeframe you pick, and returns recommended criteria and points that you then edit.

Rules are enough when a segment has too few conversions to learn from, when last year's conversions describe a sales motion you no longer run (new pricing, a new ideal customer), or when the question sales keeps asking is about timing. A model earns its place once you clear the volume bar, hold one conversion definition steady across the whole history, and find that leads with similar rule scores convert at very different rates.

How much CRM history a model needs

Salesforce publishes the clearest minimum we found. Its guide sets these conditions for Einstein Lead Scoring:

  • At least 1,000 leads created in the last 200 days.
  • Of those leads, at least 120 converted to an account and contact.
  • Optionally, of the leads created in the last 6 months (180 days), at least 120 converted with an opportunity created at conversion time.

The requirements apply to every segment you define, including the All Leads (Default) segment. Einstein reanalyzes leads approximately every 10 days, and the feature comes with Sales Cloud Einstein, which is available in Performance and Unlimited Editions and for an extra cost in Enterprise Edition.

HubSpot sets a far lower bar for its AI-built scores: a minimum sample of 50 contacts, 25 converted and 25 non-converted, to generate a score. We found no minimum count in its article on Likelihood to close. For models we build outside either platform, we treat 120 conversions per segment as the floor, the stricter of the two published vendor minimums we found. A segment below it gets merged with a neighbor or stays on rules.

The setup methodology, in five steps

A predictive lead scoring model setup methodology that holds up in front of a sales team has five steps, and their order matters.

  1. Define the outcome and its window. For example, an opportunity created within 90 days of lead creation, which matches the horizon HubSpot uses. Keep one definition across the whole history, or the model learns your process changes.
  2. Fix a scoring moment and freeze features there. Lead creation is the cleanest choice. Rebuild each field as it stood at that moment from field history and activity timestamps, because a fresh export shows the latest value.
  3. Remove fields that record the outcome. Salesforce's guide gives "a field that indicates the reason a lead didn't convert" as an example of a field to exclude from Einstein's model, and says excluding fields like it yields more accurate lead scores. Lead status, lifecycle stage and disqualification reasons belong in the same pile.
  4. Split by time. Train on older cohorts, test on the newest cohort whose outcome windows have closed, and leave a gap between them equal to the outcome window.
  5. Calibrate, then compare with the rules. Check predicted against actual conversion by band, and count the conversions each method puts in its top slice.

Leakage, time-based validation and calibration

Conversion modeling on historical CRM data for B2B predictive lead scoring goes wrong most quietly through feature leakage, and time-based validation with a calibration check is how you catch it. scikit-learn defines the problem in one line: "Data leakage occurs when information that would not be available at prediction time is used when building the model."

In a CRM the trap is current-state data. HubSpot lists inputs to its own predictive model such as the number of logged notes, days since the contact was last contacted and days since the contact last booked a meeting. On an open contact those values exist at prediction time, so they are fair inputs to a live score. In a history export, the same fields on a closed lead hold every note and meeting logged after the lead arrived, including the ones reps logged because the lead already looked promising.

FieldAt lead creationIn a fresh exportTreatment
Lead source, first formKnownSameUse
Job title, company sizeKnown if enriched at captureMay be re-enriched laterUse the value stamped at creation
Form submissions, page viewsCount up to creationCount to dateCount only events up to creation
Logged notes, meetings bookedZeroFull sales historyLeave out
Lead status, lifecycle stageNewConverted or disqualifiedLeave out
Reason not convertedBlankFilled for lossesLeave out

Random splits mislead on this data for the reason scikit-learn gives for time-ordered samples. KFold and ShuffleSplit "assume the samples are independent and identically distributed," and when samples are ordered in time, shuffling "will likely lead to a model that is overfit and an inflated validation score." Leads from the same webinar, territory or pricing period resemble each other, so a random test set fills up with near-copies of training rows. The outcome-window gap keeps the backtest to outcomes you would have known on deployment day. Fit every preprocessing step in a pipeline on the training cohort alone, following the scikit-learn rule to never call fit on the test data.

A model can rank leads in the right order and still overstate their odds, which matters once sales reads the score as a probability. In the words of scikit-learn, a well calibrated binary classifier "should classify the samples such that among the samples to which it gave a predict_proba value close to, say, 0.8, approximately 80% actually belong to the positive class." The check is a reliability diagram: bin test leads by predicted probability and compare each bin's mean prediction with the share that converted. Fit any calibrator on leads the classifier never trained on, because reusing training data produces "a biased calibrator that maps to probabilities closer to 0 and 1 than it should." scikit-learn describes sigmoid calibration as a strictly monotonic transformation that keeps the ranking, and says isotonic performs as well as or better than sigmoid "when there is enough data (greater than ~ 1000 samples) to avoid overfitting." Read the curve itself, since a lower Brier loss "does not necessarily mean a better calibrated model."

A worked example (hypothetical)

Every figure in this example is hypothetical, built to show the method. A B2B software company scores leads for one outcome, an opportunity created within 90 days of lead creation, and simulates deploying the model on April 1, 2026.

  • Training cohort: leads created January to October 2025, 3,400 leads with 215 conversions.
  • Calibration cohort: leads created November and December 2025, 700 leads with 45 conversions, held out from training.
  • Gap: leads created January to March 2026, left out because their 90-day windows were still open on April 1.
  • Test cohort: leads created April to July 2026, 2,300 leads with 129 conversions, every window closed by the end of October.
Predicted bandTest leadsMean predictedConvertedActual rate
Under 5%1,4002.1%342.4%
5–10%5207.2%366.9%
10–20%26014.0%3212.3%
20% and up12031.5%2722.5%
All test leads2,3006.1%1295.6%

The bottom three bands land within two points of their predictions. The top band promises 31.5% and delivers 22.5%; with only 27 conversions in it, a few leads either way move that rate by several points, so the team reads it as a direction. The fix is a sigmoid calibrator fitted on the 700-lead calibration cohort, below the roughly 1,000 samples scikit-learn gives for isotonic, and the ranking stays put: the 380 leads in the top two bands, 16.5% of the test cohort, hold 59 of the 129 conversions, about 46%. The deciding check comes last: run the current engagement score over the same 2,300 leads and count the conversions in its top 380. If the rules already catch a similar number, keep the rules.

Keep the rules for timing

A probability frozen at lead creation describes how good a lead looked when it arrived. The buyer who returns to your pricing page six weeks later shows up in engagement scoring and decay, the work the rules already do inside your marketing automation platform. We route on the model's band and time outreach on engagement, then rerun the backtest each quarter on the newest mature cohort and recalibrate when the top band drifts from its prediction. If an AI agent routes leads on the score, the review and audit rules in our governance operating model cover the score too. Our data analytics and agentic AI automation teams take on builds like this one, and the AI ROI calculator puts a payback period on the build cost.

Sources

  • Salesforce: Set Up Sales Cloud Einstein, Winter '27 (last updated July 22, 2026)
  • HubSpot: Overview of the lead scoring tool (last updated November 3, 2026)
  • HubSpot: Determine likelihood to close with predictive lead scoring (last updated January 11, 2026)
  • HubSpot: Build contact lead scores with AI (last updated August 14, 2026)
  • scikit-learn: Common pitfalls and recommended practices
  • scikit-learn: Cross-validation, evaluating estimator performance
  • scikit-learn: Probability calibration

Frequently asked questions

What is the difference between predictive lead scoring and engagement scoring?
Engagement scoring adds points that people assign for actions such as site visits, form fills and email clicks, often with decay so older activity counts for less. Predictive scoring estimates a probability from historical outcomes. HubSpot's Likelihood to close, for example, is the percentage probability that a contact closes as a customer within the next 90 days. Engagement tells you who is active this week, and a predictive score estimates who is likely to convert.
How many leads do you need for a predictive lead scoring model?
Salesforce asks for at least 1,000 leads created in the last 200 days, with at least 120 of them converted to an account and contact, in each lead segment before Einstein Lead Scoring builds a model from your own data. HubSpot's AI-built scores need a minimum sample of 50 contacts, 25 converted and 25 non-converted, and we found no published minimum for its Likelihood to close score. For a model we build ourselves, we treat 120 conversions per segment as the floor.
What is feature leakage in lead scoring?
Leakage happens when a model trains on information that would not exist at the moment the score is used. In CRM history the usual culprits are fields whose current value reflects what happened after the lead arrived: lead status, lifecycle stage, logged notes, meetings booked and the reason a lead did not convert. Rebuild every feature as it stood at lead creation, or leave it out.
Why test a lead scoring model on a later time period?
Leads created close together share campaigns, territories and pricing, so a random split puts near-copies of training rows into the test set and inflates the result. Training on older cohorts and testing on the newest cohort whose outcome windows have closed, with a gap the length of that window between them, mirrors what the model would have known on the day it went live.
How do you check whether lead scores are calibrated?
Group test-period leads into bands by predicted probability and compare each band's mean prediction with its actual conversion rate. Leads scored around 20% should convert about one time in five. When a band drifts, fit a calibrator on leads the model never trained on. With fewer than about 1,000 samples, scikit-learn's guidance favors sigmoid calibration over isotonic.

Free tools for this topic

CALCULATORROAS & Break-Even CalculatorKnow the ROAS you actually need before you scale.FREE TOOLCompetitor Ad ExplorerSee every ad your competitor is running right now.CALCULATORMedia Mix PlannerSplit any budget across channels with live projections.

Keep reading

GlossaryWhat Is Marketing Automation in the AI Era?Read →AI & MLThe Governance Operating Model That Lets Marketing Agents Ship Work AloneRead →GlossaryWhat Is Agentic AI? From Chatbots to Autonomous WorkflowsRead →
CATALIST NEWSLETTER

Monthly dose of growth marketing.

Get marketing tips, narratives, guides, and playbooks delivered to your inbox.

Protected by reCAPTCHA — Google's Privacy Policy and Terms of Service apply.