简体   繁体   English

Watson Assistant:插槽中的上下文变量未更新

[英]Watson Assistant: Context variable in slot is not being updated

I'm currently working with some required slots in Watson Assistant, but I have a problem that I don't understand. 我目前正在使用Watson Assistant中的一些必需插槽,但是我有一个我不明白的问题。 When the user enters the node with the slot the first time, the variable is updated with the corresponding value, but the second time I try to enter the node (without entering the entity), it ignores the slot as if the entity had been entered. 当用户第一次进入带有插槽的节点时,变量将更新为相应的值,但是第二次尝试进入节点(不输入实体)时,它将忽略插槽,就好像已经输入了实体一样。 I know that the context variable is keeping the original value, but should not verify that the entity exists instead of the variable?. 我知道上下文变量会保留原始值,但是不应该验证该实体而不是变量吗? Are there some best practices to clean this kind of context variables (either in the UI tool or the backend)? 是否有一些最佳实践可以清除此类上下文变量(在U​​I工具或后端中)?

A context variable can be used to store values across dialog steps. 上下文变量可用于跨对话框步骤存储值。 You determine when it is set and when it is cleared. 您可以确定何时设置和清除时间。 You can clear the context variable by either 您可以通过以下任一方式清除上下文变量

Usage depends on your design and flow. 使用情况取决于您的设计和流程。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM