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
API
FAQ
ハブ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

Waterfall cafeで働くBot

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