-
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
and paste it in theHelloWorldSpeechletRequestStreamHandler
class
-
Create bucket:
aws s3 mb s3://arungupta --region us-east-1
. -
Create and upload a deployment package:
mvn -f hello-alexa-world/pom.xml package install
-
Create Lambda function:
aws lambda create-function \ --function-name HelloWorld \ --runtime java8 \ --memory-size 1024 \ --timeout 30 \ --region us-east-1 \ --role arn:aws:iam::091144949931:role/lambda_basic_execution \ --handler org.sample.aws.alexa.hello.HelloWorldSpeechletRequestStreamHandler \ --zip-file fileb://./hello-alexa-world/target/hello-alexa-world-1.0-SNAPSHOT.jar \ --publish
-
Set up
Alexa Skills Kit
as a trigger for the Lambda function in the Console
-
In developer.amazon.com tab, click on
Next
-
Copy content of
IntentSchema.json
inIntent Schema
-
Copy content of
SampleUtterances.txt
inSample Utterances
-
Click on
Next
-
Select
AWS Lambda ARN
,North America
-
Get Function ARN:
aws lambda get-function --function-name HelloWorld --region us-east-1 | jq .Configuration.FunctionArn
-
-
Paste the ARN
-
Click on
Next
In Service Simulator
, type hello
in Enter Utterance
and click on Ask Hello World
. The output should look as shown.
Skill can also be tested at https://echosim.io/ or using Alexa Echo.