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

Google Assistantでログイン / Account Linking on Actions on Google

sesta
October 09, 2018

Google Assistantでログイン / Account Linking on Actions on Google

potatotips #55 で使った資料です
Google Assistantアプリのログイン方法とメリデメあたりを説明してます

イベント: https://potatotips.connpass.com/event/100763/
PDF: https://github.com/sesta/slide/raw/master/20181009_account-linking-on-actions-on-google.pdf

sesta

October 09, 2018
Tweet

More Decks by sesta

Other Decks in Technology

Transcript

  1. Google Assistant ͰϩάΠϯ
    ZOZOςΫϊϩδʔζɹ෢ాमฏ / sesta / ͤͨ͢
    2018/10/09 potatotips #55 1

    View full-size slide

  2. ࣗݾ঺հ
    ෢ాमฏ
    ▸ גࣜձࣾZOZOςΫϊϩδʔζɺ৽ࣄۀΛ୲౰
    ▸ Google AssistantपΓɺFirebaseɺFlutter Λ৮ͬͯΔ
    ▸ ҰࣇͷύύͰझຯ͸ఉ͍͡Γ
    ▸ ݄ʹ͸͍͔ͳ͍ɺߦ͖͍ͨͱ͍͏ؾ࣋ͪ͸͋Δ
    2

    View full-size slide

  3. Voice User Interface
    3

    View full-size slide

  4. Voice User Interface ք۾
    VUI ͕೤͍
    ▸ Google ͷ Google HomeɺAmazon ͷ AlexaɺLINE ͷ Clova ͱ

    ଓʑͱϋʔυͱͱ΋ʹSDKΛެ։ɺ୭Ͱ΋εΩϧ͕࡞ΕΔ
    ▸ Apple΋SiriKitΛެ։ɺiOS12͔Β࢖༻Մೳʹ
    ▸ ϋʔυ΢ΣΞͷछྨ΋૿͑ଓ͚ɺ೥಺ʹ͸λϒϨοτλΠϓ͕೔ຊʹ΋ొ৔
    4

    View full-size slide

  5. Google Assistant ͱ͸
    Google Assistant ͸ VUI Λඋ͑ͨΞγελϯτγεςϜ
    ▸ Google Home ͸ Google Assistant ͕ར༻Ͱ͖ΔσόΠεͷ1ͭ
    ▸ Google Assistant ͸ Android ͱ iOS ͷ྆ํͰར༻Ͱ͖

    SDKͰ͸ࢹ֮తͳUI΋αϙʔτ͍ͯ͠Δ
    ▸ ࣗ෼Ͱ௥Ճ͍ͯ͘͠ػೳͷ͜ͱΛ Google Assistant Ͱ͸ʮΞϓϦʯͱݺͿ

    ʢ Alexa Ͱ͍͏ʮεΩϧʯͷ͜ͱɻ΍΍͍͜͠ ʣ
    5

    View full-size slide

  6. Google Assistant ΞϓϦͷߏ੒ 6
    Ϣʔβʔʹର͢Δ

    ೖग़ྗΛ୲౰
    ΞϓϦશମʹؔΘΔ

    ઃఆ͸͜͜
    ൃ࿩ͷ಺༰Λ෼ੳ͠

    ॲཧͷछྨΛܾఆ
    ୯७ͳԠ౴ͳΒ

    ͜ͷ෦෼͚ͩͰे෼
    ͳͲ
    ༻ҙͨ͠αʔόʔͰ

    ೚ҙͷॲཧΛ࣮ߦ
    AWS Lambda ͳͲ

    Ͱ΋ྑ͍

    View full-size slide

  7. Dialogflow ͸৭ʑܨ͕Δ 7
    ൃ࿩ͷ಺༰Λ෼ੳ͠

    ॲཧͷछྨΛܾఆ
    ୯७ͳԠ౴ͳΒ

    ͜ͷ෦෼͚ͩͰे෼

    View full-size slide

  8. Google Assistant Ͱ
    ϩάΠϯ
    8

    View full-size slide

  9. Google Assistant ʹ͓͚ΔϢʔβʔࣝผࣄ৘
    σϑΥϧτͩͱϢʔβʔΛࣝผͰ͖ͳ͍
    ▸ Firebase ͳͲͷόοΫΤϯυʹ౉ͬͯ͘Δ৘ใ͸

    ηογϣϯIDͱ͍ͬͨձ࿩͝ͱʹݸผͳ΋ͷ͚ͩ
    ▸ Google Assistant Λར༻͢Δʹ͸ Google ΞΧ΢ϯτͱඥ෇͚͕ඞਢ

    ͔͠͠ɺͦͷΞΧ΢ϯτʹ͸ΞϓϦ͔ΒΞΫηεͰ͖ͳ͍

    ʢ Clova ͷ৔߹ɺLINEͷϢʔβʔID͕͍ͬͭͯ͘ΔͷͰͲ͏ͱͰ΋ͳΔ ʣ
    ▸ ͦ͜Ͱ༻ҙ͞ΕͯΔͷ͕ Account Linking ͱ͍͏ػೳ
    9

    View full-size slide

  10. Account Linking Λ࢖͏ͱͲ͏ͳΔ͔
    ΞϓϦ্ͰϩάΠϯͨ͠Ϣʔβʔʹ ID ͕ৼΒΕΔ
    ▸ ৼΒΕͨ ID ͸શͯͷϦΫΤετͷதʹؚ·ΕΔΑ͏ʹͳΔͷͰ

    ͜ͷ ID ΛݩʹσʔλΛ؅ཧͨ͠Γ͢Ε͹Α͍
    ▸ Account Linking ͸ Action on Google ͕ఏڙ͍ͯ͠ΔػೳͰ

    ؅ཧը໘͔ΒϩάΠϯํ๏Λઃఆ͢Δ͜ͱͰར༻Ͱ͖Δ
    10

    View full-size slide

  11. Account Linking ͰՄೳͳϩάΠϯํ๏
    ▸ ੠ͰΞΧ΢ϯτΛ࡞੒
    ▸ ೚ҙͷ website ͰϩάΠϯ
    11

    View full-size slide

  12. ੠͚ͩͰΞΧ΢ϯτ࡞੒ͱ͸
    Google Assistant ʹඥ͍͍ͮͯΔΞΧ΢ϯτΛར༻Ͱ͖Δػೳ
    12

    View full-size slide

  13. ϝϦοτɾσϝϦοτ
    ▸ ੠ͰΞΧ΢ϯτΛ࡞੒
    ▸ ੠͚ͩͰࡁΉͷͰѹ౗తʹָ
    ▸ ଞͷαʔϏεͱඥ͚ͮΑ͏ͱ͢Δͱ݁ہ website ͰͷϩάΠϯ͕ඞཁʹͳΔ
    ▸ ೚ҙͷ website ͰϩάΠϯ
    ▸ OAuth ͕࢖͑Ε͹೚ҙͷαʔϏεͱͷඥ෇͚͕Մೳ
    ▸ ن໿΁ͷಉҙͳͲ΋ڬΊΔ
    ▸ σΟεϓϨΠΛ࣋ͭ୺຤͕ඞਢ
    13

    View full-size slide

  14. ࢖ͬͯΈͯͷؾ͖ͮ
    ▸ σΟεϓϨΠ͕ͳ͍୺຤ͩͱɺεϚϗͱ͔ʹॲཧΛҠͯ͘͠ΕΔ
    ▸ ผͷ୺຤ʹҠΔͷ͸ࢥͬͨҎ্ʹϋʔυϧ͕ߴ͍ͷͰ

    ඞཁʹͳͬͨ࣌ʹॳΊͯϩάΠϯΛཁٻͨ͠ํ͕Αͦ͞͏
    ▸ ϦϦʔεલͷνΣοΫʹ༻͍ΒΕΔΞΧ΢ϯτ͸ ID ͷܗ͕ࣜҧ͏
    ▸ IDʹ / ͱ͔ = ͕ೖͬͯΔ
    ▸ Firestore ͷ documentID ʹͯͨ͠೔ʹ͸΋͏ɺɺɺ
    14

    View full-size slide

  15. VUIʹ͍ͭͯ
    Մೳੑ͕͍͢͝ͷͰ։ൃऀ͕૿͑ͯ΄͍͠
    ▸ ੠͚ͩͰݴ͑ΔͷָɺखΛ཭͢ඞཁ΋ͦͬͪΛݟΔඞཁ΋ͳ͍
    ▸ UX΋ίʔυͷઃܭ΋Ή͍ͣ
    ▸ ϖʔδͱ͔Ϗϡʔͱ͔ͷ֓೦͕ͳ͍ͷͰ

    1ͭͷϖʔδͰશͯͷػೳ͕ϫϯλοϓͰ࢖͑ͪΌ͏Πϝʔδ
    15

    View full-size slide