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

NOT A HOTEL
AIコンシェルジュ「Kevin」の開発秘話

NOT A HOTEL
AIコンシェルジュ「Kevin」の開発秘話

YAPC::Kyoto 2023 Reject Con で話してきました。
GPT を中心に AI コンシェルジュの開発内容をお話ししました。

Zendesk の話はこちら
https://speakerdeck.com/codehex/yu-yue-sisutemuto-zendesk-noniariarutaimulian-xi-akitekutiya

Kei Kamikawa

March 18, 2023
Tweet

More Decks by Kei Kamikawa

Other Decks in Programming

Transcript

  1. /05")05&-

    "*ίϯγΣϧδϡʮ,FWJOʯͷ։ൃൿ࿩
    (15 ͱ%JBMPH
    fl
    PX$9ʹΑΔϗςϧۀք΁ͷֵ໋

    (15ͷํʹॏ͖Λஔ͍ͯ·͢

    :"1$,ZPUP3FKFDU$PO

    View full-size slide

  2. 8)0".*
    +645461&326*$,

    View full-size slide

  3. !DPEFIFY !$PEF)FY
    w ੲ͸0LJOBXBQNΛӡӦͯ͠·ͨ͠
    w ࠓ͸/05")05&-ͰίϯγΣϧδϡ
    ؔ࿈ͷπʔϧΛ։ൃΛ͍ͯ͠·͢

    View full-size slide

  4. /05")05&-ͷαʔϏε֓ཁ

    View full-size slide

  5. ϗςϧʹ΋Ͱ͖Δผ૳Λ
    ࢖͍͍ͨ෼͚ͩߪೖ͕Ͱ͖Δ
    ࢖Θͳ͍࣌ʹϗςϧି͠ग़͠Ͱऩӹ͕ಘΒΕΔ
    શࠃͷϋ΢εΛ૬ޓར༻Ͱ͖Δʢࠓޙੈք΁ʣ

    View full-size slide

  6. ϓϨεϦϦʔε

    View full-size slide

  7. "*ίϯγΣϧδϡʮ,FWJOʯͷ໨త
    ʮ,FWJOʯͰ࣮ݱ͍ͨ͜͠ͱ

    View full-size slide

  8. ࣌ؒ೔ͷॊೈͳରԠ

    View full-size slide

  9. ίϯγΣϧδϡʹ͍ͭͯ
    w ͓٬༷͸/05")05&-ͷΞϓϦΛܦ༝ͯ͠$4
    ͱνϟοτΛߦ͑Δ
    w /05")05&-ͷ֤ϋ΢εʹӡӦελοϑ͕ࡏத
    ͍ͯ͠Δ
    w ӡӦελοϑ$4͚ͩͲ͓٬༷͔Β͢Δͱ

    Ͳͬͪ΋ίϯγΣϧδϡ

    View full-size slide

  10. νϟοτͷ༷ࢠ

    View full-size slide

  11. ࣌ؒ೔ͷॊೈͳରԠ
    w $4ରԠʹ͸Ӧۀ͕࣌ؒଘࡏ͢Δ
    w ಇ͖͗͢๷ࢭͷ؍఺
    w ࣌ؒ೔ɺ͓٬༷ͷཁ๬ʹॊೈʹରԠͰ͖Δ
    Α͏ʹ͢Δ
    w ैۀһͷෛ୲΋ݮΒ͠ɺैۀһͷಇ͖͗͢Λ๷͙
    ͜ͱͰɺΑΓྑ͍࣭ͷߴ͍αʔϏεΛఏڙ͢Δ

    View full-size slide

  12. ͓٬༷ʹ࠷େݶͷՁ஋Λఏڙ͢Δ

    View full-size slide

  13. ͓٬༷ʹ࠷େݶͷՁ஋Λఏڙ
    w "*͕Ͱ͖Δ͜ͱʢߏ૝ʣ
    w Ұྲྀͷελοϑͷ͓͢͢Ίͷҿ৯ళ΍ΞΫςΟϏ
    ςΟͳͲɺ࣭ͷߴ͍৘ใΛఏҊ
    w ώτ͕Ͱ͖Δ͜ͱ
    w ྉཧ΍ਗ਼૟ͳͲɺ଺ࡏʹຬ଍͍͚ͯͨͩ͠ΔΑ͏
    ͳΦϖϨʔγϣϯ

    View full-size slide

  14. ׆༻͍ͯ͠Δٕज़
    νϟοτج൫ɺνϟοτϑϩʔ΍ࡶஊɾఏҊ

    View full-size slide

  15. w νϟοτج൫
    w 4VOTIJOF$POWFSTBUJPO
    w νϟοτϑϩʔ
    w %JBMPH
    fl
    PX$9
    w ࡶஊɾఏҊ
    w (15 (15 -BOH$IBJO
    ׆༻͍ͯ͠Δٕज़

    View full-size slide

  16. ׆༻͍ͯ͠Δٕज़

    View full-size slide

  17. 4VOTIJOF$POWFSTBUJPOT
    GPSNFSMZTNPPDIJP

    View full-size slide

  18. w $4͕ސ٬ͱ͞·͟·ͳਓؾϝοηʔδϯάΞϓϦ
    Λ௨ͯ͡ίϛϡχέʔγϣϯΛͱΔ͜ͱ͕Ͱ͖Δϓ
    ϥοτϑΥʔϜ
    w νϟοτ؅ཧɺϦονϝοηʔδϯάɺΞΧ΢ϯ
    τ؅ཧͳͲͷ"1*͕͋Δ
    w $4͸;FOEFTLܦ༝Ͱνϟοτͷ΍ΓऔΓ͕Մೳ
    4VOTIJOF$POWFSTBUJPO

    View full-size slide

  19. IUUQTUJOZVSMDPNZDLCZD
    $4ଆͷνϟοτͷ֓ཁʹ͍ͭͯ͸ͪ͜Βʂ

    View full-size slide

  20. 伴͸4XJUDICPBSE

    View full-size slide

  21. w #PUͱώτΛ੾Γସ͑Δ͜ͱ͕Ͱ͖Δ࢓૊Έ
    w 1BTTDPOUSPM
    w ႈ౳ੑ͕୲อ͞Ε͍ͯΔɻ4XJUDICPBSEͷ޲ઌ
    Λมߋ͢Δ࢓૊Έ
    w νϟοτϧʔϜ͸ݱࡏ4XJUDICPBSE͕Ͳ͜ʹ޲
    ͍ͯΔ͔೺Ѳ͢Δ͜ͱ͕Մೳ
    w ͜ΕʹΑΓϝοηʔδͷૹ৴ઌΛ੾Γସ͑ΒΕΔ
    4XJUDICPBSE

    View full-size slide

  22. w /05")05&-Ͱ͸%JBMPH
    fl
    PX$9͕த৺
    w ;FOEFTL $4
    ΁੾ΓସΘΓɺ%JBMPH
    fl
    PX$9΁
    ໭ͬͯ͘Δ
    w (15΁੾ΓସΘΓɺ%JBMPH
    fl
    PX$9΁໭ͬͯ͘Δ
    4XJUDICPBSE

    View full-size slide

  23. 4XJUDICPBSE
    %JBMPH
    fl
    PX$9 (15
    $4 ;FOEFTL

    4UBSU

    View full-size slide

  24. %JBMPH
    fl
    PX$9

    View full-size slide

  25. w ($1্Ͱఏڙ͞ΕΔɺର࿩ܕ"*։ൃϓϥοτ
    ϑΥʔϜ
    w ձ࿩ͷഎܠͳͲͷঢ়ଶΛอ࣋Ͱ͖ΔͨΊෳࡶͳձ࿩
    Ͱ΋ɺߏ଄Խ͞Εͨσʔλ΁ม׵Ͱ͖Δ
    w 8FCIPPLΛར༻ͯ͠"1*ݺͼग़͠΋Մೳ
    w ݺͼग़͞Εͨ"1*Ͱ͸ߏ଄Խ͞ΕͨσʔλΛऔಘ
    Ͱ͖Δ
    %JBMPH
    fl
    PX$9

    View full-size slide

  26. $4΋ר͖ࠐΜͰϑϩʔઃܭΛ͠·ͨ͠

    View full-size slide

  27. w ࠓճ͸࣌ؒͷ౎߹্ׂѪ😇
    w ஌ݟ͕શવωοτʹ΋ͳͯ͘େมͰͨ͠ʜ
    w Ͳ͔͜Ͱ࿩͍ͨ͠
    %JBMPH
    fl
    PX$9

    View full-size slide

  28. w 0QFO"*͕ఏڙ͢ΔδΣωϨʔςΟϒ"*ͷ"1*Λ
    ར༻ʢ$IBU$PNQMFUJPO

    w %JBMPH
    fl
    PX$9ͷߏஙࡁΈձ࿩ϑϩʔͰ͸ิ͑Β
    Εͳ͍෦෼Λαϙʔτ͢Δ
    w ݱঢ়͸ࡶஊͱ؍ޫ஍ͷ৘ใఏڙͷΈ
    (15 (15

    View full-size slide

  29. -BOH$IBJO🦜

    View full-size slide

  30. w --. -BSHF-BOHVBHF.PEFM
    ͱ૊Έ߹Θͤͯ
    ΞϓϦέʔγϣϯΛߏங͢ΔͨΊͷϥΠϒϥϦ
    w ΞϓϦέʔγϣϯ಺Ͱར༻Ͱ͖ΔػೳΛϢʔβʔ
    ͔ΒͷೖྗΛجʹͲΕΛ࢖͏͔൑அ࣮ͯ͠ߦ
    w 3F"DU3FBTPO"DU

    -BOH$IBJO🦜

    View full-size slide

  31. w ʮਪ࿦ʯ ߦಈཧ༝ͷਪ࿦
    ʮߦಈʯ ཧ༝ʹैͬͯ
    ߦಈ
    ͷ૬৐ޮՌʹΑΓɺϞσϧ͸ಈతͳਪ࿦Λ࣮
    ߦͯ͠ɺߦಈ͢ΔͨΊͷܭըΛ࡞੒ɺҡ࣋ɺௐ੔Ͱ
    ͖Δ
    3F"DU

    View full-size slide

  32. [FSPTIPUSFBDUEFTDSJQUJPO
    %PDVNFOU2VFTUJPO"OTXFSJOH
    ݕࡧ݅਺ΛݮΒ͢
    ࢼͨ͜͠ͱ

    View full-size slide

  33. [FSPTIPUSFBDUEFTDSJQUJPO
    %PDVNFOU2VFTUJPO"OTXFSJOH
    ݕࡧ݅਺ΛݮΒ͢
    ࢼͨ͜͠ͱ

    View full-size slide

  34. w 3F"DUϑϨʔϜϫʔΫΛར༻ͯ͠πʔϧͷઆ໌ͷΈ
    ʹج͍ͮͯ࢖༻͢ΔπʔϧΛܾఆ͢Δ
    w (PPHMF1SPHSBNNBCMF4FBSDI&OHJOFͱ
    QHWFDUPSΛར༻ͨ͠ྨࣅݕࡧΛπʔϧͱͯ͠༻
    ҙ
    w IUUQTTVQBCBTFDPNCMPHPQFOBJ
    FNCFEEJOHTQPTUHSFTWFDUPS
    [FSPTIPUSFBDUEFTDSJQUJPO

    View full-size slide

  35. w 5IPVHIU"DUJPO πʔϧͷબ୒
    0CTFSWBUJPO
    5IPVHIU 'JOBM"OTXFS
    ͦΕͧΕςΩετ
    ੜ੒Λߦ͏ʢͦΕͧΕϦΫΤετʣ
    w ͜ͷϓϩηεΛԿճ͔܁Γฦ͢
    [FSPTIPUSFBDUEFTDSJQUJPO

    View full-size slide

  36. w 0QFO"* $IBU$PNQMFUJPO"1*
    ͷϨεϙϯε͕஗
    ͍ɺશମͰN͘Β͍
    w ୯ମͳΒ໿T͘Β͍͔͔Δ
    w 0QFO"*ͷΤϥʔ͕ଟ͍
    w -BOH$IBJO͕ظ଴͢Δϝοηʔδͷੜ੒ʹࣦഊͷΤ
    ϥʔ +40/ੜ੒

    w (PPHMFͷ݁Ռ͔Β݁࿦Λग़͢͜ͱ͸গͳ͔ͬͨ
    w λΠτϧͱεχϖοτ͕खʹೖΔɻ͜ͷத͔Β݁࿦Λ
    ग़͢ͷ͕೉͍ͬ͠Ά͍

    View full-size slide

  37. w 0QFO"*ͷϨεϙϯε͕஗͍ɺશମͰN͘Β͍
    w ୯ମͳΒ໿T͘Β͍͔͔Δ
    w 0QFO"*ͷΤϥʔ͕ଟ͍
    w -BOH$IBJO͕ظ଴͢Δϝοηʔδͷੜ੒ʹࣦഊͷ
    Τϥʔ +40/ੜ੒

    w (PPHMFͷ݁Ռ͔Β݁࿦Λग़͢͜ͱ͸গͳ͔ͬͨ
    w λΠτϧͱεχϖοτ͕खʹೖΔɻ͜ͷத͔Β݁
    ࿦Λग़͢ͷ͕೉͍ͬ͠Ά͍

    View full-size slide

  38. w ओʹτʔΫϯ্ݶΛ௒͑ͨΑͷΤϥʔͱँࡑͷΤϥʔ
    w 5IFTFSWFSIBEBOFSSPSQSPDFTTJOHZPVS
    SFRVFTU4PSSZBCPVUUIBU:PVDBOSFUSZZPVS
    SFRVFTU PSDPOUBDUVTUISPVHIPVSIFMQDFOUFS
    BUIFMQPQFOBJDPNJGZPVLFFQTFFJOHUIJTFSSPS
    1MFBTFJODMVEFUIFSFRVFTU*%ʜJOZPVSFNBJM

    w ँࡑͷΤϥʔ͸ϦΫΤετ਺͕૿Ճ͢ΔͱΤϥʔ͕૿͑Δ
    w ݴ͏௨ΓʹϦτϥΠ͢Δͱ΋ͬͱ૿͑Δ
    0QFO"*ͷΤϥʔ͕ଟ͍

    View full-size slide

  39. ࣮ࡍͷϝʔϧͷճ౴
    3FRVFTU*%Λ͚ͭͯϝʔϧ
    Կ෼͔଴ͬͯϦτϥΠͯ͠Ͷʂ
    ଓ͘Α͏ͩͬͨΒɺ͍Ζ͍Ζ৘ใΛ
    ఴ෇ͯ͠ૹͬͯͶʂ

    View full-size slide

  40. 3FRVFTU*%ͱ͸ʜ
    😇

    View full-size slide

  41. [FSPTIPUSFBDUEFTDSJQUJPO
    %PDVNFOU2VFTUJPO"OTXFSJOH
    ݕࡧ݅਺ΛݮΒ͢
    ࢼͨ͜͠ͱ

    View full-size slide

  42. w πʔϧΛQHWFDUPSΛར༻ͨ͠ྨࣅݕࡧͷΈʹߜΔ
    w ಘΒΕͨݕࡧ݁ՌʢυΩϡϝϯτʣΛαϚϥΠζ͠
    ͯɺͦͷத͔Βճ౴Λ୳͢
    w 0QFO"*΁ͷϦΫΤετ਺ΛݮΒ͢
    %PDVNFOU2VFTUJPO"OTXFSJOH

    View full-size slide

  43. w πʔϧΛQHWFDUPSΛར༻ͨ͠ྨࣅݕࡧͷΈʹߜΔ
    w ಘΒΕͨݕࡧ݁ՌʢυΩϡϝϯτʣΛαϚϥΠζ͠
    ͯɺͦͷத͔Βճ౴Λ୳͢
    w 0QFO"*΁ͷϦΫΤετ਺ΛݮΒ͢
    %PDVNFOU2VFTUJPO"OTXFSJOH

    View full-size slide

  44. τʔΫϯͷ্ݶ͕͋ΔͷͰυΩϡϝϯτ΋จࣈ਺
    ͳͲͰ෼ׂ ࣈ͘Β͍
    ͯ͠ɺͦΕͧΕΛ
    0QFO"*ʹཁ໿ͯ͠΋Β͏
    ͦΕͧΕαϚϥΠζͨ݁͠ՌΛҰͭʹ·ͱΊͯཁ
    ໿͢Δ CZ0QFO"*

    ࠷ऴ݁Ռʹ୳͍ͯ͠Δ࣭໰ͷ಺༰͕͋Δ͔֬ೝ
    CZ0QFO"*

    αϚϥΠζճ౴ͷ୳ࡧ

    View full-size slide

  45. NT௒͑ͯΔ෦෼͕0QFO"* $PNQMFUJPO

    View full-size slide

  46. w ϦΫΤετ਺͸·ͩଟ͍͕Τϥʔ਺͸ݮͬͨ
    w Ϩεϙϯε࣌ؒ͸T͘Β͍ʹͳͬͨ
    w %#ʹొ࿥͞ΕͯΔ಺༰ʹج͍࣭ͮͨ໰ͳΒճ౴Λ
    ฦͯ͘͠ΕΔ

    View full-size slide

  47. [FSPTIPUSFBDUEFTDSJQUJPO
    %PDVNFOU2VFTUJPO"OTXFSJOH
    ݕࡧ݅਺ΛݮΒ͢
    ࢼͨ͜͠ͱ

    View full-size slide

  48. .BQ3FEVDFΞϧΰϦζϜΛ࢖༻
    IUUQTMBOHDIBJOSFBEUIFEPDTJPFOMBUFTU
    NPEVMFTJOEFYFT
    DPNCJOF@EPDTIUNMNBQSFEVDF
    ฒྻͰॲཧͯ͠Δͱॻ͔Ε͍ͯΔ͕τϨʔεΛݟͨ
    ײ͡௚ྻ
    ͱΓ͔͋͑ͣ݅Β݅΁
    ݕࡧ݅਺ΛݮΒ͢

    View full-size slide

  49. ੺࿮͕υΩϡϝϯτͷཁ໿ͯ͠Δ෦෼

    View full-size slide

  50. .BQ3FEVDFΞϧΰϦζϜΛ࢖༻͍ͯͨ͠
    IUUQTMBOHDIBJOSFBEUIFEPDTJPFOMBUFTU
    NPEVMFTJOEFYFT
    DPNCJOF@EPDTIUNMNBQSFEVDF
    ฒྻͰॲཧͯ͠Δͱॻ͔Ε͍ͯΔ͕τϨʔεΛݟͨ
    ײ͡௚ྻ
    ͱΓ͔͋͑ͣ݅Β݅΁
    ݕࡧ݅਺ΛݮΒ͢

    View full-size slide

  51. ੺࿮͕υΩϡϝϯτͷཁ໿ͯ͠Δ෦෼

    View full-size slide

  52. ౰ͨΓલ͚ͩͲ෼ׂɺจॻͷཁ໿ϩδοΫ͸T
    T΁ݮͬͨ
    શମͰT͘Β͍
    ਫ਼౓͸མͪͨײ͢͡Δ
    ݕࡧ݅਺ΛݮΒ͢

    View full-size slide

  53. ࠓޙʹ͍ͭͯ
    ʮ,FWJOʯΛͲ͏ਐԽ͍͔ͤͯ͘͞

    View full-size slide

  54. w ෳࡶͳϑϩʔͷ੔ཧ
    w νϟοτʹدͤ͗ͯ͢Δ෦෼΋͋Δͱࢥ͏ͷͰɺ
    ΞϓϦͷػೳͱͯ͠Ҡߦ͍͖͍ͯͨ͠
    w Ͱ͖Δ͚ͩ৘ใఏڙͷΈΛߦ͏Α͏ʹ࣮૷͍ͯ͠
    ͖͍ͨ
    w ೖྗͷϩδοΫ͕େม
    ࠓޙʹ͍ͭͯ %JBMPH
    fl
    PX$9

    View full-size slide

  55. w σʔλΛ૿΍͢
    w ճ౴ͷਫ਼౓Λ্͛Δɻ·ͩ݅͘Β͍
    w 0QFO"*ͷϨεϙϯε͕஗͍ɺΤϥʔ͕ଟ͍
    w Ωϟογϡઓུɺཁ໿ϩδοΫͰ(15Λ࢖
    ༻ɺϩδοΫͷมߋ
    ࠓޙʹ͍ͭͯ (15

    View full-size slide

  56. ͕࣌ؒͳ͍ͷͰ͍ͬͺׂ͍Ѫ͠·͕ͨ͠ʜ

    ͱΓ͋͑ͣΊͪΌͪ͘Όେม😇

    View full-size slide

  57. $50ͱਓ͚ͩͰ։ൃ͍ͯ͠ΔͷͰ

    ஥ؒΛืू͍ͯ͠·͢ʂ (15෦෼͸ਓ

    View full-size slide

  58. εϥΠυͷߏ੒ɺλΠτϧ͸
    $IBU(15͕ߟ͑·ͨ͠

    View full-size slide

  59. $IBU(15Ϛδ͍͢͝

    View full-size slide