Integrate Virtual Agent Bots

You can integrate most virtual agentClosed A software application that handles customer interactions in place of a live human agent. bots into CXone. Some bots require custom scripting and setup assistance from NICE CXone.

The tasks in this topic apply to all supported virtual agent bots. Each bot has its own set of requirements and configuration settings. Read the topic for the bot you're using before completing the integration: 

  • Amazon Lex—Use Amazon Lex virtual agents for voice and CXone chat interactions in CXone.
  • CXone SmartAssist by Amelia—Use SmartAssist for conversational virtual agents for voice and CXone chat. SmartAssist voicebots require setup assistance from NICE CXone.
  • Google Dialogflow ES—Use Google Dialogflow ES virtual agents for voice and CXonechat.
  • Google Dialogflow ES—Use Google Dialogflow ES virtual agents for voice and CXone chat in CXone.
  • Microsoft Azure—Use Microsoft Azure virtual agent bots for voice and CXone chat interactions.

Scripting Guidelines

Before integrating a virtual agentClosed A software application that handles customer interactions in place of a live human agent., you need to know: 

  • Which script you want to add a virtual agent to.
  • The Studio actionsClosed Performs a process within a Studio script, such as collecting customer data, playing a message or music, or routing a contact to an agent. you need to use for your bot. There are separate actions for voicebots and chatbots. The actions that support virtual agents are:

    • VoiceBot Exchange and TextBot Exchange—Use these actions for complex bots or for when you need to customize the bot's behavior from turn to turn. Your script must include at least two instances of the action.
    • Voicebot Conversation and Textbot Conversation—Use these actions for very simple bots. They don't allow for customization of the bot's behavior from turn to turn.
  • Where the Studio actions must be placed in your script flow.
  • The configuration requirements specific to the virtual agent you're using.
  • 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.  You can do this to customize your bot.
    • Re-configure the action 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, your script may not work as intended.
    • Complete any additional scripting and test the script.

Ensure that all parameters in the Virtual Agent Hub actions you add to your script are configured to pass the correct data. See the online help topic for the action you're using for information about how to configure each parameter.

If you need assistance with scripting in Studio, contact your CXone Account Representative, see the Scripting Reference Material sections of the online help, or visit the NICE CXone Community site.

Add a Bot to the Virtual Agent Hub

Adding a botClosed Virtual agent designed to handle specific interactions to Virtual Agent Hub establishes a connection between CXone and the virtual agent provider. After your bot is set up in Virtual Agent Hub, you can assign it to actionsClosed Performs a process within a Studio script, such as collecting customer data, playing a message or music, or routing a contact to an agent. in Studio. You only need to add a bot to the Virtual Agent Hub once, but you can use it in more than one script.

  1. In Studio, open the script you want to add a bot to or create a new script. If you create a new script, make sure it's of the correct type (chat or voice) for the action you need to use.

  2. Click the Tools tab, expand the Automation and AI category, and add a virtual agent action to the correct location in your script.

  3. Double-click the action you just added to open the Virtual Agent Hub.

  4. Click Add Bot.

  5. Enter a Virtual Agent (Bot) Name and click a bot provider to select it.

  6. Click Next.

  7. Complete the fields in the configuration form and click Next. These fields are different for every bot. See the topic for the bot you're adding for details:

  8. If your bot wizard has a Transcription page, select the option for transcribing speech into text for this bot.

  9. On the Test + Add page, you can test your bot's connection by sending prompts via text. You can also click Start with welcome intent to view the bot's welcome message. If the test messages don't work, click Back to return to the Configuration page and verify the settings.

  10. Click Add.

  11. If you want to assign this bot to the action you added in this task, click the selection icon next to the bot in the left panel of the Virtual Agent Hub. If your script contains other virtual agent actions, assign the necessary bots to each action.

  12. Click Close.

Assign a Bot to an Action

When your botClosed Virtual agent designed to handle specific interactions is set up and configured in Virtual Agent Hub, you need to assign it to actions in your script. This connects the action to the bot you want it to use. The actions you place in your script depend on the virtual agent you are using and how you intend to use it.

  1. In Studio, open the script you want to modify.
  2. If you haven't done so already, click the Tools tab, expand the Automation and AI category, and add the virtual agent action you want to use to the correct location in your script. The action must support the bot you want to assign to it. See the topics for the bot you're using for more information:

  3. Double-click the action to open Virtual Agent Hub.

  4. In the left column, locate the virtual agent bot that you want to assign to the action and click the selection icon next to it.
  5. Click Close.

Add a New CXone Transcription Profile

A transcription profile allows you to use a different transcription service from the one the bot provider offers.

  1. In Studio, open the script you want to modify.
  2. Locate and double-click the supported action that is assigned the bot you want to modify.
  3. In the list of bots in the left pane of the Virtual Agent Hub, click the bot you want to modify.
  4. In the center pane of the bot's properties page, scroll to locate the Transcription section
  5. Click Use CXone Transcription Profile.
  6. Click Add New Transcription Profile.

  7. Enter a Transcription Profile Name.  To differentiate this profile from your other profiles, use a name that highlights what makes this profile different. For example, you could name the profile for its intended use, the provider, or the language of the profile
  8. Click the Transcription Profile Provider that you want to use.
  9. Click Next.
  10. Select the Language for this profile.
  11. Click Add.

Change a Bot's Transcription Profile

A transcription profile allows you to use a different transcription service from the one the bot provider offers.

  1. In Studio, open the script you want to modify.
  2. Locate and double-click the action that is assigned the bot you want to modify.
  3. In the list of bots in the left pane of the Virtual Agent Hub, click the bot you want to modify.
  4. In the center pane of the bot's properties page, scroll to locate the Transcription section.
  5. Click Use CXone transcription profile.

  6. Select the Transcription Profile you want this bot to use. If the option you want to use isn't there, you can add it.
  7. Click Save.

Test Your Bot

You can test your botClosed Virtual agent designed to handle specific interactions when you set it up in Virtual Agent Hub. If you need to test a bot after you add it to Virtual Agent Hub, you can do so in the bot's properties page in Virtual Agent Hub.

  1. In Studio, open a script containing a virtual agent action.
  2. Double-click any virtual agent action to open the Virtual Agent Hub.
  3. Click to select the bot you want to test.

  4. In the Test pane, enter a test message in the Type a message field.
  5. Click Start with welcome intent to start a test conversation from the beginning. The bot displays the welcome message and then you can enter test messages.
  6. When you are finished testing, click Close.