OBLYTECH Logo
OBLYTECH Logo

Debugging Virtual Agent Conversations

To debug ServiceNow Virtual Agent conversations, reproduce the failure in a duplicate topic, run Test, inspect node warnings and Validation Issues, then review the test details and conversation transcript. Separate a topic that cannot run from one that runs incorrectly, and retest the conversation in its intended messaging channel.

Start a ServiceNow Virtual Agent debug session with one failure

Write down the exact input, the response you expected, and the first point where the conversation differed. Keep that description narrow: a preview that does not open, a missing answer, and an unexpected topic selection need different investigations. Avoid starting with a list of unrelated changes to the conversation.

For a live topic, duplicate it before debugging or changing its behavior. Retain the original as a reference and recovery option. Before publishing the duplicate, deactivate the original. Keep a short record of which topic is the original and which contains the proposed correction, so the release decision is explicit.

Check which designer experience you are using before following a test procedure. The current Brazil Asset library controls and the legacy Dialogflow discovery test have separate entry points, described below. If the underlying conversation model is unfamiliar, start with the plain-language Virtual Agent guide before changing the flow.

For the investigation record, capture the topic name, the input sequence, the visible symptom, and the person reproducing it.

Check access, scope, and preview prerequisites

If the designer module is missing under conversational interfaces, check whether the user has the virtual_agent_admin role and whether the Virtual Agent plugin is activated. These are checks for a missing designer module; do not treat that role as a blanket explanation for unrelated conversation defects.

If a topic is visible but cannot be edited, record any scope mismatch before editing node content. The logged-in user must be in the same application scope as the topic.

If preview is unavailable, inspect the required fields in the node properties and check that the browser permits pop-ups from the instance. Work through those checks separately. Note whether the preview opens after the browser change or after a missing field is completed, so the defect record identifies the actual correction.

Keep responsibility for investigation and release clear. Use the Virtual Agent roles and responsibilities guide to organize ownership, while checking the access condition for the specific action you are attempting.

Use Test to locate where the conversation diverges

Use the testing entry point for the designer experience you are working in. Replay the recorded input sequence without improving the wording along the way. A different input may produce an interesting result, but it does not establish that the reported failure has been corrected.

Open the test window from the topic and inspect the details available in that experience. In the current Brazil test window, Logs contains processing messages and errors from the run. Record a relevant message with the conversation step where it appeared; do not assume the current tab names also describe the legacy interface.

In the current Brazil experience, start Test from the Asset library topic header. Its six test tabs are Analysis, Modify instructions, Variables, Edit variables, Context, and Logs. Choose the set of controls that belongs to the experience you are testing rather than looking for a legacy tab name in a different interface.

As a debugging method, change one suspected cause and rerun the same inputs. Compare the resulting conversation and test details with your baseline. If the symptom persists, keep that result in the investigation notes; a failed hypothesis can still prevent the next person from repeating an unproductive edit.

Resolve incomplete nodes and blocking validation issues

A control missing necessary information displays a red incomplete badge at its upper left. The number on the badge indicates how many issues affect that control. Select the badge to see the issues instead of guessing which property needs attention.

The canvas also has a warning badge at its upper left that counts issues across the topic. Use the control-level information to make a focused correction, then check the topic-level count. The two views serve different inspection needs: identifying a particular control and checking the wider topic.

  1. Open the issue list on the affected control and identify the missing information.
  2. Complete the relevant node properties, keeping unrelated changes out of the correction.
  3. If an error prevents the topic from running, inspect Validation Issues in the canvas sidebar.
  4. Use a node hyperlink in Validation Issues to navigate to the affected node and correct the reported error.
  5. Run the conversation again and compare it with the recorded failure.

Closing Validation Issues does not resolve the errors. While issues remain, selecting Publish brings the tab back. After the issues are corrected, selecting Publish closes the tab. Treat validation repair and conversation acceptance as separate checks: the investigation should still show that the intended exchange behaves as expected.

Separate a stalled chat from an unexpected conversation path

When the chat widget remains at Connecting…, check that topics are present on the instance and in the Active state. Missing topics are a possible cause of this symptom. Record what you find before changing the wording or logic of a topic that has not yet been shown to be the cause.

For an unexpected path in a conversation that did run, inspect the interaction record. A Virtual Agent conversation automatically generates a record in the Interactions [interaction] table, logging the conversation between the requester and virtual and live agent. The transcript can include live agent transfers when Agent Chat is used.

Compare that transcript with the reproduction notes. Identify the requester’s last input before the unexpected response and the first response that needs investigation. Keep topic discovery questions separate from errors inside a selected topic. For work involving the discovery approach, use the NLU and LLM topic discovery migration guide to frame the wider decision.

For help planning this work, see ServiceNow implementation.

Use the interaction details to follow the failing run

To open the records, enter interaction.list in the navigation filter under All. Open the relevant interaction and inspect its transcript and Interaction Logs. The transcript includes a timestamp for each exchange. Interaction Logs identifies the topics that ran, including setup topics and topics reached through discovery or user selection, with numbers showing their execution order.

As an investigation method, compare that topic sequence with the point of failure in your notes. This gives you two different views of the same run: what the requester saw and which topics executed. Record the interaction number and conversation start time so another investigator can locate the same record. These are suggested evidence fields, not additional requirements for running a topic.

Check the record’s State and State Reason as well. Faulted with an Error reason identifies a runtime exception during message processing. Closed Complete and Closed Abandoned have several possible reasons, so inspect the reason instead of treating the state label alone as an explanation of the conversation’s outcome.

Account for transcript storage before reporting missing evidence. A live chat transcript longer than 4,000 characters is stored as an attachment to the interaction. User-uploaded files are held in Attachments [sys_attachment] and appear in the activity stream. For a transfer to Connect Support, the interaction transcript contains the Virtual Agent portion; the live agent exchange is in the activity stream. Agent Chat transfers can appear in the conversation transcript.

If a conversation creates or updates a case, incident, or request, inspect Related Tasks. Topic design affects whether those records are attached: the Action and Lookup utilities and vaSystem.attachRecordToConversation support this association. Records created or updated through Script Action are not captured as related tasks. As a review step, investigate that design before interpreting an empty list as proof that no task was changed.

Retest the corrected conversation in its destination channel

The Test chat window presents the conversation as it appears within Service Portal. Conversation elements can appear differently in third-party messaging applications. Test in the third-party applications where you intend to deploy Virtual Agent, rather than treating a successful preview as channel acceptance.

Replay the original failure first, then try nearby inputs that should exercise the same corrected path. Record the expected response before running each check. This is a suggested review method: it prevents a tester from accepting whatever answer appears simply because the original error message has disappeared.

Use a compact handover record: original symptom, correction, preview outcome, destination-channel outcome, remaining questions, and release owner. Carry the checks into the Virtual Agent testing and acceptance checklist so the fix has a clear acceptance decision.

Check legacy Dialogflow discovery separately

For a legacy Google Dialogflow ES test, first check that the agent model has a published version containing the latest changes and that at least one topic is mapped to an existing model and intent. The required testing role is virtual_agent_admin or admin. In Virtual Agent Designer, use Test Active Topics from the Topics page and enter an utterance intended to match the mapped intent.

For an entity slot-filling check, add a Text user input node on the Flow tab and choose an NLU entity that is configured in the Dialogflow ES agent. A matching utterance should trigger the topic and fill the entity slot. Record those two results separately as a testing method, so a successful topic selection does not hide an unresolved slot-filling problem.