IBM Watson

Virtual agents are flexible and can provide a range of functions to suit the needs of your organization. For example, you can design your virtual agent to handle a few simple tasks or to serve as a complex interactive agent.

CXone supports using IBM Watson with voice channels. However, these virtual agents require a SIPClosed backchannel connection. Setting up this integration requires assistance from a CXone Account Representative.

Conversation Flow for Voice Virtual Agents

To start an interaction with a voice virtual agent, contactsClosed call a phone number and reach your organization. The contact may be connected directly to the virtual agent, or they might need to choose an option in an IVRClosed menu. The contact's utterancesClosed are transcribedClosed into text so the virtual agent can use them.

The virtual agent analyzes the contact's utterances to understand the purpose or meaning behind the words. This is known as the contact's intent. The virtual agent sends an appropriate response as text.

Requests and responses are sent back and forth between the virtual agent and the contact. CXone stays connected to the virtual agent service throughout the conversation, but does not participate in it. CXone waits for the signal that the conversation is complete or that the contact needs transferred to a live agent. This is the SIPClosed backchannel method of connection.

At the end of the conversation, the virtual agent sends a signal to the script. It can signal that the conversation is complete, or that the contact needs to speak with a live agent. If the conversation is complete, the interaction ends. If a live agent is needed, the script makes the request. The contact is transferred to an agent when one is available.

When the conversation is complete, the script can perform post-interaction tasks, such as recording information in a CRMClosed.

Components of an Integration

The integration of IBM Watson involves the following components: 

Custom Scripting Guidelines

Before integrating a virtual agentClosed, you need to know: 

  • Which script you want to add a virtual agent to.
  • The virtual agent Studio action you need to use.

  • Where the Studio actions must be placed in your script flow.
  • The configuration requirements specific to the virtual agent you're using.
  • Provider-specific requirements. Autopilot has no provider-specific requirements. For Autopilot Amelia only, the script has the following requirements: 
    • When nesting JavaScript within the JSON payload in Amelia virtual agents, use single quotes instead of escaping double quotes with a backslash ( \" ).

    • JSON structures must be "contentType": "dfoMessage", where the M in Message is capitalized. It won't work with a lower case m.

  • How to complete the script after adding the virtual agent action. You may need to: 
    • Add initialization snippets as needed to the script using Snippet actions. This is required if you want to customize your virtual agent's behavior.
    • Re-configure the Studio actionClosed connectors to ensure proper contact flow and correct any potential errors.
    • Use the OnReturnControlToScript branch to handle hanging up or ending the interaction. If you use the Default branch to handle hanging up or ending an interaction, your script may not work as intended. StandardBot behaviors. You can learn more about handling the end of the interaction in the online help about
    • Complete any additional scripting and test the script.

Ensure that all parameters in the virtual agent actions you add to your script are configured to pass the correct data. The online help pages for the actions cover how to configure each parameter.

Additionally, ensure that you completely configure your virtual agent on the provider side. Verify that it's configured with all possible default messages. This includes error messages or messages indicating an intent has been fulfilled.

You may be able to obtain template scripts for use with virtual agent integrations from CXone Expert Services. If you need assistance with scripting in Studio, contact your Account Representative, see the Technical Reference Guide section in the online help, or visit the CXone Community A square with an arrow pointing from the center toward the upper right corner. site.

Supported Studio Action

Contact your Account Representative for assistance with your script.