What youโll learn: How to create customer profiles, run automated tests on your AI agents, and interpret test results to improve performance.
What Is Automated Agent Testing?
Automated agent testing allows you to simulate real customer interactions without making actual phone calls. Think of it as a rehearsal where your AI agent practices with different types of customers before going live. Instead of manually calling test numbers, you create Customer Profiles that act like different customers, and the system automatically tests how well your agent handles each scenario.Why Use Automated Testing? ๐ฏ
The Problems It Solves:
- Time-consuming manual testing - No need to manually test every scenario
- Inconsistent test coverage - Ensures all scenarios are tested systematically
- Costly errors in production - Catch issues before real customers are affected
- Difficult to reproduce edge cases - Create specific scenarios that are hard to test manually
The Benefits:
- Fast iteration - Test multiple scenarios simultaneously
- Cost-effective - Only $0.02 per customer profile test
- Consistent results - Same scenarios tested the same way every time
- Comprehensive coverage - Test edge cases that rarely happen in real life
How Automated Testing Works ๐ง
The testing flow is simple:Step 1: Create Customer Profiles
Customer Profiles are simulated customers that interact with your AI agent. Each profile represents a different type of customer with unique behaviors, responses, and scenarios.Accessing the Customer Profile Page
- Navigate to: https://app.vodex.ai/account/test-customer
- Click the โAdd New Customerโ button
- Youโll see a form with several fields to configure
Customer Profile Fields
Hereโs what each field means and how to fill it out:- Customer Name
- Short Description
- Customer Scenario
- User Fields
Customer Name
What it is: A unique identifier for this customer profile.Purpose: Helps you quickly identify which customer scenario youโre testing.Examples:- โSarah - Interested Buyerโ
- โJohn - Difficult Customerโ
- โMaria - Payment Readyโ
- โDavid - Needs More Infoโ
Complete Customer Profile Example
Hereโs a fully filled out customer profile for reference:View Complete Example
View Complete Example
Customer Name: Sarah - Ready to PayShort Description: Customer acknowledges debt and wants to clear it todayCustomer Scenario:User Fields:
Creating Multiple Customer Profiles
For comprehensive testing, create profiles that cover:Essential Test Scenarios:
- โ Happy Path - Cooperative customer who completes the objective
- โ Objection Handler - Customer with concerns or questions
- โ Difficult Customer - Skeptical or resistant customer
- โ Busy Customer - Person who has limited time
- โ Confused Customer - Doesnโt understand or needs clarification
- โ Edge Case - Unusual situations or unexpected responses
Step 2: Test Your AI Agent
Once youโve created customer profiles, itโs time to test your AI agent against them.Starting a Test
-
Navigate to Your Agent:
- Go to the Agents section in your dashboard
- Find the AI agent you want to test
-
Access Test Options:
- Click the three dots (โฎ) next to your agentโs name
- Select โTest Agentโ from the dropdown menu
- Configure the Test: Youโll see a test configuration screen with these options:
- Select Customer Profiles
- Select AI Model
Choose Customer Profiles
What to do: Select one or more customer profiles you created in Step 1.Options:- Single profile - Test one specific scenario
- Multiple profiles - Test several scenarios in batch
- Start Testing:
- After selecting profiles and model, click โStart Testingโ
- The system will begin running automated conversations
- Each profile will interact with your agent independently
What Happens During Testing?
Test Duration: Each test conversation runs automatically and completes within 1-3 minutes depending on complexity. Each test costs $0.02 per customer profile.
Step 3: View Test Results
After testing completes, you can review the results and identify areas for improvement.Accessing Test Results
-
Return to Your Agent:
- Go back to the Agents section
- Find the same AI agent you tested
-
Open Test Progress:
- Click the three dots (โฎ) next to the agent
- Select โTest Agent Progressโ
-
Review Results Dashboard:
- Youโll see a list of all test runs with their status
Understanding Test Status
- Success โ
- Failed โ
- Turn Limit
Success Status
What it means: The conversation completed gracefully without errors.Success indicators:- Agent followed the prompt correctly
- All custom fields were accessible
- Conversation reached a natural conclusion
- No system errors occurred
- Read the conversation transcript
- Verify the agent achieved its objective
- Check if the tone and responses were appropriate
- Confirm all tags (like
(disconnect)) worked correctly
- Did the agent sound natural?
- Was the conversation efficient?
- Could anything be improved?
A โSuccessโ status means technical success - still review for quality!
Analyzing Conversation Transcripts
When reviewing test results, look for these key elements:Conversation Quality Checklist
Conversation Quality Checklist
โ Natural Flow
- Agent sounds conversational, not robotic
- Smooth transitions between topics
- Appropriate pauses and acknowledgments
- Natural response to customer questions
โ Objective Achievement
- Agent stayed focused on the goal
- Successfully completed the intended action
- Didnโt get sidetracked by irrelevant topics
- Used appropriate closing statements
โ Objection Handling
- Acknowledged customer concerns
- Provided helpful responses
- Didnโt sound defensive or pushy
- Offered alternatives when appropriate
โ Technical Correctness
- All custom fields displayed correctly
- Tags triggered appropriate actions
- No error messages in conversation
- Transfers and disconnects worked properly
โ Professional Tone
- Maintained consistent personality
- Used appropriate language
- Showed empathy when needed
- Ended conversation gracefully
Testing Costs and Billing ๐ฐ
Automated testing is extremely cost-effective:Pricing Structure:
- Cost per test: $0.02 per customer profile test
- Pay as you go: Only pay for the tests you run
- Billing cycle: All charges accumulate throughout the day and are deducted at the end of the day
- No subscription fees: No daily or monthly charges - only pay when you test
Cost Examples
| Testing Activity | Number of Tests | Cost |
|---|---|---|
| Run 5 customer profile tests | 5 | $0.10 |
| Run 10 customer profile tests | 10 | $0.20 |
| Run 50 customer profile tests | 50 | $1.00 |
| Run 100 customer profile tests | 100 | $2.00 |
| No testing | 0 | $0.00 |
Value Proposition: At just 2 cents per test, you can thoroughly validate your agents before deploying them to real customers, ensuring quality and reducing costly mistakes.
Best Practices for Automated Testing
1. Create a Comprehensive Test Suite
Build a library of customer profiles that cover all scenarios:2. Test Before Every Major Change
Run your test suite whenever you:- โ Update your agent prompt
- โ Add new custom fields
- โ Change call flow logic
- โ Modify greeting or voicemail messages
- โ Update objection handling strategies
3. Iterate Based on Results
Use this continuous improvement cycle:4. Document Your Test Scenarios
Keep a record of:- What each customer profile tests
- Expected outcomes for each profile
- Changes made based on test results
- Performance improvements over time
5. Test with Realistic Data
Troubleshooting Common Issues
Issue 1: Test Shows Success but Conversation Quality is Poor
Problem: Test passes technically but the conversation doesnโt sound good. Solution:- Read the full transcript carefully
- Identify specific lines that sound unnatural
- Update your prompt with better instructions
- Add more example responses to guide the agent
- Test again with the same profile
Issue 2: Tests Keep Failing with Custom Field Errors
Problem: Agent canโt access custom fields in the conversation. Solution:- Check field names are exactly the same in:
- Your agent prompt
- Your customer profile
- Field names are case-sensitive (
Amountโamount) - Ensure all fields referenced in your prompt exist in the customer profile
- Verify field values are in the correct format
The amount due is {total_amount}โ In Profile:
"Amount": "500"โ Fixed: Both use
"total_amount" or both use "Amount"
Issue 3: Hitting the 25-Turn Limit Regularly
Problem: Conversations are too long and hit the maximum turn limit. Solution:- Simplify your agentโs objectives
- Remove unnecessary questions from the prompt
- Add clearer exit criteria to end calls sooner
- Check for conversation loops (agent repeating same questions)
- Use tags like
(disconnect)more strategically
Issue 4: Customer AI Doesnโt Follow the Scenario
Problem: The AI impersonating the customer doesnโt behave as described in the profile. Solution:- Make the customer scenario more specific and detailed
- Use clear imperative language (โYou shouldโฆโ, โAlwaysโฆโ, โNeverโฆโ)
- Provide example responses in the scenario
- Test with a more advanced AI model (GPT-4 or Claude)
- Break complex scenarios into simpler ones
Issue 5: Tests Pass But Real Calls Fail
Problem: Automated tests work but real customer calls have issues. Solution:- Create more realistic customer profiles
- Add profiles for unexpected customer behaviors
- Include interruptions and side questions in scenarios
- Test with more varied customer personalities
- Review real call recordings and create profiles that match
Advanced Testing Strategies
Regression Testing
Create a baseline test suite that you run before every deployment:A/B Testing Your Prompts
Test different versions of your agent:- Create Agent Version A with one prompt approach
- Create Agent Version B with a different prompt approach
- Run the same customer profiles against both
- Compare results to see which performs better
- Deploy the winning version
Stress Testing
Test extreme scenarios:- Very long customer responses
- Customer who constantly interrupts
- Customer who goes completely off-topic
- Customer who is extremely emotional
- Multiple objections in one call
Progressive Testing
Start simple and increase complexity:Success Metrics
Track these metrics to measure testing effectiveness:| Metric | How to Calculate | Target |
|---|---|---|
| Test Pass Rate | (Successful tests / Total tests) ร 100 | >90% |
| Average Turns | Total turns / Number of tests | <15 turns |
| Scenario Coverage | Number of scenarios tested | All critical paths |
| Issues Found | Problems identified before production | Track trend |
| Time to Fix | Time from issue found to resolved | <1 day |
Next Steps
Now that you understand automated testing:- Start small - Create 3-5 customer profiles for your most common scenarios
- Run your first test - Test your agent with these profiles
- Review results - Carefully read the transcripts and identify improvements
- Iterate - Update your prompt based on findings
- Expand coverage - Gradually add more profiles for edge cases
- Make it routine - Run tests before every significant change
Ready to start testing? Head to https://app.vodex.ai/account/test-customer and create your first customer profile today!
Related Resources
Want to improve your agentโs responses? Check out our Prompt Guide to learn how to write more effective instructions. Need to add automated actions? Visit our Tags Guide to learn about special commands like(disconnect) and (transfer).
Just getting started? Read our Agents Overview to understand the basics of AI agent creation.