---
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


---

# NLU topic discovery logic

# (Legacy) Natural Language Understanding topic discovery logic in Virtual Agent {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 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) Natural Language Understanding topic discovery logic in Virtual Agent

This document explains how the Virtual Agent utilizes Natural Language Understanding (NLU) to identify and select relevant topics for user interactions.
It details the conditions required for topic discovery, the logic behind intent recognition, and the process for switching topics mid-conversation.
This information is essential for ServiceNow customers aiming to optimize Virtual Agent performance and ensure accurate topic matching based on user input.
Show full answer Show less  

## Prerequisites for Topic Discovery

* The topic must be published, active, and marked as discoverable in the Topics \[syscstopic\] table.
* Topic conditions must evaluate to true during runtime.
* If roles are assigned to the topic, the user must have at least one of those roles.
* The NLU model must support the session language via a proper binding.

**Note:** The "Is Topic Visible" setting does not influence topic discovery.

## NLU Topic Discovery Logic

* The Virtual Agent sends the user's utterance along with all relevant NLU model IDs bound to the session language to the NLU provider for intent prediction.
* Based on confidence scores, Virtual Agent either automatically selects a topic, presents a list of topics for the user to choose from, or finds no matching topics.
* If no matches are found and backup keyword search is enabled, Virtual Agent attempts to find topics using keyword matching.

## Confidence Scores and Intent Selection

* Confidence thresholds are configurable in the ServiceNow NLU driver settings under Conversational Interfaces \> External NLU Integrations \> Drivers.
* If an intent's confidence score meets or exceeds the threshold, it is considered a valid match.
* Virtual Agent auto-selects the highest scoring intent when there is a clear winner or a significant confidence gap.
* If auto-selection does not apply, a list of matched topics (limited by the system property `com.glide.cs.maxnumberdisplaytopics`) is presented for user selection.
* When no intents meet the confidence threshold, Virtual Agent falls back to keyword search if enabled via system properties `com.glide.cs.nlu.keywords.enabled` and `com.glide.cs.nlu.keywords.includetopicsboundtolang`.

## Mid-Topic NLU Discovery Logic

During an active conversation, if the user input does not fit the current topic's expected input but matches another intent, Virtual Agent can switch to the new topic bound to that intent. This allows dynamic shifts in conversation flow based on user requests, enhancing interaction flexibility.

## Practical Implications for ServiceNow Customers

* Ensure topics are correctly configured with active, published, and discoverable flags to enable accurate NLU discovery.
* Configure confidence thresholds and system properties to balance automatic topic selection and user choice effectively.
* Leverage mid-topic discovery to create more natural, fluid conversations that accommodate user changes in intent.
* Enable backup keyword searches to improve topic matching when NLU predictions are uncertain.  
Understand how Virtual Agent returns intents and how it selects which
intents to show to the user.

## Prerequisites for topic discovery {#how-topic-discovery-works__section_jyr_ng1_1vb}

Virtual Agent can discover a topic when the following conditions are met:

* The topic must be published and active.In the Topics \[sys_cs_topic\] table, the
  Active, Published, and Is Topic Discoverable values are set to true.

  Note:  
  The Is Topic Visible column does not affect topic discovery.
* The topic must be discoverable.
* Topic conditions must evaluate to true at runtime.
* If any roles are configured for the topic, the requestor must have at least one of those roles.
* The topic's NLU model must have a binding for the session language.
{#how-topic-discovery-works__ul_djl_1h1_1vb}

## NLU topic discovery logic {#how-topic-discovery-works__section_sdg_gl1_1vb}

Virtual Agent sends a prediction request to the NLU provider. The request contains the utterance and all registered NLU model IDs that are bound to the session language. Matches return NLU intents that correspond with a topic. Virtual Agent then responds in one of the following ways:

* Automatically selects a topic for the requester, based on the confidence score.
* Prompts the requester to pick a topic from the returned list of matches.
* Finds no matching topics.
{#how-topic-discovery-works__ul_zkl_dl3_1vb}

If no matches are found but backup keywords are enabled (the com.glide.cs.nlu.keywords.enabled property is true), Virtual Agent searches for a topic based on keywords.  
Figure 1. Virtual Agent topic discovery logic

## Virtual Agent
NLU confidence scores {#how-topic-discovery-works__section_nzz_zxn_1vb}

Virtual Agent uses confidence scores to return predicted intents. To set the confidence value:

1. Navigate to Conversational InterfacesExternal NLU IntegrationsDrivers.
2. Select ServiceNow NLU. You can also select All and enter <kbd class="ph userinput">open_nlu_driver.list</kbd>.
3. In the Intent Confidence Threshold field, enter the confidence threshold.

{#how-topic-discovery-works__ol_jlv_ctz_32c}

If an intent's confidence score is greater than or equal to the configured threshold, Virtual Agent considers it a good match.  
Virtual Agent uses the following logic when selecting intents:

* Auto-selects the highest predicted intent.  
  This occurs when only one intent is matched, or in the event of a tie-breaker, when the next closest match is a distant second.  
  Note:  
  If ServiceNow NLU is used and the Intent Confidence Delta field in the ServiceNow NLU driver table (open_nlu_driver.list) is set to 0, there can be no tiebreaker.
* Returns a topic list for the requester to choose from.This occurs if auto-select is not applicable. The length of the list is determined by the com.glide.cs.max_number_display_topics system
  property.

* No intents are matched.When zero NLU Intents are predicted with a confidence score greater than or equal to the configured threshold, Virtual Agent falls back to a keyword search if configured. (The com.glide.cs.nlu.keywords.enabled and com.glide.cs.nlu.keywords.include_topics_bound_to_lang
  system properties are true).

{#how-topic-discovery-works__ul_d5f_xtz_32c}

## Mid-topic NLU topic discovery logic {#how-topic-discovery-works__section_nrt_mc4_1vb}

While a topic is running, the requester can enter an utterance or phrase that results in a
topic switch. For example:

1. The requester is in a Virtual Agent conversation, and Topic A is running.
2. Topic A prompts the user to enter their date of birth.
3. Instead of choosing a date, the requester types, "I want to view my Incidents."
4. Virtual Agent can't resolve this phrase to a date, so it issues an NLU prediction request.
5. The NLU predictor returns Intent B, and Virtual Agent sees that Topic B is bound to Intent B.
6. Virtual Agent switches the conversation to Topic B, which then presents information to the requester about their incidents.

{#how-topic-discovery-works__ol_nnw_sc4_1vb}  
Figure 2. Virtual Agent mid-topic discovery logic
**Related reference**   

* [(Legacy) Resolve Natural Language Understanding (NLU) topic discovery issues](https://servicenow-prod.fluidtopics.net/eBJJuWLOpWXK8FPXF5x_Yw "If an intent is not being chosen when expected, you can troubleshoot NLU prediction errors.")

*[\>]: and then


