Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Using the Dialogflow service

Let's create a simple service demo that prints the transcript and the intent detected by Dialogflow.

...

First, we create a connection to the Nao robot to be able to access its microphone and load the key json file. In order to use this intent we created earlier in an application, we need to set the keyfile and the sample rate. To do this, we create the Dialogflow configuration object. Make sure you read the documentation at the start of this page to obtain the key file for your Dialogflow project.

...