Regression test
Check in one run that the agent still sends typical customer messages to the right place – before you deploy a new version.
Validate › Regression test sends a list of test messages to the selected, trained version of the project and shows where the conversation goes after each of them. Use it after you change intents, the training set or the flow, to see that what worked before still works.
Each test case is one message from one starting point: the test does not run whole conversations, and it compares where the conversation goes – not the text of the answer.

Prepare the test cases
A test case has three columns:
start_state
yes
The state where the conversation is waiting when the message comes.
utterance
yes
The customer's message.
target_state
no
The state where you expect the conversation to wait next. Without it, the result is only shown, not judged.
The states are the names from the Code editor (YAML), not the node names on the canvas:
An Answer node named
ANS_MAINwaits for the customer in the stateANS_MAIN_MSG– use it as thestart_state, and as thetarget_statewhen the conversation should come back to that question.An End node named
END_DONEends in the stateEND_DONE_LOOP.
Example for the tutorial agent:
The first row with the column names is optional; without it, the columns must be in this order.
Run the test
The test starts as soon as you load the data:
Upload a
.csv,.tsvor.txtfile with the columns separated by semicolons (;), orselect the rows in Excel (or another spreadsheet), copy them and paste them anywhere on the page with Ctrl+V – the columns are then separated by tabs.
The test runs against the version selected in the project, which must be trained. Larger sets take a while – the rows are processed one after another. The results are not stored: download them before you leave the page.
Read the results
The chart shows, for each target state, the share of test cases that reached it (Accuracy [%]).
Score counts the results: errors (the test case could not be run), fails, unknowns (no target state), SSI matches and matches.
The table shows for each test case the Preprocessed Utterance (after the Setting tab vocabulary and pre-processing), the Predicted state, the Confidence, the other Candidates with their scores, and the Result:
green tick
Match – the conversation reached the target state.
amber tick
SSI match – the predicted state belongs to the same group of states as the target.
red alert
Fail – the conversation went elsewhere.
question mark
Unknown – no target state was given.
red circle
Error – hover over it to see why, for example a state that does not exist.
Download as CSV file saves the results (tab-separated, without the candidates).
Last updated
Was this helpful?