Skip to main content

Uniphore Customer Portal

Testing Conversations in the Chatbot Simulator

You can test a Virtual Agent (VA) conversation using the X-Designer's built-in chatbot simulator. The simulator lets you converse with the chatbot to see how it responds to user requests, as well as validate your Intent Flows.

The simulator also provides a separate Context panel that shows you all the data gathered by the NLP Engine and X‑Platform during the conversation.

Testing a Chatbot
ChatbotSim-PreviewExample_210422.png
  1. Open any Intent Flow in the X-Designer. It does not need to be a Flow that you are testing.

  2. Click the Preview icon located at the top right corner of the Flow Map:

    ChatbotPreviewClick_210420.png

    The Preview panel is displayed.

  3. From the dropdown lists at the top of the panel, select both the VA (or when using the Intelligent Assistant the IA Domain) and Application to test in the simulator.

    The simulator will connect with the selected VA and begin operation.

  4. In the text entry field at the bottom of the panel, enter a typical user request to start the simulated conversation. Then click the Send icon or press Enter:

    ChatbotSim-EnterRequest_270218.png

    The chatbot simulator will transmit the request to the selected VA, and the chatbot will return a response.

    Tip

    The text entry field maintains a history of your recent requests. You can choose a previous entry from the autocomplete dropdown list that appears after entering a few letters in the field.

  5. Respond to the chatbot by entering additional user text in the simulator, until testing is completed.

At any time during the simulation, you can click the Context tab at the top right of the panel to see the accumulated data for the current or any other step, as detailed below.

Testing Form Elements in a Chatbot

When the Intent Flow uses one or more Form Elements, the simulator will display the Forms using a basic UI design:

ChatbotSim-FormExample1-1_200420.png
ChatbotSim-FormExample1-2_200420.png

After the Form element appears in the simulator, entries cannot be made in the text entry field at the bottom of the page. Clicking Cancel in the Form will re-enable the text entry field.

Keep in mind that user response data from a simulated Form element is not always sent to the NLP Engine. You may need to use an Allocator to assign certain Form responses (for example, a Choice variable) to the appropriate Session Context variable, which is then sent to the NLP Engine.

Click to Continue Option

In the above example, we activated the Clicking here proceeds to next page checkbox for the last Yes/No Choice element in the Form Editor:

ChatbotSim-ClickProceedsToNextPage_190318.png

As a result, the chatbot will submit the Form to X‑Platform when the final Choice element is completed by the user. There is no need for the user to click Submit:

ChatbotSim-FormClickContinueOption2_190318.png

When the Clicking here proceeds to next page checkbox is not activated, the user will need to click Submit to send chatbot Form answers to Interact:

ChatbotSim-FormClickContinueOption1_190318.png
Reviewing Simulated Chatbot Data with the Context Panel

You can easily review all request and response data that is produced during a simulation using the Context panel.

Looking at this data helps you to understand:

  • how a user request is being interpreted by the NLP Engine; and

  • the accumulated actions and data collected by Interact.

The simulator displays context data in separate steps for each request and response:

User Step Data

Chatbot Step Data

  • Current user input request or response

  • Name of the Intent recognized by the NLP

  • Parameters accumulated so far

  • Context data accumulated during the conversation

  • For some slot-filling steps (DialogFlow and Watson), the next requested parameter name

  • Current chatbot output request or response

  • Name of the Intent Flow being used by the IA

  • Session Context variable data accumulated during the conversation

  1. While requests and responses are still showing in the simulator, click the Context tab at the top right of the Preview panel. The Context panel will be displayed, showing conversation data for the current step:

    ChatbotSim-ContextFirstStepExample1_200420.png

    This data enables you to easily follow the conversation and view the interactions between the IA and the chatbot. When an Intent Flow does not perform according to your expectations, reviewing Context data can reveal the reasons why.

  2. You can quickly navigate to any step of the conversation using the controls at the top of the panel:

    ChatbotSim-ContextNavigationControls_280218.png
  3. To review Context data for the complete conversation, click the Last step control:

    ChatbotSim-ContextLastStepExample1_200420.png

You can clear the simulator data for the current VA by clicking the Refresh refresh-preview-icon.png icon at the top right of the Preview panel.

Unmapped Flow Handling

A user request may sometimes trigger the NLP Engine to invoke an Intent or Node that is not currently mapped to any Intent Flow in Interact, resulting in a response directly from the NLP Engine.

The Chatbot simulator notifies you of such a scenario via the Context tab:

ChatbotSim-ContextNotMappedExample1_210420.png

The Intent Name that was invoked by the NLP Engine is also returned in the Context data, in the event that further research is needed.

Browsing Conversation History for a Specific VA

Although the chatbot simulator enables testing for only one conversation session at a time, you can optionally browse all past conversation history for a VA. For more details, click here.