---
schema_version: "1"
id: f4272892d25e5b1099d627794d45758cc2432614bd1181740a6de2d1e508fd9c
title: Get Predictions on Lightning Pages
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/analytics/264-0-0/bi_edd_einstein_predictions_lightning.md
canonical_url: https://help.salesforce.com/s/articleView?id=analytics.bi_edd_einstein_predictions_lightning.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 6348b58de7546e51ddadb2caea46c0bd89388d5a5522c3e52a48509a8eb0f9b6
description: After a model is deployed, you can use it to display predictions and improvements for a standard or custom object on a Lightning Experience record page.
products:
  - CRM Analytics
  - Cross Cloud
release: "264"
---
# Get Predictions on Lightning Pages

After a model is deployed, you can use it to display predictions and improvements for a standard or custom object on a Lightning Experience record page.

### Required Editions

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-analytics-bi-264-0-0-production-enus/ec791473-f5b4-4f64-a656-9104f455d966/images/icon_note.png)

Note Einstein Discovery stories are now models. We wish we could snap our fingers to update the name everywhere, but you can expect to see the previous name in a few places until we replace it.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d117132e39">User Permissions
              Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e39 ">To add the Einstein Predictions component to a Lightning page</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e39 ">Customize Application</td>

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e39 ">To view predictions, improvements, and related details on a page</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e39 ">View Einstein Discovery Recommendations (see <a href="https://help.salesforce.com/s/articleView?id=analytics.bi_edd_setup_assign_permsets.htm&amp;release=264.0.0&amp;type=5" title="After you have defined permission sets for Einstein Discovery users, you can assign the appropriate permission sets to individual users or groups of users. You can assign multiple permission sets to an individual user account.">Assign Einstein Discovery Permission Sets to Users</a>)</td>

          </tr>
        </tbody>
      </table>

After a model is deployed, you can use it to display predictions and improvements for a standard or custom object on a Lightning Experience record page.

