---
schema_version: "1"
id: 2aa0558981e633bfb9bdc50e8b9cb121645c79a7af729745ab28a2cde621fe06
title: On-Demand Predictions
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/analytics/264-0-0/bi_edd_on_demand_predictions.md
canonical_url: https://help.salesforce.com/s/articleView?id=analytics.bi_edd_on_demand_predictions.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 86b58a632af5921a82d5f9959e00ddbe05e2a7ac5889bb94f6a20dfbcb7bf8d8
description: Initiate predictions through Einstein Prediction Service, Lightning Components, Flow Builder, the PREDICT() function, Apex, Slack, or Einstein Discovery in Tableau.
products:
  - CRM Analytics
  - Cross Cloud
release: "264"
---
# On-Demand Predictions

Initiate predictions through Einstein Prediction Service, Lightning Components, Flow Builder, the PREDICT() function, Apex, Slack, or Einstein Discovery in Tableau.

- **[Get Predictions and Improvements with Einstein Prediction Service](https://help.salesforce.com/s/articleView?id=analytics.bi_edd_prediction_service.htm&release=264.0.0&type=5)**  
    The Einstein Prediction Service REST API enables you to programmatically run predictions, manage prediction definitions, and manage models. After deploying models with Einstein Discovery, use the Einstein Prediction Service REST API to embed your predictions into any website or application.
- **[Get Predictions on Lightning Pages](https://help.salesforce.com/s/articleView?id=analytics.bi_edd_einstein_predictions_lightning.htm&release=264.0.0&type=5)**  
    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.
- **[Get Predictions in Flow Builder](https://help.salesforce.com/s/articleView?id=analytics.bi_edd_predict_flow.htm&release=264.0.0&type=5)**  
    Use the Einstein Discovery core action in Flow Builder to get predictions, top predictors, and improvements.
- **[Get Predictions in Process Automation Formulas](https://help.salesforce.com/s/articleView?id=analytics.bi_edd_prediction_process_automation_formula.htm&release=264.0.0&type=5)**  
    Use the Einstein Discovery PREDICT function to get predictions in your process automation formulas. Your automation logic can make decisions based on predicted outcomes from deployed Einstein Discovery predictions. For example, in an approval process, a formula can determine whether a predicted outcome meets a threshold required for automatic approval.
- **[Get Predictions in Apex](https://help.salesforce.com/s/articleView?id=analytics.bi_edd_prediction_apex.htm&release=264.0.0&type=5)**  
    Use the `ConnectApi.SmartDataDiscovery.predict` API to get predictions in your Apex code.
- **[Get Predictions in Tableau](https://help.salesforce.com/s/articleView?id=analytics.bi_edd_tableau.htm&release=264.0.0&type=5)**  
    Einstein Discovery in Tableau provides predictions and improvements for Tableau data in worksheets, calculated fields, and flows.