The Five9 integration enables CallGrid to receive real-time agent availability updates from your Five9 ACD (Automatic Call Distribution) environment. This integration uses Five9's Statistics API to monitor agent status and route calls intelligently based on current agent availability and queue capacity.

Prerequisites
Before setting up this integration, ensure you have:
- An active Five9 account with administrative privileges
- Access to your Five9 Administration Console
- A generated Bearer Authentication Token from your Five9 account
- Your specific Domain ID for the integration
Configuration Steps
Step 1: Generate Bearer Authentication Token
- Log into your Five9 Administration Console
- Navigate to Settings → API → API Keys
- Click Create New API Key or Generate Token
- Set appropriate permissions for statistics access
- Copy the generated Bearer token securely (you'll need this for the integration)
Step 2: Identify Your Domain ID
- In your Five9 Administration Console, note your domain identifier
- This is typically found in your account settings or dashboard URL
- The Domain ID is used to specify which Five9 domain to monitor
- Example: If your Five9 URL is https://app.five9.com/appsvcs/rs/svc/orgs/YourDomain, then "YourDomain" is your Domain ID
Step 3: Configure CallGrid Integration
Phase 1: Basic Template Setup
- Navigate to your CallGrid destination settings
- Click the Webhook tab
- Enable Webhook Integration
- Enable Template Mode
- Select Five9 from the Agent Availability templates
- Fill in the required fields:
Required Configuration Fields
Domain ID (Required)
- Enter your Five9 domain identifier
- This identifies which Five9 domain to monitor for agent availability
- Example: YourCompanyDomain
Bearer Authentication Token (Required)
- Paste your Five9 Bearer authentication token
- This token authenticates your requests to Five9's Statistics API
- Example: Bearer abc123def456ghi789jkl012
- Click Save Webhook to proceed to advanced configuration
Phase 2: Advanced Configuration (Optional)
After saving your basic template configuration, you'll be taken to the advanced configuration screen. The system automatically builds the webhook URL and authentication headers for you.

Request Configuration
URL Structure The webhook URL is automatically generated based on your configuration:
https://developer.alpha.us.five9.net/statistics/v1/domains/xxxxx/statistics/acd-status
HTTP Method
- Method: GET (automatically configured)
- Timeout: 10 seconds (default, adjustable)
Authentication Headers
The system automatically configures the Authorization header:
- Key: Authorization
- Value: Bearer 12345678 (your Bearer token)
Acceptance Parsing
The most important setting is the acceptance criteria, which determines when calls should be sent to this destination.
Parsing Type
- Parse Type: JSON (automatically configured)
- Parse Field: Configure which field from the API response to evaluate
Default Acceptance Criteria The system is pre-configured to check for agents ready for voice calls using the agentsReadyForVoice field:
- Field: agentsReadyForVoice
- Condition: Greater Than
- Value: 0
This configuration accepts calls only when at least one agent is ready to handle voice calls.
Agent Availability Parsing
Response Field Options Configure which fields from the Five9 API response to use for agent availability:
- Property Path: Enter the JSON path to the availability data
- Common Fields:
- agentsReadyForVoice - Agents available to take voice calls
- agentsLoggedIn - Total agents logged into the system
- agentsOnCall - Agents currently handling calls
- agentsInWrapUp - Agents in wrap-up mode
- totalAgents - Total number of agents
Testing Your Configuration
To test your integration:
- Fill in your Domain ID and Bearer Authentication Token in the configuration boxes
- Click Run Webhook button to test the connection
- Verify the test passes and shows your current ACD status data
- Confirm the acceptance parsing works correctly with your agent threshold
The webhook test will connect to your Five9 system in real-time and show you whether calls would be accepted based on your current agent availability.
How It Works
Agent Status Monitoring
The integration monitors real-time agent status changes through Five9's ACD Status API:
- Real-time Polling: CallGrid checks agent availability before routing each call
- ACD Status Evaluation: The system evaluates current agent status against your criteria
- Smart Routing: Calls are only sent when agent availability meets your thresholds
- Load Management: Helps prevent overwhelming your call center during peak times
API Response Structure
Five9's ACD Status API returns agent availability data in the following format:
{
"domain": "YourDomain",
"agentsReadyForVoice": 5,
"agentsLoggedIn": 12,
"agentsOnCall": 7,
"agentsInWrapUp": 2,
"totalAgents": 15,
"timestamp": "2025-09-23T15:30:00Z"
}
Advanced Configuration Examples
Example 1: Basic Agent Availability
Acceptance Criteria:
- Field: agentsReadyForVoice
- Condition: Greater Than
- Value: 0
This configuration accepts calls only when at least one agent is ready for voice calls.
Example 2: Multiple Agent Threshold
Acceptance Criteria:
- Field: agentsReadyForVoice
- Condition: Greater Than
- Value: 2
This setup ensures calls are accepted only when at least 3 agents are ready for voice calls.
Example 3: Capacity-Based Routing
Acceptance Criteria:
- Field: agentsLoggedIn
- Condition: Greater Than
- Value: 5
This configuration requires at least 6 agents to be logged in before accepting calls.
Example 4: Load-Balanced Distribution
Acceptance Criteria:
- Field: agentsOnCall
- Condition: Less Than
- Value: 10
This configuration prevents accepting calls when more than 9 agents are currently on calls, avoiding system overload.
Advanced Use Cases
Multi-Domain Monitoring
Configure multiple CallGrid destinations, each monitoring different Five9 domains for enterprise-level call routing.
Skill-Based Routing
Combine agent availability with Five9's skill groups for intelligent call distribution based on agent specializations.
Performance Optimization
Use ACD status data to create dynamic routing rules that adapt to real-time call center performance.
Troubleshooting
Common Issues
Authentication Failures
- Verify your Bearer token is correct and current
- Ensure the token has proper permissions for Statistics API access
- Check that your Five9 account is active and accessible
Invalid Domain ID
- Confirm your Domain ID exists in your Five9 system
- Verify the Domain ID matches your Five9 account configuration
- Check that the domain is active and properly configured
No ACD Data Returned
- Ensure agents are logged into your Five9 system
- Verify the ACD service is running and configured
- Check that statistics collection is enabled in Five9
API Rate Limiting
- Monitor your API usage to stay within Five9's rate limits
- Consider implementing request throttling if needed
- Check Five9's API documentation for current rate limit policies
Testing the Integration
Manual API Test:
curl -H "Authorization: Bearer your_bearer_token_here" \
"https://developer.alpha.us.five9.net/statistics/v1/domains/your_domain/statistics/acd-status"
Template Configuration Test:
- After entering Domain ID and Bearer token, click Save Webhook
- Review the auto-generated URL and authentication headers
Advanced Configuration Test:
- In the advanced configuration screen, click Run Webhook
- Verify the API response contains expected ACD status data
- Test different field paths and acceptance criteria
Live Integration Test:
- Monitor CallGrid logs for successful API calls
- Verify ACD status data is being parsed correctly
- Test call routing based on agent availability conditions
Rate Limits and Considerations
- API Rate Limit: Monitor usage to stay within Five9's API rate limits
- Response Time: Typically under 500ms for ACD status checks
- Data Freshness: Real-time agent status updates
- System Performance: Consider the impact of frequent API calls during peak hours
Support and Additional Resources
Five9 Documentation
CallGrid Support
If you need assistance with this integration:
- Check the CallGrid logs for error messages
- Verify all configuration parameters
- Test API connectivity using provided curl commands
- Contact CallGrid support with integration details
Related Articles
Continue exploring with these related insights
CallGrid Bid API - Advanced Integration Guide
The CallGrid Bid API allows custom platforms and developers to send real-time bid requests to CallGrid campaigns.
Read ArticlePosting Bids from CallGrid to CallGrid using RTB
This guide will walk you through setting up your CallGrid campaign to send bid requests to another CallGrid customer.
Read ArticleCall Recording Best Practices
Call recording laws vary by state. Some states require only your consent, while others require everyone's consent (all-party consent).
Read ArticleGetting Started with CallGrid
Welcome to CallGrid! This guide will walk you through your first steps to get your account up and running quickly.
Read ArticleAuthor
CallGrid Team
Article Info
Categories
Topics