Testing LLM topics
Summarize
Summary of Testing LLM topics
This feature enables ServiceNow customers to preview, test, and debug topics that utilize large language models (LLMs) directly within the Assistant Designer chat window. It supports testing in the Service Portal and in third-party messaging applications like Microsoft Teams and Slack, allowing you to verify how your Virtual Agent topics perform across different deployment environments.
Show less
To use this functionality effectively, you must have the Now Assist Topics skill activated, which provides access to the updated Assistant Designer Asset library interface.
How to Test LLM Topics
- Navigate to All > Conversational Interfaces > Assistant Designer and select the Asset library tab.
- Choose the LLM option and select the topic you want to test.
- Click Test to open the chat test window in the Now Assist chat widget.
- If a topic is linked to multiple LLM assistants, use the Test skill discovery checkbox and the Assistant drop-down to pick the assistant to test.
- If Microsoft Teams or Slack is configured, test options for those channels appear under the Test button drop-down.
Issue Identification and Feedback
The system visually flags incomplete or problematic topics with badges indicating the number and location of issues. Attempting to test an incomplete topic opens an Issues window listing detailed descriptions and links to each problem area.
During testing, you can provide direct feedback on each LLM-generated utterance by using the thumbs-up or thumbs-down icons, helping to refine the topic’s performance.
Test Information and Next Steps
The chat test window includes tabs like Analyze test phrases, Variables, Context, and Logs, which provide insights into the topic’s behavior and performance during testing.
After testing, close the test window and use the gathered data to improve your topic. For example, low or uncertain confidence ratings on the Analysis tab suggest updating topic descriptions or instructions within LLM user input nodes.
Preview, test, and debug topics that use large language models (LLMs) in the Assistant Designer chat window.
About testing LLM topics
You can test your topic's functions by running your conversation in a chat test window as you work. The web (Service Portal) chat client is the default test window.
If you're using the Virtual Agent integrations with third-party messaging apps, 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.
Starting a test
You can find LLM testing option on the Virtual Agent Designer canvas.
- Navigate to .
- Select the Asset library tab.
- Select the LLM option.
- Select the topic that you want to test.
- Select Test.
The chat test window opens in the Now Assist in Virtual Agent chat widget.
Feedback
You can provide feedback to each utterance made by the LLM by selecting from the like thumbs-up icon or dislike thumbs-down icon
options that appear when you hover over an utterance. All LLM user inputs except the Input Collector have these feedback options.
If you run tests from the Topics page, the test window shows only the Analyze test phrases, Variables, Context (available by default, with no Include topic discovery option), and Logs tabs.
Next steps
When you're done testing your topic, close the test chat window. If necessary, use the test information to adjust your topic to perform more accurately. For example, the results on the Analysis tab may return low scores or Unsure or Unknown confidence ratings. Improve scores by updating the topic description or instructions in the LLM user input nodes.