Development of an AI deal forecasting system for the sales pipeline

Pipeline forecasts diverge from actuals—and it is difficult to plan revenue and team workload based on them. We develop deal forecasting models turnkey: from data analysis to handing over the guidelines to your team. Forecast accuracy grows, and deal decisions rely on calculation rather than gut feeling.
Frequently Asked Questions

Why deal forecasting diverges from actuals

CRM stages are closed manually: the manager decides when a deal moves from "negotiations" to "terms approval".

One considers a sent proposal a sign of progress, another considers an approved budget, a third interprets qualification differently and keeps the stage open for reporting purposes.

Deal forecasting in such a pipeline relies not on data but on the optimism of a particular person, and the gap between plan and actuals widens by the end of the quarter.

The second reason is data quality in the pipeline. The signals used to calculate probability grow stale: the last touch is dated a month earlier, the "reason for loss" field is empty, some agreements live only in correspondence and never make it into the log.

Even in a carefully filled out Salesforce history, there are not enough links between activities and stages, so the model reproduces the sales forecasting error rather than correcting it.

The cost of the error is measured in decisions, not percentages.

The department plans hiring and engineer workload based on an inflated amount, discounts are given in the last week of the quarter to hit the plan, and weak deals survive to the finish instead of being replaced early.

Three causes of forecast failure — manual stages, stale signals, and inconsistent qualification — add up to one effect: let's break down how this is addressed.

What changes after implementing the model into the pipeline

After the model is implemented, the pipeline stops being a set of statuses that a manager interprets manually: the forecast for each deal updates along with its activity — a call, an email, a change in amount or deadline.

The share of accurate forecasts by stage grows from 55% to 78%, and the gap between expected and actual revenue is visible 3-4 weeks before the end of the period, not on reporting day.

Accuracy by pipeline stages

The model calculates the probability of closing separately for each stage: at early stages it relies on the lead source and the history of similar deals; at later stages, on participant activity and how recently the last contact occurred.

The forecast at qualification is refined within ±10%, at contract approval — ±4%. Calibration is recalculated on closed deals: a 70% probability means that approximately 7 out of 10 deals close, and this can be relied upon in planning.

Less manual work for the manager

Reconciliation of the forecast with the accounting system, exports to spreadsheets, and aggregation by managers are replaced by a single updatable view: discrepancies are highlighted automatically.

Preparing the forecast takes 20-30 minutes instead of several hours a week — time goes to analyzing deviations, not arithmetic.

Pipeline transparency provides early risk warning: a deal with declining activity or a shifted deadline is flagged 2-3 weeks before the manager notices it.

Each model update is versioned in MLflow, so the forecast is reproducible and explainable — you can see which features influenced the estimate and by how much.

Comparison of approaches: rules, statistics, model

The choice of approach is determined not by the complexity of the method but by data maturity: how many closed deals are in the history, whether pipeline stages are stable, and whether loss reasons are recorded.

On a short history, scoring rules work more accurately, while a trainable sales model wins when there are enough examples and outcome labeling is consistent across all managers.

Option When it fits Limitations
Hard "if — then" rules Unified process, little data, forecast needed immediately Rewritten with every pipeline change, share of manual exceptions grows
Weighted scoring Signals are consistent, manager expertise can be formalized Weights are set manually and shift when the market or team composition changes
Statistical estimation by stages Several hundred deals, pipeline stages are stable Captures linear relationships, sensitive to missing values in deal fields
Trainable sales model Thousands of deals, stages and outcomes are recorded consistently Requires data quality control, regular retraining, and protection against overfitting on rare segments

When there is little history but a forecast is needed

We start with weighted scoring and stage statistics — they are transparent and produce an initial forecast quickly. In parallel, we set up recording of loss reasons and required deal fields: without this, a trainable model will not collect features.

We move to the model when enough closed deals have accumulated and the accuracy of the rules has stopped growing — then the options are compared by actual results, not expectations.

Implementation stages: from data audit to handover

Deal forecasting more often runs into not the algorithm but the quality of exports from the sales system: missed stage transitions, manual edits to close dates, deals without an owner.

