Dispatch Leads Automation (Incoming Request Global Adapter)
The incoming request global adapter provides a smart API endpoint for programmatic lead injection into the Dialer system.
Based on the benefits of integrating the CommPeak Dialer with a CRM system, we can offer you a middle-ground solution: integrating the Dialer with a custom Webhook adapter Incoming Request Global. This allows you to seamlessly inject leads from any source while utilizing all the automation rules.
Benefits
- Inject your leads into Dialer from any resource via API.
- Create rules that split, and route leads to campaigns using a smart decision logic tree.
- Agents can view your lead information page with an embedded remote iFrame that displays additional lead data directly from your CRM.
Enabling the Feature
If you are interested in the feature, you can submit a support ticket with a request to enable it. After permission has been granted, you can proceed with the next steps.
Setting Up an Incoming Request Global Adapter
To create and configure a remote adapter, complete the following steps.
Step 1: Create a Remote Adapter
-
Go to Settings > CRM Integrations Management.
CRM Integrations Management in the Settings menu
-
Click Add New Integration.

Adding a CRM integration
-
Choose Incoming Request Global under Adapter Type.
-
Complete the creation form with the following details:
-
Enter your desired name for integration.
-
Set 1 under Realtime Refresh Interval.
-
Select the Is Active HLR Lookup checkbox if you want each lead injected into the Dialer to have its phone number validated by the CommPeak LookUp service, providing alerts about its status.
-
Select the Active checkbox to enable this adapter integration.
Integration settings - part 1
-
In Hook Username, enter the username of your account for accessing the CommPeak Dialer API.
-
In Hook Password, enter the account password.
-
CRM name for refresh request URL and Refresh Request URL are optional fields. If your system requires automatic requests to notify you about updated leads on your end, we offer to send these requests with a time gap (from and till) that indicates the lead update period needed by the webhook.
To disable this feature, set 'disable' in both fields. Otherwise, specify '*' and your URL endpoint forPOST
requests, including the form parametersfrom
andtill
in DateTime format. -
URL for lead details IFrame: We allow you to open a remote URL (via IFrame or a new tab) during the lead call bridge with your agent. Simply insert your URL, and it will redirect to the lead's data.
Theoriginal_identifier
placeholder will include your lead ID based on your field mapping configuration.
Example:https://your_crm_domain.com/lead-info?{original_identifier}
Integration settings - part 2
-
-
Click Create.
URL for lead details IFrame - what is needed?
Ensure that all your agents have the necessary permissions to view the URL content page before enabling this feature.
To display your page content as an IFrame within the Dialer, ensure that your server allows this functionality. You can learn more info about IFrame content in the Predictive Dialing article.
Step 2: Perform Fields Mapping
-
Go to the newly created adapter and click Fields Mapping in the Actions column.
Fields mapping in actions
-
Map the Dialer fields to the corresponding remote fields (your lead fields) based on your logic. Be sure to configure the following settings:
-
Original Identifier -> Lead ID and
-
Phone -> Phone
Mapping Dialer fields to remote fields
-
Step 3: Configure Import Groups
-
Go to the newly created adapter and click Import Groups in the Actions column.
Import groups in actions
-
Click Add New Input Group.
Add New Input Group button
-
Fill form data according to the example:
-
Enter a name for the new group.
-
Select the Use this Import Group checkbox.
-
Define how you would like to treat duplicate leads.
Setting action with duplicate leads
-
-
Click Create.
-
Now you have two endpoints:
Leads
andStatuses
that allow you to inject data. Follow the link to learn more about the Dispatch Leads API endpoint.
Create rules for your new endpoints:The Rules button in the adapter settings
-
On the Input Groups page, go to Rules in Actions.
-
Click Create New Rule.
The Create New Rule button
-
Configure your rule automation logic based on your specific requirements.
Rule setup example
In this scenario, we filter specific affiliates based on their designated language and 'online' hot leads, then route them to a targeted campaign with weight boosting. This approach prioritizes leads in the predictive call queues.
Rule setup example
-
Ensure your automation rules are properly configured, and prioritize them based on your specific needs.
Input group example
-
-
You are ready to go! Continue working with your new Dispatch Leads API endpoint.
Lead Fields
Mandatory
The fieldsid
, phone
and last_updated_at
must be sent over all requests.
*"id" => "lead id",
*"phone" => "Phone",
*"last_updated_at" => [
'name' => 'Last updated at',
'type' => 'datetime'
],
Optional
"first_name" => "First Name",
"last_name" => "Last Name",
"campaign" => "Campaign",
"source" => "source",
"affiliate" => "Affiliate",
"country" => "Country",
"language" => "Language",
"status" => "Status",
"agent" => "Agent",
"email" => "Email",
"desk" => "Desk",
"business_unit" => "Business Unit",
"registration_date" => [
'name' => 'Registration Date',
'type' => 'datetime'
],
"last_login_date" => [
'name' => 'Last login date',
'type' => 'datetime'
],
"first_deposit_date" => [
'name' => 'First Deposit date',
'type' => 'datetime'
],
HTTP Responses
Response code | Description |
---|---|
200 | Body: [status: true] - all data inserted successfully Body: [status: false] - data not inserted, check request structure |
401 | Error with credentials |
404 | Record Not Found (dialer import group settings error) |
422 | Bad request (request hook type not recognized) |
406 | Lead not available to update. Try next time. The lead is currently in one of these states: lead on call, lead has a temporary status (pending automation finished), and the last update occurred in the last 1 min. In this case, you should manage the retrials on your API end to send the update again in the next 10 minutes. |
Logging
Incoming requests to your endpoints are located on Settings > CRM Integrations Management > CRM Incoming Requests.
IMPORTANT
- All datetime formats are in UTC.
- Client API request source IP should be included in the account's IP ACL.
Updated 6 days ago