Skip to main content
Level 2
November 30, 2021
Solved

AEM and Salesforce Live Chat integration

What is the ideal way of creating an AEM live chat component.

It would be Salesforce chat that would be used for integration.

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
RajaShankar
RajaShankarAccepted solution
Community Advisor
November 30, 2021

Hi @parakh  

Idle way to integrate SFDC Live Chat agent to Adobe AEM is by embeeding the  javascript snippet provided by Sales Force in AEM Page

 

Example:

<script type="text/javascript">
if (!window._laq) { window._laq = []; }
window._laq.push(function(){liveagent.showWhenOnline('5734F000000CaS5',document.getElementById ('liveagent_button_online_5734F000000CaS5'));
liveagent.showWhenOffline('5734F000000CaS5', document.getElementById('liveagent_button_offline_5734F000000CaS5'));
});
</script>

<script type='text/javascript' src='https://c.la2-c1cs-ord.salesforceliveagent.com/content/g/js/42.0/deployment.js'></script>
<script type='text/javascript'>
liveagent.init('https://d.la2-c1cs-ord.salesforceliveagent.com/chat', '5724F000000CaRH', '00D4F0000008fZB');
</script>

2 replies

parakhAuthor
Level 2
November 30, 2021

@kanikagera 

Translate
RajaShankar
Community Advisor
RajaShankarCommunity AdvisorAccepted solution
Community Advisor
November 30, 2021

Hi @parakh  

Idle way to integrate SFDC Live Chat agent to Adobe AEM is by embeeding the  javascript snippet provided by Sales Force in AEM Page

 

Example:

<script type="text/javascript">
if (!window._laq) { window._laq = []; }
window._laq.push(function(){liveagent.showWhenOnline('5734F000000CaS5',document.getElementById ('liveagent_button_online_5734F000000CaS5'));
liveagent.showWhenOffline('5734F000000CaS5', document.getElementById('liveagent_button_offline_5734F000000CaS5'));
});
</script>

<script type='text/javascript' src='https://c.la2-c1cs-ord.salesforceliveagent.com/content/g/js/42.0/deployment.js'></script>
<script type='text/javascript'>
liveagent.init('https://d.la2-c1cs-ord.salesforceliveagent.com/chat', '5724F000000CaRH', '00D4F0000008fZB');
</script>
Translate