Salesforce Dictionary - Free Salesforce GlossarySalesforce Dictionary
Full Einstein Prediction Builder entry
How-to guide

Building a prediction with Einstein Prediction Builder

Building a Prediction Builder model takes 15 to 30 minutes for the configuration plus a few hours for the platform to train and score the model. The output is a deployable prediction admins can reference from Flow, Apex, or Lightning page.

By Dipojjal Chakrabarti · Founder & Editor, Salesforce DictionaryLast updated May 16, 2026

Building a Prediction Builder model takes 15 to 30 minutes for the configuration plus a few hours for the platform to train and score the model. The output is a deployable prediction admins can reference from Flow, Apex, or Lightning page.

  1. Confirm licensing

    Einstein Prediction Builder is included with Service Cloud or Sales Cloud Enterprise. Confirm the org has the relevant license.

  2. Open Einstein Prediction Builder

    Setup, Quick Find Einstein Prediction Builder, click the link. The page lists existing predictions. Click New.

  3. Pick the object and prediction field

    Choose the object (Case, Opportunity, custom object). Choose the field to predict (a checkbox, picklist value, or numeric field).

  4. Define the example set

    Configure which records count as positive examples (Closed Cases with Resolution = Refund) and which should be excluded (test cases).

  5. Set predictors

    Pick which fields the model can use as predictors. Exclude leak variables and any field that should not influence the prediction.

  6. Build and review the model

    Click Build. Wait for the platform to train and score the model. Review the quality score: Insufficient, Acceptable, Good, Excellent.

  7. Deploy the model

    Click Deploy. The prediction becomes a Prediction Definition referenceable from Flow, Apex, and Lightning App Builder.

  8. Surface the prediction on the record page

    Lightning App Builder, edit the record page, drag the Einstein Predictions component, configure the Prediction Definition reference.

Target fieldremember

The checkbox, picklist, or numeric field the model predicts. Binary or regression.

Example setremember

The historical records used as positive examples for training the model.

Predictorsremember

The input fields the model uses to predict the target. Excluded fields are not considered.

Quality scoreremember

Platform-assigned model quality rating: Insufficient Data, Acceptable, Good, Excellent.

Top Reasonsremember

Simple explanation of which variables drive each prediction, shown inline on records.

Refresh cadenceremember

Automatic retraining schedule, default 7 days. Adjustable per prediction.

Gotchas
  • Prediction Builder is single-object only. Multi-object joins require Einstein Discovery instead.
  • Insufficient Data means the org does not have enough historical examples. The platform needs hundreds to thousands of records of each outcome class for a useful model.
  • Leak variables (fields only known after the outcome) produce great-looking models that fail in production. Audit the predictor list before deployment.
  • Bias concerns apply. Fields that proxy for protected characteristics should be excluded unless explicitly justified.
  • The 7-day refresh cadence is automatic. Models retrain whether the admin wants them to or not. Adjust the cadence for predictions where stability matters more than freshness.

See the full Einstein Prediction Builder entry

Einstein Prediction Builder includes the definition, worked example, deep dive, related terms, and a quiz.