Supercharge your Automated Business Processes with Einstein Discovery

Businesses have evolved to a point where their processes could be condensed to a precise operational flow. To automate these flows and processes, Salesforce offers Lightning Flows and Process Automation Tools.

Introducing Predict Function in the Winter ’21 Release

The All-New Predict Function!

In the Winter ’21 Release, we made the new Predict Function Generally Available! With this all-new Predict Function, one can embed predictive intelligence into the Business Process Automation declaratively!

What is Einstein Discovery?

Einstein Discovery allows users to understand and analyze their data through clicks. From a dataset, a user can create a Story, which allows the user to understand their data through statistical analysis combined with detailed explanations. A Story with Predictive Analysis creates a Machine Learning model with the story. Users can easily deploy this model to enable their Salesforce organization with AI-powered predictions. The model could be used for predictions across Salesforce, either as predictions on record pages or using the amazing Prediction Service to take these predictions elsewhere. Through the seamless process of understanding data, the robust pipeline to deploy Machine Learning Models, and have it be visible, actionable Einstein Discovery can add immense value to any organization.

Where can I use the Einstein Discovery Predictions?

The predictions are currently available across multiple Products in Salesforce.

All the products listed above are GA and can be used with EA Plus License.

Where can I use the Predict Function?

The new Predict Function can be used in the following Products:

  • Validation Rules
  • Screen, Headless, and Invocable Flows
  • Workflows + Process Builders
  • Approval Processes
  • Predefined Field Values
  • Field Update Actions
  • Default Values

How does it work?

Einstein Discovery Prediction requires two main components to calculate a prediction, a Model, and an Input row. In this case, Predict Function will take in the following inputs:

  1. Input Rows — Input Row to get the Prediction. [Record Id OR Key/Value Pairs]
PREDICT(PredDefId, [recordId] | [field, value, ...])PredDefId   --> Required --> Prediction Definition Id
recordId --> Optional --> Salesforce Record Id
field,value --> Optional --> Field Value Pairs.
====================================================================
Valid Pairs:
PredDefId + recordId
PredDefId + [field,value, ..]

Sample Usage of the Predict Function:

Here are a couple of instances of the usage of the Predict Function.

PREDICT( $SmartDataDiscovery.PredictionDefinitions.Predicted_Likelihood_to_Close.Id , Id) > 80
Approval Process with the Predict Function on a Step
PREDICT( $SmartDataDiscovery.PredictionDefinitions.Predicted_Likelihood_to_Close.Id , [Opportunity].Id) < 60
Process Builder with Predict Function as a Criteria

<build>Software</build>

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store