How to build a skill for Alexa…

DSC_0195.JPG

I’ve had  Bose Wave Radio in my kitchen for close to ten years now. My aging Mother, who doesn’t see very well gave up on tv years ago and so her sole entertainment was this Bose radio. We would NPR on constantly and the various hosts kept her company throughout the day.

One day a few months ago, the Bose Wave just stopped working. I was a bit confused because even though we had it for close to a decade, I thought those things were supposed to last forever. I’m still working on getting the Wave fixed but I wanted an affordable replacement in the meantime.

I decided to get an Amazon Echo Dot. It cost just under $50 and I was intrigued by  the Dot’s AI function Alexa.

DSC_0186.JPG

I thought it would be helpful to be able to ask Alexa the time, weather, and what time the train would arrive. Alexa is capable of SO MUCH MORE! I can not only listen to my Spotify playlist and my favorite podcasts, but I can also listen to and play interactive stories all hands-free while I’m doing the dishes. Check out The Wayne Investigation…so much fun!

Anyway, Alexa has countless skills that you can enable to do all sorts of fun stuff! Amazon has been pretty open with the developer’s platform and they’ve made it super easy peasy to build your own skill. One of my favorite learning platforms A Cloud Guru has a free introductory Alexa course. It walks you through how to build three different skills for the Echo.

I decided to build a Flash Card skill to help me study for my AWS Solutions Architect exam. It sounded intimidating at first, but it’s actually easy peasy lemon squeezy.

So the first thing you need to do is head over to the Alexa Skills Github repository. Amazon has been pretty generous and have provided the source codes for TEN different skills all packed up nice and cute.

screenshot-2016-12-12-09-49-38

I downloaded all the skill files so I can eventually play around with all of them. I used ReindeerGames as the basis for my Flash Cards skill. Be sure to log into your AWS account AND the Alexa Developer Portal so you can create your skill. You need to make sure that all the accounts are the same and/or linked. Your AWS account, your Alexa App, and your Alexa Developer Portal must all be the same username.

In your AWS console, select the Lambda service.

screenshot-2016-12-12-10-34-46

You can see where I’ve created my Flash Card skill. Hit the blue button to create a new Lambda function.

screenshot-2016-12-12-11-17-42Select this Alexa skill kit as your blueprint.

Screenshot 2016-12-12 15.59.40.png

Select Alexa Skills Kit as your trigger and then hit next.

screenshot-2016-12-12-16-02-09

You’re now going to name your skill and add your code. You can just copy and paste the ReindeerGames source code you saved from Github. In the source folder of that file, there should be an index.js file. Open it with your fave text editor (mine is TextWrangler) and then edit the code to add the questions you want to be asked.

Screenshot 2016-12-12 20.11.06.png

After you’ve added your desired code create your Lambda function! Be sure to copy the ARN that will be created at this point. You’ll need that for the developer portal.

Head over to the developer portal and under the Alexa Skills Kit select ‘get started.’

You’ll then select ‘add a new skill’ you’ll then have to add your invocation name, your utterances and custom slot types. I’m planning to make another skill so I’ll do a full walkthrough of the developer portal then. I’m not able to upload my snippet of me being quizzed by Alexa. I need to do more studying, but I had fun making my very own skill!

 

 

Advertisements

How to get the keys…

screenshot-2016-10-13-09-46-47

I’ve been neglecting my AWS studies a bit. I got sidetracked with other hobbies and the start of the new semester. My cloud computing class with the ITEM has started again also, and everything makes sense this time around. Like, so much more sense. The things that I’d been struggling with have gotten a lot easier.

 

I can now create and connect to an instance with my eyes closed. Not really, but you what I’m saying. I’m finally feeling confident about using the command line. Knowing my key paths and directories and just how to navigate them, definitely a major key.

Speaking of keys, I opened up my inbox and saw this article from Quincy Larson.

Upgrading to macOS Sierra will break your SSH keys and lock you out of your own servers.

-Quincy Larson

I was like 0.0

Not only had a JUST upgraded to Sierra, but I had just started to understand the keys now now they would be all jacked up and my breakthrough would have been for nothing. Luckily, I took a deep breath and followed Quincy’s mini tutorial to make sure my keys were all good.

Also, Amazon has finally published an official AWS Solutions Architect study guide. It seems a little overpriced to me, $57 for the paperback $60 for the kindle version. I’m getting a copy for sure and will probably do a review here. It won’t be released until October 17, so I’m wondering if the price will drop after that. I guess we’ll see…aws_certified_solutions_architect_official_study_guide_cover_image

How to learn AWS

I’m trying to be as efficient as possible in my AWS learning methods. I know nothing about cloud computing and everything I learned in the network class I took last semester went over my head. The Item Academy is has been great in laying out the fundamentals for me, but I still feel like I’m behind the learning curve. I’ve been looking at other resources to help break things down a bit more for me. I only have a few pennies to spend, but I would like a robust set of resources.

  1. Cloud Academy seems the most intriguing to me. The price is right, they offer their professional plus tier to students for $9/month. They have video courses, quizzes and AWS certification prep! Now that’s what I came for. Without the student discount this tier is a little over $40/month. That’s a little too decadent for my budget, so praise God for the student hook-up.schermata-01-2456321-alle-16-39-40
  2. Amazon actually offers their own training series, but they don’t sound as cute as CLOUD ACADEMY. I’ll definitely use them as a learning resource, but the lingo goes over my head a bit. I need them to explain things to me like I’m five. I think when I’m a little better versed I’ll circle back around to them.amazon_web_services
  3. Tuts Plus seems helpful also. I don’t think they’re giving me everything I need, especially since they are another paid service. They’re worth a browse though. I need all the help I can get.

22-tutsplus

Still on the hunt for more learning resources. I’m sure I’ll find the perfect match soon.