Sunday 25 February 2018

Alexa skill introduction

Hi Everybody,


After a long time, i am writing this blog. In nowadays Artificial Intelligence is more popular. So i found Amazon Alexa is an example of AI.
So in this blog i am writing introduction of Alexa skill


Alexa introduction




What is Alexa?


You may have heard of Amazon Echo, the voice-enabled speaker from Amazon that allows you to get things done, by using your voice. The brain behind Echo and other Amazon voice-enabled devices like Echo Show, Echo Dot, and Amazon Tap is Alexa — the cloud based service that handles all the speech recognition, machine learning, and Natural Language Understanding for all Alexa enabled devices. Alexa provides a set of built-in capabilities, referred to as skills, that define how you can interact with the device. For example, Alexa’s built-in skills include playing music, reading the news, getting a weather forecast, and querying Wikipedia. So, you could say things like: Alexa, play Michael Jackson Alexa, what's the weather in New York In addition to these built-in skills, you can program custom skills by using the Alexa Skills Kit (ASK). An Alexa user can then access these new abilities by asking Alexa questions or making requests.
The brain behind Echo and other Amazon voice-enabled devices like Echo Show, Echo Dot, and Amazon Tap is Alexa — the cloud based service that handles all the speech recognition, machine learning, and Natural Language Understanding for all Alexa enabled devices. Alexa provides a set of built-in capabilities, referred to as skills, that define how you can interact with the device. For example, Alexa’s built-in skills include playing music, reading the news, getting a weather forecast, and querying Wikipedia. So, you could say things like: Alexa, play Michael Jackson Alexa, what's the weather in New York In addition to these built-in skills, you can program custom skills by using the Alexa Skills Kit (ASK). An Alexa user can then access these new abilities by asking Alexa questions or making requests.

Building an Alexa Skill

All skills, like web or mobile applications, contain two parts: Interaction Model (the frontend) and the Hosted Service (the backend).

Interaction Model (frontend)

Much like the graphical user interface (appearance) of a mobile app, Alexa skills need a Voice User Interface (VUI). We'll refer to the VUI as the interaction model — it defines what functionalities or behaviors the skill is able to handle.

Hosted Service (backend)

The programming logic, hosted on the internet, that responds to a user's requests. Interaction with an Alexa skill To begin a conversation with Alexa-Enabled devices, like the Amazon Echo, you say the word "Alexa", followed by the request, like: E.g Alexa, ask History Buff what happened on December seventh

Wake word

Here, "Alexa" is the default wake word. It wakes up the device and tells it that the user wants to talk to Alexa. "Alexa" is the wake word for all voice-enabled Amazon devices.

Starting phrase

Following the "Alexa" wake word, users must use a starting phrase — in this case "ask" — to specify the type of request they are using. Visit the Alexa developer documentation for a list of other starting phrases.


Invocation name

In the example above, "History Buff" is the invocation name. The user says "History Buff" to instruct Alexa to invoke the History Buff skill, a skill that retrieves historical events. Every skill, custom or built-in, has a unique invocation name.

Intents & Utterances

Let's say we want to create a Codecademy skill that will do just one thing — respond with a "Hello, Codecademy" message.

Intents

Before we get into designing the frontend and the backend, it's a good practice to think of the features or behaviors your skill will have. We call these behaviors intents. Our Codecademy skill is pretty basic. It will have only one intent — a "HelloIntent" that responds with a greeting. As we will see in later exercises, a typical skill will have multiple intents. Each intent defines a specific behaviour, like buttons on a web page. An intent takes user input and executes some code based on it.

Utterance

Speaking of user input, let's now think through some phrases our users might say which our skill should be able to respond to with a greeting. For example, our skill should give a response to the following greetings — e.g. hello how are you howdy what's up These are what we call sample utterances. They help Alexa connect the intents to phrases spoken by the user. In this case, these sample utterances will help Alexa map the spoken user input to our "HelloIntent".