---
sourceDocument: Brazil Conversational Interfaces
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/conversational-interfaces

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Conversational Interfaces

ft:clusterId :

    - convint

bundleId :

    - convint

workflow :

    - Platform


---

# Testing NLU and keyword topics

# (Legacy) Testing NLU/Keyword topics {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 4 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of (Legacy) Testing NLU/Keyword topics

This content explains how ServiceNow customers can preview, test, and debug Natural Language Understanding (NLU) and keyword topics within Virtual Agent using the chat test window in Assistant Designer.
Testing ensures your conversational topics work as intended across various platforms including the default web chat client and integrated third-party messaging apps like Microsoft Teams, Slack, and the ServiceNow Otto panel.
Show full answer Show less  

## Testing Environment and Options

To test a topic, select the **Test** option from the topic header or use **Test active topics** from the NLU topics home page. The chat test window simulates user conversations and provides multiple tabs with insights:

* **Analysis:** Shows intent matching and entity recognition results based on user input.
* **Variables:** Displays all conversation variables and their values, including input, script, live agent, and slot-filled variables.
* **Context:** Allows setting context variables to influence topic intent or chat routing; useful for testing different chat scenarios.
* **Logs:** Provides processing and error messages, including custom script outputs via gs.log, gs.print, and gs.warn.

## Validation and Issue Resolution

If a topic has missing or incorrect information, warnings and incomplete badges appear in the flow diagram and test interface. Selecting **Test** with issues opens a sidebar listing all validation problems with detailed descriptions and links to affected nodes, facilitating quick troubleshooting and correction.

## Topic Discovery and Active Topic Testing

The test window includes an **Include Topic Discovery** option by default, which triggers automatic discovery and prediction of relevant topics based on test phrases. When testing active topics, topic discovery is always enabled but test cases can't be created in this mode.

## Improving NLU Topic Accuracy

The **Analyze test phrases** tab shows predicted intents and confidence scores for entered utterances. If utterances don't match expected intents, you can modify them in Virtual Agent Designer, retrain the model, and retest until achieving accurate recognition. Publishing the topic and model finalizes the changes for production use.

## Practical Next Steps for ServiceNow Customers

* Use the chat test window to validate new or updated NLU/keyword topics before release.
* Leverage the Variables and Context tabs to monitor conversation flow and simulate different user contexts.
* Address validation warnings promptly to ensure topic completeness and reliability.
* Iteratively refine utterances and retrain your NLU models based on test results to improve accuracy.
* Consider using Automated Test Framework through Assistant Designer for automated regression testing of topic flows after changes.
* Use log outputs to debug and resolve unexpected behaviors in custom topics and scripts.  
Use the chat test window to preview, test, and debug Natural Language Understanding (NLU)/keyword topics.
As you work on a topic in Assistant Designer, you can run your conversation in a chat test window. The default test window is the web (Service Portal) chat client.

If you're using the [Virtual Agent integrations with third-party messaging apps](https://servicenow-prod.fluidtopics.net/eRb4LPJNa9y6FL3hhZ_vnA "Enable users to run Virtual Agent bot conversations in supported third-party messaging apps. Use the Conversational Integration apps for Slack, Microsoft Teams, and Workplace that are available from the ServiceNow Store to configure these messaging apps on your ServiceNow instance."), elements in your conversation might appear differently in third-party messaging applications. Test your
conversations in any third-party applications where you want to deploy Virtual Agent.

If the ServiceNow Otto panel, Microsoft Teams application, or Slack application is configured for your environment, preview options for those channels are displayed in the Test button list. Select Preview in Otto panel or Preview in Microsoft Teams in the list to test your topic in those environments.

## Testing your NLU/Keyword topic in the chat test window {#va-designer-testing__section_fq4_tmj_1mb}

Figure 1. Example NLU/Keyword test options  
To run your topic in the chat test window, select the Test option in the topic header bar. Alternatively, you can test active (published) topics by selecting Test active topics while viewing NLU topics on the home page.  
Note:  
If your topic is missing any necessary information, an incomplete badge appears in the corner of the flow diagram pane. A yellow or red warning badge also appears next to each node. The incomplete badge lists the total number of issues, while the local warning badges show how many are found in each node. Selecting Test when there are issues present opens a Validation Issues tab on the sidebar, which counts up and details all the issues needing correction. These details include a full description and a hyperlink to each incomplete node.
The chat test window opens in the chat widget and displays adjoining tabs that provide details about your topic as you test it. You can use these tabs:

