I know this has been asked multiple times in the past but the code seems not to work for me and I think Watson interfaces changed a lot since 2017 :(
I want to add a counter to a multiple conditioned responses node. After the 3rd time asking the same question the bot should jump to another node.
At welcome I created a context Variable: counter
with value: 0
At the multiple conditioned responses node I set a context variable for each answer. Variable: counter
Value: "<? $counter + 1 ?>"
But instead of updating the value number of counter
to 1
it updates the value to "['counter'] + 1"
The computation doesn't work. So how can I solve this?
If the computation would work, I would add another conditioned response and let Watson check for: $counter > 3
and if that true it would jump to another node.
Would be very thankful for any advise :)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…