Add Google Assistant integration to Dialogflow agent.Add webhook fulfillment to Dialogflow intents.If you want to test the interaction with Google Assistant, you need to do the following steps: Testing on Dialogflow and Google Assistant Just make sure you have the same email address connected to your device, as you're using on the Amazon Developer Portal. If you have an Alexa enabled device, you can test it there as well. On the Test tab enable testing and type in an utterance to see if this worked: Paste your webhook link to your Skill project's Endpoint on the Amazon Developer Portal and select the second option for the SSL Certificate, because Jovo provides a subdomain: Now we can test it on Amazon Alexa and/or Dialogflow: This will start the server and create a link for you to use as an endpoint. Remember that it's necessary to restart the server with ctrl + c and $ jovo run whenever you make changes to the code. In your command line, go to your project's folder and start the development server with the following command:
You can find a more detailed introduction in Project 1 Step 6: Hello World! Run the Local Server We will use a local webhook and the tunneling service ngrok for the testing of our code. Let's test this on either the Alexa or Dialogflow platform. If the user answers with either BlueDoorIntent or RedDoorIntent, the output will be a simple sentence produced with the tell method, which closes the session. Let speech = 'You chose to go through the red door.' Īs you can see above, the ask method needs both initial speech output and a reprompt if the user misses to answer for the first time. Let speech = 'You chose to go through the blue door.' Let reprompt = 'You have two options, the blue door, or the red door.' Let speech = 'Do you either go through the blue door, or through the red door?' Here is what the off-the-shelf logic for a "Hello World" voice app looks like, when you're using the Jovo CLI to create a new project: Building the Voice App Logicīefore we're building out the app's logic and talk about routing through intents, let's take a look at how it is usually structured. In this step of the tutorial, we will only care about the second (bottom) part. This.tell('Hey ' + this.$ + ', nice to meet you!') This.ask('Hello World! What\'s your name?', 'Please tell me your name.') Return this.toIntent('HelloWorldIntent') =Ĭonst = require('jovo-plugin-debugger')