Loading
Build AI Solutions for Service
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Use Intents to Understand Your Customers

          Use Intents to Understand Your Customers

          Using Natural Language Processing (NLP) through intent management is uncharted territory for most admins. It’s important to remember that building bots is iterative - starting off with a small bot and then building it into a complex machine is part of the journey. As you gain feedback from your customers and review data, your bots grow in ways you have never expected!

          Required Editions

          View supported editions.

          Chatbots can be categorized into the following categories:

          • Menu-based Bots, where users select a path based on a menu of options that the bot delivers to the end user. These bots are easy to set up, deliver high value on low-level tasks such as password resets, and help you deliver a curated experience to the customer.
          • NLP Bots, which rely on natural language processing to interpret free text. NLP bots allow the user to define where the bot moves, so they have more control over the experience. Also, NLP bots can interpret multiple pieces of information within one phrase sent by the customer, which can reduce the number of steps required to complete a task.
          • Hybrid Bots, which use menu-based methods and NLP methods at the right time to create a blended experience. Including a menu can help customers who need an idea of what the bot can do. Also, integrating NLP helps the bot sound smarter and more conversational.

          Brand New to Bots? Start Here

          Start with menu-based bots if you’re brand new to Einstein Bots. If you're familiar with building workflows, using Process Builder, or building flows, creating a menu-based bot is similar. When you build a menu-based bot, using the Map View is helpful to visualize how all the dialogs work together.

          Even though you start with a Menu, customers can still write in text to your bot. In Messaging channels, the end user activates the bot by writing a question first. Also, curious users test a bot by typing in text. Use the Confused dialog to capture the input text, and encourage the end user to pick a task that the bot can complete by redirecting them to the menu.

          Creating a Hybrid Bot: Starting with Exact Matching

          After you’re comfortable with your menu-based bot, it's time to upgrade to a Hybrid Bot. One of the easiest ways to expand into a Hybrid Bot is to build utterances for common phrases, such as Main Menu, Transfer to an Agent, or End Chat.

          Add these utterances manually to the intent. In the chatbot industry, an utterance is a term for inputs from your customer. For more information, visit Use Exact Matching for Intents.

          Note
          Note Exact Matching is case-sensitive, so include all available spellings and capitalizations in the utterance to ensure a good match.

          The best way to identify when you’re ready to move to an intent model is to view your chat logs. What common phrases are your customers asking the bot? It's likely that they're asking the bot the same questions that they're asking your service reps. If the utterances apply to a task that you feel the bot can handle, such as canceling an appointment, they’re likely great additions to the intent model.

          You’re ready to build an intent model when you think you have enough utterances, or can create enough utterances, to outfit two to five intents.

          Building an Intent Model

          Einstein Bots offers two intent models, the original intent model and the cross-lingual intent model. Both models can be used for single- or multi-language bots, but they have different prerequisites and use cases.

          Note
          Note

          Beginning the week of October 30, 2023, newly created or cloned bots and bot versions default to the cross-lingual intent model, including single- and multi-language bots.

            Original Intent Model Cross-Lingual Intent Model
          Prerequisites

          3 to 5 intents

          20 utterances per language per intent

          2 or more intents

          1 utterance per intent per language

          Training When the model is built, 80% of your utterances are used to build the model, and the remainder are randomly withheld for testing. All utterances are used to build the model.
          Input Testing To test an utterance, you must include 20 utterances in the language in the intent and build the model. You can test utterances for any supported language before or after adding training data for that language to your model.
          Performance

          A combined F1 score across all languages for intents with at least 20 utterances.

          The F1 score for an intent is based on 20% of the utterances in an intent. Because utterances are randomly withheld for testing with each build, the F1 score for an intent can vary between builds.

          A combined F1 score across all languages for intents with at least 20 utterances.

          The F1 score for an intent is based on all utterances in the intent.

          Before you meet the minimum requirements, both models default to exact matching. After you meet the minimum requirements, you can turn on Einstein to use natural language processing for the intent. Then you can build your intent model from the Model Management page of the Bot Builder.

          The Einstein NLP setting enabled

          You can switch between models, but you must meet the minimum requirements for the model you want to turn on and rebuild the model. You can’t switch from the cross-lingual intent model to the original intent model if your bot uses a language that’s only supported for the cross-lingual intent model.

          Start by identifying dialogs that are great candidates for building your intent model. Intent models are made up of multiple intents, which have many utterances assigned to each intent. Here’s some important information to know when starting your intent model:

          • Building an intent model with Einstein Bots is supported in the following languages: Define Languages for Your Einstein Bot
          • The intent model must be balanced in the number of utterances per intent to keep the bot from making unbiased decisions.
          • We recommend a maximum of 100 intents for better model accuracy. If you need more than 100 intents, consider creating a hierarchical classification to guide the bot.
          • The maximum intent label length is 180 characters, so it’s important to edit the label to the most important phrases.
          • Consider grouping similar intents. If you have intents that are similar, or if you find that one intent is being classified as another, consider grouping them together. For example, if you find overlap in three intents: "How to apply license under 16", "How to apply license at age 16," and "How to apply at age 17 or over", the model performs better by grouping into a single intent: "How to Apply for Teenage License."
          • Intents can be shared across versions of the same bot.

          Some intents can benefit from text identification but don’t have enough utterances to keep the intent model balanced. In these cases, you can use Exact Matching on the intent, which allows for text identification without affecting the Intent Model.

          Writing Utterances and Sourcing a Great Intent Model

          To load many utterances attached to one intent at once, we recommend that you use Einstein Intent Sets, which work like AppExchange packages. You can install Intent Sets one time and use it across all your bots. It's a great way to start on common intents, such as "Where is my order" or "Schedule an Appointment".

          You can also add utterances manually to each intent. Read more about how to add utterances manually at Write Utterances for Einstein Bots.

          If you want to test a new addition to the intent model, it’s easy to import and export intent data to test in a sandbox first. Read more at the following topics:

          Iterate, Iterate, Iterate Your Bot

          Just like a virtual pet, your bot can always benefit from a bit of attention. You can add a new version of a bot to test out new dialogs, entities, and variables without disrupting your customer experience. For the intent model, you can use the Bot Training page to improve intent matching quality. You can use the Model Management menu to quantify how accurate your bot is at identifying an intent. To visualize the accuracy of your intent model, you can use the Einstein Intent Assessor AppExchange tool.

          As your bot interacts with your customers, your model scores change and your bot must be updated to adapt. We recommend that you perform the following maintenance tasks once a week:

          • To identify intents to improve, visit the Model Management page.
          • To identify common asks that are candidates for new intents, review your chat data in the Event Logs.
          • To ensure that the bot sessions are free from errors and to identify key trends among sessions, visit the Event Logs.
          Note
          Note Chat data and event logs are only available for the last 7 days. If you want to extend the maintenance longer than a weekly cadence, we recommend that you download the data or migrate it to a separate object.
          • Use Exact Matching for Intents
            Turn on Exact Matching for intents that have too few utterances to be included in the intent model. These case-sensitive phrases allow the bot to recognize a common intent and route accordingly.
          • Turn on the Cross-Lingual Intent Model
            Use the cross-lingual intent model to get a unified view of intent performance for all the languages defined for a bot. The model allows you to test utterances in any supported language, before or after adding the language to your model. Plus, you can train your model on as little as one utterance per language.
          • Guidelines for the Cross-Lingual Intent Model
            To improve performance for bots that use the cross-lingual model, review our best practices.
          • Turn On Disambiguation
            The Disambiguation dialog helps your bot better understand your customers when they enter text. Instead of moving directly to the Confused dialog, the bot reviews the text and offers a few dialogs that the customer likely means.
          • Creating, Storing, and Managing Intent Data
            Bots have two sets of data: the data around events and the data around intents. Event data refers to the things that happen inside bot conversations. Intent data refers to the data used to train the model so your bot understands your customers. To create a robust bot, you must have a strategy for handling both data sets.
           
          Loading
          Salesforce Help | Article