---
schema_version: "1"
id: 86606bb7872447e4524da7474bd5718e663184ec93705d4bc1dfac977bc29c40
title: Add Case Classification to a Flow
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/service/264-0-0/cc_service_add_to_flow.md
canonical_url: https://help.salesforce.com/s/articleView?id=service.cc_service_add_to_flow.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 1a8ddbdf0838983713e1bdce4d44502da1d439f2fc4dfd8ec8172f8704a015c6
description: 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.
products:
  - Service Cloud
  - Service Intelligence
release: "264"
---
# 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

<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;"><a href="https://help.salesforce.com/s/articleView?id=service.einstein_service_intro.htm&amp;language=en_US" target="_blank">View supported editions</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="d90507e56">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d90507e56 ">To build and manage Einstein Case Classification and Einstein Case Wrap-Up:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d90507e56 ">
              <p>View Setup</p>
              <p>AND</p>
              <p>Customize Application</p>
              <p>AND</p>
              <p>Manage Profiles and Permission Sets</p>
              <p>AND</p>
              <p style="margin-bottom:0;">Edit on cases OR Modify All Data</p>
            </td>

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

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:

- An active Einstein Case Classification model. [Visit Salesforce Help to learn how to build and activate a model.](https://help.salesforce.com/s/articleView?id=service.cc_service_what_is.htm&type=5&language=en_US)
- Automate Value is enabled for any field you want to predict in a flow.

![Example record triggered flow with case classification action.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_intelligence-264-0-0-production-enus/dcd06a7b-b5ab-448b-a767-4e2e90481508/support_intelligence/images/case_classification/cc_flows_apply_recs.png)

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.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_intelligence-264-0-0-production-enus/dcd06a7b-b5ab-448b-a767-4e2e90481508/support_intelligence/images/case_classification/cc_plus_action.png).
    
    ![Add element menu with Action highlighted.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_intelligence-264-0-0-production-enus/dcd06a7b-b5ab-448b-a767-4e2e90481508/support_intelligence/images/case_classification/cc_new_action.png)
2. Select **Einstein**, then **ApplyCaseClassificationRecommendations**.
    
    ![New Apply Case Classification Recommendations Action.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_intelligence-264-0-0-production-enus/dcd06a7b-b5ab-448b-a767-4e2e90481508/support_intelligence/images/case_classification/cc_new_apply_recs_action.png)
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.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_intelligence-264-0-0-production-enus/dcd06a7b-b5ab-448b-a767-4e2e90481508/support_intelligence/images/case_classification/cc_add_fault_path.png)
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.