19. しゃべったのがどう理解されるのか
Alexa, ask Plan My Trip to plan a trip
from Seattle to Portland on Friday.
Alexa
ask
Plan My Trip
to plan a trip from
Seattle
to
Portland
on
Friday
= wake word
= starting phrase
= Invocation name
= some word
= slot
= connecting word
= slot
= connecting word
= slot
20. Starting phrase
Ask, Begin, Do, Launch, Load, Open, Play, Play the
game, Resume, Run, Start, Start playing, Start playing the
game, Talk to, Tell, Use
starting phrase は必須ではないです
https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/supported-phrases-to-
begin-a-conversation
21. Invocation name
▸invocation name を言うことで、どのSkillを使うかが
決まる
▸invocation name は wake words や launch phrases 、
connecting wordsを含んではならない
(Alexa, Amazon, Echo, ask, tell, etc.)
▸他にも色々。。
https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/choosing-the-invocation-
name-for-an-alexa-skill#invocation-name-requirements
22. Slotは変数みたいなもので、事前に発話されるだろう、言葉を
定義する
Slotには2種類あり
▸built in type
▸ AMAZON.DATE、AMAZON.NUMBER、
AMAZON.US_CITY、AMAZON.US_FIRST_NAME、etc
▸custom type
▹ 自作するSlot
▹ ex)
▹ slot “SERVERLESS_MEETUP” = TOKYO, OSAKA,
FUKUOKA, ....
Slot
https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/built-in-intent-ref/slot-type-
reference
24. ▸PlanMyTrip i want to visit {toCity}
▸PlanMyTrip Plan a trip
▸PlanMyTrip I'll go to {toCity} on {travelDate}
▸PlanMyTrip I want to travel from {fromCity} to {toCity} on
{travelDate}
Sample utterance
Sample utteranceと呼ばれる発話のマッピングを定義します。
上記のような発話をすると、AlexaはPlanMyTripというインテントを
呼び出すように、JSONをSkillに送ってきます。
(AlexaとSkillのやり取りはすべてJSON)
26. 全体の流れ
[1] Alexa, ask Plan My Trip to plan a trip
from Seattle to Portland on Friday.
Plan My
Trip
Skill
[2] Invoke PlanMyTrip with
toCity=Portland
fromCity=Seattle
travelDate=September 7 2017
[3] Text response[4] Audio response