Feelings with Ziggy is an Alexa Skill built with Python. It was built for an Alexa Skills challenge, and is an educational game that aims to enhance the emotional literacy of young children by placing emotions to common experiences, ultimately helping children identify and express what they are feeling. This skill was built with AWS Lambda. Additionally it uses a s3 Bucket, Amazon EC2, and Amazon RDS (running an API I built with PHP and MySQL).
- AWS Account - You will need to use Lambda, DynamoDB, and access to the Alexa Skills Kit Developer Console
- Go to the AWS Console and click on the Lambda link. Note: ensure you are in
us-east
or you won't be able to use Alexa with Lambda. - Click on the Create a Lambda Function or
Get Started Now
button. - The first step is to
Author from scratch
. - Name the Lambda Function with a name significant to the skill.
- Select the runtime as
Python
. - Select an execution role as
lambda_basic_execution
. - Click on the
Create Function
button to move on. - Scroll down to the Function Code section and you will see a code editor.
- Clone the project.
git clone git@github.com:smithsa/feelings-with-ziggy.git
- Copy and pass the contents of
lambda_function.py
into the code editor. - Save the code by clicking the
Save
button on the right hand corner of the screen. - Set the Event Source type as
Alexa Skills Kit
and Enable it now. ClickSubmit
. - Copy the ARN from the top right to be used later in the Alexa Skill Setup. It will look something similar to
arn:aws:lambda:us-east-1:100000012345:function:your-skill-name
.
- Go to the Alexa Console and click
Get Started
under Alexa Skills Kit and then click theAdd a New Skill
button in the top right. - Set the
name
of the new skill name and the language. - Select Custom Skill as the model.
- Proceed by clicking on the
Next
Button. - Click the
Invocation
tab and give the skill an appropriateinvocation name
- this is what is used to activate your skill. - On the left click the
JSON Editor
tab, then add the contents of models.json to text editor on that page. - Click the
Endpoint
tab and set the AWS Lambda ARN. Set the default as the string you copied in the previous section that looks like this:arn:aws:lambda:us-east-1:100000012345:function:your-skill-name
. - Build the model and you are now ready to test the skill.
You can test and run the skill through the Alexa Skills Kit Developer Console.
Alexa Skills Kit Developer Console
You can navigate to the Alexa Skills Kit Developer Console. Select the skill you are workig on, and select the "Test" tab menu item at the top of the page. You can open the skill by typing "open [your skill name]." You can enter any other commands as well.
Refer to Amazon's Alexa Skills Kit Developer Console: Test video from more instruction on how to test withing the console.
This project is licensed under the MIT License - see the LICENSE file for details.
MIT © Sade Smith