Skip to content

Aircall

Introduction

Our integration to Aircall triggers a survey after end call via a webhook set-up. The following documentation shows you how to set up the integration.

Prerequisites

  • Have an nps.today subscription
  • IVR in nps.today is enabled
  • Have a Aircall subscription
  • Login with as an Administrator in Aircall
  • Login with as an Administrator in nps.today

Set-up your nps.today webhook trigger

To set-up the webhook trigger you need to go through the following steps.

Install Aircall Webhook

Start by setting up a webhook integration in Aircall.

Go to Integration & API -> Discover integrations -> find the Webhook integration and install it.

Webhook integration

Webhook integration set-up

Custom webhook name:
Give it a proper name.

URL:
Put in the following URL:

https://functions.nps.today/api/aircall/relay/{orgId}
Find your orgId here:
Account -> General -> Account ID. orgID

In this case the URL will look like this:

https://functions.nps.today/api/aircall/relay/aa2b3dfd-5a0b-4d7a-acfb-39b82c5dbe55

Evnets:
Only the event call.ended should be enabled. Webhook set-up

Get your webhook token

When the webhook is installed a webhook token will be generated. This token is needed later. Webhook token

Find your TeamID

The integration uses TeamID to identify what survey should be triggered. The TeamID will be connected to a survey campaign in nps.today via our IVR set-up (read more about this in the chapter about IVR set-up).

If you have a team for Support and a team for Sales these teams can be connected to different campaigns in nps.today to send surveys with a different wording and to easy divide data between teams.

Find the TeamID here:
TeamId

IVR set-up

Log in to your nps.today account with an Admin user.

Go to IVR and click "Add IVR" if IVR is not visible please contact nps.today Support at support@npstoday.com

IVR

Now put in the following information in the IVR set-up:

Name: Give it a proper name
IVR Provider: AirCall
Campaign: Select the campaign that should trigger a survey
Queue Id: Put in the TeamID from Aircall
Webhook Token: Put in the webhook token from Aircall
Minimum call duration in seconds: Decides for how long the call should take to trigger a survey. If set to 10, all calls less than 10 seconds will NOT trigger a survey

Click “Save”
IVR

Now every time a call with the Team with the TeamID = 135656 we trigger a survey from the campaign AirCall if the call was more than 10 seconds.

Data

Below is an example of the data we safe in the custom field om the respondenten in nps.today.

Custom data
{
"id": 1743024112,
"direct_link": "https://api.aircall.io/v1/calls/1743024112",
"direction": "inbound",
"call_uuid": "CAbb0cc3f8e0775181b1f0ef39e1bb7eed",
"status": "done",
"missed_call_reason": null,
"started_at": 1702647402,
"answered_at": 1702647410,
"ended_at": 1702647422,
"duration": 20,
"cost": "0.0",
"hangup_cause": null,
"voicemail": null,
"recording": null,
"asset": null,
"raw_digits": "\u002B45 12 34 56 78",
"user": {
    "id": 1180575,
    "direct_link": "https://api.aircall.io/v1/users/1180575",
    "name": "John Employee Doe ",
    "email": "john.doe@mycompany.com",
    "available": true,
    "availability_status": "available",
    "language": "en-US",
    "wrap_up_time": 0
},
"number": {
    "id": 742204,
    "direct_link": "https://api.aircall.io/v1/numbers/742204",
    "name": "IVR nps test",
    "digits": "\u002B45 89 87 99 16",
    "country": "DK",
    "time_zone": "Europe/Copenhagen",
    "open": true,
    "availability_status": "open",
    "is_ivr": false,
    "live_recording_activated": false,
    "messages": {
        "welcome": "https://media-web.aircall.io/tracks/tts/languages/en/voices/Joanna/85a54589f4bac4767f07c3adb4d5bad49602c0e4.mp3",
        "waiting": "https://media-web.aircall.io/tracks/library/bensound-retrosoul.mp3",
        "ivr": "https://media-web.aircall.io/tts/languages/en/voices/Joanna/5b2401096b75861108e2ceb6ccc4e4c81e03b525.mp3",
        "voicemail": "https://media-web.aircall.io/tracks/tts/languages/en/voices/Joanna/74ce97ac9772be646ccf5583b92be7248930af18.mp3",
        "closed": "https://media-web.aircall.io/tracks/tts/languages/en/voices/Joanna/e5bc465c2b0595ade98a98500aa6851cb557a663.mp3",
        "callback_later": "https://media-web.aircall.io/tts/languages/en/voices/Joanna/a04a676e475a50791cccbea7faa349dab88c4f05.mp3"
    }
},
"archived": false,
"teams": [
    {
        "id": 135656,
        "direct_link": "https://api.aircall.io/v1/teams/135656",
        "name": "Team 1"
    }
],
"comments": [],
"tags": []
}

Note, that we do not save Notes and Tags created by the agent.
Notes & Tags