首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在Dialogflow中捕获来自用户的自由言论?

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

Stack Overflow用户
提问于 2019-06-07 11:20:23
回答 1查看 67关注 0票数 0

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

让我们想象一下下面的对话:

代码语言:javascript
复制
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.

我如何接收或捕获来自用户的这种语音?

EN

回答 1

Stack Overflow用户

发布于 2019-06-08 21:43:11

可以使用@sys.any entity。如果用户在Agent: Okay, would you like to add a note to the restaurant?之后说是,则对sys.any使用后续意图。通过这样做,您可以获得字符串形式的自由语音,并将其用作注释。

此外,您可以考虑查看以下内容:

Agent Design

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/56487538

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档