Google Dialogflow ES

Content on this page is for a product or feature in controlled release (CR). If you are not part of the CR group and would like more information, contact your CXone Account Representative.

Google Dialogflow ES is a platform you can use to develop virtual agent bots for your organization. You can integrate them into CXone for voice and CXone chat channels. Digital First Omnichannel chat channels aren't supported at this time.

Virtual agent bots interpret what your contacts say or type and respond appropriately. They do this using technologies such as:

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 digital agent.

Requirements

To use Google Dialogflow ES virtual agent bots with CXone, you need:

Google Dialogflow ES Management

You can manage Google Dialogflow ES  virtual agent bots in Virtual Agent Hub. To access Virtual Agent Hub, you need to use CXone Studio. If you don't have Studio installed, you can download and install it.

Google Dialogflow ES Configuration

Before you can add a Google Dialogflow ES bot to CXone, you must create and configure it using the tools provided by Google.

When your Google Dialogflow ES bot is ready, you can add it to CXone Virtual Agent Hub and create or modify Studio scripts to use it. To configure this bot in Virtual Agent Hub, you need the following information:

Custom Payload Best Practices

Follow these best practices when integrating custom payload data Google Dialogflow ES into CXone

  • CustomPayload is used to pass context for an intentClosed What the contact wants to communicate or accomplish. Context helps the bot understand the user's intent. Contexts aren't required, but they help the bot match an utteranceClosed What a contact says or types. to an intent.
  • In a Snippet action in your script, create a DYNAMIC customPayload object that follows the format outlined in the Google Dialogflow ES documentation for REST Resource: projects.agent.sessions.context. The Studio online help provides additional information about dynamic data variables and objects.
  • You can also pass custom data with customPayload without contexts. To do this, include standard JSON key-value pairs to a DYNAMIC object.
  • The customPayload dynamic object is passed as a bot parameter as JSON, as shown in the example script.

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.

  • 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.

Supported Actions for Voicebots

To integrate a Google Dialogflow ES voicebot into a script, you can use the Voicebot Exchange or Voicebot Conversation actions.

Voicebot Exchange Action

This action is for complex bots or for when you need to customize the bot's behavior from turn to turn.

Voicebot Exchange monitors the conversation between the contact and the bot turn by turn. It sends each utteranceClosed What a contact says or types. to the bot. The bot analyzes the utterance for intentClosed What the contact wants to communicate or accomplish and context and determines the response to give. The action returns the bot's response to the contact. When the conversation is complete, the action continues the script.

Voicebot Conversation Action

This action is only for use with very simple bots. It does not allow for customization of the bot's behavior from turn to turn.

Voicebot Conversation interacts directly with the bot, passively monitoring the conversation in real time. The bot analyzes the conversation for intentClosed What the contact wants to communicate or accomplish and context from a constant audio stream and returns appropriate responses to the contact. When the conversation is over, the action continues the Studio script. The action passes along any relevant information for screenpops, agent routing, and so on.

Supported Actions for Chatbots

When integrating a Google Dialogflow ES chatbot into a script, you can use the Textbot Exchange or Textbot Conversation actions.

Textbot Exchange Action

This action is for complex bots or for when you need to customize the bot's behavior from turn to turn.

TextBot Exchange monitors the conversation between the contact and the botClosed Virtual agent designed to handle specific interactions turn by turn. It sends each utteranceClosed What a contact says or types. to the bot. The bot analyzes the utterance for intentClosed What the contact wants to communicate or accomplish and context and determines which response to give. TextBot Exchange returns the bot's response to the contact. When the conversation is complete, the action continues the script.

Textbot Conversation Action

This action is only for use with very simple bots. It does not allow for customization of the bot's behavior from turn to turn.

Textbot Conversation interacts directly with the bot, passively monitoring the conversation in real time. The bot analyzes the conversation for intentClosed What the contact wants to communicate or accomplish and context and returns appropriate responses to the contact. When bot indicates that the conversation is over, the action continues with the Studio script. The action passes along any relevant information for screenpops, agent routing, and so on.