Google Dialogflow CX
Digital DNA Studio consumes Google Cloud Platform service account keys for Dialogflow CX in JSON format. The method for generating these keys differs depending on whether you already have an existing Dialogflow CX project or not.
Creating a new Dialogflow CX project
Please follow these instructions on setting up a new Dialogflow CX project via the Google Cloud Console. Only the steps up to and including ‘Create a service account and download the private key file' need to be followed. The private key file in JSON format downloaded in this step can be used with Digital DNA Studio.
Once you have your service account key, you can select your project and create an agent via the Dialogflow CX console. Please refer to the Dialogflow CX documentation on how to build an agent.
Minimum required role permissions are: "Dialogflow API Client" and "Dialogflow API Reader".
Accessing credentials for an existing Dialogflow CX project
This assumes that you are working with a Dialogflow CX project created using the steps outlined here and have appropriate access to manage the project.
Select an agent
Click on the Agent Settings button in the top right of the agent editing screen
Click on the Share tab
Â
Select the appropriate role and open it in the Google Cloud Console (hovering over the role will display a link at the right of the page) - the Email Type should be Service Account
Select Service Accounts via the navigation panel on the left of the screen
Select Actions > Manage keys for the appropriate service account
Select Add key > Create new key, choose JSON format (you cannot download previously generated keys)
The JSON service account key will be downloaded - this can be used with Digital DNA Studio
Connecting a Dialogflow CX agent to your Digital Person
From Digital DNA Studio, select Dialogflow CX under the ‘Manage Conversation and Skills’ section
Upload your service account key JSON file
A list of agents across all regions will be displayed - select the one you wish to connect
A list of environments for the agent selected in the previous step is displayed - select the one you wish to connect
Select Enable as base to finish connecting Dialogflow CX to your Digital Person
Complete setup by selecting Finish Setup
Configuring the welcome event
If the ‘MY DIGITAL PERSON SHOULD GREET ME AT START’ is enabled in Digital DNA studio, an Event Handler with the ‘Welcome’ event needs to be added. Create a new Event Handler, select Use custom event
, and set Custom Event
to Welcome
.