#Tutorial – How to build an #Amazon #AlexaSkill using Visual Studio 2017, C# and #Azure (1 de N)

Hi!

After a couple of weeks of events where Artificial Intelligence was one of the topics I talk and share the most, it’s time to write step by step on:

How to create an Alexa Skill for Amazon Echo and connect it with a WebSite in Azure

The people at Amazon are nicer than hot bread and give us all the tools to create these elements within the Amazon ecosystem. I’m rather a simple mind person, so I’ll do it with a mix between Amazon and Azure.

The first thing we must do is register in the Amazon Developer Portal.

I1

And enter the Amazon Alexa section to create our 1st Skill. Once we have our Developer account we can see the options of Alexa

  • Alexa Skills Kit
  • Alexa Voice Service

Select the 1st choice and then [Add a new Skill]

I2

The idea of ​​this tutorial is to learn how to create and connect a Skill with a service in Azure. If you want to understand more about how the Skills work, I recommend you check the references.

Well, the definition of a Skill consists of 7 sections. We begin with the information section of the Skill. In it we must define the type of Skill, which will be [Custom Interaction Model], the language, name and [Invocation name] of the Skill.

For this sample, the Skill that I will create will be one that allows to know a little information about the events that I have participated. So, [bruno events] looks like a good Invocation Name to use.

I3

We do not need our Skill to interact with the Audio Player or the Video viewer, so let’s leave the Global Fields unmodified.

The next step is to define our interaction language with the Skill. If you’re more of Microsoft’s world, this section is what we at Cognitive Services know as LUIS: Language Understanding Intelligent Service.

The definition of the Schema is defined in JSON format based on a definition that is hard to read and write (sorry I’m a visual dude!). Until recently, this was to edit text by hand. Fortunately, we can use a Skill Builder that presents a much friendlier interface for this task.

I4

Important: Here my advice is to see the 3 videos that are in the Skill Builder to understand how to use it.

In addition to the 3 Intents that are added in a Skill by default, we will create a new Intent called [GetEventInformationIntent]

I5

Before completing Intent information, I have decided to create a new Slot Type with the different themes that I deal with in my events. It will be called [EventTopic]

I6

These are the values ​​that I will add to [EventTopic]. I will focus on the last 5 or 10 events and these topics will be enough to have a coherent search

I7

Now it’s time to go back to the Intent [GetEventInformationIntent] and add a couple of utterances. In this case, each of my sample utterances will use the Slot Type that we have created to make sense of the question we will ask Alexa

I8

Classic dev steps > Save Model & Build Model.

I9

And here comes this post, in the following posts we will see how to create a website in Azure and how to connect to it with this Skill.

Happy Coding!

Greetings @ Burlington

El Bruno

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s