Run your first test
Learn how to test your WhatsApp AI Agents to ensure reliability.
You can create and run tests for your agent with the Kapso CLI or with our web app.
Kapso CLI
Run your tests
When you follow the Run your first agent guide, a test directory with a default test suite is automatically created for you. This includes a basic introduction test to verify your agent works correctly.
The default test is located at ./tests/{test_suite_name}/introduction_test.yaml
This test checks if your agent can properly introduce itself with the following criteria:
To run this specific test:
You’ll see detailed test results in your console, including the conversation, feedback, and score:
To run all tests in your project:
This will execute all test files in your tests directory with a more condensed output:
You can also run tests with more detailed output using the verbose flag:
Creating additional tests
Once you’re comfortable running the default test, you can create additional test suites and cases:
And add test cases to your suite:
Web app
[will document soon]