Waterfall cafeで働くBot
-
Upload
kazuki-nakajima -
Category
Technology
-
view
1.522 -
download
0
Transcript of Waterfall cafeで働くBot
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Waterfall Cafeで働くBot
⽇本オラクル株式会社
エバンジェリスト 中嶋 ⼀樹
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
OracleとJavaは、Oracle Corporation 及びその子会社、関連会社の米国及びその他の国における登録商標です。 文中の社名、商品名等は各社の商標または登録商標である場合があります。
以下の事項は、弊社の一般的な製品の方向性に関する概要を説明するものです。また、情報提供を唯一の目的とするものであり、いかなる契約にも組み込むことはできません。以下の事項は、マテリアルやコード、機能を提供することをコミットメント(確約)するものではないため、購買決定を行う際の判断材料になさらないで下さい。オラクル製品に関して記載されている機能の開発、リリースおよび時期については、弊社の裁量により決定されます。
Safe Harbor
2
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 3
Botって何ですか?
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 4
Botって何ですか?
⼈の代わりに何かをしてくれるプログラム。
Let’s demo
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 7
Waterfall Cafe Botのアーキテクチャー
ユーザー Bot本体
API
⾃然⾔語解析
API
献⽴データAPI
FAQハブ
API
Hue
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 8
ユーザー
API
API
API
API
⾃然⾔語解析
献⽴データ
FAQハブHue
Bot本体
•Oracle Application Cointainer Cloudで稼働。 •任意の⾔語で開発できる。
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Bot本体
9
ユーザー
API
API
API
献⽴データ
FAQハブHue
•api.aiを利⽤。 •ユーザーの意図を解釈する。
API
⾃然⾔語解析
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Bot本体
API
⾃然⾔語解析
10
ユーザー
API
APIFAQ
ハブHue
•Oracle Database Cloudで稼働。 •あらゆるデータをAPI化できる。
API
献⽴データ
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Bot本体
API
献⽴データ
API
⾃然⾔語解析
11
ユーザー
API
ハブHue
•Oracle Service Cloudを利⽤。 •AIが⼊った賢いFAQのSaaS。
API
FAQ
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Bot本体
API
FAQ
API
献⽴データ
API
⾃然⾔語解析
12
ユーザー
API
Hue
•IFTTTを利⽤。 •様々な有名サービスへの中継所。
ハブ
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Bot本体
ハブ
API
FAQ
API
献⽴データ
API
⾃然⾔語解析
13
ユーザー
•Hueを利⽤。 •モノとの接続を担当。
API
Hue
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 14
Waterfall Cafe Botのアーキテクチャー
ユーザー Bot本体
API
⾃然⾔語解析
API
献⽴データAPI
FAQハブ
API
Hue
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 15
Waterfall Cafe Botのアーキテクチャー
Bot本体
API
⾃然⾔語解析
API
献⽴データAPI
FAQハブ
API
Hue
ユーザー
ユーザーは「新しい使い⽅」を覚える必要がない。
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
ユーザー
16
Waterfall Cafe Botのアーキテクチャー
Bot本体
API
⾃然⾔語解析
API
献⽴データAPI
FAQハブ
API
Hue
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
ユーザー
17
Waterfall Cafe Botのアーキテクチャー
Bot本体
API
⾃然⾔語解析
API
献⽴データ
ハブ
API
Hue
クラウドはまず「上」から検討。
API
FAQ
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 18
Waterfall Cafe Botのアーキテクチャー
Bot本体
API
⾃然⾔語解析
API
献⽴データAPI
FAQハブ
API
Hue
ユーザー
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
ユーザー
19
Waterfall Cafe Botのアーキテクチャー
Bot本体
API
⾃然⾔語解析
API
献⽴データAPI
FAQハブ
API
Hue
最良の機能をPlug-inできるアーキテクチャー。
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Bot本体の開発フレームワーク
20
スキル フロー
• Botが対応できる仕事。 Example..
• ある⽇のメニューを回答する。 • あるメニューのカロリーを回答する。 • 照明をコントロールする。 • FAQに回答する。
• これを簡単に追加できるようにしたい。
• ⽂脈に応じてどういう順番に何を実⾏するかのパターン。
• これが綺麗にフレームワーク化できればBotのスキルアップが圧倒的にやり易くなる。
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 21
イベント
Start Conversation Flow
Reply Flow
Change Intent Flow
Change Parameter Flow
No Way Flow返信
Bot
イベントはいずれかのフローが適⽤され、返信までの処理がおこなわれる。
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 22
Start Conversation Flow
メニューを教えて。 Botが該当ユーザーとの会話を記憶をしていない場合、このフローが適⽤される。
1.意図を特定
2.必要なパラメータがあれば収集
3.情報がそろったら最終的な返答
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 23
Reply Flow
メニューを教えて。
いつのメニューですか?
今⽇。
Botが該当ユーザーとの会話を記憶をしており、確認中の質問がある場合このフローが適⽤される。
1.メッセージからパラメータを抽出
2.他にも必要なパラメータがあれば収集
3.情報がそろったら最終的な返答
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 24
Change Intent Flow
今⽇のメニューを教えて。
Plate Aはヘルシーとんかつ、 …
カロリーも教えてくれる?
Botが該当ユーザーとの会話を記憶をしているが、確認中の質問はなく、そしてメッセージから意図が解釈できた場合に適⽤される。
1.これまでに収集したパラメータを継承
2.メッセージからパラメータを抽出
3.他にも必要なパラメータがあれば収集
4.情報がそろったら最終的な返答
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 25
Change Parameter Flow
今⽇のメニューを教えて。
Plate Aはヘルシーとんかつ、 …
明⽇は?
Botが該当ユーザーとの会話を記憶をしているが、確認中の質問はなく、さらにメッセージから意図は解釈できないがパラメーターが抽出できた場合に適⽤される。
1.メッセージからパラメータを抽出
2.他にも必要なパラメータがあれば収集
3.情報がそろったら最終的な返答
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 26
No Way Flow
今⽇のメニューを教えて。
Plate Aはヘルシーとんかつ、 …
関係ないけど、個室ってどうすれば利⽤できるんだっけ?
Botが該当ユーザーとの会話を記憶をしているが、確認中の質問はなく、さらにメッセージから新たな意図は解釈できず、パラメーターも抽出できない場合に適⽤される。
1.最終⼿段として設定されたアクション
を実⾏。
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 27
イベント
Start Conversation Flow
Reply Flow
Change Intent Flow
Change Parameter Flow
No Way Flow返信
Bot
イベントはいずれかのフローが適⽤され、返信までの処理がおこなわれる。
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 28
イベント
Reply Flow
Change Intent Flow
Change Parameter Flow
No Way Flow返信
Bot
Start Conversation Flow
メニューを回答 カロリーを回答
年⽉⽇ 年⽉⽇
プレート
照明⾊を変更
⾊
FAQに回答
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 29
イベント
Reply Flow
Change Intent Flow
Change Parameter Flow
No Way Flow返信
Bot
Start Conversation Flow
メニューを回答 カロリーを回答
年⽉⽇ 年⽉⽇
プレート
照明⾊を変更
⾊
FAQに回答
意図されたスキルを選択し、必要なパラメーターを収集
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 30
イベント
Reply Flow
Change Intent Flow
Change Parameter Flow
No Way Flow返信
Bot
Start Conversation Flow
メニューを回答
年⽉⽇
照明⾊を変更
⾊
FAQに回答
メニュー
カロリーを回答
年⽉⽇
プレート
外部サービスと連携し最終的なアクションを実⾏
献⽴データ
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
参考情報
31
• Waterfall Cafe Botのソースコード:Github - waterfall-cafe-bot
• Bot本体を稼働できる Oracle Application Container Cloud
• ⾃然⾔語解析サービス:api.ai
• Excelデータを3分でクラウドAPI化するOracle Database Cloudとチュートリアル
• AIが⼊った賢いFAQ:Oracle Service Cloud
• 様々な有名サービスとのドッキングステーション:IFTTT
• Bot開発チュートリアル: AIが⼊ったBotの作り⽅を学ぼう
• 有志による勉強会:Oracle Cloud Developers Meetup
nkjm本⽇のスライド、この後すぐにTwitterで共有します。
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | 34