i'm trying to send a user name to my WCS but i not sure how can i do that using a request. My consersation ask for the user email and use a js script to return a json from my sql server...
I'm doing something like that:
What's your email? // WCS
[email protected] //USERJust a minute.<script>getUserInformation('[email protected]');</script>
// WCS
nodeTrue //USER (I sent this after confirmated if the user exist and got the user name.)Hi <span id='myText'></span><script>document.getElementById('myText').innerHTML = userName;</script>!
//WCS
I know this is not the best way to do that but it is working. I'm trying to call my js functions using something like "output:{'action':}" (And handle it in my node.js like the 'car dashboard sample'), but, it's possible send a varible from my .js to a conversation context?