Building a Henry's Kitchen Alexa skill

In this chapter, you will build a cooking application called Henry's Kitchen and learn how to create voice user interfaces using the ASK for Amazon Echo devices. Using Henry's Kitchen, your users will be able to make the following statements:

After receiving the request from the user, Henry's Kitchen will consume the REST API from a third party called Spoonacular (https://spoonacular.com/food-api) and then use the result received from Spoonacular, which will recommend the types of dishes the user can cook and send them back to Alexa. Finally, Alexa will send the answer back to the user via an Amazon Echo device.

In summary, here are the steps that describe the workflow:

  1. The user sends a request to the Amazon Echo.
  2. The Amazon Echo sends the request to the Henry's Kitchen Alexa skill.
  3. Alexa decodes the request into an intent and sends the request to the web service endpoint Node.js server hosted in Microsoft Azure.
  4. The web service endpoint Node.js server calls a third-party REST API, Spoonacular.
  5. Spoonacular sends food recommendations to the Node.js server.
  6. The web service endpoint Node.js server responds to Alexa with the result.
  7. Alexa sends the response to the Amazon Echo.
  8. The Amazon Echo responds to the user.

The following flowchart shows the architectural diagram of Henry's Kitchen:

Henry's Kitchen architecture