That is why we proceed sequentially — from data audit to solution handover, with a readiness criterion at each step.

Export audit and target metric

  1. Data audit: we review history over several full sales cycles, look for missing field values, duplicates, and manually shifted dates. The output is a list of fields that can be trusted and what will have to be reconstructed from indirect signals.
  2. Target metric: we define exactly what we are forecasting — the probability of closing on time or hitting the period plan. The metric is determined before training, otherwise there will be nothing to validate the model against.
  3. Feature preparation: from stages, manager activity, pause durations, and client profile, we build features as of the forecast moment — without data from the future, otherwise quality on history will be overstated.

Validation on historical periods

  • Model validation: we train on earlier periods and validate on later ones — this reproduces the real mode when a decision is made based on incomplete data from an open deal.
  • Comparison with current practice: we compare the forecast against the sales manager's estimates and the baseline "average conversion across all deals", and review hits and errors on large deals.
  • Solution handover: we provide data preparation, the trained model, the retraining procedure, and the reporting dashboard, train your team, and stay in touch during the first forecasts.

Implementation artifacts: schema, model, procedure

The value of implementing deal forecasting is not in the model itself but in what remains with the client's team after launch. We hand over a package of artifacts that allows the system to be developed in-house or handed to another contractor without losing context.

Data schema and features

  • Source map: which pipeline fields participate in the calculation, who owns each one, and how often it is updated.
  • Data mart schema for training and calculation: tables, relationships, rules for deal deduplication and missing value handling.
  • Feature catalog: what each one means, how it is calculated, and what contribution it makes to the forecast.
  • Labeling rules: how the deal outcome is recorded, what horizon is considered the target, and what to do with stalled deals.
  • Control set of deals with known outcomes — a benchmark for validation after changes in source systems.

Retraining and monitoring procedure

  • Retraining triggers: calendar cycle, quality drop, change in pipeline stages or profile.
  • Workflow: sample preparation, training, comparison with the current model on a holdout period, decision to roll out.
  • Quality monitoring: forecast vs. actual discrepancy by cohorts, false positive rate, feature drift.
  • Thresholds and owners: at what deviation rebuilding is triggered and who approves the release.
  • Rollback and documentation: the previous version is returned to calculation within one cycle, and the model's purpose, feature set, and change log are described in text.

Case study: deal forecasting became more accurate

A sales department of 20 managers forecast the month by stage weight in the Bitrix24 pipeline: a deal at the contract approval stage was considered closed with 70% probability.

Dates shifted, and the weight reflected neither client activity nor the history of similar deals — the plan diverged from actuals by almost a factor of two, and the shortfall was discovered in the last week of the month.

Starting point and constraints

The first measurement on three months of history gave 54% hits, and for large deals the error reached 38% of the amount.

Collecting the data was not easy: events were written to the log but were not stored in a form suitable for training, and the timeline was reconstructed from correspondence, calls, and stage transitions.

A separate constraint turned out to be human behavior: managers perceived the closing probability as a reporting number and understated it.

We removed manual input from the calculation — features are calculated from facts: touch frequency, client responses, speed of passing stages, and the composition of participants on their side.

Results in numbers

Seven weeks after the start, two of which went to aligning features with the department, the model produced a forecast for each deal and for the month as a whole.

Accuracy on a one-month horizon grew from 54% to 87%, the average error on deal amount — from 38% to 11%, and the plan vs. actual discrepancy decreased from 2.3x to 1.1x.

The department's routine also changed: forecast reconciliation, which took the manager about six hours a week, now fits into forty minutes. The model is retrained on closed deals monthly, and new features are added without rebuilding the entire system.

How does the model differ from a pipeline report?

A pipeline report shows what has already happened: how many deals passed each stage, what the conversion was for the period, and where the most is lost. It is built on closed deals and is therefore stable — the numbers do not change retroactively.

But it has no answer to the question a manager needs every day: with what probability will what is currently in progress close?

The deal forecasting model solves the inverse problem — it estimates the future from the current state of each open deal.

Training is done on history, while features describe today: the pace of stage progression, the composition of participants on the client side, regularity of communication, pauses, and changes in the owner.

