From Dialog to Conversation: how to do what <folder label=“Global”> do?

人盡茶涼 提交于 2019-12-12 23:03:58

问题


In Watson Dialog, <folder label="Global"> could be used to handle objections. If in middle of some dialog user type an objection, folder Global could answer and after that keep the dialog at the same point.

I trying to do the same with Watson Conversation but I'm lost. Apparently it is not possible or not easy. The node everything_else don't solve the problem. It breaks the conversation.

Watson Conversation is or not is a evolution of Watson Dialog? It has less features?


回答1:


Conversation and Dialog are two different systems. Dialog would maintain state, while in Conversation you are expected to maintain it.

There is no global feature at this time, but you can simulate the feature through two different ways.

1. Two workspaces.

This option is probably the easiest. You have your second workspace with all your global terms. In your process flow of the first workspace at the end of a check area you have a keyword. This keyword triggers your application layer to search the second workspace for the global answer.

This way you can maintain your position in the first workspace easily.

This example uses the return text "SearchGlobal" to trigger it. Once it completes, it will return to asking for a yes/no.

2. One workspace. Global folder

In this case when you see the "SearchGlobal" text, you store the context object from the response. Then send the users input again, only with the context object to jump to a related branch.

You can do this by either loading a context variable, or storing a pre-existing context object to jump to a branch. The latter is a little tricker.



来源:https://stackoverflow.com/questions/40567331/from-dialog-to-conversation-how-to-do-what-folder-label-global-do

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