ServiceNow Virtual Agent keyword topics use phrases entered in the Keywords field to help users start a conversation. To add NLU, map the topic to a model and intent, add utterances and entities, then test discovery and the conversation flow. Treat localization and publication as separate checks before releasing changes.
Prepare a keyword topic for the right discovery method
Start with one conversation and a clear outcome, such as helping someone check an incident. Write down the phrases you want to evaluate and the result each should produce. Include a nearby request that belongs elsewhere. This gives the reviewer a way to distinguish a successful match from a conversation that merely opens.
For an introduction to the wider service, use the plain-language Virtual Agent guide. Keep this change focused on topic discovery rather than redesigning unrelated workflows at the same time.
The following controls describe the Brazil legacy NLU/keyword workflow; check their availability on your instance and release. Starting with Brazil, Virtual Agent for NLU and Virtual Agent Lite are being prepared for future deprecation: they will be hidden and no longer activated on new instances, with continued support. Decide whether maintaining the existing topic or planning migration fits your instance before investing in changes.
Adding NLU to an existing keyword topic requires virtual_agent_admin or admin. NLU must already be configured in Virtual Agent General Settings. Check the current topic, model, intent, and keywords before making changes.
Virtual Agent Lite supports keyword conversations but does not support NLU models or NLU-enabled topics. Its Languages tab and translated content are read-only; it cannot add translations or localize content. The NLU and translation procedures below therefore require the corresponding capabilities in Virtual Agent rather than Lite.
Add NLU to ServiceNow Virtual Agent keyword topics
Navigate to All > Conversational Interfaces > Virtual Agent > Designer. Set the discovery type toggle to NLU/Keyword, open the existing topic, and select Properties. Work through the model and intent choices deliberately; a familiar name is not sufficient evidence that the topic has the intended association.
- In NLU Model, choose an existing model or select Create Model. For a new model group, enter Model Name and accept or change Intent name. New models start in Draft state.
- In Associated Intent, choose an existing intent or select Create intent. If creating one, accept or change Intent Name.
- Optionally enter initiating phrases in Keywords, pressing Enter after each phrase. Keywords also serve languages that are not currently available in NLU.
- Open NLU Intent to add utterances and associate entities. Review Flow for changes such as associating an entity with a node or adding entities as topic input variables.
- Select Save in the topic header bar. The modified topic remains inactive until publication.
If NLU Model is missing while Now Assist is enabled, check the topic selection. Return to Topics and select a topic whose Model Type is NLU/Keywords.
Keep the first change small enough to explain. For example, use a short incident-status phrase and a longer sentence expressing the same request as separate test inputs. These are test examples, not prescribed vocabulary.
Test discovery separately from the conversation outcome
Select Test in the topic header bar to open the chat test window. The default window uses the web Service Portal chat client. To inspect published conversations, Test active topics is also available from the NLU topics home view. Topic discovery is always enabled from that entry point, so there is no separate discovery option to select. Include Topic Discovery is enabled by default, so testing starts with the greeting and available-topic menu and can produce NLU predictions from the phrases you enter.
First verify which topic the phrase reaches. Then verify what happens inside that topic. A correct discovery result does not prove that the conversation collected the right value or completed the intended path. Use your Virtual Agent acceptance checklist to assess both discovery and the completed conversation.
For NLU-enabled topics, Analyze test phrases shows candidate intents, prediction scores, and entity recognition and slot-filling results. The highest match appears first; predictions depend on the NLU service’s configured confidence threshold. Examine competing matches before changing a threshold. A phrase that overlaps two intents deserves an explicit review of the intended boundary.
When matching needs correction, update the utterances, train the model again, and retest. Keep examples that should succeed alongside examples that should reach a different topic. Compare the results after each change rather than treating a higher score on one phrase as proof that the whole change is ready.
For help planning this work, see ServiceNow implementation.
Use validation and runtime evidence to isolate failures
For debugging, duplicate a live topic and use the unchanged original as a reference and recovery option. Deactivate the original before publishing the duplicate. If a topic cannot be edited, check that your application scope matches the topic. If the preview cannot open, check required node fields and whether the browser permits instance pop-ups.
An incomplete badge on the flow diagram counts missing information, while yellow or red badges identify issues at individual nodes. Selecting Test with issues present opens Validation Issues in the sidebar, with descriptions and links to incomplete nodes. Resolve those findings before interpreting the test as evidence of working behavior.
- Use Analysis to inspect intent matching and entity recognition for the entered conversation.
- Use Variables to follow captured values as the conversation progresses, including input, script, and live agent variables.
- Use Context to specify contextual values for the test, such as a portal value.
- Use Logs to inspect processing and error messages recorded during the conversation.
Variables can also show values passed between a topic and a topic block, as well as slot-filled NLU entities without a node. For static list choices, both the displayed label and the underlying value appear. Check the value as well as the label when investigating a later step that receives the selection.
Read these views together. If discovery selects the expected topic but a later response is wrong, inspect the captured values and processing messages before rewriting the initiating phrases. This keeps a flow defect from turning into an unnecessary discovery change.
Test conversations in the third-party applications where you intend to deploy them because conversation elements can appear differently there. Where configured, channel previews appear in the Test list. Record the channel, the exact test phrases, and the expected result, so a web preview is not mistaken for evidence from another client.
Localize keywords after the base conversation is ready
For keyword-topic localization, virtual_agent_admin or admin is required. Begin with published topics that already perform as intended, and finish adjustments before sending them for translation. Use the Localization Framework to manage both the conversations and their keywords.
Navigate to All > Conversational Interfaces > Assistant Designer, select Asset library, choose the NLU/Keyword toggle, and open the topic. On Languages, the displayed languages are those installed and activated. Some topics can appear partially translated because interface features and pre-built topics already have translations.
Select the relevant language check boxes, choose Request translations, and confirm. This creates a translation record and changes translation status to In progress. The task is assigned to a user with the localization fulfiller role. Direct editing of translations in Virtual Agent Designer is another available route.
After completion, Virtual Agent admins can view translations, release a lock on them, or edit them from Languages or Manage languages. Published translations become dynamically available to topics using keywords. Plan a language-specific acceptance pass with representative phrases; do not use the existence of a translation record as the sign-off for matching quality.
Keep keyword maintenance and LLM migration distinct
Migration creates an LLM copy while preserving the original NLU or keyword topic. Users with virtual_agent_admin or sn_vad_genai.topic_migration_admin can work with migration through Migrate Topics to LLM. Use the NLU-to-LLM migration guide when that is the next decision.
An LLM topic requires Detail description, whereas an NLU/keyword topic does not. A migrated topic with an empty description needs one before publication. Review the new description as a statement of purpose and scope rather than pasting utterances into it; NLU utterances are not effective LLM topic descriptions.
Questions about keyword-topic testing and handoff
Can active-topic testing create test cases?
No. Testing active topics behaves like testing from a topic, but test cases cannot be created there. Choose the testing entry point according to whether the work needs a reusable case or an inspection of published behavior.
Can Context be changed while creating test cases?
The Context tab is unavailable during test-case creation. Plan any context-dependent investigation separately so that missing access to that tab does not interrupt the review.
What can developers add to the test log?
Scripts can output information to the log using gs.log, gs.print, and gs.warn. Choose messages that help distinguish the point reached and the value being investigated, then review them in Logs.
What happens to scripted prompts during migration?
A Prompt containing a script or data pill migrates to a generated Detail description using Collect plus the node name. Review and replace that description with accurate detail for the input being collected before accepting the migrated conversation.