Testing
Test and experience a single workflow or full conversation in NLX
Always create a new build to test changes made to your application's configuration options or custom flows.
Test conversation
After completing an application build, locate the test option in the upper right of your application to begin a conversation.
Test a single flow
Test mode on a flow allows you to isolate a specific conversation flow for evaluation. With test mode, you can easily debug or test different variables and translations belonging to your flow. To launch the test widget, select your flow and enable a test chat from the toolbar:
Select Resources from your workspace menu > Choose Flows > Select an existing flow
Click the test chat (play button) in the Canvas toolbar
You can continue to modify and build with your flow while in Test mode. Simplify select the Canvas to adjust the flow and save changes. Re-select the Test icon and refresh the chat to test changes in real time.
Troubleshooting flows through turns
Often when testing our conversations, we may notice errors appear or unanticipated behavior from the application. These issues usually stem from problems with state and variables in a node of a turn:
Missing required variables used in application messaging, payloads, or state modifications
Uncleared variables in retry or revisit scenarios
If an issue is detected by NLX's state tracker, the entire turn will fail to execute or will trigger the application's fallback behavior. Within a test chat in your NLX workspace, you can engage in conversation with your AI application to troubleshoot or view potential errors.
Note the four turns that have taken place in this test chat so far (application messages in grey):

To troubleshoot unexpected errors with a test chat, click the most recent application message to open the Debugger. This shows a top-down timeline of events for that turn, allowing you to expand each logged event and identify the cause of the issue. The debugger also highlights the nodes involved in the turn directly on the Canvas of a current flow:

If having trouble pinpointing which variable's state is causing an issue, start debugging from the first node in the affected turn. Detach it from all subsequent nodes in the turn and connect it to a simple Basic node with a success message. If the turn reaches the success message, continue slowly iterating the process by reconnecting another node, saving, and testing again. When the turn fails, you’ll know the last connected node is where the issue lies.
🧠 Want to learn more? Read all about conversation turns & state
Configure and debug
Within a test chat's panel, you may either select the gear icon to set context or other settings for your test, or select the bug icon to review all logged events from your test transcript for troubleshooting.
Selecting any conversational AI message (in grey) within your test chat provides a sequential list (top-down) of all tracked operations and events that occurred up to the turn selected.
Customize data: If you have used context variables in your conversation, select the Settings of the test chat to enter values into the corresponding fields to test your flow. Simply enter data into an available context variable field and click Save and refresh
Event details: To debug events in your flow, select a conversational AI message (in grey) in the transcript window. Click the expand caret on any item to view the NLU's details
Environment: Change the endpoint for the Data request environment between Production and Development
Last updated

