Let’s say we want to create a Codecademy skill that will do just one thing — respond with a “Hello, Codecademy” message.
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 behavior, like buttons on a web page. An intent takes user input and executes some code based on it.
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 —
how are you
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”.
On the first two lines, we have added
How are you? utterances.
Go ahead and add a few more greeting utterances to the main.txt file.