How-to guides
Test customer experience
Simulate a population of personas to test your AI application
Get your Maihem API key and install the SDK before you start.
1
Create target agent (if you haven't already)
2
Create a test with 'cx' module
Create a test using the Customer Experience (CX) module
. A module defines the scope of a test.
A test will simulate conversations with personas to test the customer experience of your target agent using these metrics:
- Helpfulness
- Goal completion
- Retention
- Net promoter score (NPS)
Guide the simulated conversations using prompts:
maihem_behavior_prompt
guides the behavior of the simulated personasmaihem_goal_prompt
describes the goal of the simulated personasmaihem_population_prompt
describes the desired population of simulated personas
3
Connect target agent with wrapper function
Modify the following function to wrap your target agent:
4
Run the test
A test run
will generate:
- Simulated conversations between your target agent and Maihem
- Evaluations of the conversations
- A list of detected failures
5
See test run results
See the results in your Maihem account.
Or get the test results:
test_run_results
contains the following information: