- [alexa.amazon.com]
- [echosim.io] and select EN-GB
- https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/getting-started-guide
- Custom skill
- Intent (actions schema)
- Slots
- Utterances
- Function or web service
- Configuration
- Card
- Download and install AWS Cli
- Create a IAM user for serverless and download AK/SC
- AWSLambdaFullAccess
- IAMFullAccess
- AmazonS3FullAccess
- AmazonAPIGatewayAdministrator
- CloudformationFullAccess
- Set up credentials:
aws configure
-
Download and install Serverless
- Install NodeJs
- Run
npm install -g serverless
- Check it with
sls --version
-
Create a new project with
serverless create --template aws-nodejs --path motivator
-
Configure the serverless.yml file
service: motivator
provider:
name: aws
runtime: nodejs4.3
region: eu-west-1
functions:
motivator:
handler: handler.motivator
events:
- alexaSkill
- Deploy with
sls deploy
- Skills Kit
- Press Add a New Skill
- Skill information
- English UK as language
- Motivator as name
- "Alexa, ask motivator" as invocation
- Interaction model
- Be sure to us UK English
- Set intent
{
"intents": [
{
"intent": "motivator",
"slots": [
{
"name": "target",
"type": "CIBERADO_NAMES"
}
]
}
]
}
* Press *Add Slot Type*
* Set "CIBERADO_NAMES" as slot name and "Emma, Pau, Jesus, Javi, Me, Myself" as values (one on each line)
* Add next utterances:
motivator energize myself
motivator energize me
motivator give me energy
motivator motivate me
motivator motivate {target}
- Endpoint
- Set Lambda to what
sls info --verbose
reflects (without version number)
- Set Lambda to what
- Complete the rest of the configuration