Testing your project
To run a test from the start of your flow, click the play icon in the top right of your project’s canvas. This opens the Test modal where you can preview your design.
Make sure to train your test assistant if you’ve made changes to your intents, utterances, entities or variables. Doing this ensures you’re testing with up-to-date interaction model data. Once your assistant is trained, click the ‘Run Test’ button to begin.
Tip: You can quickly launch the Test modal by hitting ‘R’.
Testing from any block
You can also start a test from any block on the canvas. Hover over the block’s right corner and click the ‘Play’ icon in the block to begin.
Test Controls
Voice, Chat or Button Inputs
You can switch between voice, chat or button inputs during your test. Choose your input by clicking on a respective icon above the test input. Once you’ve selected your input:
- Voice: Hold the spacebar to submit an input. Make sure you’ve enabled your mic.
- Chat: Type in the test input and hit enter/return.
- Button: Click the button. (Note: buttons are set using Choice Steps)
Mute Dialog Audio
You can mute your test assistant’s dialog by clicking the speaker icon in the test modal.
Undo/Redo
During your test, you can undo or redo your last test action by hitting the back or forward buttons above the test input.
Reset Test
If you want to reset your test, click the reset icon in the test modal. This will let you restart your test from the beginning.
Test Settings
To access your test’s settings, click the gear icon in the top nav bar.
Debug Mode
Debug mode lets you see what’s happening behind the scenes when you’re running a test. This could include things like the triggered intent, the path selected, or changes to variable values. Debug messages are shown inline in the dialog so you can understand your assistant’s actions.
Debug mode can be toggled on or off before and during a test.
Intent Confidence Score
When enabled, this setting shows you how confident the natural language model was when matching your test input to a trained intent. Confidence scores and the matched intent are visible under your submitted input.
Intent Confidence Score can be toggled on or off before and during a test.
Guided Navigation
You can use Guided Navigation to manually test your IF conditions and custom action paths. This makes it easy to preview flows that require variable values or inputs from external systems.
When enabled, custom actions or IF conditions will be displayed as buttons in the dialog. Clicking a button will run the selected condition or path.
Testing with Variables
Testing using All Project Variables
To configure variable values for your test, choose ‘All Project Variables’ from the dropdown in the left sidebar. Update the variable values and run your test.
Note: All Variables have a default value of 0 before testing
Testing personas and use cases with Variable States
Variable States let you define variable pre-sets for the scenarios, use cases or user personas for which you’re designing (e.g. New/Return, Authenticated/Unauthenticated users). States are managed on the project-level and can be used by all project users.
Creating Variable States
To create a state, enter Test mode.
From the ‘Select a Variable State’ dropdown, hit ‘Add New.
Enter a name for your state (e.g. Authenticated User)
Choose a starting block for your state. This defines where the test conversation will begin. (Coming Soon)
Lastly, choose the variables and values you want to associate with the state.
Once saved, the state will automatically be applied to your Test.
Applying a Variable State to a Test
To apply a Variable State to your test, either choose a state from the left sidebar or from the selector in the Test Dialog.
Once you’ve selected a state, hit ‘Run Test’
You can reset the test’s selected state by clearing it in the Test Dialog or the left sidebar.
Note: Variable States can also be applied to Shared Prototypes
Manually changing state values
To run a Test using different state values, click into the desired variable input in the left sidebar
Update the value and run your test
Note: You can choose to save your updated state values by hitting the update icon in the left sidebar
Modifying Variable States
To edit the name, starting block or variables for an existing state, select ‘Manage States’ from the left sidebar dropdown.
Make your desired updates and hit ‘Save’
Deleting Variable States
To delete a state, select ‘Manage States’ from the left sidebar dropdown
From the management screen, hit the trash icon next to the state you want to delete