LeadSquared CRM

Steps to integrate LeadSquared CRM with Servetel

leadsquared_0

  1. Login to your LeadSquared account.
  2. Click Apps > Apps Marketplace present in the top navigation bar.
  3. Verify it contains LeadSquared Generic Telephony Connector.

leadsquared_1

  1. Configure the settings by clicking the cog icon.

leadsquared_2

  1. The below configuration page appears. Enter the name as Servetel and click Save.

leadsquared_3

  1. Now, add Virtual Number in the format +91-XXXXXXXXXX and give a name to it. Click Add button.

leadsquared_4

  1. Next, enable the Agent popup API and click Save button.

leadsquared_5

  1. Under Click 2 Call, ensure the fields have the following details:

leadsquared_6

FieldValue
URLhttps://api.servetel.in/v1/click_to_call/\{Auth_Token}
HTTP MethodPOST
Response KeywordOK, Success
Request TypeJSON
Data Template{"destination_number":"@customerNumber","agent_number":"@agentNumber","caller_id":"@virtualNumber"}
Response TypeJSON
  1. Click Save button. You will get a prompt: Click2Call configuration was saved successfully.
  2. Now, click on Manage Users.

leadsquared

  1. Edit the user by clicking on the cog icon present next to it.

leadsquared_9

  1. Ensure the Show Phone Call Popup under Other Details is stated as Yes. If not, then you can change the settings by clicking Edit.

leadsquared_10

  1. Go onto User Settings.

leadsquared_11

  1. Click on API and Webhooks.

leadsquared_12

  1. The API and Webhooks page displays the "Access Key" and "Secret Key".

leadsquared_13

The above highlighted API host URL, access key and secret key will be used while configuring the webhooks. The secret key is supposed to be confidential and should not be shared with anyone.

  1. Next, login to your Servetel account. Click on Webhook under Services tab.

leadsquared_14

  1. Create four webhooks by clicking Add Webhook present on the top-right corner of the page.
    a) Agent Pop up to get screen prompt when a prospect/lead calls you
    b) Call Log API LS(Incoming-Answered) to manage logs for incoming answered calls
    c) Call Log API LS(Incoming-Missed) to manage logs for incoming missed calls
    d) Call Log API LS (Outgoing) to manage logs of outgoing calls

leadsquared_15

  1. Create the first webhook by entering the below mentioned details.

leadsquared_16

FieldValue
NameAgent Pop up LS
DescriptionAgent Pop up LS
TriggerDialed on Agent
URLhttp://{host}/v2/Telephony.svc/ShowAgentPopup?accessKey={AccessKey}&secretKey={SecretKey}
where,
host refers to the API host URL,
AccessKey is your unique access key,and
SecretKey is your unique secret key
RequestPOST
Call TypeInbound
Content-Typeapplication/json
My NumbersChoose the virtual number from the list
TimezoneChoose the timezone.

Enter the below code in Response Body:
{
"SourceNumber": " $caller_id_number",
"DestinationNumber": " $agent_number",
"DisplayNumber": " $caller_id_number",
"Direction": "inbound",
}

  1. Hit Save button.
  2. Fill the details for the second webhook "Call Log API":

leadsquared_17

FieldValue
NameCall Log API LS (Incoming-Answered)
DescriptionCall Log API LS (Incoming-Answered)
TriggerCall answered by Agent(Hangup)
URLhttps://{host}/v2/Telephony.svc/LogCall?accessKey={AccessKey}&secretKey={SecretKey}
where, host refers to the API host URL, AccessKey is your unique access key,and SecretKey is your unique secret key
RequestPOST
Call TypeInbound
Content-Typeapplication/json
My NumbersChoose the number to be called.
TimezoneChoose the timezone.

Enter the below code in Response body:

{
"SourceNumber": " $caller_id_number",
"CallerSource": " $caller_id_number",
"DestinationNumber": " $call_to_number",
"DisplayNumber": " $caller_id_number",
"StartTime": " $start_stamp",
"EndTime": " $end_stamp",
"CallDuration": " $duration",
"ResourceURL": " $recording_url",
"Direction": " $direction",
"callSessionID": "uuid"
"Status": " $call_status"
}

  1. Enter the below mentioned details for the third webhook:

leadsquared_17

FieldValue
NameCall Log API LS (Incoming-Missed)
DescriptionCall Log API LS (Incoming-Missed)
TriggerCall missed by Agent(Hangup)
URLhttps://api.leadsquared.com/v2/Telephony.svc/LogCall?accessKey=(Accesskey)&secretKey=(Secret key)
where, host refers to the API host URL, AccessKey is your unique access key,and SecretKey is your unique secret key
RequestPOST
Call TypeInbound
Content-Typeapplication/json
My NumbersChoose the number to be called.
TimezoneChoose the timezone.

Enter the below code in Response body:

{
"SourceNumber": " $caller_id_number",
"CallerSource": " $caller_id_number",
"DestinationNumber": " $call_to_number",
"DisplayNumber": " $caller_id_number",
"StartTime": " $start_stamp",
"EndTime": " $end_stamp",
"CallDuration": " $duration",
"ResourceURL": " $recording_url",
"Direction": " $direction",
"callSessionID": "uuid"
"Status": " $call_status"
}

  1. Enter the below mentioned details for the fourth webhook:

leadsquared_18

FieldValue
NameCall Log API LS (Outgoing)
DescriptionCall Log API LS (Outgoing)
TriggerCall Hangup
URLhttps://{host}/v2/Telephony.svc/LogCall?accessKey={AccessKey}&secretKey={SecretKey}
where, host refers to the API host URL,
AccessKey is your unique access key,and
SecretKey is your unique secret key
RequestPOST
Call TypeOutbound
Content-Typeapplication/json
TimezoneChoose the timezone.
Outbound TypeClick to call

Enter the below code in Response body:

{
"SourceNumber": " $caller_id_number",
"CallerSource": " $caller_id_number",
"DestinationNumber": " $call_to_number",
"DisplayNumber": " $caller_id_number",
"StartTime": " $start_stamp",
"EndTime": " $end_stamp",
"CallDuration": " $duration",
"ResourceURL": " $recording_url",
"Direction": " $direction",
"callSessionID": "uuid"
"Status": " $call_status"
}

On following the above steps, you will be able to see a pop up on your LeadSquared CRM account whenever a lead or prospect tries to reach you. You will see a pop up like the one shown below:

leadsquared_19

The pop up dialog box displays the caller's first name, last name, email address (if saved, otherwise shows blank fields) and phone number. It also shows any previously saved notes of the prospect/lead and the name of the receiver in owner field.