Intranoggin

Blither, Blather, Web Content Management.
Blog » Alexa on Azure: Part 2 – Registering Your Function

Alexa on Azure: Part 2 – Registering Your Function

In the previous post, I walked through creating an Azure Function in C# that will be the service we link to our Alexa Skill. In this post, we’ll walk through registering our service.

Sign in to the Amazon Developer portal. If you have an Amazon Echo or Echo Dot, you’ll want to sign in to the Developer portal using the same Amazon account you use on your device.

On the Alexa tab, click the Alexa Skills Kit Get Started button.

image

As an aside, the above menu items are what you see after signing in. From the home page of the developer portal, the menu items are different as is navigation (you aren’t crazy). From the home page, follow these steps.

Alexa Tab> Alexa Skills Kit > About > Alexa Skills Kit

image

Right Column> Create a Skill now.

image

Regardless of which path you took, you should now be on the Building Alexa Skills with the Alexa Skills Kit page. Click the Add a New Skill button

image

You’ll be presented with a wizard like set of pages to fill in. The first page is Skill Information. Give your skill a name and an Invocation Name. The Invocation Name is the prompt work a user would say to route to your service. I imagine making my kids say something like Alexa, Ask Real Facts about xxx or Alexa Open Real Facts. So i called mine Real Facts. Then click Next.

image

Page 2 is the Interaction Model. Go to your code and grab the Intent Schema and Sample Utterances. Paste them in here and hit Next. Don’t worry about slots now, we’ll use them later when we expand our functionality.

image

Page 3 is Configuration. Select HTTPS. Select your preferred continent. Paste in the URL of your function, which you’ll get from the Azure Portal at the top of the development tab for your function. Leave Account Linking set to No. Click Next

image

Page 4 is the SSL Certificate page. Since Azure is supplying our certificate for us, Just select the first option (Dev endpoint is a sub-domain that has a wildcard cert from a trusted authority). Click Next

image

Page 5 is for Testing.

It has a voice simulator. You can use this to test SSML text and tune the output you want to send back to the user from your service.

image

The bottom of this page has the Service Simulator. Here you can type in an example Utterance and then click the Ask <Service> button. You’ll then see the request and response objects. You can even click the Listen button to hear the response exactly as Alexa will say it.

image

Also at this point, if you open the Alexa app on your phone, you’ll notice in the skills section > Your Skills that your new app is registered. If your echo is nearby you can launch it. “Alexa, Ask Real Facts about Dad.” “What up, dude? Do you know how much Dad Rocks?” a lot… he rocks a lot.


Posted: 2/16/2017 7:00:00 AM by Ryan Miller | with 0 comments