当同一实体在多个插槽中使用时,如何避免插槽填充混乱?

编程入门 行业动态 更新时间:2024-10-25 02:19:15
本文介绍了当同一实体在多个插槽中使用时,如何避免插槽填充混乱?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

在广告位设置中,我需要保存date1&date2由两个插槽作为上下文变量,我们将其命名为slot1和slot2,它们都检查@ sys-date

我在

解决方案

请参阅"改善带有插槽的对话框节点"在IBM Watson Assistant文档中.在此,在子步骤11和12中,时隙发现条件"的概念被使用.进行了讨论.

基本上,您必须为对话框节点启用更多选项才能查看其他条件.现在,通过自定义检查替换该默认条件 #True 并添加其他问题.稍后,评估该问题的答案以设置上下文变量.

In the slot setting , I need to save date1 & date2 as context variables by two slot, let's me called it slot1 and slot2, and they all check for @sys-date

I have found a simple answer at IBM document. However, it's an abstract description, I cannot really understand how to do so.

The document said the solution is to " Use slot found conditions that get clarification from the user about which date you are saving in a slot before you save it."

I think it is referring to edit this part (the below picture). But not knowing how

Think about this example sentence" I need to leave at $date2, oh, by the way, I'll be there from $date1"

In fact, the first shown date will be save as $date1 not $date2. What to fill in the "found" area? Also, what's the effect of a response in slot1 (which should save $date1) like "Do you want to come at $date2?" It did not have a "save it as" (context) option in the edit area, neither an if/else condition setting.

I cannot find a video or step by step tutorial for this.

解决方案

See this step 5 in "Improving a dialog node with slots" in the IBM Watson Assistant documentation. Here, in substeps 11 and 12 the concept of "slot found conditions" is discussed.

Basically, you have to enable more options for the dialog node to see additional conditions. Now, replace that default condition #True by a custom check and add an additional question. Later, evaluate the answer to that question in order to set the context variable.

更多推荐

当同一实体在多个插槽中使用时,如何避免插槽填充混乱?

本文发布于:2023-11-28 07:48:08,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1641535.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:插槽   多个   实体   混乱

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!