Dialog
文字正規化は NFKC
Dialog 英語版 GA 公開日 2015/09/25
Tools
Dialog テストツールアプリケーション(自分でビルドして使ってね、方式)
https://github.com/watson-developer-cloud/dialog-tool
Dialog API
http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/dialog/api/v1/
Dialog API - Swagger UI
https://watson-api-explorer.mybluemix.net/swagger.html?url=/listings/dialog-v1.json
Watson Dialog Overview
http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/doc/dialog/
Dialog Overview - Tutorial (タグの書き方)
http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/doc/dialog/tutorial_tutorials.shtml
Dialog Overview - Primary Elements
http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/doc/dialog/layout_layout.shtml
Dialog Demo
http://dialog-demo.mybluemix.net/
料金(Standard)
無料枠
毎月最初の 1000 回の API 呼び出しは無料です
有料
2JPY/call
Tips
XMLは↓から始まらないとエラーになる。(Tutrial とは異なる。)
<?xml version="1.0" encoding="UTF-8"?>
<dialog xsi:noNamespaceSchemaLocation="WatsonDialogDocument_1.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
Dialogサービス (WEA)
https://dialog-doc-la.mybluemix.net/doc/dialog/index.html
What's In Theaters
http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/gallery.html
What's In Theaters Demo
http://watson-movieapp-dialog.mybluemix.net/watson-movieapp-dialog/dist/#/
watson-developer-cloud/movieapp-dialog
https://github.com/watson-developer-cloud/movieapp-dialog
What's In Theaters application overview
http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/doc/ega_docs/dialog_ega.shtml
Dialog と Conversation の違い
dialogue はギリシャ語由来の言葉で
conversation はラテン語由来の言葉、らしい。
Operators (Cond)
HAS_VALUE
IS_BLANK
EQUALS
Operators (Action)
APPEND
DECREMENT_BY
DO_NOTHING_STR
INCREMENT_BY
NO
SET_AS_USER_INPUT
SET_TO
SET_TO_BLANK
SET_TO_NO
SET_TO_USER_INPUT
SET_TO_USER_INPUT_CORRECTED
SET_TO_YES
YES
http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/doc/dialog/reference_nodes.shtml
folder
Main
Stores the nodes that are run as soon as a dialog is started. Usually this folder contains a welcome message, followed by an opportunity for the user to enter data to begin a conversation. The main folder can store different functions beyond simple welcome messages, such as search, function calls, and more.
すぐにダイアログが起動されるように実行されたノードを格納します。通常、このフォルダには、対話を開始するためにデータを入力するようにユーザのための機会が続くウェルカムメッセージが含まれています。メインフォルダは、検索、関数呼び出し、およびより多くのような単純なウェルカムメッセージを越えてさまざまな機能を保存することができます。
Library
Stores the core information that is used by the Dialog service. It stores all the dialog structures, the pairs of input nodes and output nodes, and various other nodes that are used to run a dialog. This folder can also be used to store information that has yet to be approved by the customer for use in a dialog and for other dialog structures you might need to test later.
店舗ダイアログサービスで使用されるコア情報。これは、すべてのダイアログ構造、ダイアログを実行するために使用されている入力ノードと出力ノード、および種々の他のノードのペアを格納します。このフォルダには、ダイアログで使用するために、あなたは、後でテストする必要があるかもしれません他のダイアログ構造のために、顧客の承認を得るためには至っていない情報を格納するために使用することができます。
Global
Stores any nodes/functions you want run every time that the dialog must do a function. A search node searches this folder first.
店舗ダイアログ関数を実行する必要がありますたびに実行したい任意のノード/機能。検索ノードは、最初にこのフォルダを検索します。
Concept
Stores all the local concepts that are used by a dialog. Store only concept nodes in this folder.
ダイアログで使用されているすべてのローカルの概念を格納します。このフォルダにのみ概念ノードを格納します。
<flow> <folder label="Main"></folder> <folder label="Library"></folder> <folder label="Global"></folder> <folder label="Concepts"></folder> </flow>
$ curl -u "<user>":"<password>" --dump-header - https://gateway.watsonplatform.net/dialog/api/v1/dialogs
HTTP/1.1 200 OK
X-Backside-Transport: OK OK
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Language: en-US
Date: Thu, 10 Dec 2015 11:42:23 GMT
X-Powered-By: Servlet/3.0
Allow: HEAD, GET, POST, DELETE
Content-Type: application/json;charset=UTF-8
Server: -
Set-Cookie: Watson-DPAT=<cookie>; path=/dialog/api; secure; HttpOnly
X-Client-IP: 126.19.89.191
X-Global-Transaction-ID: 87564633
X-DP-Watson-Tran-ID: csf_platform_prod_dp01-87564633
{"dialogs":[{"name":"<name1>", "dialog_id":"<id1>"},{"name":"<name2>", "dialog_id":"<id2>"}]}