Skip to main content

Automatic import of calls from Ringostat to Eniq.ai

Automatic import of calls from Ringostat to Eniq.ai

Written by Olga Kalchenko

To set up automatic call forwarding from Ringostat telephony, the following steps must be taken for the analysis:

Go to Project Settings(1), go to the API Keys section(2), create a new key(3):

In the pop-up window, you need to specify the name of the key (1), and click the Create button (2):

After you have created the key, you need to copy and save it, because you will not be able to view it anywhere later:

After that, go to the Ringostat telephony account, go to the Integrations section, Webhooks 2.0 (1), and create a new webhook using the Add event button (2):

To analyze incoming calls, you need to create a webhook with the After call event, for outgoing calls, select After outgoing call:

Configure the webhook as follows:

HTTP method: POST

Headers:

Content-Type: application/json

Authorization: Bearer sk-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

(here instead of xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx - you need to insert the API key that was created in the account in this step)

Sending data format: JSON

Date format: Standard date

The top part for an incoming call looks like this:

Let's move on to the request body:

url - (type text) - value: Conversation recording (wav)

project_id - (type text) - we take the value from the AI ​​account, and enter it simply as a number:

prompt_id - (type text) - we take the value from the account, and enter it simply as a number:

metadata

Department - (type text) - value:Department

Representative - (type text) - value:Employee

uniqueid - (type text) - value:Caller ID

Customer - (type text) - value: for incoming callsThe number of that,Who is calling?. For outgoing callsWhere did you call?

call_date: - (type text) - value -Call date

It turns out like this for an incoming call:

Here it is for the outgoing:

If you need to transmit both incoming and outgoing calls, you need to create 2 webhooks, with different Customer fields, and different events (After call, and After outgoing call)

It is also possible to go to the Filters section and set up criteria for transferring calls by f.e. number/employee or by conversation duration:

After everything is set up, you need to click the “Save” button.

This is how to set up automatic call forwarding with Ringostat. Successfully completed.

Did this answer your question?