Testing Your Agent
Test your agents thoroughly before deploying to production.
Why Test?
Testing helps you:
- Verify your agent responds correctly to different inputs
- Identify and fix issues before users encounter them
- Refine your agent’s personality and behavior
- Ensure knowledge base integration works correctly
Testing Methods
Web Demo
The quickest way to test your agent:
- Navigate to your agent in the dashboard
- Click Test in Browser
- Speak or type to interact with your agent
- Review responses in real-time
Perfect for quick iterations and testing specific scenarios.
Test Calls
Make actual phone calls to test your agent:
- Set up a test phone number
- Assign your agent to the test number
- Call the number from your phone
- Experience the conversation as your users will
Automated Testing
Set up automated test scenarios:
- Create test scripts with expected inputs and outputs
- Run tests automatically after changes
- Track pass/fail rates over time
What to Test
Basic Functionality
- Greeting: Does your agent introduce itself correctly?
- Intent Recognition: Does it understand different phrasings of the same question?
- Knowledge Retrieval: Can it find and use information from your knowledge base?
- Error Handling: How does it respond to unclear or unexpected input?
Conversation Flow
- Natural Transitions: Do conversations flow smoothly?
- Context Awareness: Does your agent remember earlier parts of the conversation?
- Interruptions: How does it handle being interrupted?
- Escalation: Can it transfer to a human when needed?
Edge Cases
Test unusual scenarios:
- Very long or very short inputs
- Multiple languages (if supported)
- Background noise
- Fast or slow speech
- Multiple topics in one sentence
Iterating Based on Tests
After testing:
- Document Issues: Keep track of problems you find
- Prioritize Fixes: Focus on the most critical issues first
- Update Instructions: Refine your agent’s behavior instructions
- Add Knowledge: Fill gaps in the knowledge base
- Re-test: Verify fixes work as expected
Best Practices
- Test Early and Often: Don’t wait until you’re “done” to start testing
- Use Realistic Scenarios: Test with actual user questions and use cases
- Get Feedback: Have others test your agent and provide feedback
- Track Changes: Document what changed and why between test sessions
- Test After Updates: Re-test whenever you modify your agent
Common Issues and Solutions
Agent Doesn’t Understand Questions
Solution: Add more training data or rephrase instructions
Responses Are Too Long/Short
Solution: Adjust response length in agent instructions
Knowledge Not Being Used
Solution: Verify knowledge base is connected and content is well-structured
Conversations Feel Robotic
Solution: Refine personality instructions and add conversational phrases