-
Create an account at http://developer.amazon.com and login
-
Select
Alexa
,Alexa Skills Kit
,Get Started >
,Add a New Skill
-
Use
Name
andInvocation Name
asHello World
-
Click on
Save
-
Copy the
Application Id
(from top left) and paste it in theHelloWorldSpeechletRequestStreamHandler
class
-
Create bucket:
aws s3 mb s3://alexa-java-skill --region us-east-1
. -
Create and upload a deployment package:
mvn -f hello-alexa-world/pom.xml package install
-
On http://developer.amazon.com, click on
Next
-
Copy content of
IntentSchema.json
inIntent Schema
-
Copy content of
SampleUtterances.txt
inSample Utterances
-
Click on
Next
-
Select
AWS Lambda ARN
-
Get Function ARN:
aws lambda get-function --function-name HelloAlexaWorld --region us-east-1 | jq .Configuration.FunctionArn
and paste it in the textbox labeledDefault
-
-
Click on
Next
The different intents can be tested in Service Simulator
or https://echosim.io.
Type say hello
in Enter Utterance
and click on Ask Hello World
. The output should look as shown.
Type what is the name of 1
:
Skill can also be tested at https://echosim.io/ or using Alexa Echo.
-
Ask Hello World say hello
-
Ask Hello World say hello 3 times
-
Ask Hello World what is the name of 1
,2
or3