One reason that customers use USD is to listen and react to events fired from the agent widget. These events are exclusive to USD, meaning that Live Assist for Microsoft Dynamics 365 provides a more complex application that can be customized to a greater extent than the WebClient or Unified Interface apps.
Example lifecycle
- Agent App (
chat-widget-api.js
) fires an event:
ChatControlScript.js
handles the event and fires a UII event:
- UII event is configured in the
data.xml
file:
- The event points to an Agent Script Action (
data.xml
):
- The Agent Script Action points to a UII Action (
data.xml
)
CHATControl.xaml.cs
:- handles the UII Action
- updates the chat context data in USD
- creates a new session
- fires an event
This in turn shows the following in the USD debugger: