How to get output text when using watson conversation api -


i have created workspace , created intent, entities , dialogs conversation service use launch tool , "try out", can see watson text response question asked. when use api command via rest client, not return text output. input used api

{   "input": {     "text": "increase temperature of ac"   } } 

and response got following

{ "input": { "text": "increase temperature of ac" }- "context": { "conversation_id": "5a7ce4c2-c6be-4cb8-b728-19136457bf28" "system": { "dialog_stack": [1] 0:  "root" - "dialog_turn_counter": 1 "dialog_request_counter": 1 }- }- "entities": [1] 0:  { "entity": "appliance" "location": [2] 0:  28 1:  30 - "value": "ac" }- - "intents": [1] 0:  { "intent": "turn_up" "confidence": 0.9854193755106732 }- - "output": { "log_messages": [0] "text": [0] "nodes_visited": [1] 0:  "node_1_1469526692057" - }- } 

it doesnot have text message in json output

this working intended.

using github conversation demo, can find related node in json searching "conditions": "#turn_up". here related block.

{   "go_to": {     "return": null,     "selector": "condition",     "dialog_node": "node_11_1467233013716"   },   "output": {},   "parent": null,   "context": null,   "created": "2016-07-22t04:55:54.661z",   "metadata": null,   "conditions": "#turn_up",   "description": null,   "dialog_node": "node_10_1467233003109",   "previous_sibling": "node_7_1467232789215" }, 

alternatively can block in conversation ui looking #turn_up. example.

enter image description here

the output field empty. output text not being handled conversation.

it has handled @ application layer. there valid reasons doing this. example creating answer store independent makes easier non-technical user update. or if wanted hand off retrieve , rank find answer.

in case, how car demo handles detailed in tutorial video, can see here.

https://youtu.be/wg2fulirvnk


Comments