[英]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.