Skip to main content
Join the Agentforce Hackathon on Nov. 18-19 to compete for a $20,000 Grand Prize. Sign up now. Terms apply.

Turn on Einstein Classification Apps

Learning Objectives

After completing this unit, you’ll be able to:

  • Implement Einstein classification apps.
  • Adjust field prediction settings.
  • Enable support agents to see and use Einstein's recommendations.

Set Up Classification Apps

Einstein classification apps aren’t available in Trailhead playgrounds, but that’s OK. Keep reading to learn how an admin would set one up. 

Setting up a classification app is straightforward—it’s just the data preparation for building a learning model that can take some time. Since Ryan De Lyon has finished auditing closed-case data, Maria is ready to set up classification apps for Ursa Major Solar. Here are the main steps that she follows.

A timeline depicting the activities described in the list that follows.

  1. Review the data requirements, key concepts, and rollout tips. For Einstein Case Wrap-Up, make sure that you’ve set up Chat.
  2. Turn on Einstein classification apps.
  3. Configure a classification model. Choose an app type for the model, which case fields to predict, and closed cases for Einstein to learn from.
  4. Build your model to let Einstein analyze your closed-case data.
  5. Configure field prediction settings. Choose when Einstein recommends, selects, or saves field values. Optionally, for Einstein Case Classification, Einstein Case Routing can route updated cases to the right agent.
  6. Give your agents access to the field recommendations component by assigning permissions and updating your console layouts.
  7. Activate your model to start showing predictions to agents.
  8. Maintain your model with the help of the prediction performance dashboard.

Enable Classification Apps

  1. From Setup, in the Quick Find box, enter Einstein Classification, and then select Einstein Classification.
  2. If you’re using the Try Einstein version, click Review Terms to review and accept the Master Service Agreement.
  3. Click the toggle to turn on Einstein Classification Apps. This can take a few minutes.
Turn on Einstein Classification apps in Setup.

Configure Your Predictive Model

After you enable the classification apps, decide which closed cases Einstein should learn from, and choose fields for Einstein to predict. You can have as many as five predictive models for each app. In the Try Einstein version, you can have one model per app.

  1. Click Get Started or New on the Einstein Classification setup page.
    Einstein Classification Setup Page.
  2. Select an app and enter a name for your model.
  3. Click Next.Select an app and enter a name for your model.
  4. Decide the type of cases your model will focus on and which new cases get predictions. If you want, you can also narrow the scope of your model to a subset, or segment, of cases. Then, click Next.
    Create a classification model with segment filters.You can use segments to focus a model on a particular business unit. For example, use record-type-based segments to have one model predict field values on cases in your Enterprise division, and have another model cover cases in your Consumer division. Because Einstein learns from the words customers use to reach out to you, segments can provide helpful context for predictions.

  5. Define criteria to identify example cases and Einstein will learn only from cases that meet your criteria. If you defined a segment, your example cases come from your segment. Then, click Next.
    Configure your classification model to learn from specific cases.Example cases help you point Einstein to cases whose completed fields and field values reflect your best practices. For help understanding when to use segments and example cases, check out Einstein Case Classification Key Concepts in the Salesforce Help.

  6. Add the fields that you want to predict for your agents. Then, click Next.
    The Add fields to predict dialog.
  7. Address any warning or error messages to make sure that you have enough data. Confirm the selected settings for your classification model with a low-case count error.If you have fewer than 400 closed cases in your segment or example case set or for a field in your model, gather more data or adjust your filters.
  8. Click Finish and move on to building your model. Your new model appears on the Einstein Classification setup page.Einstein Classification Setup Page.
Note

If you create multiple models, you can drag them into priority order in the list. When a case matches multiple models’ criteria, recommendations come only from the highest priority model.

Build Your Classification Predictive Model

After you configure your predictive model, its status changes to Ready to Build. Depending on the model’s scope, building may take a few hours or longer. The process runs in the cloud, so there’s no impact on performance for your agents.

  1. On the Einstein Classification Setup page, select the model name.
  2. Select the Setup tab.

    Setup tab on the Model Details page
  3. The Fields to Predict section lists the field values Einstein will predict. To remove a field from the model, select Remove from the Action menu. To add fields, select Edit under Configure Data.
  4. Click Build to build the model.

Einstein starts analyzing your closed cases and building the model for your selected fields. The model owner receives a notification when Einstein completes learning for each predicted field. 


To add more fields later, edit the model, add fields, and then rebuild. After the model finishes building, you can customize each field’s prediction settings and then activate the model to start showing recommendations in the Service Console.

Configure Field Prediction Settings

