# Retrieved via plug-in NLU Result
# to initialize
Plugin version number in the document, only for example reference, the latest version of the plugin,Subject to this
{
"pages": [
"pages/index/index"
],
"plugins": {
"chatbot": {
"version": "1.2.23",
"provider": "wx8c631f7e9f2465e1"
}
},
"requiredBackgroundModes": [
"audio"
],
"sitemapLocation": "sitemap.json"
}
var plugin = requirePlugin("chatbot")
App({
onLaunch: function () {
plugin.init({
appid: "P5Ot9PHJDechCYqDFAW1AiK6OtG3Ja", //Mini Program sample account, for learning and reference only
openid: "", //User's openid, not required, it is recommended to pass this parameter
success: () 初始值> {}, //Not required
fail: (error) => {}, //Not required
})
},
})
# Call Dialog Interface
plugin.send({
query: "Hello,"
success: (nothing) => {
console.log(nothing)
},
fail: (error) => {},
})
# NLU Result
{
"ans_node_id": 6666,
"ans_node_name": "Weather Services,"
"answer": "Beijing has a light rain today, the temperature is 18 to 29 degrees, the current temperature is 27 degrees, the air quality is slightly polluted, today there is rain, slightly hot, pay attention to the change of clothing." ,
"answer_open": 1,
"answer_type": "text",
"article": "",
"bid_stat": {
"curr_time": "20190826-16:34:56",
"err_msg": "",
"latest_time": "20190826-16:34:56",
"latest_valid": true,
"up_ret": 0
},
"confidence": 1,
"create_time": "1566810973035",
"dialog_status": "COMPLETE",
"from_user_name": "o9U-85tEZToQxIF8ht6o-KkagxO0",
"intent_confirm_status": "",
"list_options": false,
"msg": [
{
"ans_node_id": 6666,
"ans_node_name": "Weather Services,"
"article": "",
"confidence": 1,
"content": "Beijing has a light rain today, the temperature is 18 to 29 degrees, the current temperature is 27 degrees, the air quality is slightly polluted, today there is rain, slightly hot, pay attention to the change of clothing." ,
"debug_info": "",
"list_options": false,
"msg_type": "text",
"resp_title": "Weather Services,"
"status": "CONTEXT_FAQ"
}
],
"ret": 0,
"skill_id": "",
"skill_type": "",
"slot_info": [
{
"date": "{"type":"DT_ORI","date_or":" today","date":"2019-08-26","date_lunar":"2019-08-26","week":"1","slot_content_type":"2","modify_times":"0"}"
},
{
"from_loc": "{"type":"LOC_CHINA_CITY","country":" China","city":" Beijing","city_simple":" Beijing","loc_or":" Beijing","slot_content_type":"2","modify_times":"1"}"
}
],
"slots_info": [
{
"confirm_status": "NONE",
"end": 0,
"entity_type": "",
"norm": "2019-08-26",
"norm_detail " : "",
"slot_name": "date",
"slot_value": "{"type":"DT_ORI","date_or":" today","date":"2019-08-26","date_lunar":"2019-08-26","week":"1","slot_content_type":"2","modify_times":"0"}",
"start": 0
},
{
"confirm_status": "NONE",
"end": 6,
"entity_type": "LOC_CHINA_CITY",
"norm": "{"type":"LOC_CHINA_CITY","country":" China","city":" Beijing","city_simple":" Beijing","loc_or":" Beijing"}",
"norm_detail " : "",
"slot_name": "from_loc",
"slot_value": "{"type":"LOC_CHINA_CITY","country":" China","city":" Beijing","city_simple":" Beijing","loc_or":" Beijing","slot_content_type":"2","modify_times":"1"}",
"start": 0
}
],
"status": "CONTEXT_FAQ",
"title": "Weather Services,"
"to_user_name": "10808"
}