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

Alexaスキルを怠惰に作る / 201908-smart-speaker

Alexaスキルを怠惰に作る / 201908-smart-speaker

スマートスピーカーを遊びたおす会大阪 vol.1

Hidetaka Okamoto

August 01, 2019
Tweet

More Decks by Hidetaka Okamoto

Other Decks in Technology

Transcript

  1. A l e x a εΩϧ Λ ଵ ଦ ʹ

    ࡞ Δ ε Ϛʔ τε ϐʔΧ ʔ Λ ༡ ͼ ͨ ͓ ͢ ձ େ ࡕ v o l . 1 #εϚʔτεϐʔΧʔΛ༡ͼ͓ͨ͢ձ
  2. H i d e t a k a O k

    a m o t o • Digitalcube Co. Ltd. • Alexa Campions • AWS Samurai 2017 in Japan • ask sdk(Node.js) Core contributor
  3. A l e x a Ͱ εΩϧ Λ ෳ ਺

    ެ ։ ͞ Εͯ ͍ Δ ํ #εϚʔτεϐʔΧʔΛ༡ͼ͓ͨ͢ձ
  4. ϝ ϯ ς ͱ ԣ ల ։ ͕ ໘ ౗

    ʹ ײ ͡ Δ ਓ #εϚʔτεϐʔΧʔΛ༡ͼ͓ͨ͢ձ
  5. ೔ ຊ ɹ ɿ 2 4 εΩϧ ӳ ޠ ݍ

    ɿ 6 εΩϧ https://www.amazon.com/s? k=okamoto+hidetaka&i=alexa-skills https://www.amazon.co.jp/s? k=okamoto+hidetaka&i=alexa-skills
  6. ਺ ͕ ૿ ͑ͯ ͖ ͯ ى ͖ ͨ ͜

    ͱ • ຖճಉ͡`npm install`ίϚϯυΛ࣮ߦ͢Δ • Error / SessionEnd / SkillDisabledͳͲͰಉ͡ίʔυ͕େྔൃੜ • ࢖͍ճ͢ίʔυɾϑΝΠϧΛcpͯ͠·ΘΔ • ૿͑ΔDynamoDB / S3όέοτ / GitϦϙδτϦ #εϚʔτεϐʔΧʔΛ༡ͼ͓ͨ͢ձ
  7. ൚ ༻ ϋ ϯ υ ϥ ʔ Ͱ όά ൃ

    ݟ ʂ #εϚʔτεϐʔΧʔΛ༡ͼ͓ͨ͢ձ
  8. εΩϧ Λ ྔ ࢈ ɾ ϝ ϯ ς ͢ Δ

    ࣌ ͷ ͭ Β Έ • VUIΞϓϦ൛Bootstrap / Ionic / Symfonyͷෆࡏ • ࣅͨΑ͏ͳίʔυ͕૿͑Δ • γϯϓϧͳର࿩ͷͨΊʹੜ·ΕΔෳࡶͳόοΫΤϯυ • ࠶ར༻͍ͨ͠ίʔυͷϝϯςφϯεੑͷ֬อ #εϚʔτεϐʔΧʔΛ༡ͼ͓ͨ͢ձ
  9. ϥ Π ϒ ϥ Ϧ Խ ͠ ͨ ͜ ͱ

    Ͱ ى ͖ ͨ ͜ ͱ • “npm i -S ask-utils”͓͚ͯ͠͹Α͘࢖͏ίʔυ͕શ෦ೖΔ • npm i -S ask-utils@latest͢Δ͚ͩͰશεΩϧΞοϓσʔτ • packageͷόʔδϣϯΛݟΕ͹ߋ৽લ͔൱͔΋Θ͔Δ • ʮ͋ͱͰϥΠϒϥϦʹೖΕͱ͜ʯͱ͍͏ؾ࣋ͪͰίʔυ͕ॻ͚Δ #εϚʔτεϐʔΧʔΛ༡ͼ͓ͨ͢ձ
  10. I S P ͷ ߪ ೖ ɾ ฦ ۚ ܥ

    Λ · ͱ Ίͯ ౤ ೖ
  11. @ a s k - u t i l s

    / i s p • ͍͍ͩͨͲͷεΩϧͰ΋ແ೉ʹಈ͘ • ೔ӳରԠ • ঎඼ݕࡧͷϔϧύʔ΍TypeGuardͳͲ΋༻ҙ • ISPProductClient͸{products}ͰηογϣϯʹISPσʔλอଘ͢Δ • ISPHandlers͸·ͩϕʔλͳͷͰɺόά౿ΜͩΒIssue / PRΛ #aajug
  12. ͦ ͦ͜ ͜ ͍ ͔ ͭ ͍ ࣮ ૷ ͕

    e x p o r t ͞ Ε Δ
  13. · ͱ Ί • Α͘࢖͏ίʔυ͸npm΍pipͰެ։͠Α͏ • TSϢʔβʔ͸ASK UtilsʹఏҊ / PR΋Β͑Δͱخ͍͠Ͱ͢

    • ޒ߹໨·Ͱ͸ASK Utilsɺ͔ͦ͜Βઌ͸ࣗ෼ͷ଍Ͱ • Skill Flow Builderɺ೔ຊޠͰಈ͔ͳ͍ͷͰΈΜͳͰFBग़ͦ͏ #aajug