[英]How to capture free speech from user in 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.
如何从用户那里接收或捕获那种语音?
您可以使用@sys.any实体。 如果用户在Agent: Okay, would you like to add a note to the restaurant?
后说“是”,则使用sys.any的后续意图Agent: Okay, would you like to add a note to the restaurant?
。 您可以通过执行此操作将自由语音作为字符串获取并将其用作注释。
此外,您可以考虑在这里看:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.