July 2018
Intermediate to advanced
404 pages
9h 5m
English
For Alexa, you created an entry point by declaring alexaRouter.post('/cookingApi', function (req, res) so that the Alexa endpoint can point to https://myhenrytestapp.azurewebsites.net/alexa/cookingApi. For Dialogflow, you will be creating dialogflowRouter.post('/cookingApi', function (req, res) so that the Dialogflow webhook can point to https://myhenrytestapp.azurewebsites.net/dialogflow/cookingApi.
When the Dialogflow request comes in, you will need to authenticate the request by checking in the header that the secret is equal to 12345, which is what you set up when enabling the webhook in Dialogflow web console. Also, you would need to check whether the request contains req.body.queryResult
Read now
Unlock full access