Samples for Amazon Alexa
Here is a very simple TODO list.
/todo_list/alexa-skill.json
is the Alexa skill./todo_list/lambda_function_standalone.py
is the lambda function to use in AWS. It needs Python 2.7. This function needs to be hooked up with the Alexa skill.- Configure a
SKILL_ID
environment variable. This is the Alexa skill id.
/todo_list/alexa-skill.json
is the Alexa skill./todo_list/lambda_function_connected.py
is the lambda function to use in AWS. It needs Python 3.6. This function needs to be hooked up with the Alexa skill.- Configure a
SKILL_ID
environment variable. This is the Alexa skill id. - Configure a
ENV
environment variable and set it to 'cloud'. This is necessary to that AWS lambda can import the properrequests
module. - Configure a
DOMAIN
environment variable. This should point to the instance where the app is running, e.g. https://ec2-11-22-33-44.compute-1.amazonaws.com:8000
Invoke the skill by saying wake word open my custom list. For instance Alexa open my custom list. Then you can say:
- What is on my list? this will tell you what is on your list
- Add something Will add someting to the list. Try something like buy groceries or prepare dinner (it is limited to what is configured in the Alexa model).
- Update list then Alexa should ask you what you want to add. Answer with something
- Clear the list you will be asked for confirmation