简体   繁体   English

IBM Watson Assistant:用户输入按钮 label 作为文本而不是单击按钮

[英]IBM Watson Assistant: user input button label as text instead of click the button

I'm using IBM Watson Assistant's option responses for my chatbot.我正在为我的聊天机器人使用 IBM Watson Assistant 的选项响应。 I have put entity value "A" as the button label and the corresponding values are like "definition of A".我已将实体值“A”作为按钮 label,相应的值类似于“A 的定义”。 However, when assistant display the option and button, if user input "A" as text instead of click the button, I cannot respond the correct message as for "definition of A".但是,当助手显示选项和按钮时,如果用户输入“A”作为文本而不是单击按钮,我无法响应“A 的定义”的正确消息。

Others have suggest me to set a separate node only for this entity "A", but I'm using the same button labels for several questions and are expecting different responses under different situation.其他人建议我只为这个实体“A”设置一个单独的节点,但我对几个问题使用相同的按钮标签,并且期望在不同的情况下会有不同的响应。 Also, I have tried to use slots, but I want the assistant redirect user to another node with option responses instead of respond with certain text.此外,我尝试使用插槽,但我希望助手将用户重定向到另一个节点,并使用选项响应而不是响应某些文本。

Can anyone give me some suggestion on this matter?谁能给我一些关于这个问题的建议?

The others were right.其他人是对的。 You can use the "A" entity in a new node.您可以在新节点中使用“A”实体。 You can re-use entities, the values are overridden when the user responds.您可以重复使用实体,当用户响应时,这些值将被覆盖。 If this is not happening, you can handle it yourself by using a context variable to store their answers instead of an entity.如果没有发生这种情况,您可以自己处理它,方法是使用上下文变量而不是实体来存储他们的答案。

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

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