Variables can also be set by passing them as URL Parameters or Embed Parameters.
1. Passing Variables as URL Parameters
If the URL of your bot is “https://botId.hybrid.chat” and you have to pass a variable name whose value is somename, then you can pass URL parameters as
https://botId.hybrid.chat/chat.html?name=somecoolname
If parameters are more than one, then simply append them with an &.
https://botId.hybrid.chat/chat.html?name=somecoolname&age=22
2. Passing Variables as Embed Parameters
Suppose you have embed code for your bot as follows
<div id="embed"> <script src='https://app.hybrid.chat/scripts/welcome.js'> </script> <script> welcome('botId' , 'hybrid.chat', {"loadHistory": false}); </script> </div>
Then simply pass the parameters as an object with the following structure
"vars": { "name": "somecoolname", "age": "22" }
For instance
<div id="embed"> <script src='https://app.hybrid.chat/scripts/welcome.js'> </script> <script> welcome('botId' , 'hybrid.chat', {"loadHistory": false, "vars": {"name": "somecoolname", "age": "22"}}); </script> </div>