From Bright Pattern Documentation
(Created page with "<translate> = Call Flow = Call Flow consists of two methods that get information about an interaction that is active or completed. == Add Interaction Rendered Handler == Gets...") |
|||
Line 30: | Line 30: | ||
|- | |- | ||
| data.item.id | | data.item.id | ||
− | | | + | | Interaction ID (string) |
|- | |- | ||
| data.global_id | | data.global_id | ||
− | | | + | | Global interaction ID (GIID; string) |
|- | |- | ||
| data.phone_number | | data.phone_number | ||
− | | | + | | Customer phone number |
|- | |- | ||
| data.service | | data.service | ||
− | | | + | | Name of the service handling the interaction |
|- | |- | ||
| data.screenpop_data | | data.screenpop_data | ||
− | | | + | | Information shown on screen-pop |
|} | |} | ||
Line 83: | Line 83: | ||
|- | |- | ||
| data.item.id | | data.item.id | ||
− | | | + | | Interaction ID (string) |
|- | |- | ||
| data.global_id | | data.global_id | ||
− | | | + | | Global interaction ID (GIID; string) |
|- | |- | ||
| data.phone_number | | data.phone_number | ||
− | | | + | | Customer phone number |
|- | |- | ||
| data.service | | data.service | ||
− | | | + | | Name of the service handling the interaction |
|- | |- | ||
| data.screenpop_data | | data.screenpop_data | ||
− | | | + | | Information shown on screen-pop |
|- | |- | ||
| data.disposition | | data.disposition | ||
− | | | + | | Disposition of the interaction |
|- | |- | ||
| data.notes | | data.notes | ||
− | | | + | | Any notes recorded by the agent for the interaction |
|- | |- | ||
| data.recording_url | | data.recording_url | ||
− | | | + | | Recording URL (if any) |
|} | |} | ||
Revision as of 18:06, 4 October 2018
<translate>
Call Flow
Call Flow consists of two methods that get information about an interaction that is active or completed.
Add Interaction Rendered Handler
Gets information about an active interaction.
Syntax
window.bpspat.api.addInteractionRenderedHandler(callback) callback = function(data) { }
Parameters
Parameter | Type | Description |
callback | function (data) | JavaScript method executed when API method request is completed |
Response
The response object contains the following fields.
Name | Description |
data.item.id | Interaction ID (string) |
data.global_id | Global interaction ID (GIID; string) |
data.phone_number | Customer phone number |
data.service | Name of the service handling the interaction |
data.screenpop_data | Information shown on screen-pop |
Example
{ data.item_id: "123123123"; data.global_id: "asd234asdf234df" data.phone_number: "55511122233" data.service: "Customer Support" data.screenpop_data: "Case: 123123" data.service: "Customer Support"; }
Add Interaction Completed Handler
Gets information about a completed interaction.
Syntax
window.bpspat.api.addInteractionCompletedHandler(callback) callback = function(data) { }
Parameters
Parameter | Type | Description |
callback | function (data) | JavaScript method executed when API method request is completed |
Response
The response object contains the following fields.
Name | Description |
data.item.id | Interaction ID (string) |
data.global_id | Global interaction ID (GIID; string) |
data.phone_number | Customer phone number |
data.service | Name of the service handling the interaction |
data.screenpop_data | Information shown on screen-pop |
data.disposition | Disposition of the interaction |
data.notes | Any notes recorded by the agent for the interaction |
data.recording_url | Recording URL (if any) |
Example
{ data.item_id: "123123123"; data.global_id: "asd234asdf234df" data.phone_number: "55511122233" data.service: "Customer Support" data.screenpop_data: "Case: 123123" data.service: "Customer Support"; data.disposition: "Case resolved"; data.notes: "good guy"; data.recording_url: "http://" }
</translate>