SpeechSense integration with Bitrix24
To set up SpeechSense integration with Bitrix24:
Get your cloud ready
-
Navigate to the management console
and log in to Yandex Cloud or sign up if not signed up yet. For information on how to get started with Yandex Cloud, see Getting started with Yandex Cloud. -
Accept the user agreement.
-
In Yandex Cloud Billing
, make sure you have a billing account linked and its status isACTIVE. If you do not have a billing account yet, create one. If your billing account has theTRIAL_ACTIVEstatus, activate its paid version. -
Assign the
speech-sense.spaces.creatorrole to your Yandex Cloud account.Note
If you are unable to manage roles, contact your cloud or organization administrator.
Create a service account
Create a service account with the speech-sense.data.editor role for amoCRM access to the SpeechSense project.
- In the management console
, select the relevant folder. - In the list of services, select Identity and Access Management.
- Click Create service account.
- Name the service account:
speechsense. - Click
Add role and selectspeech-sense.data.editor. - Click Create.
Create an API key for the service account
Create an API key for the service account.
-
In the management console
, select Identity and Access Management. -
In the left-hand panel, select
Service accounts. -
Select the
speechsenseservice account. -
In the top panel, click
Create new key and select Create API key. -
In the Scope field, click Select all.
-
Click Create.
-
Save the ID and secret key for later.
Alert
After you close this dialog, the key value will no longer be available.
Create a space and link a billing account
-
Open the SpeechSense home page
. -
Click Create space.
-
Enter a name for the space.
-
Click Create.
-
Link a billing account to the space to pay for SpeechSense.
Note
The user must have the
billing.accounts.editor,billing.accounts.admin, orbilling.accounts.ownerrole for the billing account to manage it.
Add the service account to the space
Add the service account to the SpeechSense space.
- Navigate to the new space in the SpeechSense interface
. - Click
Add participant → Add from organization. - Copy the ID of the
speechsenseservice account you created earlier and paste it to the search bar. - Select the
speechsenseservice account and specify the Data editor role. This role will allow the service account to upload data to SpeechSense. - Click Add.
Create a connection
-
In the SpeechSense UI
, go to the space of your choice. -
In the top-right corner, click More →
Create connection. -
Enter the connection name.
-
Select the
Two-channel audiodata type. -
Under Agent and Customer, specify:
- Channels with the agent's and customer's voices.
- Agent and customer keys from the metadata file. This file contains the call information collected from CRM systems, PBXs, or other sources.
By default, connections include keys with the name and ID of the agent and the customer. In the Name in the system field, enter the name the key will have in SpeechSense.
To specify additional metadata for the agent and the customer, click Add key.
-
Under Shared metadata, provide the keys from the metadata file that are not related to the agent or the customer.
By default, connections include keys with the date, direction, and language of the call. In addition, you can specify the keys you want to receive from the external system. In the Name in the system field, enter the name the key will have in SpeechSense.
List of available fields
This list is valid for the current application version.
{ "id", "portal_user_id", "portal_number", "phone_number", "call_id", "external_call_id", "call_category", "call_duration", "call_start_date", "call_record_url", "call_vote", "cost", "cost_currency", "call_failed_code", "call_failed_reason", "crm_entity_type", "crm_entity_id", "crm_activity_id", "rest_app_id", "rest_app_name", "transcript_id", "transcript_pending", "session_id", "redial_attempt", "comment", "record_duration", "record_file_id", "call_type" }To provide additional metadata, click Add key.
-
Click Create connection.
-
Click ID
in the top-left corner of the connection page to copy the connection ID. Save it as you will need it later.
Create a project
- In the SpeechSense UI
, go to the space of your choice. - Click
Create project. - Enter a name for your project.
- Under Connection, click Add connection and select the connection you created earlier.
- Click Create project.
Set up export from Bitrix24 to SpeechSense
Install the app in Bitrix24
- Navigate to Market in your Bitrix24 account.
- In the search bar, enter
Yandex SpeechSense. - Click Install.
- Check the I have read and agree to... boxes and click Install.
- Click Open app.
Set up export from Bitrix24
-
Set up a connection:
-
Language: Select the language for recognition.
-
SpeechSense connection ID: Enter the ID of the connection you created previously.
-
API key: Enter the secret part of the API key you created previously.
-
Click Check connection.
If the API key and connection ID are correct, you will see the following message:
Successful request to SpeechSense
-
-
Configure other settings:
-
Specify the period to export the calls for.
Note
The export will include the start and end dates.
To export all the calls you have so far, do not specify dates.
-
User list: Specify a comma-separated list of Bitrix24 users whose calls you want to export (a list of your agents). To export calls for all users, leave the list empty.
-
Call direction: Select one or more options:
All: Export calls of all types.Outgoing: Export all outgoing calls.Incoming: Export all incoming calls.Incoming, forwarded to mobile: Export incoming calls that were
redirected to the agent's mobile phone number.Callback: Export calls requested by customers after filling out the CRM form.
-
Minimum conversation time: Specify the conversation duration in seconds. We recommend exporting calls that took 30 seconds or longer.
-
Last processed call ID: Non-editable field indicating which call was processed last.
To reset the field value, click Reset.
-
-
Click Save.
-
Click Start export.
Wait for the export to complete.
Check the result
-
In the SpeechSense UI
, go to the space of your choice. -
Select the project you created earlier.
On the project panel, you will see the imported calls and transcripts. After that, you will be able to configure reports.
If you have any problems, contact Yandex Cloud.