Download - Socket.IOでチャットボットを作った話
Transcript
![Page 1: Socket.IOでチャットボットを作った話](https://reader031.vdocuments.pub/reader031/viewer/2022030309/58f298131a28ab99448b4599/html5/thumbnails/1.jpg)
Socket.IOでチャットボットを作った話!
Node.js
![Page 2: Socket.IOでチャットボットを作った話](https://reader031.vdocuments.pub/reader031/viewer/2022030309/58f298131a28ab99448b4599/html5/thumbnails/2.jpg)
⾃⼰紹介
" @takehilo# https://github.com/takehilo
⾦⼦ 雄⼤SIerで主にプログラマとして活動中。 Node.jsを触り始めたのはちょうど1年くらい前。 最近は機械学習に興味あり。
![Page 3: Socket.IOでチャットボットを作った話](https://reader031.vdocuments.pub/reader031/viewer/2022030309/58f298131a28ab99448b4599/html5/thumbnails/3.jpg)
今⽇の⽬的
Node.jsって楽しいね!って 話がしたい
![Page 4: Socket.IOでチャットボットを作った話](https://reader031.vdocuments.pub/reader031/viewer/2022030309/58f298131a28ab99448b4599/html5/thumbnails/4.jpg)
どんなチャットボット?
$ サポートサイトに設置するFAQボット
% B2B向けなので雑談機能とかはなし
& 1問1答のシンプルなボット
裏でWatson君が動いてる
![Page 5: Socket.IOでチャットボットを作った話](https://reader031.vdocuments.pub/reader031/viewer/2022030309/58f298131a28ab99448b4599/html5/thumbnails/5.jpg)
アーキテクチャ
![Page 6: Socket.IOでチャットボットを作った話](https://reader031.vdocuments.pub/reader031/viewer/2022030309/58f298131a28ab99448b4599/html5/thumbnails/6.jpg)
ボットが回答を返す仕組みquestion, classxxは何ですか?, 10 yyが知りたい, 27 ...
training.csv
NLC
&
DB
xx
class: 10confidence: 98.12
SELECT ...WHERE id = 10;
data
xxを教えてください
以下の回答が⾒つかりました 1. xxの⽅法
)
![Page 7: Socket.IOでチャットボットを作った話](https://reader031.vdocuments.pub/reader031/viewer/2022030309/58f298131a28ab99448b4599/html5/thumbnails/7.jpg)
Node.jsを使ってよかったところ
* コンポーネント全てをJavaScriptだけで書けた
+ やりたいことのほとんどはnpmにある
WatsonにもNode.js SDKがある
![Page 8: Socket.IOでチャットボットを作った話](https://reader031.vdocuments.pub/reader031/viewer/2022030309/58f298131a28ab99448b4599/html5/thumbnails/8.jpg)
コンポーネント全てをJavaScriptだけで書けた
,
![Page 9: Socket.IOでチャットボットを作った話](https://reader031.vdocuments.pub/reader031/viewer/2022030309/58f298131a28ab99448b4599/html5/thumbnails/9.jpg)
やりたいことのほとんどはnpmにある
https://github.com/steelbrain/php-serialize
PHPJS
![Page 10: Socket.IOでチャットボットを作った話](https://reader031.vdocuments.pub/reader031/viewer/2022030309/58f298131a28ab99448b4599/html5/thumbnails/10.jpg)
WatsonにもNode.js SDKがある
https://github.com/watson-developer-cloud/node-sdk
Node.js
![Page 11: Socket.IOでチャットボットを作った話](https://reader031.vdocuments.pub/reader031/viewer/2022030309/58f298131a28ab99448b4599/html5/thumbnails/11.jpg)
最後に
Node.js