The TLD (The Lead Dialoguer) Agent Availability integration enables CallGrid to check dialer readiness in real-time before routing calls. This integration helps ensure calls are only sent when your TLD dialer system is ready to handle them.
Prerequisites
Before setting up this integration, ensure you have:
- An active TLD account with API access
- Your TLD subdomain information
- Your Ingroup ID from your TLD system
Configuration Steps
Step 1: Gather TLD Information
- Log into your TLD system
- Locate your subdomain (e.g., "dialer" if your domain is dialer.tldcrm.com)
- Find your Ingroup ID value from your dialer configuration
Step 2: 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 Agent Availability template type
- Select TLD from the available templates
- Fill in the required fields:
Required Configuration Fields

Sub domain (Required)
- Enter your TLD subdomain
- Example: dialer
Ingroup ID (Required)
- Enter your Ingroup ID value
- This identifies which ingroup to check for availability
- Click Save Webhook to proceed to advanced configuration
Phase 2: Advanced Configuration
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:

HTTP Method
- Method: GET (automatically configured)
- Timeout: 10 seconds (default, adjustable)
URL Parameters The integration automatically includes these query parameters:
- ava: Set to 1 to check availability
- ing: Your configured Ingroup ID
- Dynamic phone number from [[tag:InboundNumberNoPlus]]
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 dialer readiness using the ready field:
- Field: ready
- Condition: Greater Than
- Value: 0
This configuration accepts calls only when TLD responds with a ready value greater than 0.
Testing Your Configuration

To test your integration:
- Fill in your Sub domain and Ingroup ID
- In the webhook testing section, provide test values:
- tag:InboundNumberNoPlus: Enter a test phone number without plus sign (e.g., 5551234567)
- Click Run Webhook to test the connection
- Verify the test passes and shows your TLD system's current readiness status
- Confirm the acceptance parsing works correctly with the response
The built-in webhook test will connect to your TLD system in real-time and show you whether calls would be accepted based on your current dialer availability.
How It Works
Dialer Availability Check
The integration monitors real-time dialer readiness through TLD's Dialer API:
- Real-time Polling: CallGrid checks dialer availability before routing each call
- Readiness Evaluation: The system evaluates current dialer status against your criteria
- Smart Routing: Calls are only sent when dialer availability meets your thresholds
- System Protection: Helps prevent sending calls to unavailable or overloaded systems
Advanced Configuration Examples
Example 1: Basic Readiness Check
Acceptance Criteria:
- Field: ready
- Condition: Greater Than
- Value: 0
This configuration accepts calls only when the TLD dialer is ready.
Example 2: Enhanced Readiness Threshold
Acceptance Criteria:
- Field: ready
- Condition: Greater Than
- Value: 1
This setup ensures calls are only accepted when readiness value is greater than 1.
Example 3: Ingroup Validation
Acceptance Criteria:
- Field: ingroup_id
- Condition: Not Equals
- Value: null
This configuration ensures calls are only accepted when a valid ingroup is confirmed.
Troubleshooting
Common Issues
Connection Issues
- Verify your subdomain is correct and matches your TLD system
- Ensure your TLD system is accessible and running
- Check network connectivity to TLD's API endpoints
Invalid Ingroup ID
- Confirm your Ingroup ID exists in your TLD system
- Verify the Ingroup ID is active and properly configured
- Check that the ingroup has agents assigned
No Ready Status
- Ensure agents are logged into your TLD system
- Verify the ingroup is properly configured and active
- Check that the dialer service is running and responsive
Phone Number Format Issues
- Verify phone numbers are being passed without the plus sign
- Check that the InboundNumberNoPlus tag is being populated correctly
- Test with different phone number formats if needed
Testing the Integration
Template Configuration Test:
- After entering subdomain and ingroup ID, click Save Webhook
- Review the auto-generated URL and parameters
Built-in Webhook Test:
- In the advanced configuration screen, provide test values:
- tag:InboundNumberNoPlus: Enter a test phone number (e.g., 5551234567)
- Click Run Webhook to test the connection
- Verify the response contains expected readiness data
- Test different acceptance criteria using the webhook test feature
Live Integration Test:
- Monitor CallGrid logs for successful availability checks
- Verify dialer readiness data is being parsed correctly
- Test call routing based on availability conditions
This integration helps prevent sending calls to unavailable systems and improves overall call handling efficiency by ensuring your TLD dialer is ready before routing calls.
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