Skip to content

Instantly share code, notes, and snippets.

@RockyMtnMarc
Last active September 26, 2019 00:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RockyMtnMarc/dc766226872f8d89775d95d5c9d21630 to your computer and use it in GitHub Desktop.
Save RockyMtnMarc/dc766226872f8d89775d95d5c9d21630 to your computer and use it in GitHub Desktop.
Visualforce code example for an Lightning Console Einstein Bots Utility
<apex:page>
<!--BEGIN Chat Button Code Snippet-->
<a id="liveagent_button_online_5733i000000gfJr" href="javascript://Chat" style="display: none;" onclick="liveagent.startChat('5733i000000gfJr')"><!-- Online Chat Content --></a><div id="liveagent_button_offline_5733i000000gfJr" style="display: none;"><!-- Offline Chat Content --></div><script type="text/javascript">
if (!window._laq) { window._laq = []; }
window._laq.push(function(){liveagent.showWhenOnline('5733i000000gfJr', document.getElementById('liveagent_button_online_5733i000000gfJr'));
liveagent.showWhenOffline('5733i000000gfJr', document.getElementById('liveagent_button_offline_5733i000000gfJr'));
});</script>
<!--END Chat Button Code Snippet-->
</apex:page>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment