Configure the IBM Watson Assistant Chat Integration to run a dialog skill (conversation) created in IBM Watson Assistant with the Assistant V2 API. The V2 API enables the Virtual Agent chat widget to run a topic that uses Watson Assistant's intent disambiguation feature to improve topic discovery.
About this task
This integration runs an IBM Watson Assistant dialog as a Virtual Agent topic in the chat widget. It doesn't require enabling Natural Language Understanding (NLU) or setting IBM Watson Assistant
NLU as the NLU service provider for Virtual Agent.
The IBM Watson Assistant V2 API enables the chat widget to use the Watson Assistant intent disambiguation feature, which can potentially reduce false-positive intent predictions. If a user's utterance is ambiguous, IBM Watson Assistant suggests additional intents that might better match the user's true intention. For example, if the user utterance is restaurant, IBM Watson Assistant can suggest other possible intents, such as book a restaurant or restaurant reviews.
Procedure
-
Configure IBM Watson Assistant.
-
Create your assistant, then add a dialog skill.
-
On the Resource list page, locate and record your API key and URL, which you need to set up the chat integration:
-
Select the three vertical dots icon
and select Settings.
-
Enable the disambiguation feature in IBM Watson Assistant (for premium and plus users only).
You can enable (or disable) disambiguation for each skill, and also specify a disambiguation message and the number of suggestions to be displayed to the end user.
-
Access your skill by selecting the skill tree icon
in the panel.
-
Navigate to to enable disambiguation and set the disambiguation features.
The following example shows the disambiguation features that can be set, such as the disambiguation message and the number of suggested intents to be displayed to the end user.

-
Navigate to Dialog, select a node to which the disambiguation feature will apply, and provide a summary of the node that will be displayed to users if it's one of the intent suggestions.
-
In your ServiceNow instance, activate these plugins:
-
In Virtual Agent Designer, publish the IBM Watson Assistant V2 topic:
-
Navigate to and select the NLU/keyword toggle..
-
In the Virtual Agent Designer home page, select the IBM Watson Assistant V2 topic to open the Topic Properties page.
Notice that the Keyword for this topic is IBM Watson Assistant V2.
-
In the Topic Properties page, select Publish to deploy the topic to your Virtual Agent chat widget.
-
Navigate to All, and then enter sys_properties.list in the filter.
-
Update the following properties.
-
Set the Watson Assistant API key as the password in the IBM Watson Assistant Profile.
-
Navigate to All, and then enter sys_auth_profile_basic.list in the filter.
-
Open the IBM Watson Assistant Profile record.
-
In the Basic Auth Configuration form, enter the Watson Assistant API key in the Password field and select Update.
-
Add the Virtual Agent (web chat) client to the Service Portal.
-
Navigate to .
-
Select Designer, and then select the Service Portal landing page.
-
Search for the Virtual Agent widget and drag the widget into the outlined area.
The purple chat icon appears in the bottom right corner.

-
Configure the Virtual Agent widget by selecting the edit icon
in the upper right corner to set the URL parameters passed to the chat client and change the color of the floating chat button.
-
In the Virtual Agent Client URL Parameters field, enter the sysparm_skip_load_history=true parameter so that the topic history doesn't display in the chat client and the
sysparm_topic parameter with the sys_id of the published IBM Watson Assistant V2 topic to be run.
You can find the sys_id of a topic in the Topics [sys_cs_topic] table.
If you don't configure the instance behavior in Service Portal, you can specify your instance URL with the sysparm_topic and sysparm_skip_load_history parameters when you open the chat chat widget. For
example: https://<Your instance URL>$sn-va-web-client-app.do?sysparm_skip_load_history=true&sysparm_topic=<sys_id>
where <sys_id> is the sys_id of the published IBM Watson Assistant V2 topic to be run.
Important:
Use the sysparm_topic parameter only to load the given topic in the Service Portal chat client or when using the IBM Watson Assistant chat integrations (com.glide.cs.ibm.watson.assistant.topic and
com.glide.cs.ibm.watson.assistant.topicV2 plugins). This parameter doesn’t allow users to start a new conversation or transfer to a live agent. It also disables the context menu and doesn’t support other
third-party chat clients.
-
To change the floating button color, enter the new color (RGB hex format) in the Floating Button Color field.
-
Select Save.
-
Test that the disambiguation feature is working for your topic.
Be sure that disambiguation is enabled for your Watson Assistant skill and at least two dialog nodes. In the following example, the virtual agent provides four additional intents that the user can
select.