[英]IBM Chatbot Assistant - How to skip to the next slot
I have a node in which I have enabled slots and within the node there are several slots . 我有一个节点,我已经启用了插槽 ,在节点内有几个插槽 。 The first slot asks the customer to provide a specific number.
第一个插槽要求客户提供特定号码。 After 3 unsuccessful inputs, I want the bot to automatically skip to the next slot.
在3次输入失败后,我希望机器人自动跳到下一个插槽。 Is this possible?
这可能吗?
Many thanks. 非常感谢。
Yes, you can exit or move on after a certain number of unsuccessful attempts of gathering information. 是的,您可以在收集信息的一定数量的不成功尝试后退出或继续前进。 This is done using the "Not Found" condition on slots and by adding a counter variable.
这是使用插槽上的“未找到”条件并通过添加计数器变量来完成的。 Check out this example in the docs on " Moving on after multiple failed attempts ".
在“ 多次失败尝试后继续前进 ”的文档中查看此示例。
That sample defines this counter (my recommendation: name it differently): 该示例定义了此计数器(我的建议:以不同的名称命名):
"context": {
"counter": "<? context['counter'] + 1 ?>"
}
Then, in a "not found" condition, you would check $counter > 3
. 然后,在“未找到”状态下,您将检查
$counter > 3
。 There, in the output and context section, set up another context variable to trigger skipping to a specific node. 在输出和上下文部分中,设置另一个上下文变量以触发跳过到特定节点。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.