What is WhatsApp Testing?
WhatsApp testing allows you to test your conversational agents through WhatsApp messages. This provides a text-based alternative to voice testing, making it faster and more cost-effective for workflow validation. WhatsApp testing is useful for:- Testing conversation logic and flow without voice calls
- Validating agent responses and decision-making
- Quick iteration on agent behavior
- Cost-effective bulk testing scenarios
Setting Up WhatsApp Testing
Enable WhatsApp on Twilio
Configure your phone number to send WhatsApp messages in your Twilio account.

See Twilio’s WhatsApp setup guide for details on enabling WhatsApp for your phone number.
Configure Agent Settings
In your agent settings, add the WhatsApp-enabled phone number in the Contact number section and set the Chatbot Provider to WhatsApp.

Run Test as Text
Head to Evaluators, select your evaluator, and click Run Test as Text to execute your WhatsApp test.View your test results via the Results API.
Tool Support
When testing via WhatsApp, the following tools are available:| Tool | Description |
|---|---|
| End Call | End the conversation at any point |
| End Call Only on Transfer | End conversation only when a transfer occurs |
Example Use Cases
Customer Support:Timeouts and Behavior
WhatsApp tests automatically end after a timeout period if no response is received. The timeout is configured in your project settings. When a timeout occurs, it appears in the transcript as:Main agent-whatsapp-timeout
Best Practices
- Use for Workflow Testing - Ideal for validating conversation logic without voice overhead
-
Write Clear Instructions - Be specific in evaluator prompts:
- Verify WhatsApp is Enabled - Ensure your Twilio number has WhatsApp enabled before testing
- Monitor Results - Review transcripts via the Results API to verify conversation flow
Troubleshooting
Test timeout occurred
Test timeout occurred
Solutions:
- Check timeout settings in project configuration
- Verify phone number is correctly configured
- Ensure WhatsApp is enabled on your Twilio number
WhatsApp not enabled
WhatsApp not enabled
Solutions:
- Log into Twilio Console and verify WhatsApp is enabled for your number
- Complete Twilio’s WhatsApp setup process
No messages received
No messages received
Solutions:
- Verify the phone number is WhatsApp-enabled in Twilio
- Check Twilio logs for delivery errors
- Confirm the number format is correct
Next Steps
- Learn about SMS Testing for voice-based text testing
- Explore Test Profiles for identity-based testing
- Review Custom Metrics for conversation validation
- Check Results API for viewing test outcomes