* Analysis - The results for intent matching and entity recognition appear based on what you entered in the conversation.
* Variables - List of all the variables used in the conversation, such as input and live agent variables.
* Context - Options for specifying the context (using context variables) in which a topic is run.
* Logs - A list of the processing performed.
{#va-designer-testing__ul_kmv_gmf_nzb}  
Figure 2. Example Natural Language Understanding (NLU) chat test window and test tabs

By default, the Include Topic Discovery option is enabled. This option automatically performs topic discovery and generates prediction results for NLU topics using test phrases that you enter in the test window. The conversation begins with the Virtual Agent greeting and the button for the menu of available topics.

If you're using the Test Active Topics option or sub-options from the home page, topic discovery is enabled, so it's not listed as an option. Testing active topics behaves the same as testing from a topic
except that test cases can't be created.

## Analyze test phrases tab {#va-designer-testing__section_gnc_cvz_hmb}

For NLU enabled topics, the Analyze test phrases tab provides an analysis of the possible intents that match the test phrase (utterance) that you entered in the chat test window.
The tab lists the prediction results, which include matched intents and their prediction scores, along with any entity recognition and slot-filling results. The top match is listed first. The predicted intents depend on the
prediction confidence threshold set in the NLU service.  
Figure 3. Example Analyze test phrases tab for NLU/Keyword topics

If an utterance doesn't match a current intent, you can add or change utterances in Virtual Agent Designer. For more information, see [(Legacy) Modify NLU utterances and entities for a Virtual Agent topic](https://servicenow-prod.fluidtopics.net/vAuPGUL2r2kLT3HqFKh0iw "View, test, and modify NLU utterances for a Virtual Agent topic on the NLU Intent tab in Virtual Agent Designer.").

Make changes, train the model again, and then retest until you're satisfied with the results. When the topic is ready, you can publish both the topic and the model from Virtual Agent Designer.

## Variables tab {#va-designer-testing__section_v2p_bxw_hmb}

The Variables tab displays a list of all the variables used in the conversation and the associated values captured as the conversation progresses, so that you can follow along. A conversation can have these variable types:

* Input variables
* Script variables
* Live agent variables
* Variables passed between a calling topic and topic block
* "Nodeless" NLU entities declared as a slot-filled variable for the topic
{#va-designer-testing__ul_dz5_vyw_hmb}The list is separated into sections by type of variable. The following example shows the Input variables section. Notice that for the static list control, both the display label and value are captured for the selected choice.  
Figure 4. Example list of input variables

The following example shows the Input variables section for the grouped list control. This variable information appears similar to the static list control, but the variables are separated by each group of the grouped choice.  
Figure 5. Example list of grouped choice variables

## Context tab {#va-designer-testing__section_dqn_b4r_lpb}

Use the Context tab to specify a different context for the chat. Choose a context variable from the list. These variables contain contextual information that can be used to determine topic intent or
control how chats are routed to live agents. For example, you could select portal from the list of variables and enter the portal name IT Express. The Context
tab is unavailable when creating test cases.

For more information about defining context variables, see [Configure context variables for storing chat-related information](https://servicenow-prod.fluidtopics.net/gQUwT6EIEDTAjEgJUIgo1g "Specify chat context variables, also called Live Agent chat variables, for storing chat-related information, such as pre-chat survey responses. These variables contain contextual information that can be used to determine topic intent or control how chats are routed to live agents. You can also define variables to capture contextual information passed in Virtual Agent topic scripts to share with live agents."). For more information about live agent variables that are included with Virtual Agent, see [Live agent chat context variables](https://servicenow-prod.fluidtopics.net/i39jB4d0QfKPOIa_nvIipA "Use chat context variables to pass certain information from the topic to share with a live agent or to control how bot conversations are routed to live agents. Virtual Agent includes some default variables, and you can define new ones.").  
Figure 6. Example Context tab

## Logs tab {#va-designer-testing__section_uxp_kz1_3mb}

The Logs tab displays the processing and error messages that are recorded while running your conversation. If you're using scripts in Virtual Agent Designer, use `gs.log`, `gs.print`, and `gs.warn` statements in your scripts to output information in this log.  
Figure 7. Example Logs tab

## Next steps {#va-designer-testing__section_amq_xpr_2mb}

When you're done testing your topic, close the test chat window. If needed, you can use the test information to fine-tune your conversation. For example, if the results on the Analyze test phrases tab
return multiple possible matches for your utterance, you could update the utterances for your intent and NLU model on the NLU Intent tab for your topic.
* **[(Legacy) Train and test your NLU model in Virtual Agent Designer](https://servicenow-prod.fluidtopics.net/AWl4IhQG0IJLD30chuSUBQ)**   
  Use the NLU Intent tab to train and try a Natural Language Understanding (NLU) model that is mapped to a topic without leaving Virtual Agent Designer.
* **[(Legacy) Automated testing for Virtual Agent topics that use NLU topic discovery](https://servicenow-prod.fluidtopics.net/Xr7QpWDv42c1JGIVoVn3mg)**   
  Automated testing for your Virtual Agent topic flows uses the ServiceNow Automated Test Framework product through Assistant Designer. You can create and run automated tests through the Automated Test Framework to confirm that your topic flow works after making a change.
* **[(Legacy) Debug a Virtual Agent NLU topic](https://servicenow-prod.fluidtopics.net/OaBIBr0IE5umL9YMGdi5zQ)**   
  Investigate and resolve unexpected behavior in your custom Virtual Agent topics, topic blocks, and controls.

