How to Ping a Buyer Before Each Call and Send the Call Only When It Says Yes

Buyers

A buyer that wants to approve each call before it is transferred can get a ping: before the call goes to the buyer, Trackdrive sends the buyer's URL the call's details, such as the caller's number, state and zip code, and reads the buyer's reply, which it reuses for an identical request within the seconds set in Step 3. When the reply says yes, the call can go to the buyer; when it says no, the call goes to your other buyers instead. This article sets that up for a buyer on its own endpoint, with the payout, call length, states and hours the buyer asks for. A superuser sets it up.

For a buyer on Ringba or CallGrid, see "How to Ping from TrackDrive to Ringba (RTB)" or "How to Ping from TrackDrive to CallGrid (RTB)".

Step 1: Set the Buyer's Hours and Time Zone

Open the buyer's page. In Caps, Hours, & Conversions, set the buyer's Time Zone, which the hours below are read in.

Beside Conversion Settings, click Manage. When the buyer has one conversion setting, it opens here: in its Business Hours, choose a preset or set the hours for each day the buyer takes calls, such as 10am to 7pm Monday to Friday and 11am to 5pm Saturday, and click Save. Add the ping to this conversion setting in Step 2, not to a new one: on a buyer with a ping, each call uses the first of its conversion settings that is open when the call comes in, and passes the buyer over when that setting holds no ping that matches the call. On a buyer with more than one conversion setting, add the ping to each one that can be open while the buyer takes calls.

Set the same hours under the buyer's Business Hours & Caps, which decide when the buyer gets calls at all. A call the buyer takes while none of its conversion settings is open goes to it without a ping.

Step 2: Add the Ping and the Payout

On the conversion setting, click New Conversion Criteria and set:

  • Conversion Type: RTB Ping/Post Dynamic Buyer(s).
  • Name: a name you'll recognize on calls.
  • Bid Price or Revenue, whichever the form shows: what the buyer pays for a converted call, such as 30.
  • The second Conversion Type, after it: Duration, so the call converts on its length.
  • Duration: the seconds the call must last to convert, such as 90.

A reply of only yes or no leaves these amounts as they are.

Under What System Are You Interfacing With?, choose Custom RTB Ping/Post.

Step 3: Send the Call's Details to the Buyer

In Request Settings:

  • Method: how the buyer's endpoint expects the request, such as GET.
  • Request Timeout: how many seconds Trackdrive waits for the reply. Routing waits while the ping runs, so keep it to a few seconds.
  • Seconds To Cache Identical Requests: for this many seconds, at least one, Trackdrive answers a request identical to one it just sent with the buyer's earlier reply instead of sending it again. A token in the Remote URL or POST Body, such as [caller_number], makes a request identical only for calls with the same value; a token only in the Headers doesn't.
  • Remote URL: the buyer's URL, with a token wherever the buyer wants a value from the call. [caller_number] sends the caller's number, [caller_state] the caller's state and [caller_zip] the caller's zip code.
  • Headers, and POST Body when Method is POST (Custom Body): anything else the buyer's endpoint needs, which can carry the same tokens.

Example: a Remote URL of "https://bids.example.com/check?caller_id=[caller_number]&state=[caller_state]&zip=[caller_zip]" sends the buyer the caller ID, state and zip code.

Step 4: Tell Trackdrive What a Yes Looks Like

In Was The Response Acceptable?, the reply is accepted only when it matches:

  • Acceptable HTTP Status Codes: the codes the reply must come back with, such as 200. A reply with any other code refuses the call, and leaving this blank accepts any code.
  • Extract Value From Response Body: leave it blank when the buyer replies with just true or false. When the reply is JSON, such as {"accepting": true}, enter the key that holds the answer, here accepting.
  • Operator: Equals.
  • Check If Response/Extracted Value: true.

Equals compares the whole value, capital letters included, so a reply of True doesn't match true. A reply that doesn't match refuses the call: Trackdrive doesn't send it to this buyer and goes on to your other buyers.

Click Create.

Step 5: Limit the Buyer to Certain States

On the buyer's page, beside Filters, click Manage. Under Manage Filters, edit the Geographical Filters and, under States, choose Matches Any Listed Item and check the states the buyer takes, then click the Update beside them. Callers from other states aren't offered to the buyer and aren't pinged.

Check That It Works

Place a test call. On the call's page, the Call Logs section on the Call Overview tab shows the ping and whether the buyer's reply was accepted, and the Webhook Logs tab shows the request Trackdrive sent and the reply. If every reply is refused, compare the reply with what you entered in Check If Response/Extracted Value.

Related

  • "A Buyer Gets Fewer Calls Than Expected, or None" covers pings that are rejected or bids under Bid Min.
  • "Parsing Webhook Responses in Trackdrive" describes the response fields in more detail.
  • "Ping and Postback Token Formats" lists more tokens a ping can send.
Contact TrackDrive

Questions?

We're here to help. Reach out and a Voice Marketing Cloud Specialist will get back to you.

Email support@trackdrive.com
Request A Demo

Request A Demo.

See how you can improve your marketing and the customer experience with the Voice Marketing Cloud.

Request a demo