Add Case Classification to a Flow

Add the Einstein ApplyCaseClassificationRecommendations action to your flow to apply case classification to predict field values for a case. It takes a Case ID as input and outputs a case SObject with recommendations applied.

Required Editions

View supported editions.
User Permissions Needed
To build and manage Einstein Case Classification and Einstein Case Wrap-Up:

View Setup

AND

Customize Application

AND

Manage Profiles and Permission Sets

AND

Edit on cases OR Modify All Data

In addition to recommendations made on case creation, use a flow to get Einstein field predictions after a case is updated with new details to the Subject or Description. Or use flows to set custom confidence threshholds for Einstein to populate the case with predicted values.

To add Case Classification to a flow requires:

Example record triggered flow with case classification action.

This record-triggered flow uses the ApplyCaseClassificationRecommendations action, then uses an Update Case action to populate the case with the highest confidence predicted values from the SObject. A fault branch guarantees that you keep your case if the action fails and can help you troubleshoot errors. While this example shows a record-triggered flow, you can also use the same process to add case classification to a screen flow.

To add the ApplyCaseClassificationRecommendations action to your flow:

  1. To add an Action element, click Plus sign..
    Add element menu with Action highlighted.
  2. Select Einstein, then ApplyCaseClassificationRecommendations.
    New Apply Case Classification Recommendations Action.
  3. Enter a label and optionally a description. The API name automatically populates.
  4. Under Set Input Values, for Case ID, select the case ID to generate predictions for. The case ID can be the output from a previous step in your flow. This example uses the Record object that triggered the flow and its ID field.
    To route cases based on the predicted values, add the ApplyCaseClassificationRecommendations action before the Route Work action in the flow.
  5. Click Done.
  6. Optionally, to add a fault path, select the ApplyCaseClassificationRecommendations action that you created, and then select Add fault path.
    New action with Add Fault Path highlighted.
  7. Add the action for the flow to take if the action fails in the fault path. To help identify why the fault path was triggered, include information about the case in the fault path message. In the example flow, the case description is updated with the error information.

The ApplyCaseClassificationRecommendations action returns a case SObject with the Einstein recommendations applied, but they still need to be saved. Add an Update Records action to save the updated case to your database. In a screen flow, instead of adding an Update Records action, service reps must review and save Einstein’s recommendations manually.