Rate this page:

Using Dialogflow

Dialogflow is a virtual agent that handles conversations with your end users. It is the natural language processing (NLP) tool that supports real-time media streaming. Dialogflow understands the nuances of human language which makes it as similar to a real person as possible.

You can use it in your scenarios by connecting the Dialogflow connector block.

Setting up an agent

Copy URL
  1. Create a Dialogflow agent in your Google account.
  2. Configure your Dialogflow agent by using Intents, Events, and Entities.
Important

While configuring, add the end_of_conversation intent, otherwise a scenario might get caught in an endless loop.

  1. In your Dialogflow agent, open the settings section and click the General tab.
  2. In the Beta features section, toggle the Enable beta features and APIs switch.
Beta features
  1. Click the Speech tab.
Note

By default, speech synthesis is disabled, so you need to enable this feature manually.

  1. In the Text-to-speech section, enable the Automatic text-to-speech switch.
  2. Select an .MP3 file from the Output audio encoding drop-down list.
  3. Select one of the available voices. We recommend you to use WaveNet-powered voices, since they sound much better than standard voices.
Text-to-speech
  1. Click Save.

Generating a service keys

Copy URL

A service key is a credential for your agent, which you use for the connector module in a Voximplant Kit scenario. Create the service key in the Google Cloud account and download it to your local device for further integration setup.

  1. In your Dialogflow agent, open the settings section and click the General tab.
  2. In the Google project section, click your Project ID. A new tab or window opens with Google Cloud Console displayed.
  3. In Google Cloud Console, go to the APIs section and click Go to APIs overview.
  4. In the left sidebar, select the Credentials section and click + Create credentials at the top of the page.
  5. Select Service account from the drop-down list.
  6. Enter the name and description of your service account. For example, Voximplant Kit integration, and then click Create and continue.
  7. Click + Add Role and select Owner role in a pop-up window. After the system adds the role, click Continue.
  8. Skip step 3 and click Grant users access to this service account.
Credentials
  1. Click Done.

The system generates the service account, and you can view it in the list on your Service accounts page.

  1. Click your service account name.
  2. Select the Keys tab.
  3. Click Add Key > Create new key.
Create a key
  1. Then click JSON > Create.
The key type
  1. Save the file to your local device. This key is necessary for your Voximplant Kit scenario.

Adding an agent

Copy URL
  1. Log in to your Voximplant Kit account.
  2. Go to Administration > Integrations > Dialogflow.
  3. Click Add agent and upload the service account JSON file of your agent you have previously created and downloaded from Google Cloud.
Add an agent
  1. Click Open.
Information

When creating an agent in Google you can specify the region to keep your data physically on Google servers. In Voximplant Kit, when you add your agent to the integrations, the system automatically assigns it the Global region. If in Google you selected a different region, you need to adjust it in Voximplant Kit. For that, click the Actions menu icon and select Edit region. Select the location you need and save the changes. For more information on Dialogflow regionalization and data residency, go here.

The added agent

How to use the Dialogflow Connector block in your scenario, learn here.