Watson Conversation API response inconsistent with workspace response on Watson web console

只愿长相守 提交于 2019-12-11 05:47:23

问题


I built a conversations dialog model that works perfectly when tested on the www.ibmwatsonconversation.com workspace.

However, when I use the API calling the same workspace on my web app, the response given through the API not the same.

Below is the flow:

Intent 1

Intent 2 -> Entity 1

Intent 3

Intended behavior :

1.Ask question with intent 2, get reply from intent 2 node.

2.Enter entity 1, get reply from entity 1 node.

Actual behaviour (only from API):

  1. Ask question with intent 2, get reply from intent 2 node.

  2. Enter entity 1, get reply from intent 1


回答1:


The most likely cause for this is that you are not passing back the context object at every call. Conversation is stateless, so without the context object it can't determine where you are, and will default to root.

Your first call will create the context object, and you can keep passing that back.

If this isn't is the issue, you need to supply a demo of the issue with dummy data, or a screenshot of your dialog flow (related part only).



来源:https://stackoverflow.com/questions/39586350/watson-conversation-api-response-inconsistent-with-workspace-response-on-watson

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!