如何在Dialogflow中捕获用户的言论自由?

时间:2019-06-07 03:20:23

标签: dialogflow

我想在Dialogflow中捕获用户的言论自由。

让我们想象一下以下对话:

User: I want to order a pizza
Agent: What type of pizza would you like to order?
User: Chicago Pizza.
Agent: What time works best for you?
User: 6 PM.
Agent: Okay, would you like to add a note to the restaurant?
Yes -> User: Yes, please.
       Agent: Please, tell me your note
       User: <Free speech, user may say whatever he/she wants or feels necessary for his/her order>
       Agent: Copy that. You ordered a Chicago pizza and it will delivered at 6 PM. We have also sent your note to the restaurant.
No ->  User: No.
       Agent: Okay, you ordered a Chicago pizza and it will delivered at 6 PM.

我如何从用户那里接收或捕获这种语音?

1 个答案:

答案 0 :(得分:0)

您可以使用@ sys.any实体。如果用户在Agent: Okay, would you like to add a note to the restaurant?之后说是,请对sys.any使用后续意图。通过执行此操作,您可以将言论自由作为字符串,并将其用作注释。

此外,您可以考虑在这里查看:

Agent Design