INTRO TO ALEXA SKILLS
DEVELOPMENT
V0.9
SAHIL KHOSLA
SR. SOFTWARE DEV
1 PUBLISHED SKILL ON AMAZON APP STORE
WHY ALEXA?
Voice is the next big platform, and
Alexa will own it.
— Wired Magazine
Amazon Echo is something amazing:
it changes the way we live our
day-to-day lives.
— CTO Informer
The Alexa-enabled Echo is a true
unicorn, one of those rare
products that arrives every few
years and fundamentally changes
the way we live.
— Wired Magazine
WHAT CAN IT DO?
PLAY MUSIC
PROVIDE UPDATES
CONTROL SMART HOME DEVICES
TO-DO AND SHOPPING LISTS
VOICE GAMES
AND MUCH MORE
THIS IS JUST THE
BEGINNING
BBOT DEMO
Use Alexa to get a beer from the robot. The bartender sees the command from Alexa and loads the robot. Click on Demo to watch the video.
RECAP (VIDEO)
Alexa overview video by Amazon
WHAT WILL YOU CREATE?
AGENDA
CONCEPTS:
TYPES OF SKILLS
SKILL ARCHITECTURE
COMPONENTS OF A SKILL
VOICE INTERACTION MODEL
LAMBDAS
LAB:
CREATE A LAMBDA
CREATE THE VUI1
CONFIGURE THE SKILL
TEST
1
VUI = Voice User Interface
TYPES OF SKILLS
SMART HOME SKILLS
FLASH BRIEFING SKILLS
VIDEO SKILLS (FIRE TV)
CUSTOM SKILLS
SMART HOME SKILLS
FLASH BRIEFING SKILLS
VIDEO SKILLS (FIRE TV)
CUSTOM SKILLS
Alexa, turn on the kitchen lights.
— Smart Home Skill
Alexa, give me my flash briefing.
— Flash Briefing Skill
Alexa, play a funny video.
— Video Skill
Alexa, text my friends I am running
late for the party, order a bottle of
my favorite wine from Amazon fresh
and request an uber for 8:30pm.
— Custom Skill, for sure
SKILL ARCHITECTURE
COMPONENTS OF A SKILL
LET'S LOOK AT A
COMMAND
ALEXA, ASK SPOTIFY TO
PLAY TECHNO MUSIC.
ALEXA = WAKE WORD
IN OTHER WORDS, IT'S THE
NAME OF THE DEVICE.
ALEXA, ASK SPOTIFY TO
PLAY TECHNO MUSIC.
ASK = ACTION
ASK, TELL, SEARCH, ETC.
ALEXA, AKS SPOTIFY TO
PLAY TECHNO MUSIC.
SPOTIFY = INVOCATION
NAME
ALEXA, AKS SPOTIFY TO
PLAY TECHNO MUSIC.
TO = CONNECTING WORD
TO, THAT, FOR, ETC.
SPOTIFY TO PLAY
TELL AMAZON THAT I
SEARCH BING FOR X
ALEXA, AKS SPOTIFY TO
PLAY TECHNO MUSIC.
PLAY TECHNO MUSIC =
UTTERANCE
CAN BE MORE THAN ONE
PLAY TECHNO MUSIC
SHUFFLE TECHNO MUSIC
PLAY TECHNO
ALL HAVE THE SAME
INTENT
INTENT = CORE
FUNCTIONALITY
IN THIS CASE, PLAYING
TECHNO MUSIC
RECAP
COMPONENTS OF A SKILL:
> Wake word
> Action
> Invocation Name
> Connecting word
> Utterance
> Intent
COMPONENTS OF A SKILL:
> Wake word = Alexa
> Action = Ask
> Invocation Name = Spotify
> Connecting word = To
> Utterance = Play techno music
> Intent = Play techno music
VOICE INTERACTION
MODEL
MODEL = INTENTS +
SLOTS3
+ UTTERANCES
3
more on slots later
INTENT DEFINITION
{
"intents": [
{
"intent": "PlayTechnoMusic",
"intent": "PlayRockMusic",
"intent": "PlayHipHopMusic"
}
]
}
SAMPLE UTTERANCES
> PlayTechnoMusic play techno music
> PlayTechnoMusic shuffle techno playlist
> PlayTechnoMusic launch techno playlist
> PlayTechnoMusic play techno
...
WHAT IS A LAMBDA?
A serverless compute service that
runs your code in response to
events and automatically manages
the underlying compute resources
for you.
A serverless compute service
that runs your code in response to
events and automatically manages
the underlying compute resources
for you.
A serverless compute service
that runs your code in response
to events and automatically manages
the underlying compute resources for
you.
WHAT IS A LAMBDA
FUNCTION?
The code you run on AWS Lambda is
called a Lambda function.
LAB
FINAL RECAP
WE COVERED:
> Why Alexa?
> BBot demo
> Types of Skills
> Skill Architecture
> Components of a Skill
> Lambdas
> Created a Skill
I HOPE YOU LEARNED!
#GROWTHMINDSET
APPENDIX
> Wired magazine
> CTO Informer
> Fact Skill Tutorial
> Alexa Skills Kit (ASK)
> ASK documentation

Intro to Alexa skills development