简体   繁体   English

IBM Watson Assistant:我如何让聊天机器人重复响应,直到它识别出用户在说什么?

[英]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.编辑:补充一点可能会有所帮助,我在这里尝试将用户“漏斗”到某些对话路径中。

In anything_else node, you can enable return after digressions which will go back to the previous node and it fulfils your requirement.在anything_else节点中,您可以在离题后启用返回,这将返回上一个节点并满足您的要求。

参考

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.

相关问题 IBM Watson Assistant:如何将聊天机器人集成到 Unity 中? - IBM Watson Assistant: How do I integrate a Chatbot into Unity? 如何将IBM Watson Assistant聊天机器人添加到网页上? - How to add a IBM Watson Assistant chatbot on to a webpage? IBM Watson Assistant:按日期/季节改变聊天机器人响应 - IBM Watson Assistant: Vary chatbot response by date/season 如何在 IBM Watson Assistant 聊天中将响应值从扩展传递到自定义响应类型? - How do I pass response values from extension to custom response type in IBM Watson Assistant chat? 如何在IBM Watson Conversation聊天机器人中集成图以响应查询? - How do I integrate graphs in response to query in IBM Watson Conversation chatbot? IBM Watson Assistant:我如何包含作为锚链接的超链接作为响应? - IBM Watson Assistant: How do I include a hyperlink that is an anchor link as a response? IBM Watson Assistant:如何训练聊天机器人选择正确的意图? - IBM Watson Assistant: How to train the chatbot to pick the right intent? IBM Watson Assistant:如何让聊天机器人响应动态选项列表 - IBM Watson Assistant: How to let the chatbot respond with a dynamic option list 如何将IBM Watson Assistant聊天机器人嵌入另一个HTML页面 - How to embed IBM Watson Assistant chatbot into another HTML page 如何在IBM Watson Assistant中插入一个复选框? - How do i insert a checkbox in the IBM Watson Assistant?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM