[英]IBM Watson Assistant: How do I have the chatbot repeat a response until it recognizes what the user is saying?
I am building a chatbot that needs to be able to have long, branching conversations with users.我正在构建一个需要能够与用户进行长时间、分支对话的聊天机器人。 Its purpose is to be able to engage the user for longs periods of time.
其目的是能够长时间吸引用户。 One of the problems that I'm running into is how to handle unrelated responses from a user in the middle of a dialogue tree without "resetting" the entire conversation.
我遇到的问题之一是如何在不“重置”整个对话的情况下处理对话树中间用户的无关响应。
For example, let's say they have the following conversation:例如,假设他们有以下对话:
Chatbot: Do you like vanilla or chocolate ice cream?聊天机器人:你喜欢香草冰淇淋还是巧克力冰淇淋?
User: Vanilla用户:香草
Chatbot: (recognizes "vanilla" and responds with appropriate child node) Great!聊天机器人:(识别“vanilla”并以适当的子节点响应)太棒了! Would you like chocolate or caramel on top?
你想在上面放巧克力还是焦糖?
User: Caramel用户:焦糖
Chatbot: (recognizes "caramel" and responds with appropriate child node) That sounds delicious!聊天机器人:(识别“焦糖”并以适当的子节点响应)听起来很好吃! Do you prefer sprinkles or whipped cream?
你喜欢洒奶油还是生奶油?
User: I would like a cherry!用户:我要樱桃!
At that point, my problem is that the chatbot triggers the "anything_else" response and says something like "I didn't understand that."那时,我的问题是聊天机器人触发了“anything_else”响应并说“我不明白那个”。 Which means if the user wants to continue the conversation about ice cream, he has to start from the very beginning.
这意味着如果用户想继续谈论冰淇淋,他必须从头开始。
I'm very new to using IBM Watson assistant, but I did as much research as I could and I wasn't able to find anything.我对使用 IBM Watson 助手非常陌生,但我做了尽可能多的研究,但没有找到任何东西。 Any advice or help would be appreciated!
任何建议或帮助将不胜感激! So far the only idea I had was to have an "anything_else" option for every single dialogue node that could jump back to the next node up.
到目前为止,我唯一的想法是为每个可以跳回下一个节点的对话节点设置一个“anything_else”选项。 But that sounds extremely complicated and time consuming.
但这听起来极其复杂和耗时。 I was wondering if there was an easier way to just have the chatbot repeat whatever question it is asking until it gets a response that triggers one of the child nodes.
我想知道是否有一种更简单的方法可以让聊天机器人重复它提出的任何问题,直到它得到触发其中一个子节点的响应。
EDIT: It may be helpful to add that what I'm trying to here is "funnel" the user down certain conversation paths.编辑:补充一点可能会有所帮助,我在这里尝试将用户“漏斗”到某些对话路径中。
There is a Anything Else option that acts as a fallback when the chatbot fails to recognize the intent.当聊天机器人无法识别意图时,还有一个任何其他选项可以作为后备。
You can take a look at the documentation here .您可以在此处查看文档。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.