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

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

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, activate the Enable beta features and APIs toggle.
Beta features
  1. Click the Speech tab.

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

  1. In the Text to Speech section, activate the Automatic text to Speech toggle.
  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

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.
  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 the key
  1. Then click JSON > Create.
Key type
  1. Save the file to your local device. This key is necessary for your Voximplant Kit scenario.

Adding an agent

  1. Log in to your Voximplant Kit account.
  2. Select Integrations > Dialogflow.
  3. Click Add agent and select the service account JSON file of your agent you have previously created and downloaded from Google Cloud.
Add agent
  1. Click Open. The service account JSON file displays on the Dialogflow tab.
Added agent

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