Train the Dialogflow Engine
Prerequisites: At least one agent created on Dialogflow Essentials. Intent and entity names in Dialogflow must match those defined in the Kore.ai XO Platform. To configure the Dialogflow ES adapter, you need the Project ID and Private Key from your Google Cloud service account JSON file. See Enable the Dialogflow API and Create Service Account Credentials.Create and Train an Agent
-
Go to Dialogflow Essentials and click Create Agent. In this example, the agent is named
Test_Dialogflow.
-
Click Create Intent and name it to match the intent in your AI Agent.
-
In this example, the intent is named
Phone Number Verificationto match the corresponding intent in the AI Agent. -
Under Action and Parameters, add the action name matching the entity, then fill in Parameter Name, Entity, Value, and Prompt.
-
Under Responses > Default, add the Text Response to display to the user.
- Click Save.
-
Go to Training in the left menu and enter the intent name under User Says.
- In the Try Now panel (top right), enter the intent name to test the configuration.
-
The configured text response appears under Default Response.
You can configure any intents, entities, or FAQ details you need to identify using the Dialogflow ES adapter.
Enable the Dialogflow API
-
Click the Gear icon next to the agent name in the Dialogflow dashboard.
-
On the General Settings page, scroll down to find the Project ID.
The Project ID is required when configuring the Dialogflow ES adapter on the Kore.ai platform. - Click the Project ID to open Google Cloud.
- In the Google Cloud dashboard, go to APIs & Services > Enabled APIs & Services.
-
Click + Enable APIs and Services and search for Dialogflow API.
-
After activating the Dialogflow API, click Manage to open the API management dashboard.
Create Service Account Credentials
Create a Service Account
-
Click Create Credentials at the top of the Dialogflow API management dashboard.
If you already have service accounts, access them from Credentials in the left navigation menu.
-
On the Create Credentials page, Dialogflow API is pre-selected in the Select an API dropdown.
-
For What data will you be accessing?, select Application Data. Click Next.
-
Select No, I’m not using them and click Next.
-
Fill in the service account name, ID, and description.
- Click Create and Continue.
-
Grant the required access permissions and user access on the subsequent pages.
Generate a Private Key
-
Click the service account under Service Accounts in APIs & Services.
-
Go to the Keys tab.
-
In the Add Key dropdown, select Create a new key.
-
Select JSON and confirm.
JSON is selected by default.
The file structure:
Save this JSON file securely — you cannot access it again. Copy the entire contents into the Private Key field in the Kore.ai External NLU adapter settings.
To validate the Dialogflow NLU configuration, see Test and Debug.