[Alexa Skill] How to develop Alexa Skill. - A place where Changsoo lived.
2017. 8. 14. 06:33 |
Here I am going to develop an Alexa skill for my own, customized based on 3 articles below.
2. Fact Skill Blog,
3. Section 2 of Alexa - A Free Introduction in Cloud Guru
Alexa will answer about the place(s) where I lived.
You can get the source codes of Alexa - A Free Introduction here.
https://github.com/ACloudGuru/alexacourse
I am going to modify index.js file of 1_spaceGeek.
* Modify var FACTS
* Modify AMAZON.HelpIntent
* Modify handleNewFactRequest() function
* zip the AlexaSkill.js and index.js as placeLived.zip
We are now starting to develop 'Amazon Skill' in earnest.
Amazon Skill development can be divided into two parts: skill service and skill interface.
* Skill Service
first access to aws.amazon.com to develop Skill Service.
1. Create a Role
IAM -> Roles -> Create New Role
Select AWS Lambda.
Select AWSLambdaBasicExecutionRole and Click on Next Step button.
Enter any name for the Role and Click on Create Role button.
Now you have created a new role.
Now I am going to create a Lambda function.
Click on the cube image on top left to go to landing page of AWS services. and Click on Lambda -> Create function button.
Click on Author from scratch button.
Select Alexa Skills Kit for the Lambda
Click on Next button.
Enter Name and Description. And then select Upload a .ZIP file from Code entry type dropdown menu.
Upload the placeLived.zip file.
Next step is Select Choose an existing role from Role dropdown menu.
And select the created Role (placeLivedRole) from Existing role dropdown menu.
And then Click on Next button -> Create function button.
I've created a Lambda function for my skill.
Now it's done for Skill Service development.
I am going to develop the Skill Interface part.
The ARN information will be using when develop the Skill Interface.
* Skill Interface
To develop Skill Interface, Go to developer.amazon.com.
Go to ALEXA tab and Select Get Started button in Alexa Skills Kit.
Click on Add a New Skill button.
Enter Name and Invocation and Click on Next button.
Copy and paste this code to Intent Schema.
(This code is in IntentSchema.json of the source files.)
{
"intents": [
{
"intent": "GetNewFactIntent"
},
{
"intent": "AMAZON.HelpIntent"
},
{
"intent": "AMAZON.StopIntent"
},
{
"intent": "AMAZON.CancelIntent"
}
]
}
Enter Sample Utterances
Click on Save button. - It will build this skill.
Click on Next button once it is built.
Now I need to copy ARN from aws.amazon.com and paste it in to Global Fields in developer.amazon.com.
So I can make a connection between Skill Service and Skill Interface of mine.
Select AWS Lamda ARN -> North America and paste it into North America text field.
Click on Save and Next button.
Now it is completed.
To test, enter any utterance and click on Ask Places Lived button.
'IoT > AWS AMAZON' 카테고리의 다른 글
Register today for the AWS re:Invent live streams (0) | 2017.11.09 |
---|---|
[AWS Certificate] Developer - Bash Script + PHP + S3 memo (1) | 2017.10.13 |
[Alexa] 7 Tips for Building Standout Skills Your Customers Will Love (0) | 2017.09.29 |
Free Mobile App - Download 'Lottery Numbers' app from Amazon App Store (0) | 2017.09.02 |
Make enable Yut nori game helper skill on your Alexa devices. (0) | 2017.08.25 |
[Alexa Skill] Publishing Alexa Skill - Yut Nori game helper - (0) | 2017.08.24 |
[Alexa Skill] Descriptions and Images of Yutnori for Alexa Skill (0) | 2017.08.19 |
[Alexa Skill] Memo for Alexa skill development (0) | 2017.08.08 |
[Echo Show] Build Skills for Echo Show (0) | 2017.08.08 |
[AWS IoT] Getting Started with AWS IoT (0) | 2017.08.03 |