---
schema_version: "1"
id: b025203a3db6987c58f03a3918cff3d6e85ae0acd4eaec42507f4b14c46a3597
title: Use a Screen Flow to Enrich Records with Predictions
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/data/264-0-0/c360_a_ai_screen_flow_predictions.md
canonical_url: https://help.salesforce.com/s/articleView?id=data.c360_a_ai_screen_flow_predictions.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 87cd0769c60c1369e764c40b1a847575b968475e5fd35f9080043725e0767935
description: Create a screen flow to get records from Salesforce objects and add a prediction to a Lightning page. For example, you can add a lead conversion prediction score to a lead record.
products:
  - Data 360
release: "264"
---
# Use a Screen Flow to Enrich Records with Predictions

Create a screen flow to get records from Salesforce objects and add a prediction to a Lightning page. For example, you can add a lead conversion prediction score to a lead record.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>All Editions</strong> supported by Data 360. See <a href="https://help.salesforce.com/s/articleView?id=data.c360_a_dc_editions.htm&amp;language=en_US" target="_blank">Data 360 edition availability</a>.</td></tr></tbody></table>

<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="d119816e55">USER PERMISSIONS
              NEEDED</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="USER PERMISSIONS NEEDED" class="slds-cell-wrap" style="vertical-align:top;" headers="d119816e55 ">Allow users to manage models in AI Models</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d119816e55 ">Enables you to create, update, and delete models in AI Models.</td>

          </tr>
        </tbody>
      </table> <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="d119816e85">PERMISSION SETS </th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="PERMISSION SETS" class="slds-cell-wrap" style="vertical-align:top;" headers="d119816e85 ">Data Cloud Architect</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d119816e85 ">Admin-level access to all AI Models features, including the ability to create,
              update, delete, and activate models.</td>

          </tr>
          <tr class="">
            <td data-label="PERMISSION SETS" class="slds-cell-wrap" style="vertical-align:top;" headers="d119816e85 ">Data Cloud User</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d119816e85 ">Restricted access to use a model, including getting predictions and
              improvements derived from a model.</td>

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

Before you create a flow, ensure that your predictive model is activated in AI Models (formerly Einstein Studio).

1. From Setup, in the Quick Find box, enter Flows, and then select it.
2. Create a flow from scratch. Flow Builder launches.
3. Create a screen flow.
    
    ![Salesforce Flow screen displaying the screen flow option.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-data-data_cloud-264-0-0-production-enus/f3569962-3c9b-4f83-9d0c-b6a574e785da/data_cloud/images/c360_a_ai_use_screen_flow.png)
4. To get the inputs required to run the model, add the **Get Records** element.
    
    ![A screen flow displaying the Get Records element.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-data-data_cloud-264-0-0-production-enus/f3569962-3c9b-4f83-9d0c-b6a574e785da/data_cloud/images/c360_a_ai_use_screen_flow_get_records.png)
    
    For example, to get leads records.
5. For the data source, add a Salesforce or Data 360 object. Enter a label, API name.
    
    In this case, select the Lead object.
6. (Optional) Filter records based on a condition, field, operator, and value.
    
    ![Screen flow displaying options for filtering records.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-data-data_cloud-264-0-0-production-enus/f3569962-3c9b-4f83-9d0c-b6a574e785da/data_cloud/images/c360_a_ai_use_screen_flow_get_lead_resource.png)
    
    For example, to predict leads by record ID, filter your data by selecting All Conditions Are Met (AND), Field=Id, Operator=Equals, and Value=Resource (a variable named recordid).
7. To use data that resides elsewhere, add another **Get Records** element, and enter the information.
8. Add the **Action** element, and choose the predictive model that you want to use.
    
    ![A screen flow displaying various predictions as actions.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-data-data_cloud-264-0-0-production-enus/f3569962-3c9b-4f83-9d0c-b6a574e785da/data_cloud/images/c360_a_ai_screen_flow_actions.png)
    
    For example, "Predicted Lead Conversion."You can search for your model by its name or location in the Data Cloud action category.
9. Because your model needs inputs to generate predictions, map the relevant fields.
    
    ![A screen flow action displaying input values for a lead conversion prediction.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-data-data_cloud-264-0-0-production-enus/f3569962-3c9b-4f83-9d0c-b6a574e785da/data_cloud/images/c360_a_ai_use_screen_flow_action_inputs.png)
    
    For example, use the fields from the lead object that match your model inputs.
10. After you configure an action, a resource {ActionName.Prediction} is available to use in the flow.
11. To append a prediction score to your record page, add a screen interaction to the flow, and enter a label, API name, and resource.
    
    For example, {!Predicted\_Lead\_Conversion\_Action\_1.Prediction}.
12. Save the flow.
13. Test the flow, and then activate it.
14. To view leads in your org, go to the App Launcher and enter Marketing CRM Classic.
15. Add the screen flow to a record page to show prediction scores on all leads records.
    
    ![A flow component to add your predictions to a record.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-data-data_cloud-264-0-0-production-enus/f3569962-3c9b-4f83-9d0c-b6a574e785da/data_cloud/images/c360_a_ai_use_flow_new_screen.png)
    
    1. Go to Setup, and edit the object in Object Manager.
    2. Use the Lightning Record pages to create a record page.
    3. On the Components tab, search for Flow, and drag the component to your preferred location on the object.
    4. Add the flow that you want to use on your object, and save to display the output from your flow.

#### See Also

- [_Salesforce Help_: Provided Flow Core Actions](https://help.salesforce.com/s/articleView?id=platform.flow_ref_elements_actions_list.htm&type=5&language=en_US)
- [_Salesforce Help_: Flow Types](https://help.salesforce.com/s/articleView?id=platform.flow_concepts_type.htm&type=5&language=en_US)
- [_Trailhead_: Flow Builder Basics](https://trailhead.salesforce.com/content/learn/modules/flow-basics?trail_id=build-flows-with-flow-builder)