Google and Genesys developed a partnership to help organizations deliver advanced capabilities to enhance customer experiences, blending AI and Google voice interaction technologies with Genesys contact center automation.

Note: Google Cloud Dialogflow CX bots in Genesys Cloud are not PCI-compliant. Best practice recommends that you do not use them in Architect secure call flows.

Google Cloud Dialogflow CX bots use Google machine learning. This machine learning implements natural language understanding (NLU) to recognize a user’s intent and then extracts entities such as time, date, and numbers. With the evolving functionality of artificial intelligence tools, conversational interactions with computers are now mainstream. Contact centers are a natural progression into this world of virtual assistants.

Organizations can stream audio in real time from Genesys Cloud to Google Cloud Dialogflow CX and return intents and slots to Genesys Cloud. The self-service fulfillment of intent can be handled on the Google side or in Architect flows. When required, customers gracefully escalate to an appropriate agent.

Click the image to enlarge.

Quick start steps

This quick start article helps guide you through implementing the Google Cloud Dialogflow CX integration. Here, you learn how to perform the following steps:

  1. Create the Google Cloud Dialogflow CX platform service account credential.
  2. Obtain the Google Cloud Dialogflow CX integration from Genesys AppFoundry.
  3. Configure and activate the Google Cloud Dialogflow CX integration.
  4. Set up a Genesys Cloud Architect flow and then associate the Google Cloud Dialogflow CX bot with the Architect flow.
  5. Route a Genesys Cloud phone number to the Architect flow.
Note: Before you can obtain the GoogleCloud Dialogflow CX premium application, you must contact Genesys Cloud Sales to update your subscription. For more information about these applications, see What are premium applications? and About premium applications

Step 1: Create the Google Cloud Dialogflow CX platform service account credential

This section describes how to create a Google Cloud Dialogflow CX platform service account credential in the Google Cloud Platform console.

Prerequisites

To create the Google Cloud Dialogflow CX platform service account credential, perform the following steps:

  1. In the Google Cloud Platform console, create a new project and then create a service account for the project. 
  2. Grant the following roles to the service account:
    • Dialogflow API Client
    • Dialogflow API Reader
    • Dialogflow Conversation
  3. Create a service account key and download the JSON version of it.

Step 2: Obtain Google Cloud Dialogflow CX from the Genesys AppFoundry

This section describes how to access and install the Google Cloud Dialogflow CX integration from the Genesys AppFoundry. Before you can obtain the Google Cloud Dialogflow CX premium application, you must contact Genesys Cloud Sales to update your subscription. For more information about these applications, see What are premium applications? and About premium applications

To install Google Cloud Dialogflow CX in your org, perform the following steps:

  1. Log in to Genesys Cloud for the org in which you want to add Google Cloud Dialogflow CX:
    1. Select the appropriate organization.
    2. Enter your email address and password.
    3. Click Log in.
  2. Click Admin.
  3. Under Integrations, click Integrations.
  4. Click Integrations .
  5. In the Search box, type Google Cloud Dialogflow CX. The card for Google Cloud Dialogflow CX appears.
  6. Click the Google Cloud Dialogflow CX card. Information about the app appears.
  7. Click Install.

Google Cloud Dialogflow CX is now available to configure and activate from Genesys Cloud’s Admin > Integrations > Integrations page

Step 3: Configure and activate the Google Cloud Dialogflow CX integration

This section describes how to configure the Google Cloud Dialogflow CX platform service account credential in Genesys Cloud. 

Prerequisites

