Created
September 26, 2019 00:25
-
-
Save RockyMtnMarc/66ab4669468912fe5ba940c05557579d to your computer and use it in GitHub Desktop.
Visualforce code example for an Lightning Console Einstein Bots Utility
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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--> | |
<!--BEGIN Chat Deployment Code Snippet--> | |
<script type='text/javascript' src='https://c.la4-c2-ph2.salesforceliveagent.com/content/g/js/46.0/deployment.js'></script> | |
<script type='text/javascript'> | |
liveagent.init('https://d.la4-c2-ph2.salesforceliveagent.com/chat', '5723i000000gInw', '00D3i000000ppG0'); | |
</script> | |
<!--END Chat Depoyment Code Snippet--> | |
</apex:page> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment