Rate this page:

Dialogflow connector

Use this block to connect a Dialogflow agent with a call in your scenario.

To configure the Dialogflow agent, do the following:

  1. Connect the block by using the Out and Transfer call ports.
  2. Double-click the Dialogflow Connector block.
  3. Select an agent from the Select agent drop-down list.
  4. Select the language from the Agent language drop-down list.
Note

Create and configure the Dialogflow agent in your Google account, save it as JSON, and then upload to your scenario.

  1. Enable the singleUtterance switch if you want the system to detect when a speaker has spoken a single utterance and to automatically end recognition returning the final ASR result. You typically use this setting for short customer replies: yes/no, service quality assessments, etc.
  2. Enable the Execute sendQuery after connection to the agent switch to activate immediate start of the Dialogflow after the script reaches the Dialog Connector block.
  3. Enter the name of the event in the Event name field.
  4. Select the language in the Event language field.
  5. In the JSON parameters section, configure keys and values to send the required information from your scenario to the agent.
  6. In the Synthesis options section, select how you want to synthesize speech for the agent: via Voximplant Kit or using Dialogflow synthesis.
  7. If you select Voximplant Kit, configure the synth language and voice. Depending on the tts-provider, you can also configure the following advanced settings:
  • Voice pitch - Configure the synthesized voice pitch (Google). Available options: x-low, low, medium, high, x-high, default.

  • Speech volume - Set the speech volume (Google). Available options: silent, x-soft, soft, medium, loud, x-loud, default.

  • Speech rate - Set the synthesized speech speed (Google, Yandex). Available options: x-slow, slow, medium, fast, x-fast, default.

  • Emotions - Configure the synthesized voice sentiment (applicable for specific Yandex voices). Available options: neutral, good, evil.

Dialogflow connector
  1. Enable the Process transfer call response switch if you need to forward a call. Enter or select a variable from the Create a variable field.
  2. Enable the Process Dialogflow response parameters switch to get all data from the agent and use it later in the scenario. Enter or select a variable from the Create a variable field.
Process parameters
  1. Select Save.