1

I have been reading through the documentation and cannot find the answer to this question for Watson Assistant.

I have a digression that I only sometimes want to return back to the previous place in the dialog.

Specifically, after the user enters the digression, if the user responds "Yes" then I do not want the digression to return back, but if the user responds "No" then I do want the digression to return to the previous place.

Is there a way to do this? Perhaps by manually editing the JSON to somehow override the directive to return from the digression in some cases?

Below is a diagram of the issue:

Dialog Flow

4

2 回答 2

1

有一个函数<? clearDialogStack() ?>在调用时会删除对话中设置的所有离题,因此对话不会从离题返回。因此,只需在您不想WA返回的节点中调用此函数即可。

它在文档中:https ://cloud.ibm.com/docs/services/assistant?topic=assistant-dialog-runtime#dialog-runtime-digressions

于 2019-05-16T09:25:34.280 回答
0

如果我对您的理解正确,您可以创建两个不同的节点来根据今天设置题外话的方式来处理“是”或“否”的用户响应。如果是,则需要将节点配置为不返回(不要单击复选框)。如果否,请单击复选框。

在此处输入图像描述

于 2018-05-30T17:04:41.873 回答