AEM and Salesforce Live Chat integration | Community
Skip to main content
Level 2
Nov 30, 2021 1:56 PM UTC
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
New Participant
Nov 30, 2021 11:27 PM UTC

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

RajaShankar
RajaShankarAccepted solution
New Participant
Nov 30, 2021 11:27 PM UTC

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
parakhAuthor
Level 2
Nov 30, 2021 2:03 PM UTC

@kanikagera 

Translate