1. In the Lightning App Builder, open the record page to which you want to add a prediction.
2. Drop the Einstein Predictions component where you want it on the Lightning record page.
3. In the component configuration panel, use the **Prediction** lookup to find and select the prediction you want to embed in the page. The Lightning App Builder displays a list of deployed models that match the object associated with this Lightning record page.
4. Optionally, configure other settings as well.
    
    <table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
            <colgroup>
              <col style="width:27.068437180796735%">
              <col style="width:72.93156281920328%">
            </colgroup>
            <thead class="slds-text-title_caps ">
              <tr class="">
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d117132e120">Setting</th>
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d117132e123">Description</th>
              </tr>
            </thead>
            <tbody>
              <tr class="">
                <td data-label="Setting" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e120 ">
                  <strong class="uicontrol">Prediction</strong>
                </td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e123 ">Search for a list of any predictions (deployed models) to which you have
                  access.</td>

              </tr>
              <tr class="">
                <td data-label="Setting" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e120 ">
                  <strong class="uicontrol">Show Prediction Label</strong>
                </td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e123 ">Select this check box to show the prediction label.</td>

              </tr>
              <tr class="">
                <td data-label="Setting" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e120 ">
                  <strong class="uicontrol">Title</strong>
                </td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e123 ">Descriptive label for the prediction.</td>

              </tr>
              <tr class="">
                <td data-label="Setting" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e120 ">
                  <strong class="uicontrol">Show title</strong>
                </td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e123 ">Select this checkbox to show the title.</td>

              </tr>
              <tr class="">
                <td data-label="Setting" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e120 ">
                  <strong class="uicontrol">Prediction score unit</strong>
                </td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e123 ">
                  <p>Unit of measure for the prediction. Examples:</p>
                  <ul>
                    <li>Currency for money-based predictions</li>
                    <li>% for probability-based predictions</li>
                    <li>time interval for time-based predictions (hours, days, weeks, and so
                      on)</li>
                  </ul>
                </td>

              </tr>
              <tr class="">
                <td data-label="Setting" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e120 ">
                  <strong class="uicontrol">Unit precedes score</strong>
                </td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e123 ">Select this checkbox to show units preceding the prediction, such as
                  currency symbols. By default, units follow the prediction.</td>

              </tr>
              <tr class="">
                <td data-label="Setting" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e120 ">
                  <strong class="uicontrol">Positive prediction label</strong>
                </td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e123 ">Label to display when the prediction is higher than the threshold in a
                  binary classification model. Examples: Win, Retain, Success, and so on.</td>

              </tr>
              <tr class="">
                <td data-label="Setting" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e120 ">
                  <strong class="uicontrol">Negative prediction label</strong>
                </td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e123 ">Label to display when the prediction is lower than the threshold in a
                  binary classification model. Examples: Loss, Churn, Fail, and so on.</td>

              </tr>
              <tr class="">
                <td data-label="Setting" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e120 ">
                  <strong class="uicontrol">Show top predictors</strong>
                </td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e123 ">Select this checkbox to show the predictors with the highest impact on the
                  prediction.</td>

              </tr>
              <tr class="">
                <td data-label="Setting" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e120 ">
                  <strong class="uicontrol">Collapse details</strong>
                </td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e123 ">Select this checkbox to show top predictors but hide other details.</td>

              </tr>
              <tr class="">
                <td data-label="Setting" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e120 ">
                  <strong class="uicontrol">Show ranked probabilities</strong>
                </td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e123 ">Select this checkbox to show ranked probabilities for outcome values. Applies only to predictions associated with multiclass classification models.</td>

              </tr>
              <tr class="">
                <td data-label="Setting" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e120 ">
                  <strong class="uicontrol">Include link to model card</strong>
                </td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e123 ">Select this checkbox to show the <strong class="uicontrol">Learn about this
                    model</strong> link that users can click to see the model card associated
                  with this prediction. To learn more, see <a href="https://help.salesforce.com/s/articleView?id=analytics.bi_edd_model_manager_model_card.htm&amp;release=264.0.0&amp;type=5" title="Model cards help you document and communicate important usage information about your predictions. A model card shows statistics associated with the data that’s used to train the model. It can also show any optional explanations you provide about the prediction’s intended use, design assumptions, target audience, capabilities and limitations, and other relevant information. Disclosing these details helps users to understand predictions and differentiate among multiple predictions. Then they can make ethical, informed decisions about whether a prediction suits their use case.">Configure the Model Card for a Prediction Definition</a>.</td>

              </tr>
              <tr class="">
                <td data-label="Setting" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e120 ">
                  <strong class="uicontrol">Show improvements</strong>
                </td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e123 ">Select this checkbox to show Einstein Discovery suggestions on how to
                  improve the predicted outcome. Applies only to predictions associated with
                  binary classification or numeric models.</td>

              </tr>
              <tr class="">
                <td data-label="Setting" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e120 ">
                  <strong class="uicontrol">Number of improvements to show</strong>
                </td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e123 ">Set the maximum number of improvements returned on the prediction card.
                  Applies only to predictions associated with binary classification or numeric
                  models.</td>

              </tr>
              <tr class="">
                <td data-label="Setting" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e120 ">
                  <strong class="uicontrol">Improvement threshold percentage</strong>
                </td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e123 ">Specify a number to display only improvements that impact the predicted
                  outcome by this percentage or higher. Applies only to predictions associated
                  with binary classification or numeric models.</td>

              </tr>
              <tr class="">
                <td data-label="Setting" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e120 ">
                  <strong class="uicontrol">Show values for predictors</strong>
                </td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e123 ">Select this checkbox to show the impact value next to predictors and
                  improvements.</td>

              </tr>
              <tr class="">
                <td data-label="Setting" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e120 ">
                  <strong class="uicontrol">Show prediction warnings</strong>
                </td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e123 ">
                  <p>Select this checkbox to show user warnings, such as:</p>
                  <ul>
                    <li>missing fields that are required for the model</li>
                    <li>field values that are outside of the valid range used to build the
                      predictive model</li>
                  </ul>
                </td>

              </tr>
              <tr class="">
                <td data-label="Setting" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e120 ">
                  <strong class="uicontrol">Calculate prediction as a date</strong>
                </td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e123 ">Select this checkbox to show time-based predictions as based on a relative
                  start date plus an offset value (the original prediction result).</td>

              </tr>
              <tr class="">
                <td data-label="Setting" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e120 ">
                  <strong class="uicontrol">Start calculating date prediction from</strong>
                </td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e123 ">Select the date field to use for when to start calculating the predicted date.</td>

              </tr>
              <tr class="">
                <td data-label="Setting" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e120 ">
                  <strong class="uicontrol">Time period</strong>
                </td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e123 ">
                  <p>Select the unit for the offset value (original prediction result) used to
                    calculate the predicted date.</p>
                  <ul>
                    <li><strong class="uicontrol">Minutes</strong></li>
                    <li><strong class="uicontrol">Hours</strong></li>
                    <li><strong class="uicontrol">Days</strong></li>
                    <li><strong class="uicontrol">Weeks</strong></li>
                    <li><strong class="uicontrol">Months</strong></li>
                  </ul>
                </td>

              </tr>
              <tr class="">
                <td data-label="Setting" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e120 ">
                  <strong class="uicontrol">Predicted date format</strong>
                </td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e123 ">
                  <p>Select how to display the predicted date.</p>
                  <ul>
                    <li><strong class="uicontrol">Time Remaining</strong> formats the prediction according to
                      the selected <strong class="uicontrol">Time period</strong>.</li>
                    <li><strong class="uicontrol">Specific Date</strong> formats the prediction as a date
                      according to the logged-in user’s locale settings.</li>
                  </ul>
                </td>

              </tr>
              <tr class="">
                <td data-label="Setting" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e120 ">
                  <strong class="uicontrol">Show prediction history starting from</strong>
                </td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e123 ">
                  <p>Select a reference point to display score history:</p>
                  <ul>
                    <li><strong class="uicontrol">Last change</strong></li>
                    <li><strong class="uicontrol">Last week</strong></li>
                  </ul>
                </td>

              </tr>
              <tr class="">
                <td data-label="Setting" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e120 ">
                  <strong class="uicontrol">Set Component Visibility</strong>
                </td>

                <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d117132e123 ">Configure any component visibility rules, if needed, by defining filter
                  criteria for a device, record field, or other field.</td>

              </tr>
            </tbody>
          </table>

When a user views this record page, predictions are updated in real time. No writeback to Salesforce is needed.

![Example Einstein Predictions component for a Lightning page](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-analytics-bi-264-0-0-production-enus/ec791473-f5b4-4f64-a656-9104f455d966/bi/images/bi/bi_edd_einstein_predictions_lightning.png)

The following example shows the prediction for a multiclass classification model.

![Example Einstein Predictions component for a Lightning page](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-analytics-bi-264-0-0-production-enus/ec791473-f5b4-4f64-a656-9104f455d966/bi/images/bi/bi_edd_einstein_predictions_lightning_multiclass.png)