ex

Fork of mbed-os-example-mbed5-blinky by mbed-os-examples

Revision:
44:c1d8923072ba
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dumi_doc-master/doc/bot/sms.md	Tue Jul 18 16:27:22 2017 +0800
@@ -0,0 +1,106 @@
+#发短信应用输出
+
+bot_id: ai.dueros.bot.sms
+
+## v2 协议输出
+```javascript
+{
+  "result": {
+    "views": {
+      "type": "txt",
+      "content": "请问要发送什么内容?"
+    },
+    "nlu": {
+      "domain": "phone",
+      "intent": "sms",
+      // 发短信包括:1. 请问要发给谁?;2. 请问要发送什么内容?;3. 短信问确认: 请问你要发送、取消还是修改?;4. 短信主动取消;5. 短信结束,正在为你发送短信
+      "slots": {
+        "SMSKey": "短信",
+        "SendKey": "发",
+        "UseKey": "用",
+        "carrier": "联通",
+        "name": "测试薛斌"
+        "content": "短信内容",
+      }
+    },
+    "resource": {
+      // TDDO: 带确认下面解析的名称
+      "pinyin": "ce+shi+xue+bin", // 姓名拼音
+      "same_pinyin_names": "[“张棋”,”张起”]", // 相同拼音的联系人
+      "high_confidence_similar_names": ["张宁","张玲"], // 高置信度相似拼音
+      "include_names": "[\"测试薛斌\"]", // 通讯录包含查找名称
+      "similar_names": "["张层","张增"]", // 底置信度相似拼音
+      "similar_include_names": "["张莹莹","张怡怡"]", // 包含底置信度相似拼音
+      "recommend_names": "[\"测试薛斌\"]" // 模糊匹配命中名字
+      "yellow_pages": "[{"name":"搜狐客服电话","number":"01062726666"}]"  // 阿拉丁黄页客服
+    },
+    "speech": {
+      "type": "txt",
+      "content": "请问要发送什么内容?"
+    },
+    "bot_id": "ai.dueros.bot.sms",
+    "bot_meta": {
+      "version": "1.0.0",
+      "type": "其他",
+      "description": "desc"
+    }
+  },
+  "id": "1494937215_367bkp6hf",
+  "logid": "14949372148532",
+  "user_id": "test_offline1490608414.0",
+  "time": 1494937215,
+  "cuid": null,
+  "se_query": "用联通卡发短信给薛斌",
+  "msg": "ok",
+  "status": 0
+}
+```
+
+
+字段说明:
+### view:
+
+|字段 | 描述 | 举例 | 
+|---|---|---|
+|type | 返回展示卡片数据,必选字段,这里默认是文本 | txt | 
+|content | 文本内容 | 请问要发送什么内容? | 
+
+### nlu:
+
+|slot |desc | value | 
+|---|---|---|
+|name | 名字 | 中文名 | 
+|number | 电话号码 | eg:10086 | 
+|use_sim_index | sim卡号 | 1、2 | 
+|status|cancel|取消|
+|content|短信内容|Eg:今晚加班晚点回家|
+
+
+|slot |desc | value | 
+|---|---|---|
+|name | 名字 | 中文名 | 
+|number | 电话号码 | eg:10086 | 
+|use_sim_index | sim卡号 | 1、2 | 
+|status|cancel|取消|
+
+
+### resource:
+
+|字段 | 描述 | 举例 | 
+|---|---|---|
+|pinyin | 姓名拼音 | eg:xuebin | 
+|same_pinyin_names | 相同拼音联系人 | Eg:[“张棋”,”张起”]|
+|include_names | 通讯录包含联系人 | Eg:["张宁宁","张玲玲"]|
+|high_confidence_similar_names | 高置信度相似拼音 | Eg:["张宁","张玲"]|
+|similar_names | 低置信度相似拼音 | Eg:["张层","张增"]|
+|similar_include_names | 包含底置信度相似拼音 | Eg:["张莹莹","张怡怡"]|
+|recommend_names | 模糊匹配命中名字 | Eg:["张莹莹","张怡怡"] 排序规则:name、same-pingyin-name、high-confidence—Similar–names、include-name、Similar–names、Similar–include-names|
+|yellow_pages | 客服黄页 | Eg:[{"name":"搜狐客服电话","number":"01062726666"}]|
+
+
+### speech:
+
+|字段 | 描述 | 举例 | 
+|---|---|---|
+|type | 文本格式 | txt | 
+|content | 语音文本 | 请问要发送什么内容? |