我想在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.我如何接收或捕获来自用户的这种语音?
发布于 2019-06-08 21:43:11
可以使用@sys.any entity。如果用户在Agent: Okay, would you like to add a note to the restaurant?之后说是,则对sys.any使用后续意图。通过这样做,您可以获得字符串形式的自由语音,并将其用作注释。
此外,您可以考虑查看以下内容:
https://stackoverflow.com/questions/56487538
复制相似问题