CallGrid

DialedIn Agent Availability Integration

Check DialedIn inbound agent availability before CallGrid routes a call: Ping template setup, threshold, Field Mapping, Capacity Guard and SIP notes.

Updated 4 min read

Overview#

This integration lets CallGrid ask DialedIn how many inbound agents are available before sending a call or bid to a buyer's destination. It runs on the destination's Ping. If the count is below your threshold, the ping is rejected and routing moves to the next destination.

The ping runs for each call or bid that reaches the destination. It is not a background feed from DialedIn.

Prerequisites#

  • A DialedIn account with admin access to the Management Console.
  • A DialedIn API Token.
  • The DialedIn Account ID.
  • A CallGrid buyer and a destination for it, saved at least once (the Ping tab is available only after the destination is saved).

Step 1: Get your DialedIn credentials#

  1. In the DialedIn Management Console, open API settings or the Integration section.
  2. Generate or copy the API Token. Store it securely.
  3. Note the Account ID from account settings.

Step 2: Configure the destination Ping#

  1. In CallGrid, go to Buyers > Destinations and edit the destination.
  2. Open the Ping tab and turn on Ping Integration.
  3. Turn on the Ping Template toggle, then in the template picker choose DialedIn.
  4. Fill in the template fields:
    • API Token
    • Account id, for example 12345678
  5. Review the generated Request Data and Headers.
  6. Keep the Ping Timeout short so a slow DialedIn response does not delay routing.
  7. If DialedIn restricts API access by IP, turn on Use Static IP for requests and allow 3.232.249.88 and 54.160.65.103. These addresses apply to pings and webhooks, not to SIP calls.
Destination Ping tab with the DialedIn ping template selected, API Token and Account id filled

Turn on Ping Template (2), choose DialedIn (3) and enter your API Token and Account id (4).

Step 3: Set the agent threshold#

The template's acceptance rule reads AvailableInboundAgents with Parsing Type JSON. Operators are Equals, Not Equal To, Greater Than and Less Than, so set the value to one less than the minimum number of agents you want:

Rule

Accepts when

AvailableInboundAgents Greater Than 0

At least 1 inbound agent available

AvailableInboundAgents Greater Than 1

At least 2 available

AvailableInboundAgents Greater Than 2

At least 3 available

AvailableInboundAgents Greater Than 4

At least 5 available

Step 4: Field Mapping > Agent Availability#

The template does not set this mapping for you. Under Field Mapping > Agent Availability, map AvailableInboundAgents yourself. Bidding can then throttle on the agent count, and the value shows as Avg Agents in Reports > Pings and as Agents Available on Reports > Agents.

DialedIn template acceptance rule AvailableInboundAgents Greater Than 0, and the Agent Availability field under Field Mapping to map yourself

The DialedIn template accepts on AvailableInboundAgents Greater Than 0 (1). Map Agent Availability yourself (2).

Step 5: Test#

  1. In Ping Testing, fill in any Test Variables the request uses, then click Run Ping.
  2. Confirm the response includes AvailableInboundAgents and that the result matches your rule.
  3. Test once with agents available and once with none available.
  4. Click Save Ping, then Save Destination.

Step 6: Protect agents from overlapping calls#

Availability can change between the ping and the call. In the destination's Capacity and Limit Settings, turn on Enable Capacity Guard and set Capacity Guard Seconds, matched to your bid expiration where possible. Capacity Guard holds the destination out of new auctions for that time after its ping wins.

If the buyer takes calls over SIP#

DialedIn can receive calls on a SIP URI (Phone Type SIP). SIP delivery does not work when the buyer's SIP endpoint is also on Twilio. Keep such a buyer on a phone number instead.

Failure handling and limits#

  • Rejection Protection off: a DialedIn timeout or error rejects the ping and skips the destination. On: errors do not reject the call or bid. Turn it on only if you would rather send calls during a DialedIn API outage than lose them.
  • A Webhook Timeout source override (campaign Sources tab) can shorten the ping timeout for a given source. Its minimum is 1 second.
  • Every call or bid sends a DialedIn API request. Set Max Pings Per Minute on the destination if DialedIn rate limits your account. A 429 counts as API Failed in the Pings report.

Monitoring#

Reports > Pings, grouped by destination: Accept %, Failed Accept, Timeout %, API Failed, Rate Ltd, Avg ms and Avg Agents. Reports > Agents shows Agents Available per destination.

Troubleshooting#

Problem

Check

Authentication failure

API Token is current and permitted; account is active

Invalid Account ID

ID exists and matches the DialedIn account

0 agents while agents are logged in

Agents are set to take inbound calls; DialedIn monitoring is working

Every ping rejected

Threshold too high, or wrong property path

Agent count missing from reports

Field Mapping > Agent Availability not set

Timeouts or API Failed

DialedIn latency, expired token or rate limit; lower Max Pings Per Minute

SIP calls fail to connect

Buyer's SIP endpoint is on Twilio; switch the destination to a phone number

Resources#

  • DialedIn API integration guide: https://getdialedin.com/integrations/api/
  • DialedIn documentation: https://docs.getdialedin.com/

Do it with AI#

Ask Claude or ChatGPT. Try: "How many pings to my DialedIn destination were rejected for low agent count this week?" Claude and ChatGPT need the CallGrid connector turned on (setup guides for Claude and ChatGPT).

The connector is read only. It looks things up and reads your data. You make the changes in CallGrid.

Stuck on a step? Ask Griddy.