What is the Playground?
The Playground is an enhanced testing environment in the Advanced Editor where you can interact with your agent in real-time. It allows you to simulate conversations, test different scenarios, and validate your agent’s behavior before deploying to production, all while leveraging the improved code editor features.Testing in the Playground saves time and money by catching issues before they affect real customer calls, with enhanced debugging capabilities through the improved editor interface.
Enhanced Editor Integration
The Playground now benefits from the Advanced Editor’s improved interface, including:- View Controls: Use outline, indented view, and minimap for better code navigation
- Diff Mode: Compare changes with inline/split view options when working with versions
- Focus Mode: Minimize distractions while testing
- Version Integration: See how changes from different versions affect playground behavior
Accessing the Playground
The Playground is located in the right panel of the Advanced Editor. Click the “Playground” tab to access it.Call Types
You can simulate two types of calls with enhanced testing capabilities:| Type | Description | Use Case | Editor Features |
|---|---|---|---|
| 📞 Inbound | Customer calling your agent | Test welcome flow, support scenarios | Use diff mode to compare different greeting versions |
| 📤 Outbound | Agent calling a customer | Test introductions, sales scripts | Focus mode helps concentrate on script testing |
Enhanced Testing Interface
Code Editor Improvements
The Playground now features:- View Controls
- Diff Mode
- Version Integration
- Outline View: Navigate through your agent’s structure quickly
- Indented View: Better visualization of nested logic
- Minimap: Overview of your entire agent configuration
- Focus Mode: Hide distractions during testing
Sending Messages
Text Input
Type messages in the input field and press Enter or click Send. The agent will respond as it would in a real call, with enhanced debugging information available through the improved editor interface.Voice Input
Click the microphone icon to speak your message. The agent will:- Transcribe your speech
- Process the message
- Respond with synthesized voice
Voice testing now integrates with the version system - changes to voice settings are immediately reflected in testing.
Enhanced Conversation View
The Playground displays messages chronologically with improved visualization:| Element | Description | Editor Enhancement |
|---|---|---|
| 👤 User Message | Your inputs (text or transcribed voice) | Syntax highlighting for better readability |
| 🤖 Agent Message | Agent responses | Diff highlighting when comparing versions |
| 🔧 Tool Call | When agent triggers a webhook or action | Collapsible view with detailed parameters |
| ✅ Tool Result | Response from webhook or action | JSON formatting with syntax highlighting |
Audio Playback with Version Tracking
For each agent response, you can:- ▶️ Play the audio response
- ⏸️ Pause playback
- 🔁 Replay messages
- 📊 Compare audio quality across versions
Context Variables with Version Control
Test how your agent handles different input parameters with enhanced management:Enhanced Context Management
Reliability Test with Version Integration
Run multiple iterations with enhanced tracking:Enhanced Testing Features
Advanced Tool Call Testing
When your agent triggers a webhook:- Enhanced Visualization: Tool calls appear with syntax highlighting
- Parameter Inspection: Detailed parameter view with diff comparison
- Response Analysis: JSON formatting with collapsible sections
- Version Comparison: See how tool behavior changed between versions
Evaluation Testing with Diff Support
After a conversation, run evaluations with enhanced analysis:- End the conversation naturally
- Click “Run Evaluations”
- New: Compare evaluation results across versions
- Review which evaluations pass or fail with detailed diff highlighting
Knowledge Base Testing with Version Tracking
Verify your agent’s knowledge retrieval with version awareness:- Ask questions that require KB lookup
- Observe retrieval with enhanced debugging information
- New: Compare knowledge retrieval across different versions
- Check response accuracy with diff highlighting
Enhanced Best Practices
Version-Aware Testing
Version-Aware Testing
Use the version system to test changes systematically. Compare behavior across versions using diff mode.
Focus Mode Testing
Focus Mode Testing
Enable focus mode when doing deep testing sessions to minimize distractions and concentrate on agent behavior.
Collaborative Testing
Collaborative Testing
Multiple team members can test simultaneously with real-time sync showing current version state.
Enhanced Edge Cases
Enhanced Edge Cases
Use the improved editor interface to identify and test more complex edge cases with better visualization.
Diff-Driven Improvements
Diff-Driven Improvements
Use inline/split diff modes to understand exactly how changes affect agent behavior during testing.
Advanced Testing Scenarios
Version Regression Testing
Test that new versions don’t break existing functionality:- Load previous version in split diff view
- Run same test scenarios
- Compare responses side-by-side
Collaborative Testing Sessions
Multiple team members testing simultaneously:- Real-time version sync across all playground instances
- Shared context variables and test scenarios
- Live collaboration indicators
Performance Testing with Version Metrics
Track performance changes across versions:- Response time comparisons
- Memory usage tracking (in debug mode)
- Token consumption analysis
Enhanced Troubleshooting
| Issue | Enhanced Solution | Editor Features |
|---|---|---|
| Agent not responding | Check LLM config with syntax highlighting | Use outline view to navigate to model settings |
| Wrong greeting | Verify call type with diff comparison | Compare greeting logic across versions |
| Missing personalization | Context variables with version validation | Use diff mode to see variable handling changes |
| Webhook issues | Enhanced tool debugging with JSON formatting | Collapsible parameter inspection |
| Version conflicts | Merge conflict resolution in playground | Inline diff shows conflicting changes |
Integration with Version System
The Playground now integrates deeply with the version control system:- Real-time Sync: Testing always reflects the current version state
- Change Detection: Visual indicators show when testing results might differ due to recent changes
- Conflict Resolution: Test behavior during merge conflicts to ensure smooth transitions
Next Steps
Copilot Integration
Get AI assistance with enhanced prompt analysis from playground results
Version History
Track how changes affect playground behavior over time

