Dialogflow

How to setup a Dialogflow V2 integration.

With Dialogflow v2 you can have Bot CMS content in multiple languages connected to a single Dialogflow agent.

🚧

One Google Project per Dialogflow agent

While each agent can support multiple languages, each agent requires it's own Google Project.

❗️

Dialogflow v2 agents use a different trigger and component than Dialogflow v1 agents. Using the wrong trigger or component may result in unexpected behaviour.
Dialogflow trigger
Dialogflow component

Add the Dialogflow integration

  1. From your bot's dashboard, click the Integrations tab.

  2. Scroll to the bottom and click Dialogflow from the NLU Integrations section.

  3. In a separate tab, go to console.dialogflow.com and create a new agent. You'll be asked to select a Google project, or create a new Google project.

  4. In a separate tab, go to your Google service accounts page and select a Google project to use.

🚧

Make sure to select the same Google project your Dialogflow agent is using (see Step 3).

  1. Click the Create Service Account button at the top of the page. Fill out the form details and click Create.

  2. From the Select a role drop-down menu, choose Dialogflow API Admin. Click Continue.

  3. Click Create key and choose JSON from the list of options. Click Create. A JSON file will be downloaded to your computer.

1260

Creating a service account.

  1. Go back to the Meya Diaogflow integration page and click Upload JSON Key. Upload the JSON file you downloaded in Step 7.
1665

Uploading the JSON key file.

👍

The Dialogflow integration is setup!

Different triggers and components for v1 and v2 agents

If your bot does not require multiple languages, you may continue using Dialogflow v1 agents. These agents work with the api_ai trigger and the meya.api_ai component.

If your bot requires multiple languages, it is recommended you use a Dialogflow v2 agent. These agents work with the dialogflow trigger and the meya.dialogflow component.

Both v1 and v2 agents work with the cms_nlu trigger.