-
Create an account at http://developer.amazon.com and login
-
Select
Alexa,Alexa Skills Kit,Get Started >,Add a New Skill -
Use
NameandInvocation NameasHello World -
Click on
Save -
Copy the
Application Id(from top left) and paste it in theHelloWorldSpeechletRequestStreamHandlerclass
-
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.jsoninIntent Schema -
Copy content of
SampleUtterances.txtinSample Utterances -
Click on
Next -
Select
AWS Lambda ARN -
Get Function ARN:
aws lambda get-function --function-name HelloAlexaWorld --region us-east-1 | jq .Configuration.FunctionArnand 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,2or3