ibm bluemix - API call in Response and another response types -
how can call api url (fulfillment
or webhook
named api.ai) watson conversation api response.
i don't need enter full list of expected responses response section.
i need call api understood json object handle response backend (fetch db example) , return expected json user (requester).
any advice?!
not sure understand question, cannot program within conversation service tooling call out other services etc, part of response or message.
these types of actions middleware or service layer part of application should handle. not recommended program client element of application process additional api calls.
find both on forum, , in ibm docs examples of use of whats called "action" json elements can added conversation response payload. along response output text ( or in place ) add "action" json element output , context json object includes instructions middleware or client part of application. i.e.
"output" : { "text" : "hi there" },
"action" " { "api_url" : "http://bluemixservice.ibm.com", "task" : "insert", "data" : "user asked alarm @ 5pm" },
"context" : { "conversation_id" : "asdada" }
hope helps.
Comments
Post a Comment