Help
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Asif
ServiceNow Employee
ServiceNow Employee

Step 3: Enabling NLU In Your Conversations

At work, we deal with language constantly.  Whether it's granting access to a server, requesting time off, or delivering a new monitor to someone.  We're able to read each other's text, interpret it, and respond appropriately.  

Natural Language Understanding can be enabled to improve the overall experience for end-users.  Natural Language Understanding, or NLU for short, allows end-users to engage with the Virtual Agent using natural sentences. NLU not only improves the Virtual Agent's user experience, but it also increases the Virtual Agent's accuracy when presenting topics.

 

How does NLU Work?

To understand how NLU works, you don't need a degree in Machine Learning or Data Science. All you need to do is familiarize yourself with the following three terms:

find_real_file.png

Intent

In NLU, an Intent represents what end-users hope to accomplish.  In our world, it's an action someone could take in the system.  That could be anything from opening an IT ticket to checking on the status of one.

 

Utterance

Utterances are the different ways of expressing an Intent.  Something Critical is broken. Can IT help ASAP? Or New crucial incident...these are all utterances that are intending the same thing: Open an IT ticket.

 

Entity Entities are the objects and values within the Utterance that provide additional context for the Intent. Critical, ASAP, crucial...these entities are all expressing a sense of urgency.  If an IT ticket does get open on behalf of the user, it should be opened with high urgency.

Now that you understand key NLU terms, let's talk a bit about NLU Models. An NLU Model is made up of a collection of Utterance examples and their associated Intent and Entities​. The NLU Workbench allows you to easily create, train, and publish your very own NLU models. 

 

 

Activating NLU

As of the Utah release, NLU is enabled by default. You want to make sure you update the "NLU Workbench - Advanced Features" plugin too. You can then view this in the Conversational Interfaces Home Page, under Settings > Virtual Agent.  

find_real_file.png

 

After activating NLU, navigate to NLU Workbench > Models. You should see a list view similar to the screenshot below. (Click on the image to see a larger version).

VictorChen_0-1693700315002.png

 

 

 

Exploring the NLU Workbench

The NLU Workbench is simple and intuitive. Here you can create and manage your NLU models, intents, and utterances. First, let's explore an NLU model that is already provided to you.

Step 1: Navigate to NLU Workbench > Models, and find NLU model: ITSM NLU Model for Virtual Agent. Click on a language, e.g. "English (Primary)" to open the model.

find_real_file.png

 

Step 2: Click on View phase for "Manage your model content". Browse through the list of Intents and select OpenITTicket

find_real_file.png

 

Step 3: Test a few utterances by clicking on "Try model". You'll be prompted with the option to enter an utterance.  Test the following utterances and note their respective prediction scores.

  • "New IT Ticket"
  • "Can IT Help"

find_real_file.png

The prediction score tells you how close the tested utterance is to the list of utterances within an Intent. The higher the predicted score (max 100%), the closer the tested utterance matches against the utterances within that Intent.

 

Step 4: If you added or changed utterances to your intent or model, click the "Train model" button on the top right so that your model takes the new utterances into account. Try your model again to ensure that it performs with your modified utterances in mind.

Then return to the model's main page and click on View phase under "Test and publish your model". Here you can either run a test set against your model, or you can publish you model. 

 

Advanced Features

The NLU Workbench also has testing and performance measurement capabilities such as Conflict Review and Batch Testing. Use these tools to tune and optimize your NLU models. If you do not see them under "NLU Workbench", you can manually install the plugin: NLU Workbench - Advanced Features (sn_nlu_workbench).

find_real_file.png

 

Binding NLU to a Virtual Agent topic

Now let's bind an NLU intent to a Virtual Agent topic, so that when a user types an utterance recognized by NLU, it will run that topic. Start off by opening Virtual Agent Designer and select a topic, e.g. Check IT Ticket Status. In the Properties tab, choose the NLU model and intent associated with the Virtual Agent topic. You can also create a new NLU intent straight from the "Associated intent" drop-down.

Once you selected your associated intent, the "NLU Intent" tab at the top will show you the intent utterances. After you save and publish the topic, try testing out a few utterances in Virtual Agent such as "check ticket status" or "my incident status." 

find_real_file.png

 

Learn more about NLU with our FAQ and Virtual Agent Academy sessions

 

 

What's Next?
Now that you have a basic Virtual Agent up and running with NLU, there are some more things you can do: Extend an ITSM OOTB NLU Model

 

 

 

Version history
Last update:
‎09-02-2023 05:19 PM
Updated by:
Contributors