To configure and activate the Google Cloud Dialogflow CX integration, perform the following steps:

  1. In the Google Cloud Platform console, create a new project and then create a service account for the project. For more information, see Creating and managing service accounts.
  2. Grant the Dialogflow API Client and Dialogflow API Reader roles to the service account. For more information, see Granting roles to service accounts.
    Note: These roles enable Genesys Cloud to access and search the Google Cloud Dialogflow CX agents, and successfully carry out the bot at runtime.
  3. Create a service account key and download the JSON version of it. For more information, see Creating and managing service account keys.
    Note: The JSON file contains the credentials required for the integration with Genesys Cloud. The Google Cloud Dialogflow CX integration does not require that you add roles or admins to the service account.
  4. In Genesys Cloud, open the Google Cloud Dialogflow CX integration:
    • If you have not previously installed the integration into your Genesys Cloud organization, install it now
    • If you have installed the integration, open the Genesys Cloud Admin menu and under Integrations, click Integrations. Then, search for and open the Google Cloud Dialogflow CX integration.
  5. On the Google Cloud Dialogflow CX integration page, click the Configuration tab.
  6. Click Credentials
  7. Click Configure. The Configure Credentials dialog box opens.
  8. Open the Google Cloud JSON service account key file that you downloaded previously.
  9. Copy the information from the JSON service account key file into the appropriate Genesys Cloud fields.
    1. Copy the “client_id” value from the JSON file into the Genesys Cloud Client ID field.
    2. Copy the “client_email” value from the JSON file into the Genesys Cloud Client Email field.
    3. Copy the “private_key_id” from the JSON file into the Genesys Cloud Private Key ID field.
    4. Copy the “private_key” value from the JSON file into the Genesys Cloud Private Key field.
      Notes:
      • Ensure that you copy all the information that appears between the quotation marks.
      • Ensure that you copy and paste the exact value shown, and that no values convert to invalid commands. For example, a third-party copy program can convert the \n value to a new line.
  • On the Advanced tab, define the Google regions in which to look for Google Cloud Dialogflow CX bots. By default, this setting is {}, and Genesys Cloud searches only for the global region. However, you can, for example, specify the following:
    {
    "locations": [
    "global",
    "us-central1"
    ]
    }
    With this configuration, Genesys Cloud searches the global and us-central1 regions.
  • Click Save.
  • Select the Details tab.
  • To activate the integration, click Inactive. The Change Status dialog appears and asks you to confirm that you want to activate Google Cloud Dialogflow CX.
  • Click Yes. The status changes to Active.
  • Step 4: Create a Genesys Cloud Architect flow and configure it with a Google Cloud Dialogflow CX bot

    The following example demonstrates how to create an Architect flow that allows customers to order flowers for delivery. The example provides an extra example that displays how to set up Architect for a preconfigured Google Cloud Dialogflow CX bot for car rental. These examples assume that you have a previously configured Google Cloud Dialogflow CX agent, and also Genesys Cloud queues and data actions.

    Prerequisite

    To create an Architect flow, perform these steps:

    1. In Genesys Cloud, click Admin.
    2. Under Architect, click Architect. The Architect home page appears.
    3. From the Architect home page, click or hover over the Flows menu and choose the appropriate flow type.
    4. Click Add . The Create Flow dialog box opens.
    5. In the Name field, enter a unique name for the flow.
    6. (Optional) In the Description field, include a short sentence or phrase to describe this flow.
    7. Click the Default Language list and select the flow’s default supported language.
    8. Click the Divisions list and select the division in which to place the flow.
    9. Click Create Flow. The flow configuration page opens.

    1. From the Architect toolbox, expand the Task category and drag a Task action into the Reusable Tasks area.
    2. Click Set this as the starting task.
    3. Name the task.
    4. Under Initial Greeting, assign a prompt or text-to-speech.
    5. Click Click to open.

    1. From the Architect toolbox, expand the Data category and drag a Call Dialogflow CX bot action beneath the Start action.
    2. In the Call Dialogflow CX Bot panel, perform these steps:
      1. (Optional) Rename the Call Dialogflow CX action.
      2. Select the previously configured Dialogflow agent. In this example, we use MyDialogflowBot.

    1. From the Architect toolbox, expand the Audio category and drag a Play Audio action below the Order Flowers path.
    2. Add a prompt or text-to-speech that thanks the customer for the flower order.
    3. Expand the Transfer category and drag a Transfer to ACD action below the LiveAgent path.
    4. Configure the Transfer to ACD action for the following options:
      • The queue to transfer the customer when they want to speak to a live agent.
      • (Optional) Pre-transfer and failed transfer audio.
      • (Optional) Routing priority, preferred agents, and language skills.
      • (Optional) Failure outputs.

    Step 5: Route a Genesys Cloud phone number to the flow

    If you already own a phone number, you can associate it with the flow you created previously. You can also purchase a Genesys Cloud Voice phone number. For more information about Genesys Cloud Voice, see the Learn more section below.

    Prerequisites

    This task requires the following permissions:

    • Architect > FlowView
    • Routing > Call Route > Add, Edit, View, Delete

    To configure the call route entry, perform the following steps:

    1. In Genesys Cloud, click Admin.
    2. Under Routing, click Call Routing.
    3. Click Add . 
    4. In the Name field, type a unique call routing name. This name appears in your list of entries on the Call Routing page.
    5. To add phone numbers to associate with the configuration, do the following:
      1. Under Addresses, click Add .
      2. Type the complete telephone number string in numeric format only.
      3. Click Submit.
    6. Repeat step 5 to add more telephone numbers.
    7. Click Save.

    To always route to a single flow, do the following:

    1. Under Regular Routing, ensure that the Use Schedule Based Routing toggle is disabled.
    2. Click the All Calls list, type the first few letters of the published flow that users enter when they dial the associated number or numbers, and select it from the list.
    3. Click Save. A message appears, indicating that your entry saved. Your entry may take a few minutes to appear in the search results.  

    Note: Only flows previously published in Architect appear in this list. You cannot associate a call route configuration with an unpublished flow.

    Summary

    Congratulations! You are now set up and ready to test your Google Cloud Dialogflow CX Agent with Genesys Cloud. You can now route interactions to a flow in Genesys Cloud Architect. You can also use the Google Cloud Dialogflow CX Agent associated with the Architect flow to steer interactions and set up escalation to a live agent in Genesys Cloud.