Hello, I am writing to clarify some doubts I have regarding the use of context variables. I am working on a chatbot with dialogue skills.
In the context of this chatbot, a variable $mobile is set to false. This variable must allow access to a series of nodes, exclusively when it is true. By testing on the try-out panel and manually changing the value of the variable $mobile from the Watson context, I am able to access or not access as it should be. However, when the chatbot is connected to an API that dynamically changes the value of $mobile, it does not seem to see it and therefore does not check the conditions, entering neither of the two. I cannot understand if this is due to a problem with the logic of the Watson nodes or a problem with how I wrote the variable condition (but it works on the interface).
According to what I have deduced from the documentation, both $mobile:false and $mobile==false should be equally correct. However, when I write the conditions in this way ($mobile:false), it does not check the condition and always enters the first available node. In the second ($mobile==false), on the other hand, it checks and then enters. Could someone tell me what the problem might be?
Hi Federica,Try !$mobile, and make sure you're send the value correctly thru API