On the automated invitation configuration page for Live Agent, there is an option to use a custom variable to trigger the invitation but I don't see any documentation on how is it supposed to be used. Anyone with experience on that?. Ideally I would like to reference there a javascript variable.
Attribution to: PepeFloyd
Possible Suggestion/Solution #1
I just found my answer in the Live Agent developer guide.
In the deployment code we need to use this method:
liveagent.setCustomVariable('mycustomvariable', 'somevalue');
Attribution to: PepeFloyd
This content is remixed from stackoverflow or stackexchange. Please visit https://salesforce.stackexchange.com/questions/32414