Configure Advanced Work Assignment with external routing using AWA External Service API for CCaaS and third-party providers to enable them to submit events.
시작하기 전에
Role required: admin
이 태스크 정보
When AWA Queue is configured for external routing, it enables for setting up a REST endpoint corresponding to the CCaaS entry point for routing, which:
Makes the schema changes needed to associate with an AWA External queue with the CCaaS REST endpoint.
Provides the following fields to provide the payload for the REST call:
Case (sn_customerservice_case)
Task (sn_customerservice_case)
Interaction (interaction)
Configuring AWA with external routing enables you to consolidate the routing of ServiceNow channels (such as Chat, Cases, or Incidents) and the CCaaS channels. The AWA External Service API involved in the configuration plays a key role:
Detects the Work Item (created or transferred)
Uses the External AWA Service API pushEvent (EVENT_TYPE) function to pass the Work Item.
Generates the request payload and constructs the flow object using the The ExternalAWAServiceAPI.
Pushes the events to the external system using the Subflow.
프로시저
Navigate to the queue settings through one of the following navigation paths:
All > Advanced Work Assignment > Home.
In the Essential settings section, select Set up queues.
All > Advanced Work Assignment > Queues.
Select an existing External Routing Queue item or create one.
Select the External check box to create an external routing Work Item.
주:
If you selected an existing AQA Queue item, verify that external routing is enabled with the External field checked.
In the External third-party routing section of the queue form, select the Preview this record icon and select Open record.
주:
You are notified to save the Queue record for any changes you made upon navigating. Select Update for an existing queue or select Submit for a new queue.
Select the Subflow from the list of flows available to send events to the selected provider.
Select the required External Event Definitions for the provider.
The selected External Event Definitions are associated with the provider to define the external events that must be handled by the provider. You can either select from the existing event definitions or create
one.
Select an external event definition to see the Event type and Payload that it contains.
주:
Ensure that you do not add any info message or error message after answer block. Answer should be always return string, if answer is in try block, you can add info/error messages in catch
block.
Use the following items that are available by default, to construct the payload contents you want on the external system:
current = Represents the AWA Work item record
docuemntGR = Represents the interaction or task referenced by the Work Item.
additionalParams = Contains objects with the values of the Work Item document's fields.
payload script = Contains scriptable APIs.
Select Update.
The Agent chat queue is configured to the external routing queue.
결과
After the configuration, all the incoming chats are routed to the external queue and you can see the list of work items sent to the external queue in the Work Items [awa_work_items] table. You can find the recorded event logs
of the subflows associated with the provider in the Flow engine contexts [sys_flow_context] table.
To view the execution details of the event payload, open an event record from the Flow engine contexts [sys_flow_context] table and select Open in Operations View. You will see the AWA Post External
Routing Events flow with the payload.그림 1. AWA Post External Routing Events