From Bright Pattern Documentation
Line 1: | Line 1: | ||
<translate> | <translate> | ||
= completeInteractionWithDisp = | = completeInteractionWithDisp = | ||
− | Completes and dispositions the interaction. | + | Completes and dispositions the interaction using the interaction ID and disposition code. |
See the Embedded Agent Desktop Specification's [[Embedded-agent-desktop-sdk-specification/UseCases/EndDispositionComplete | Use Cases]] section for ways to use this method. | See the Embedded Agent Desktop Specification's [[Embedded-agent-desktop-sdk-specification/UseCases/EndDispositionComplete | Use Cases]] section for ways to use this method. | ||
Line 7: | Line 7: | ||
== Request == | == Request == | ||
=== Syntax === | === Syntax === | ||
− | window.bpspat.api.completeInteractionWithDisp(item_id, | + | window.bpspat.api.completeInteractionWithDisp(item_id, disposition_code, notes) |
=== Parameters === | === Parameters === | ||
Line 15: | Line 15: | ||
| '''Optional/Required''' | | '''Optional/Required''' | ||
| '''Description''' | | '''Description''' | ||
+ | | '''Example''' | ||
|- | |- | ||
| item_id | | item_id | ||
| string | | string | ||
| required | | required | ||
− | | | + | | The interaction ID of the interaction |
+ | | "EE55D97E-2705-49D1-A36D-34B3381DD416" | ||
|- | |- | ||
− | | | + | | disposition_code |
| string | | string | ||
| required | | required | ||
− | | | + | | The disposition code to be set for the interaction |
+ | | "12345" | ||
|- | |- | ||
| notes | | notes | ||
| string | | string | ||
| optional | | optional | ||
− | | | + | | Free-form text notes to be added to the completed interaction |
+ | | "Repeat customer, third call today" | ||
|} | |} | ||
== Response == | == Response == | ||
− | Empty. | + | Empty. In response to the request, the disposition to changed to the specified disposition. |
− | |||
− | In response to the request, the disposition to changed to the specified disposition. | ||
</translate> | </translate> |
Latest revision as of 20:35, 27 March 2019
completeInteractionWithDisp
Completes and dispositions the interaction using the interaction ID and disposition code.
See the Embedded Agent Desktop Specification's Use Cases section for ways to use this method.
Request
Syntax
window.bpspat.api.completeInteractionWithDisp(item_id, disposition_code, notes)
Parameters
Parameter | Type | Optional/Required | Description | Example |
item_id | string | required | The interaction ID of the interaction | "EE55D97E-2705-49D1-A36D-34B3381DD416" |
disposition_code | string | required | The disposition code to be set for the interaction | "12345" |
notes | string | optional | Free-form text notes to be added to the completed interaction | "Repeat customer, third call today" |
Response
Empty. In response to the request, the disposition to changed to the specified disposition.