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

B056544c9785c2f705e076156719ab08?s=47 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

B056544c9785c2f705e076156719ab08?s=128

sesta

October 09, 2018
Tweet

Transcript

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

    #55 1
  2. ࣗݾ঺հ ෢ాमฏ ▸ גࣜձࣾZOZOςΫϊϩδʔζɺ৽ࣄۀΛ୲౰ ▸ Google AssistantपΓɺFirebaseɺFlutter Λ৮ͬͯΔ ▸ ҰࣇͷύύͰझຯ͸ఉ͍͡Γ

    ▸ ݄ʹ͸͍͔ͳ͍ɺߦ͖͍ͨͱ͍͏ؾ࣋ͪ͸͋Δ 2
  3. Voice User Interface 3

  4. Voice User Interface ք۾ VUI ͕೤͍ ▸ Google ͷ Google

    HomeɺAmazon ͷ AlexaɺLINE ͷ Clova ͱ
 ଓʑͱϋʔυͱͱ΋ʹSDKΛެ։ɺ୭Ͱ΋εΩϧ͕࡞ΕΔ ▸ Apple΋SiriKitΛެ։ɺiOS12͔Β࢖༻Մೳʹ ▸ ϋʔυ΢ΣΞͷछྨ΋૿͑ଓ͚ɺ೥಺ʹ͸λϒϨοτλΠϓ͕೔ຊʹ΋ొ৔ 4
  5. Google Assistant ͱ͸ Google Assistant ͸ VUI Λඋ͑ͨΞγελϯτγεςϜ ▸ Google

    Home ͸ Google Assistant ͕ར༻Ͱ͖ΔσόΠεͷ1ͭ ▸ Google Assistant ͸ Android ͱ iOS ͷ྆ํͰར༻Ͱ͖
 SDKͰ͸ࢹ֮తͳUI΋αϙʔτ͍ͯ͠Δ ▸ ࣗ෼Ͱ௥Ճ͍ͯ͘͠ػೳͷ͜ͱΛ Google Assistant Ͱ͸ʮΞϓϦʯͱݺͿ
 ʢ Alexa Ͱ͍͏ʮεΩϧʯͷ͜ͱɻ΍΍͍͜͠ ʣ 5
  6. Google Assistant ΞϓϦͷߏ੒ 6 Ϣʔβʔʹର͢Δ
 ೖग़ྗΛ୲౰ ΞϓϦશମʹؔΘΔ
 ઃఆ͸͜͜ ൃ࿩ͷ಺༰Λ෼ੳ͠
 ॲཧͷछྨΛܾఆ

    ୯७ͳԠ౴ͳΒ
 ͜ͷ෦෼͚ͩͰे෼ ͳͲ ༻ҙͨ͠αʔόʔͰ
 ೚ҙͷॲཧΛ࣮ߦ AWS Lambda ͳͲ
 Ͱ΋ྑ͍
  7. Dialogflow ͸৭ʑܨ͕Δ 7 ൃ࿩ͷ಺༰Λ෼ੳ͠
 ॲཧͷछྨΛܾఆ ୯७ͳԠ౴ͳΒ
 ͜ͷ෦෼͚ͩͰे෼

  8. Google Assistant Ͱ ϩάΠϯ 8

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

    Assistant Λར༻͢Δʹ͸ Google ΞΧ΢ϯτͱඥ෇͚͕ඞਢ
 ͔͠͠ɺͦͷΞΧ΢ϯτʹ͸ΞϓϦ͔ΒΞΫηεͰ͖ͳ͍
 ʢ Clova ͷ৔߹ɺLINEͷϢʔβʔID͕͍ͬͭͯ͘ΔͷͰͲ͏ͱͰ΋ͳΔ ʣ ▸ ͦ͜Ͱ༻ҙ͞ΕͯΔͷ͕ Account Linking ͱ͍͏ػೳ 9
  10. Account Linking Λ࢖͏ͱͲ͏ͳΔ͔ ΞϓϦ্ͰϩάΠϯͨ͠Ϣʔβʔʹ ID ͕ৼΒΕΔ ▸ ৼΒΕͨ ID ͸શͯͷϦΫΤετͷதʹؚ·ΕΔΑ͏ʹͳΔͷͰ


    ͜ͷ ID ΛݩʹσʔλΛ؅ཧͨ͠Γ͢Ε͹Α͍ ▸ Account Linking ͸ Action on Google ͕ఏڙ͍ͯ͠ΔػೳͰ
 ؅ཧը໘͔ΒϩάΠϯํ๏Λઃఆ͢Δ͜ͱͰར༻Ͱ͖Δ 10
  11. Account Linking ͰՄೳͳϩάΠϯํ๏ ▸ ੠ͰΞΧ΢ϯτΛ࡞੒ ▸ ೚ҙͷ website ͰϩάΠϯ 11

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

  13. ϝϦοτɾσϝϦοτ ▸ ੠ͰΞΧ΢ϯτΛ࡞੒ ▸ ੠͚ͩͰࡁΉͷͰѹ౗తʹָ ▸ ଞͷαʔϏεͱඥ͚ͮΑ͏ͱ͢Δͱ݁ہ website ͰͷϩάΠϯ͕ඞཁʹͳΔ ▸

    ೚ҙͷ website ͰϩάΠϯ ▸ OAuth ͕࢖͑Ε͹೚ҙͷαʔϏεͱͷඥ෇͚͕Մೳ ▸ ن໿΁ͷಉҙͳͲ΋ڬΊΔ ▸ σΟεϓϨΠΛ࣋ͭ୺຤͕ඞਢ 13
  14. ࢖ͬͯΈͯͷؾ͖ͮ ▸ σΟεϓϨΠ͕ͳ͍୺຤ͩͱɺεϚϗͱ͔ʹॲཧΛҠͯ͘͠ΕΔ ▸ ผͷ୺຤ʹҠΔͷ͸ࢥͬͨҎ্ʹϋʔυϧ͕ߴ͍ͷͰ
 ඞཁʹͳͬͨ࣌ʹॳΊͯϩάΠϯΛཁٻͨ͠ํ͕Αͦ͞͏ ▸ ϦϦʔεલͷνΣοΫʹ༻͍ΒΕΔΞΧ΢ϯτ͸ ID ͷܗ͕ࣜҧ͏

    ▸ IDʹ / ͱ͔ = ͕ೖͬͯΔ ▸ Firestore ͷ documentID ʹͯͨ͠೔ʹ͸΋͏ɺɺɺ 14
  15. VUIʹ͍ͭͯ Մೳੑ͕͍͢͝ͷͰ։ൃऀ͕૿͑ͯ΄͍͠ ▸ ੠͚ͩͰݴ͑ΔͷָɺखΛ཭͢ඞཁ΋ͦͬͪΛݟΔඞཁ΋ͳ͍ ▸ UX΋ίʔυͷઃܭ΋Ή͍ͣ ▸ ϖʔδͱ͔Ϗϡʔͱ͔ͷ֓೦͕ͳ͍ͷͰ
 1ͭͷϖʔδͰશͯͷػೳ͕ϫϯλοϓͰ࢖͑ͪΌ͏Πϝʔδ 15

  16. END 16