DialogFlow CX 中的多个意图

Multiple Intents in DialogFlow CX

我想让用户回复一个较长的回复,比如谈论他们的教育和家庭背景。在此,我想识别多个意图,然后将多个问题(一个接一个)返回给用户,作为检测到的意图的后续行动。我可以在 DialogFlow CX 中执行此操作吗?如何执行?

您可以执行多个意图而没有响应,但您的问题有多个后续意图,您将需要更改上下文的数量以匹配您将要使用的意图的数量。

请注意,您想要的用例目前在 Dialogflow CX 中不可行。默认情况下,Dialogflow 仅将用户查询与一个意图路由匹配。意图是 matched based on the confidence value in the detectIntent Response’s queryResult.match 字段。

此外,检测意图文本输入的最大长度为 256 个字符。如果您使用 integration, the integration platform may have a smaller limit. However, you can use the sys.long-utterance built-in event 来处理超过 256 个字符限制的用户查询。请注意,长用户查询仍然只会匹配到一个意图路由。

如果您想向用户询问多个问题,您可以将代理设计为具有一次向用户询问一个问题的对话流。您可以利用 State Handlers to control the conversation flow. You may refer to the Voice agent design 文档来了解设计代理的最佳实践。