This is part of a the Alexa Skill Demo series for Normal Community High School State Farm STEM Program. To view the steps from last session click here.
Add an Alexa Skills Kit trigger Link to heading
Log in to the AWS Management Console and navigate to AWS Lambda
Click your function in the list to open the configuration details
Click Add Trigger
Under add triggers, click Alexa Skills Kit to select the trigger.
Under Configure triggers, select Enable for Skill ID verification.
Make sure Skill ID verification is Enabled.
Enter your Skill ID in the Skill ID edit box.
Click Add.
Go to the Function ARN Google Sheet and enter yes next to your group under the Skill ID Added to Lambda.
Clone Repository Link to heading
Open Visual Studio Code click the Source Control Button.
Click Clone repository. In the text prompt provide the url: https://github.com/Skylark95/alexa-skill-demo.git
Edit the Skill Code Link to heading
Click the Explorer Button.
Expand the src and handlers directory and open
HelloWorldIntentHandler.java
Edit the
speechText
in thehandle
method to say something unique for your group. Get creative. Don’t just keep the standard"Hello World"
, this will be what makes your skill unique for your group. Be sure to save the file when you are done.
Build The Skill Code Link to heading
- Open the Visual Studio Code Command Pallete (
Ctrl
+Shift
+P
) and select Tasks: Run Build Task to build a jar file for your skill. The jar file will be output to the project directory with the name alexa-skill-demo.jar
Upload the Jar File to your Function Link to heading
Upload the JAR file produced in the previous step under Function code.
Your code is now deployed. See a mentor and let’s run your new Alexa Skill!
Bonus Link to heading
There is much more you can do. Below is a link to Amazon’s documentation on Alexa skills. Check it out and see what else you can do!