After your Einstein classification model is built, it’s time to decide your level of prediction automation. With the lowest level of automation, Einstein recommends the top three field values for each field in your model. Or you can have Einstein select and save the best value automatically. 

You can update a field’s prediction settings at any time, whether or not the model is active. 

  1. On the model’s Setup tab, select Edit under Configure Predictions and select a field. Alternatively, select Edit next to a field in the list.
    Select Best Value setting with prediction confidence graph
  2. To show the field with Einstein’s predicted best value already selected, turn on Select Best Value. Agents see a BEST label next to the value and must confirm then save it. Drag the slider to choose a prediction confidence threshold, which is your minimum required confidence level for selecting the best value. A prediction’s confidence level represents the likelihood that the recommendation for the field value is correct.
    Automate Value setting with prediction confidence graph
  3. If you have the paid version of Einstein Case Classification, Einstein can update and save the field value without agent review. Turn on Automate Value, then drag the slider to choose a prediction confidence threshold for auto-updating the field. Because this update happens automatically, the Automate Value threshold must be higher than the Select Best Value threshold. For Einstein Case Wrap-Up, you can set the Select Best Value threshold only. Automate Value isn’t an option.
  4. Select Save & Close. Your changes take effect immediately, and the prediction settings appear in the field list.
    Model Details page showing prediction settings for each field

Give Agents Access to Einstein Classification Apps

To let agents view and act on Einstein Case Classification field predictions, assign the Einstein Case Classification User permission set to them.

  1. From Setup, enter Permission Sets in the Quick Find box, and then select Permission Sets.
  2. Select Einstein Case Classification User or Einstein Case Wrap-Up User. These standard permission sets are already created for you.
  3. Click Manage Assignments and assign users to the permission set.

Add Classification Apps to the Service Console

To show Einstein’s recommendations to agents, add the Einstein Field Recommendations component to the Lightning Service Console. Both classification apps use this component.

  1. In the Lightning App Builder, open the case record page or a custom page where you want to show Einstein's recommendations.
  2. Drag the Einstein Field Recommendations component onto the page.
  3. Select Case Classification or Case Wrap-Up as the type.
  4. Optionally, update the remaining settings. The Update Action’s layout determines which fields appear in the component.
  5. Save your changes.

    Adding the component in the Lightning App Builder

Activate Your Einstein Classification Model

When you’re ready to let Einstein start making predictions, activate your model. On the model’s Setup tab, click Activate

For Einstein Case Classification, Einstein makes recommendations once, right after the case is created. For Einstein Case Wrap-Up, chat agents see recommendations on-demand or when the chat conversation ends. Agents may need to refresh the page.

Understand What Agents See

When your model is active, agents can click Get Einstein Recommendations on a case to see recommendations. A green dot appears next to fields with recommendations, and the text at the top of the component changes to Einstein Recommendations Applied.

Component with Einstein recommendations applied

  • At a minimum, Einstein recommends the top three values for picklist and lookup fields on new cases, and the top value for checkboxes (enabled or disabled). Agents can click into a picklist or lookup field to see which values Einstein recommends.
  • For both classification apps, if you enabled Select Best Value for a field and the prediction confidence is above your threshold, Einstein shows the field with the best value already selected next to the word BEST.
  • For Einstein Case Classification, if you enabled Automate Value for a field and the prediction confidence is above your threshold, Einstein saves the best field value automatically and triggers any case routing or assignment rules that you've put in place.

After the agent reviews the recommendations, they click Save to save the changes. 

Note

If fields are auto-updated by Einstein Case Classification, those updates appear separately in the case feed.

See How Einstein Classification Apps Help Your Agents

The Performance dashboard shows Maria how well Einstein’s predictions are working, and helps her decide which field values to automate.

From the model’s Overview tab, select a field and choose a date range to display performance information for closed cases.

Overview tab showing performance graphs

The Top 3 Recommendations chart indicates how often one of the top three recommended values matches the final field value at the time the case is closed. The Top Recommendation chart shows how often the top-recommended value matches the final field value when the case is closed. When a case with field predictions is closed, the dashboard refreshes.


Now that Ursa Major Solar has implemented Einstein classification apps, support agents have more time to deliver exceptional customer experiences. Case data quality is sure to improve because of less human error determining field values. Sita and her team are excited to see where machine learning and AI can take their company next.

Teilen Sie Ihr Trailhead-Feedback über die Salesforce-Hilfe.

Wir würden uns sehr freuen, von Ihren Erfahrungen mit Trailhead zu hören: Sie können jetzt jederzeit über die Salesforce-Hilfe auf das neue Feedback-Formular zugreifen.

Weitere Infos Weiter zu "Feedback teilen"