We will create a so-called Custom Alexa Skill that will be able to simply answer the question “Alexa, open Recolize and ask what can you recommend to me today?” or “Alexa, open Recolize and ask what is the recommendation for today?“.
Therefore we need the Skill definition and additionally a AWS Lambda function that will trigger our Recolize recommendation API. The beauty of AWS Lambda is that you do not need to provision any servers but the so-called serverless framework will only be active if someone asks Alexa to trigger your skill. For more information on AWS Lambda functions see the official documentation.
We use the official Ask CLI commands to easily deploy both the skill itself as well as the Lambda function that will call the Recolize API.