AWSで作るLINEWORKSチャットボット

 AWSで作るLINEWORKSチャットボット

6/30 LINE WORKS Tech Talk オンラインLT大会!
https://lwugdev.connpass.com/event/179364/

1f7f0085220d6e48e5bdbf9b199b847c?s=128

Shintaro Yamasaki

June 30, 2020
Tweet

Transcript

  1. Ͱ࡞Δ νϟοτϘοτ ΞΠϨοτגࣜձࣾࢁ㟒৻ଠ࿠

  2. ࣗݾ঺հ ࢁ㟒৻ଠ࿠ ϠϚαΩγϯλϩ΢  ΞΠϨοτגࣜձࣾ Ϋϥ΢υΠϯςάϨʔγϣϯࣄۀ෦.41։ൃηΫγϣϯ ΠϯϑϥαʔόʔαΠυΤϯδχΞ ڌ఺͸େࡕ "84Λத৺ͱͨ͠ઃܭɾߏங΍όοΫΤϯυ։ൃ ओʹαʔόʔϨε͕ಘҙ

    ࣾ಺ͷ؂ࢹۀ຿ޮ཰ԽɾࣗಈԽʹैࣄ "84"1/5PQ&OHJOFFST ޷͖ͳ-*/&803,4"1*͸τʔΫ#PU "84ೝఆࢿ֨ 2
  3. ΞΠϨοτגࣜձࣾ Ϋϥ΢υͷಋೖઃܭ͔Βߏஙɺ؂ࢹɺӡ༻ɺ͞Βʹ͸γεςϜ։ൃ΍σβΠϯ੍࡞·Ͱɺ ૯߹తͳαʔϏεΛϫϯετοϓʹఏڙɻ w ೥࿈ଓ"84"1/ϓϨϛΞίϯαϧςΟϯάύʔτφʔ w ೥౓"1/$POTVMUJOH1BSUOFSPGUIF:FBSड৆ w ($1ϓϨϛΞαʔϏεύʔτφʔ w

    ౦ژɾ໊ݹ԰ɾେࡕʹڌ఺Λ࣋ͭ 3
  4. 4 https://cloudpack.jp/info/20190521.html 4

  5. "84Λಘҙͱ͢Δฐࣾ νϟοτϘοτ΋"84Ͱߏங ࠓ೔͸ɺ"84Ͱߏங͢ΔࡍͷϙΠϯτʹ͍ͭͯ঺հ͠·͢ɻ 5

  6. "84ͱ͸ 6 (Amazon Web Services) ೥ʹαʔϏεఏڙ։࢝͞ΕͨɺΫϥ΢υίϯϐϡʔςΟϯάαʔϏε ݩ͸ɺ"NB[PO͕࣋ͭϏδωε՝୊ͷղܾʹੜ·Εͨ΋ͷ ୭Ͱ΋ར༻Ͱ͖ΔΑ͏ʹˠύϒϦοΫΫϥ΢υαʔϏε΁ Ҏ্ͷαʔϏε ੈքதʹͷϦʔδϣϯͱͷΞϕΠϥϏϦςΟʔκʔϯ

    ओཁͳ׆༻༻్ ΢ΣϒαΠτ ΢ΣϒɾϞόΠϧΞϓϦέʔγϣϯ όοΫΞοϓɾࡂ֐ରࡦ Ϗοάσʔλ *P5 ϏδωεΞϓϦέʔγϣϯ https://aws.amazon.com/jp/about-aws/
  7. ฦ౴ -*/&803,4αʔόʔ νϟοτϘοταʔόʔ ͜ΕΛࣗલͰ༻ҙ͢Δ ˠ"84Ͱߏ੒ͯ͠ΈΔ ϝοηʔδ 8FCIPPL τʔΫ#PU"1* Ϣʔβʔ -*/&803,4ΞϓϦ

    8FCαʔόʔ σʔλϕʔε ͳͲ νϟοτϘοτγεςϜͷߏ੒ 7
  8. 8 8FCαʔόʔ͸Ͳ͏͢Δʁ 8 &$ &MBTUJD$POUBJOFS4FSWJDF &$4 -BNCEB 'BSHBUF Ծ૝αʔόʔ ༻్ෳࡶͳνϟοτϘοτ

     ࣗવݴޠॲཧͳͲ  αʔόʔϨεͳίϯϐϡʔςΟϯάαʔϏε αʔόʔ؅ཧ͕ෆཁʹͳΔɻ Πϕϯτ͕ൃੜͨ͠෼͚ͩ՝ۚ ଴ػ࣌ؒ͸ͷ՝ۚ͸ൃੜ͠ͳ͍ ɻ "1*(BUFXBZͱ૊Έ߹Θͤͯར༻͢Δɻ ༻్؆୯ͳνϟοτϘοτ *'5)&/ϧʔϧϨϕϧͷ؆қͳ΋ͷ ίϯςφͷΦʔέετϨʔγϣϯ ࣮ߦ؀ڥ͸ɺ&$·ͨ͸'BSHBUF ༻్&$دΓͷ༻్ɻΞϓϦέʔγϣϯͷσϓϩΠɾ εέʔϦϯάͳͲ͕༗ར αʔόʔϨεͳίϯςφ࣮ߦ؀ڥ &$4 &,4Ͱར༻Մೳ
  9. σʔλϕʔε͸Ͳ͏͢Δʁ σʔλϕʔεαʔϏε 9 3%4 %ZOBNP%# ϦϨʔγϣφϧσʔλϕʔε .Z42- 1PTUHSF42- 0SBDMF 

    .JDSPTPGU42-4FSWFSͳͲ Ϙοτ͔Βͷొ࿥಺༰ͷ؅ཧ /P42-σʔλϕʔε ,FZ7BMVFܕ  ॊೈͳεέʔϦϯάɻαʔόʔϨεɻ ηογϣϯ৘ใͷ؅ཧͳͲʹ࢖͑Δɻ
  10. Ωʔ؅ཧ͸Ͳ͏͢Δʁ 10 4ZTUFNT.BOBHFS 1BSBNFUFS4UPSF 4FDSFUT.BOBHFS ύϥʔϝʔλʔ؅ཧ ύϥϝʔλͷ҉߸Խ΋Մೳ ൿಗ৘ใͷ؅ཧ ΩʔͷϩʔςʔγϣϯͳͲͷػೳ΋࣋ͭ

  11. "NB[PO-FY ͦͷଞ 1 1 ձ࿩ܕΠϯλʔϑΣΠεΛఏڙ͢Δ"84αʔϏεɻ "MFYBͰ࢖ΘΕ͍ͯΔٕज़ͱಉ͡΋ͷ͕࢖ΘΕ͍ͯΔͦ͏ɻ ࣗવݴޠॲཧ͚ͩͰͳ͘Ի੠ೝࣝ΋಺แ ݱࡏɺ"NB[PO-FY͸ถࠃӳޠͷΈରԠ͓ͯ͠Γɺ ೔ຊޠ͓Αͼ౦ژϦʔδϣϯͰͷར༻͸ରԠ͍ͯ͠ͳ͍ɻ

  12. 12 https://qiita.com/mmclsntr/items/ccf4df3034679a3885ba

  13. 13 νϟοτϘοτࣄྫ ϫʔΫεϞόΠϧ༷ࣄྫϖʔδIUUQTMJOFXPSLTNPCJMFDPNKQQS ฐࣾࣄྫϖʔδIUUQTDMPVEQBDLKQDBTFTUVEZIUNM ύφιχοΫϗʔϜζ༷ ׆ಈొ࿥ͷͨΊͷνϟοτϘοτ > ͜Ε·ͰɺΦϯϥΠϯͰڞ༗Ͱ͖Δࣾ಺πʔϧΛ༻͍׆ಈ؅ཧΛߦ͍ͬͯ·͕ͨ͠ɺ׆ಈ಺༰ొ࿥ͷ ͨΊͷೖྗෛ୲΍ࣄ຿ॴ֎͔Βొ࿥ग़དྷͳ͍͜ͱɺશࠃ֤ڌ఺ͷσʔλू໿ۀ຿ͳͲɺ׆ಈ೺ѲΛ્֐ ͢Δ՝୊͕͋Γɺʮ͍ͭͰ΋Ͳ͜Ͱ΋؆୯ʹ׆ಈొ࿥ɾ೺Ѳग़དྷΔ؀ڥʯͷ࣮ݱΛݕ౼͍ͯ͠·ͨ͠ɻ

    > ϞόΠϧσόΠεʹΑΔࣾ֎Ͱͷखܰͳར༻ͱɺBotͱձ࿩͠ͳ͕Βը໘্ʹ͋ΔϘλϯૢ࡞ͷΈͰ׬ ݁͢ΔΑ͏ͳ؆қͰ௚ײతʹ෼͔Γ΍͍͢ΠϯλʔϑΣʔε
  14. 14 ߏ੒ਤ Ұ෦֦େ ฐࣾࣄྫϖʔδIUUQTDMPVEQBDLKQDBTFTUVEZIUNM  8FCαʔόʔ͸&$4 ࣮ߦ؀ڥ͸'BSHBUF   લஈͷ"QQMJDBUJPO-PBE#BMBODFSͰෛՙ෼ࢄ

     νϟοτϘοτͷηογϣϯ؅ཧ͸%ZOBNP%#  ొ࿥৘ใ֨ೲ༻ͷσʔλϕʔε͸3%4  ύϥϝʔλ͸4ZTUFNT.BOBHFS1BSBNFUFS4UPSF Ͱ؅ཧ  -BNCEBͰΞΫηετʔΫϯΛఆظతʹߋ৽
  15. 15  "84Ͱ-*/&803,4νϟοτϘοτ։ൃ  8FCαʔόʔ͸&$ -BNCEB &$4ͳͲ  σʔλϕʔε͸3%4 %ZOBNP%#ͳͲ

     Ωʔ؅ཧ͸44.1BSBNFUFS4UPSF 4FDSFUT.BOBHFSͳͲ  νϟοτϘοτͷλΠϓʹ߹Θͤͯద੾ʹαʔϏεΛબ୒͠૊Έ߹ΘͤΔ 15 ·ͱΊ