DialogFlow CX如何在起始页声明参数?

DialogFlow CX how to declare parameters in the start page?

我需要声明一个参数来将用户名存储为 dialogflow 会话的第一条消息中的输入,“我的名字是约翰”将是用户输入到 dialogflow cx 的第一条消息, 我注意到无法在起始页上创建参数,有没有一种方法可以使用 EntityType 从会话的第一条消息中检测参数?

要检测第一个 end-user 输入的参数值,您可以使用 intent parameters.

首先,创建一个意图并添加训练短语,例如“我的名字是约翰”等。 See how the intent may look like.

然后,添加一个intent route on the Start page and define agent response in fulfillment. See how the route and a simulator test may look like。

您还可以查看 general agent design best practices 了解更多信息。