Monday, February 6, 2012

Building Workflow Solutions with the UCMA Workflow SDK



You use the UCMA Workflow SDK to build communications-enabled workflow solutions such as IVR systems and virtual personal assistants. You typically use an IVR system to gather information from a caller such as the customer account number and reason for the call before connecting him or her to a live agent. A virtual personal assistant, on the other hand, provides services to the caller such as the ability to reserve a conference room from a mobile phone.
For a more concrete example, consider this scenario. In the legal industry, potential cases need be vetted for any conflicts of interest that could prevent the firm from being able to take on the case. This process is referred to as new matter intake, and each potential case is called a matter. Most law firms have software in place to streamline this process; however, such a solution can be extended to provide users with the ability to call in and check on the status of a new matter.
For example, an attorney could place a call to the New Matter Intake application contact in Microsoft Lync from her mobile phone. Using text-to-speech technology, the IVR prompts the attorney to enter her identification PIN and validates her identity. The IVR can then execute code to access the database, retrieve a list of outstanding matters for that attorney, and prompt her to select one. After the attorney selects a matter, the IVR can again access the database to identify the conflicts attorney assigned to the matter. The IVR can now check the presence of the conflicts attorney, and if he is available, ask the caller whether she wants to be transferred. The IVR can then perform a blind transfer of the call and disconnect itself from the call.
The UCMA 3.0 Workflow SDK enables developers to visually construct communications-enabled workflows by dragging workflow activities onto a design service, arranging and connecting them to form the workflow solution. You can construct workflows to accept audio or instant message calls, or both.
In the case of audio calls, input from the user can be in the form of dual-tone multi-frequency (DTMF) tones (choosing an option by entering its corresponding number using the phone's keypad), speech recognition, or both. The text-to-speech engine, available in 26 different languages, converts text to prompts that the caller hears during different activities of the workflow. You can also substitute professionally recorded audio prompts to give the IVR a more polished feel.
The previous attorney example represents an incoming communications workflow; however, developers can also build outgoing communications workflows. For example, a person might receive an automated call from the Service Desk asking him to rate his experience with a ticket he recently opened. The communications workflow can ask him several questions, such as his satisfaction with how the ticket was handled, and then save the results of the survey to a database when the call is completed.
Workflows are a critical part of a communications solution, allowing the software to provide services to a caller and only transferring the call to a live customer service agent — the comparatively more expensive resource — if necessary and only after providing the agent with all the relevant information about the caller.

Thursday, February 2, 2012

Building Communications Solutions with UCMA



Although the Lync SDK is used to integrate communications functionality into applications that run on the client, UCMA is typically used to build communications applications that run on the server; for example, hosted in Internet Information Services (IIS), exposed through Windows Communication Foundation (WCF), or running in a Windows Service. A UCMA application is usually a long-running process such as an automatic call distributor used to handle and distribute incoming calls in a call center. Users interact with the UCMA application via an endpoint that can either be a contact in Lync, such as sip:HelpDesk@fabrikam.com, or simply a phone number. The user can start a Lync call, instant message with the UCMA application contact or dial the phone number associated with the application.
Consider the following scenario where Contoso, a fictitious company, uses a UCMA-based application to run its call center operations.
When customers call Contoso's customer service phone number, the UCMA application picks up the calls and guides callers through a workflow, such as one built with the UCMA Workflow SDK, to gather information from them such as the reason for their call, their account number, and so on. After the workflow gathers the necessary information from the callers, it places them on hold and searches for an agent with the right skills to assist them. Customers remain on hold until an agent becomes available; the UCMA application tracks all the agents’ Lync presence so it knows when an agent becomes available again to handle a call.
When an agent picks up calls, he or she already knows a lot about the callers based on the information they provided. An Agent Dashboard application hosted in the Lync conversation window can display information about the caller such as order history or any open customer service tickets that require attention. The agent can use this information to provide better service to the customer.
An application such as the customer service Agent Dashboard is built using the Lync SDK, including the Lync controls and the Lync API. The UCMA application interacts with the Agent Dashboard using the Context Channel, a new feature in UCMA 3.0 that provides a channel across which a UCMA application and Lync SDK application can send information to each other. For example, if the agent realizes that he needs to consult another agent to help with the call, he can issue an "escalate" command from the Agent Dashboard application. The command is sent across the context channel to the UCMA application, which knows how to process it and look for another available agent with the necessary skills to assist with the call.
Part of a supervisor's duties in Contoso's customer service department is to monitor the performance of agents and coach them on how to provide better service to customers. The supervisor can launch a Supervisor Dashboard application that shows a list of all active calls. The supervisor selects a call to silently join, allowing him to monitor the call without the knowledge of either the customer or agent. The new audio routes functionality in UCMA 3.0 enables developers to build routes across which audio can travel in a conference, effectively controlling who can hear what. When the supervisor is monitoring a call, audio flows to her from the conference but doesn't flow back in, allowing her to listen in to a call without being heard. If the supervisor needs to provide coaching to the customer service agent, an audio route is established from the supervisor to the agent, allowing her to "whisper" to the agent without the customer hearing any of the conversation.
UCMA 3.0 includes several other enhancements that are covered in more detail later in the book, including an easier development experience for working with presence and conferences, and a feature known as auto-provisioning, which greatly simplifies the process of managing the plumbing and configuration information required to run a UCMA application.