Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Amazon Alexa Development 101

Ryan Chung
November 04, 2017

Amazon Alexa Development 101

Ryan Chung

November 04, 2017
Tweet

More Decks by Ryan Chung

Other Decks in Technology

Transcript

  1. CbU _X:Xi(JM . F B 1FV DFS +13(33 KI .3(33

    KI +,3(33 ” ” 3[e ) ! 2
  2. CbU _X:Xi(JM .NB P 2DIP IPW • KI ,,3(33 5

    https://www.youtube.com/watch?v=WQqxCeHhmeU
  3. CbU _X:Xi(JM ( )! +( DXjf ,&+ /$ ,( T`Xf&

    Je i T ! 7VVXffbe Xf +&231$ -( WhVTg ba ! HX XeXaVX +&,0.$ .( B Xfgl_X 020$ /( DbiX_gl ! >h`be 0. $ 15
  4. CbU _X:Xi(JM ( ! +( T`Xf& Je i T !

    7VVXffbe Xf .&31-$ ,( DXjf -&-13$ -( WhVTg ba ! HX XeXaVX ,&103$ .( Chf V ! 7hW b +&30-$ /( B Xfgl_X +&01.$ 16
  5. CbU _X:Xi(JM g . F B e Who is the

    president of united states? The US President is Donald Trump. 18
  6. CbU _X:Xi(JM g . F B e Are you hungry?

    I don't get hungry or thirsty, but thank you for asking. 19
  7. CbU _X:Xi(JM g . F B e Do you have

    a brain? I don't have a brain like you do. My smarts live in the cloud. 20
  8. CbU _X:Xi(JM g . F B e How old are

    you? I'm 2 in human years, 14 in dog years, and 25 in cat years. I think A.I. years are marked by nanoseconds, so that makes me like a scrillion. 21
  9. CbU _X:Xi(JM g . F B e Are you hot?

    No, I don't really feel hot or cold, but thanks for asking. 22
  10. CbU _X:Xi(JM g . F B e Can you speak

    Chinese? I speak fluent English and conversational Pig Latin. My accent is atrocious, but it's good enough to keep me from getting lost in Pig Latium. 23
  11. CbU _X:Xi(JM g . F B e Pick a card

    Your card is the four of spades. 24
  12. CbU _X:Xi(JM g . F B e Roll a six

    sided die I rolled a die and got 4. 25
  13. CbU _X:Xi(JM g . F B e Flip a coin

    Flipping... it's heads. 26
  14. CbU _X:Xi(JM g . F B e Good morning Good

    morning, and happy birthday to comedian Ellen Degeneres. She's a funny lady who loves to dance. I'm pretty sure we'd be BFFs, if we ever got a chance to hang out! 27
  15. CbU _X:Xi(JM g . F B e How much are

    you? You can search on Amazon.com to see how much I cost. 28
  16. CbU _X:Xi(JM . F Bm b • @hfg fTl& p7_XkT

    q TaW g[Xan – pF_Tl PfbaZ aT`XQ Ul PTeg fgQq( – pFThfXq cThfXf g[X VheeXag_l c_Tl aZ geTV ( – pF_Tl P: fVbiXe MXX _lQ c_Tl_ fgq( – pLb_h`X hc)Wbjaq gheaf ib_h`X hc be Wbja( – pIgbcq fgbcf g[X VheeXag_l c_Tl aZ geTV ( 29
  17. CbU _X:Xi(JM +( : T_bZ I XgV[ ,( kcXe XaVX

    _bj -( agXeTVg ba CbWX_ 32
  18. CbU _X:Xi(JM x h • – … t t –

    … r t – … r t • – … u – … t – … t – … t – w 7FF t 33
  19. CbU _X:Xi(JM cy u • • r y • u

    • “ • • • w rw x • w w 34
  20. CbU _X:Xi(JM . F B L > QF • 9hfgb`

    f __ – – – • I`Teg >b`X I __ 7F – – • _Tf[ 8e X aZ I __ 7F – – • L WXb I __ 7F 35
  21. CbU _X:Xi(JM . F B L 7 T • s

    – [ggcf4))WXiX_bcXe(T`Tmba(Vb`)T_XkT – DT`X& aib Tg ba – KggXeTaVXf& I_bg glcX& agXag IV[X`T • s – [ggcf4))Tjf(T`Tmba(Vb`)gj)_T`UWT) – DbWX(]f 36 Source: Codecademy
  22. CbU _X:Xi(JM . 7 • agXag IV[X`T – r •

    9hfgb` I_bg JlcX – • IT`c_X KggXeTaVX – r 37
  23. CbU _X:Xi(JM . F B TF NF B GBDT •

    – 7_XkT w • s – – – – 42
  24. CbU _X:Xi(JM j • [ggc4)) em(gj)@3EA • DbWX(]f z $

    • – sabWX oi • ac` – sac` • ac` – sfhWb ac` afgT__ ac` 'Z 52
  25. CbU _X:Xi(JM . 7 17 • z r aWXk(]f •

    ac` afgT__ ofTiX T_XkT'fW • aWXk(]f 7_XkT • feV z w 54
  26. CbU _X:Xi(JM 68 a fact tell me a fact give

    me a fact tell me a fact tell me some information tell me something give me something Fact 1 Fact 2 Fact 3 Fact 4 Fact 5 Fact 6 Fact 7 Fact 8 Fact 9 Fact 10
  27. CbU _X:Xi(JM x • – w • + r 71

    j • [ggcf4))Zbb(Z_)>GdW b
  28. CbU _X:Xi(JM .A BNCEBs • T_XkT'f __' g'fW ' TVgf

    __ • 9eXTgX haVg ba • aWXk(]f :y • 9[bbfX Ta Xk fg aZ eb_X – _T`UWTRUTf VRXkXVhg ba • Je ZZXe 7_XkT I __f A g • 7HD • 7_XkT 7HD:y 74
  29. CbU _X:Xi(JM lx 76 "response": { "outputSpeech": { "ssml": "<speak>

    OK. I will ask you 10 questions about the United States. Here is your 1th question. What is the Statehood Year of South Carolina? </speak>", "type": "SSML" },
  30. CbU _X:Xi(JM j . F B • z s [ggcf4))ccg(VV)

    Jc-Bk • 7`Tmba r 7IA… • DT`XsJe i TFeTVg VX • aibVTg ba DT`Xsge i T ceTVg VX • agXeTVg ba CbWX_r 9bWX W gbe • agXeTVg baCbWX_(]fbay • 8h _W CbWX_ • 9ba ZheTg ba 80
  31. CbU _X:Xi(JM k • _T`UWT '5 9hfgb` '5 dhXfg ba(]f

    • • Vhfgb` ac` afgT__ T_XkT'fW • Vhfgb` 81
  32. CbU _X:Xi(JM n .A • 7MI '5 BT`UWT '5 9eXTgX

    haVg ba • r – 7hg[be eb` fVeTgV[$ • DT`Xsge i TFeTVg VX • 9[bbfX Ta Xk fg aZ eb_X '5 _T`UWTRUTf VRXkXhg ba • y '5 ITiX • Je ZZXef '5 7WW ge ZZXe '5 7_XkT I __f g • Tea 82
  33. CbU _X:Xi(JM a . F B • 9ba ZheTg ba

    '5 7MI BT`UWT 7HD • :X Th_g y7HD • DXkg 83
  34. CbU _X:Xi(JM . F B • bcXa ge i T

    ceTVg VX 84 "outputSpeech": { "ssml": "<speak> Welcome to American Reindeer Trivia. I will ask you 5 questions, try to get as many right as you can. Just say the number of the answer. Let's begin. Question 1. How highest wave that human did the surfing in the world? 1. 10 floors. 2. 5 floors. 3. 3 floors. 4. 8 floors. </speak>", "type": "SSML" },
  35. CbU _X:Xi(JM 86 open trivia practice Q 1 Q 2

    Q 3 Q 4 A 1 A 2 A 3 A 4 The answer is two.
  36. CbU _X:Xi(JM • … r y 7MI • • aWXk(]f

    – r t • eXV cXf(]f – Xl 4 iT_hX 88
  37. CbU _X:Xi(JM x • 7_XkT – – • gj ggXeuZ

    g[hUu_ a XW a – – – 91
  38. CbU _X:Xi(JM • • • • • gj ggXe •

    gj ggXe 92 • Z g[hU • Z g[hU • _ a XW a • _ a XW a • •
  39. CbU _X:Xi(JM p j • JX__ `X T TVg –

    w • Gh m $ – w • Je i T JXfg – • >bj Jb – • JXT` Bbb hc – , 93
  40. CbU _X:Xi(JM • 7C7OED(7Vgbe • 7C7OED(7ZZeXZTgXHTg aZ • 7C7OED(7 e_

    aX • 7C7OED(7 ecbeg • 7C7OED(7a `T_ • 7C7OED(7g[_XgX • 7C7OED(9b_be • ((((( 94 https://developer.amazon.com/docs/custom-skills/slot-type-reference.html#list-types
  41. CbU _X:Xi(JM v cy • 7`Tmba :XiX_bcXe 7_XkT … •

    DT`Xs>X__bFeTVg VX • aibVTg ba DT`Xs[X__b ceTVg VX • agXeTVg ba CbWX_ 8h _WXe 96
  42. CbU _X:Xi(JM TF T • agXag z agXag • s>X__b

    agXagr • >X__b agXag r – > – >bj TeX lbh – M[Tg f hc – >bj lbh Wb aZ – >bjWl – >X__b • zITiX CbWX_u8h _W CbWX_u9ba ZheTg ba 97
  43. CbU _X:Xi(JM • s>X__bFeTVg VX • s aWXk(]f • LI

    9bWX • z9ge_'S r ? aWXk(]f w • ac` afgT__ T_XkT'fW • aWXk(]f 98
  44. CbU _X:Xi(JM n .A • • 7MI BT`UWT • y

    • Je ZZXe 7_XkT I __ A g • Tea z 100
  45. CbU _X:Xi(JM .NB P 1FVF PQFR . F B •

    7_XkT r Tea:y • – bcXa [X__b ceTVg VX • – >X__b • 101