1. Description
The task of the flow:
Get the extension of the responsible agent in Creatio on an incoming call,
Route the call to the responsible agent (for 10 seconds).
If there is no answer, redirect the call to the default number or the queue.
1.1. Route to the extension
An example flow can be seen in Figure 1.
Fig. 1. Flow to route an incoming call to the responsible agent in Creatio
For convenience, download the completed json file, which is attached below, and import it.
Route an incoming call to the responsible agent in Creatio-schema.json
1.1.1 Flow description
|
Component |
Block of component |
Component parameters |
Description |
|---|---|---|---|
|
Start |
|
|
Start component |
|
Ringback |
|
|
Set the beeps. Selected tone - %(1000,6000,425);loops=-1 |
|
HTTP Request |
|
|
Execute an HTTP REST request for authorization. This requires:
It is necessary to replace the link with a link to your site;
|
|
String |
|
|
Bring the number to the form by which the search will be performed in Creatio, which means, to revert the number.
|
|
Script |
|
|
Truncate the Creatio BPMCSRF token from the received cookies into the "BPMCSRF" variable to authorize the following requests. This requires:
|
|
HTTP Request |
|
|
Search by the subscriber number for the responsible agent in Creatio (Fig. 2) and get the exstension of this agent (Fig. 3). This requires:
It is necessary to replace the link with a link to your site;
Cookie - Accept - BPMCSRF
Name - owner_caller_id_number - |
|
Set variables |
|
|
Assign variables to be used later. Add:
|
|
If |
|
|
Check if the "owner_caller_id_number" variable has a value. By the number of the caller, you can find out if there is a responsible agent in Creatio |
|
Bridge (branch 1) |
|
|
Connect to the responsible agent in Creatio. This requires:
|
|
Bridge (branch 2) |
|
|
Route a call to a default number. This requires:
|
|
Hangup (branch 2) |
|
|
End the call |
1.2. Redirect to the queue
An example flow can be seen in Figure 2.
Fig. 2. Flow to route an incoming call to the responsible agent in Creatio with the possibility of redirect to the queue
For convenience, download the completed json file, which is attached below, and import it.
Route an incoming call to the responsible agent in Creatio-schema.json
1.2.1.Flow description
|
Component |
Block of component |
Component parameters |
Description |
|---|---|---|---|
|
Start |
|
|
Start component |
|
Ringback |
|
|
Set the beeps. Selected tone - %(1000,6000,425);loops=-1 |
|
HTTP Request |
|
|
Execute an HTTP REST request for authorization. This requires:
It is necessary to replace the link with a link to your site;
|
|
String |
|
|
Bring the number to the form by which the search will be performed in Creatio, which means, to revert the number.
|
|
Script |
|
|
Truncate the Creatio BPMCSRF token from the received cookies into the "BPMCSRF" variable to authorize the following requests. This requires:
|
|
HTTP Request |
|
|
Search by the subscriber number for the responsible agent in Creatio (Fig. 2) and get the extension of this agent (Fig. 3). This requires:
It is necessary to replace the link with a link to your site;
Cookie - Accept - BPMCSRF -
Name - owner_caller_id_number - |
|
Set variables |
|
|
Assign variables to be used later. Add:
A list of possible options can be found here. |
|
If |
|
|
Check if the "owner_caller_id_number" variable has a value. By the number of the caller, you can find out if there is a responsible person in Creatio. In the "Expression" field enter the
|
|
Bridge (branch 1) |
|
|
Connect to the responsible agent in Creatio. This requires:
|
|
Join Queue (branch 2) |
|
|
Redirect a call to the "Telemarketing" queue. In the "Queue" field, select the "Telemarketing". |
|
Hangup |
|
|
End the call |