Useful customizations itgrix_kmo (Kommo)
Since version 3.0.0.
Call processing scheme by Itgrix integration module
(Scheme for versions starting from 3.0.0)


"Request a conversation" - when the phone rings at the employee / client. There can be several "conversations" in one "call" (in case of call transfer).
Brief description of customizations
â„–
Customization file (in alphabetical order)
Description
1
Is it necessary to register the call? It is possible to make black/white lists by internal number/trunk.
3
Change your phone number before registering to CRM. You can change the format of your phone number (+7, 8...).
6
Changing parameters when initiating a call from CRM. You can call through another trunk, through another context, change the number format, and so on.
7
Customizing the path to the conversation recording file. Also in this file, converting from wav to mp3 format is configured.
Description Converting record to mp3 format.
8
Changing the settings for creating tasks on missed calls. Changing the task name can interfere with the automatic task completion option.
13
Changes the parameters for creating unsorted. Allows you to change the contact and lead fields.
Input and output parameters of customizations
1) need_registration
Used to implement black/white list functionality by numbers, trunks and other more complex conditions.
Basic black/white list configuration for internal numbers is available from the admin panel.
Examples: Black/white list for trunks.
Input:
The full set of call data is described in the article Call data (call_full) in customizations.
Return:
2) process_call_params
Changing call registration parameters.
Read more about call statuses (call_status and call_result fields) in the article Detailed call statuses.
Input:
The full set of call data is described in the article Call data (call_full) in customizations.
Return:
3) process_client_phone
Converting client phone numbers before sending requests to amoCRM.
Auto number change is available, it is started BEFORE customization is performed.
Examples in the article Changing customer number before sending to CRM.
Input:
Return:
4) process_contact_creation_params
Changing contact creation parameters.
In Kommo, by default, there is no field for a phone number in a contact. Instead, custom contact fields are used.
Itgrix_kmo works with the contact field "code": "PHONE" at the available value "enum": "WORK". If there is no such field for contacts in the account, the module will not run.
Detailed description of custom fields in Kommo API documentation.
Example: Changing the tag when creating a contact/deal.
Input:
Return:
The parameters of the contact creation request are described in the Kommo API documentation.
5) process_lead_creation_params
Changing the parameters for lead creating.
Example: Changing the tag when creating a contact/lead.
Input:
Return:
The parameters of the transaction creation request are described in the Kommo API documentation.
6) process_originate_params
Changing parameters at call initialization from Kommo.
Detailed description with examples in the article Changing parameters during click-to-call.
7) process_record_file_path
Converting the path to a call recording file.
Detailed description with examples in the article Customizing audio file name.
When registering a call in amoCRM, a player will be added to the note to play a recording of that call (via a link that the Itgrix module adds automatically). But the player only supports mp3 format.
Conversion of call recording files to mp3 is already enabled by default when installing Itgrix_kmo.
Since conversion of records can take considerable time, this customization has an individual timeout of 10 seconds (can be changed in the connector configuration file - /etc/itgrix_amo/config.json).
If the record fails to convert before the timeout expires, the original file will be used.
8) process_task_creation_params
Customization of task creation parameters (on missed incoming call or unanswered outgoing call).
This customization works only if task creation is enabled in the Connector settings.
This customization is done after applying settings from the admin area..
Input:
Return:
Parameters of the task creation request are described in the Kommo API documentation.
9) customize_autodistribution
Customization of autodistribution of incoming calls.
For the auto-distribution function to work, it is necessary to configure Asterisk, described in the article Auto-distribute a call to the responsible manager.
Input:
Return:
name - the text that will appear in CallerID and will be displayed in the operator's phone (or softphone).
Must be no more than 20 characters (Asterisk limitation)!
Fields from, trunk, entity and error - are read-only and only present when not empty.
These fields, as well as request_data will be automatically deleted even if you return them in the object data.
10) post_registration
This customization gives you the option to perform any actions after the call is registered.
Input:
Return:
The only thing that needs to be returned state, the other things are ignored.:
11) process_contact_update_params
Changing contact update settings.
Input:
Вернуть:
The parameters of the contact update request are described in the Kommo API documentation.
12) process_lead_update_params
Changing the parameters of lead update.
Input:
Return:
Parameters of transaction update request are described in Kommo API documentation.
13) process_unsorted_creation_params
Changes the parameters for creating an unassembled. Allows you to change the contact and transaction fields.
Input:
Return:
Last updated