Add-on | AI agents - Advanced |
You can safely test your AI agents and dialogues with the testing options provided within the platform. By using the “Test AI agent” and “Test Dialogue” buttons at the top of the Dashboard, you can go through the dialogue flows you have set up for your AI agents and test:
- If a message can be recognized by the AI agent
- If the built dialogue flows work as expected
When clicking “Test AI agent” or “Test Dialogue”, a chat window will pop up in the bottom right corner. You can then start chatting with the AI agent as a visitor to understand the AI agent's behavior.
Testing AI agents
With “Test AI agent” you can look at the end-to-end experience of interacting with the AI agent, always starting from the Welcome Reply (in the case of chat AI agents), triggering the different responses based on the identified intent.
Testing dialogues
The “Test Dialogue“ option is only available while editing dialogues in the Dialogue Builder. This option allows you to start the testing process from the dialogue you are editing.
Testing branches
Branch testing allows you to start testing from a specific block in the Dialogue Builder. All blocks can be used as a starting point for testing, with the exception of "Visitor Message" and "Link to another Reply" blocks. You can start testing branches with the "Test branch" button in the header of each block.
When you click on “Test Dialogue” or "Test branch", the Session Parameters modal will automatically open. You can add parameters and define their values here, so you don’t have to add them manually as a visitor message or rely on API calls each time you test your dialogue. As an example, if a node expects an order ID as a parameter, you can set that up as a session parameter. The params are stored locally, separately for each dialogue and user.
You can also choose to “Test Without Parameters”, in this case, the already set-up parameters will be ignored, and you don’t have to delete them. You can trigger the Session Parameters modal from the widget too.
Finding test conversations
Once you are done testing in the test widget, you can navigate to the Conversation Logs to find your test conversations. You can also use the “Open in Conversation Logs” option in the test widget to jump to the conversation.
In the Conversation Logs, test conversations are labeled, and you can apply filters to show only test conversations or to hide them.
View predicted intents for visitor messages
If you want to test what intent is detected for a specific visitor message, you can do it while testing the AI agent, with any test mode, in both ticket and chat AI agents. To do that, hover on the visitor message you would like to see the prediction for and click on the "View predicted intents" button. In the "Top Predicted Intents" modal, you will see how confident the AI agent is in identifying the top intents for the visitor message.
0 comments