- This works with inbuit variables like $now, $year
Apart from the example mentioned in the documentation above, this is something I tried.
On my chatbot under advanced settings and inside CUSTOMHOOK_ONBUILD capability I have this
var test='Hi, I am coming from JS Capability'
In my test set, I enabled scripting memory and this is my convo.txt
Greet the bot #me chatid $cap(test) #bot $test
My expected output is
chatid Hi, I am coming from JS Capability
followed by bot response
but I get this