Model vs. rules

A rule like "stage × average conversion" assigns the same estimate to all deals at one stage — and that is where the entire difference in approaches is lost.

The model weighs dozens of signals simultaneously, so two deals in the same column with different dynamics receive different probabilities. This is the boundary: a report describes a class, a model describes a specific deal.

Criterion Pipeline report Forecasting model
Subject of assessment Completed deals Open deals
Horizon Past period Coming weeks and months
Logic Rule by stage Weighting of features
Reaction to changes After deal closure The next day after activity
Interpretability of estimate Aggregate without cause Breakdown of feature contributions

Interpretability of the estimate is a mandatory condition; otherwise the forecast cannot be managed. For each deal, you can see which features raised the probability and which pulled it down: a contact who went silent, a missed meeting, a single participant on the client side. The manager receives not an abstract number but a list of reasons they can act on.

The report is not canceled: it remains the source of fact and serves as quality control for the model — forecasts are regularly compared with how deals actually ended. The model prioritizes attention, the report confirms that the priority was set correctly.

Technical questions asked before the start

Before the start, the same doubts come up: what to hand over regarding data, whether the accumulated deal history is enough, what happens when the pipeline is restructured, and who owns model quality after launch.

Below are brief answers to each point; they then become part of the project documentation procedure.

Do we need to transfer clients' personal data?

No. The model works on deal features: stage, time in stage, number and type of touches, channel, and deal outcomes in the segment. Identifiers are anonymized at the input; a surrogate key goes into the sample.

Under strict requirements, we deploy processing in your environment — data does not leave the perimeter.

Our deal history is short — will there be enough data?

Volume is not the only source of signal. Some patterns are taken from segment statistics: how similar deals behave by size, channel, and client type.

We build the first version on transparent rules and stage transition statistics, and add more complex dependencies as closed deals accumulate.

What happens if we change the pipeline stages?

The model relies not on the stage name but on its position and features of transition between them. During restructuring, we remap the correspondence between old and new stages and retrain the model — this is a planned task, not an emergency. We keep the forecast history to compare quality before and after.

Who is responsible for the model after launch?

Support is included in the work. We monitor the gap between forecast and actual outcomes, the distribution of features, and the share of transitions between stages; metrics and degradation alerts are on the monitoring dashboard. We document the retraining procedure so your team can verify the forecast hands-on.

Let's discuss the task and come back with an implementation plan

To come back with a task estimate and implementation plan, we do not need access to all managers' correspondence — an understanding of the data structure is enough.

An export of closed deals for several periods, a description of pipeline stages and the rules by which a deal is considered won or lost will suffice. This is enough to estimate the scope of work, the feature set, and the time to the first working forecast.

We formulate data requirements ourselves and send them as a list of fields with types and expected completeness.

On your side, we need a person who will confirm the interpretation of these fields and answer domain questions: without this person, any deal forecasting model will inherit labeling errors rather than sales logic.

What will be needed to start the project:

  • export of deal history for several periods: creation date, stages passed, outcome, loss reason;
  • description of pipeline stages and transition rules between them, including manual status edits;
  • list of fields filled in manually and fields coming from external systems;
  • access to the environment where the solution will run: private environment or cloud — at your discretion;
  • data owner on the client side: approves field interpretation and accepts the result;
  • success criteria in measurable form: share of accurate forecasts, horizon, acceptable missing rate.

Describe the task — pipeline size, current method of deal evaluation, and exactly what you want to predict. We will come back with an estimate, an implementation plan, and a timeline to the first forecast on your data.

AI Development Areas

Latest works

  • B2B ADVANCE company website development
    B2B ADVANCE company website development
    1543
  • Development of a web application for FEEDME
    Development of a web application for FEEDME
    1394
  • Website development for BELFINGROUP
    Website development for BELFINGROUP
    1081
  • Development of an online store for the company FURNORO
    Development of an online store for the company FURNORO
    1369
  • B2B Advance company logo design
    B2B Advance company logo design
    816
  • Development of a web application for Enviok
    Development of a web application for Enviok
    1142