简体   繁体   English

Dialogflow CX -- 用户切换主题 -- 切换流

[英]Dialogflow CX -- User Switches Topic -- Switching Flows

Let's say a user switches topics in the middle of a flow.假设用户在流程中间切换主题。 Is there a way to have Dialogflow CX route to the new flow (based on the intent recognition), finish that flow, and come back to where we were before?有没有办法让 Dialogflow CX 路由到新流程(基于意图识别),完成该流程,然后回到我们之前的位置?

I know I can set up Route groups, but that's not robust enough.我知道我可以设置路由组,但这还不够稳健。

In theory, I could set up every permutation of every page (ie ever intent be included as a route on every single page), but that seems unmanageable.理论上,我可以设置每个页面的每个排列(即曾经打算作为每个页面上的路由包含在内),但这似乎难以管理。

Am I missing something?我错过了什么吗?

To transition to the start of another flow, at the bottom of the intent definition in the CX control panel, where you are choosing the transition target, choose "Flow" instead of "Page", and then any page can branch to another flow.要转换到另一个流的开始,在 CX 控制面板的意图定义底部,您在其中选择转换目标,选择“流”而不是“页面”,然后任何页面都可以分支到另一个流。 I'm not sure but I think you always transition to the start of the new flow.我不确定,但我认为您总是过渡到新流程的开始。

When that flow is to finish, transition to the END_FLOW page.当该流程结束时,转换到 END_FLOW 页面。 That will return you to where you were in the original flow.这将使您返回到原始流程中的位置。

Described in the Handler Call Stack documentation.处理程序调用堆栈文档中进行了描述。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM