This presentation is from a one-day bootcamp guides you through creating an Alexa Skill (interactive voice application) running on serverless AWS services (Amazon DynamoDB and AWS Lambda).
8. alexa, open piano facts
wake word skill (invocation) namelaunch
Conversational
model
9. alexa, open piano facts
wake word skill (invocation) namelaunch
Conversational
model
open, begin, start, launch, ask, tell
10. alexa, open piano facts
wake word skill (invocation) namelaunch
Conversational
model
describe a chord in the key of G
Utterance
Slot Slot
how fast is allegro tempo
Utterance
Slot
11. alexa, open piano facts
wake word skill (invocation) namelaunch
Conversational
model
describe a chord in the key of G
Utterance
Slot Slot
how fast is allegro tempo
Utterance
Slot
Describe
Intent
HowFast
Intent
12. Conversational
model
DescribeIntent describe a {musicthing} in the key of {key}
DescribeIntent what is a {musicthing} in the {key} key
HowFastIntent how fast is the {tempoName} tempo
HowFastIntent how quick is the {tempoName} tempo
HowFastIntent what is the tempo for {tempoName}
Sample Utterances
13. UNDER THE HOOD OF ASK
A closer look at how the Alexa Skills Kit process
a request and returns an appropriate response
You Pass Back a Textual or
Audio Response
You Pass Back a Graphical
Response
Alexa Converts Text-to-Speech
(TTS) & Renders Graphical
Component
Respond to Intent through
Text & Visual
Alexa sends Customer
Intent to Your Service
Your Service
processes
Request
User Makes a
Request
Audio Stream is
sent up to Alexa
Alexa Identifies Skill & Recognizes
Intent Through ASR & NLU
14. ASR – Automatic Speech
Recognition
• The Echo hears an audio
stream of up to 8
seconds.
• Alexa first hears a bunch
of syllables.
15. ASR – Automatic Speech
Recognition
fȯr tē tīmz
• Forty Times?
• For Tea Times?
• For Tee Times?
• Four Tee Times?
16. ASR – Automatic Speech
Recognition
• Homonyms sound the same!
• Must train Alexa with Intents and Samples
• Define structure and Slot locations
17. ASR NLU Natural Language
Understanding
CalendarLookupIntent
Slot: BeverageType
Slot values:
• Tea, Coffee, Mocha, Chai
Samples:
For {BeverageType} Times
I want {BeverageType} Times
18. Alexa Service, Inputs and Outputs
• Audio In
• Intent, Slot out
Intent,
Slot
Sample Utterances
Slots
Intent
SKILL CONFIGURATION SKILL CODE
19. Your Code
• Sees only two things:
• INTENT
• SLOT VALUE
Can maintain state via session
attributes
41. LITERAL!?
ISeeIntent I have a {Animal}
ISeeIntent I have an {Animal}
“I have a red hot chili pepper!”
Animal =
red hot chilly pepper
42. How do I receive my slot?
if(event.request.intent.slots.Color.value) {
myColor =
this.event.request.intent.slots.Color.value;
say = "you said ” + myColor;
} else {
say = "you must provide a color";
}