Skip to main content

#Live Agent Web Chat1 discussing

Hi, 

 

we'd like to have some messages for the visitor when he's waiting for more than

2 minutes, because the agent had to leave for 10 minutes, but his status is still "available".

I know there is a timeout functionality, but works only for the idle visitor. I can't find anything

resembling this for an agent being idle. Can we tackle this with a chatbot or some custom action?

Or can we automatically change the agent's status to "On break" with a message for the visitor?

 

#Chatbot  #Live Agent Web Chat

0/9000

I am trying to open a Messaging for In-App and Web chat programmatically, and I see that there may be some methods to do so, particularly embeddedservice_bootstrap.utilAPI methods such as:

embeddedservice_bootstrap.utilAPI.showChatButton()

The documentation shows what looks like a set up where the MIAW chat is added to a conventional website. However, I am trying to utilize these methods on an LWR site and have been unable to. Has anyone been able to pull this off? If so, how? I'm not sure what I am missing here.

 

#LWR

 

#Chat #Live Agent Web Chat #Embedded Service

5 answers
  1. Jul 2, 2024, 6:41 PM

    I found the answer for this:

     

    In order to open a MIAW chat button programmatically, in my case via a button placed elsewhere on the page, you will need to use a javascript event. To be clear, you will be using the event conventionally, not in the method described here which would be more helpful in communicating one LWC to another. The MIAW chat is not an LWC itself, but the prechat is, so that made it so that I had to use a conventional JS event.

     

    1. Go to your desired site and drop in the Embedded Messaging component with your MIAW chat that you want to use in the Experience Builder.

    2. In the left side main menu, click Settings > Advanced > Edit Head Markup.

    3. In the Head Markup editor, add a simple listener like so: 

    document.addEventListener('launchMIAWChat', function(e){	embeddedservice_bootstrap.utilAPI.launchChat();});

    4. Click Save.

    5. Create an LWC that holds the button you want to use to trigger the chat. 

    6. Make it so that button calls a method in the LWC JS file when clicked.

    7. Within the method that gets triggered on click, dispatch a JS event to the document object that has a value that matches the value your listener is listening for. Make sure to double check this since this is an easy area to make a mistake that keeps the whole thing from working:

    document.dispatchEvent(new CustomEvent("launchMIAWChat"));

    8. Save and deploy to the org.

    9. Add the button LWC to your page.

    10. You should now be able to click and have the chat open right up whether it is hidden or not.

0/9000

Hi everyone,

 

A customer has been blocked from chatting on live agent. How do I check the reason behind this in Salesforce? I am unable to pull anything in chat transcripts. 

 

Any help would be appreciated.

 

Thanks.

 

#Service Cloud  #Live Agent Web Chat

0/9000

When an Agent receiving chat from End User the chat Transcript is Taking First Message as Chat Transcript Name until it is closed or created. attached Image below for reference.

Thanks in advance help much appreciated!

Hi all Need Help on Live Agent Chat

 

#Live Chat  #Live Agent Chat  #Live Agent Web Chat  #Chat Transcript  #Service Cloud

3 answers
  1. Sep 6, 2023, 6:10 AM

    Hi - Did this get resolved?  We are seeing the same behaviour.

0/9000

We have a sales team in our Salesforce org that would like to use chat launched from Salesforce (not an external website) in order to chat with their support team, who is also in Salesforce. Chat seems to be a better option for this than Chatter.

 

How would one create a Chat Deployment and place a component in their homepage (for example) to launch Chat? #Live Agent Web Chat #Live Chat #Live Agent Chat

2 answers
  1. Andrew Russo (BACA Systems) Forum Ambassador
    Apr 5, 2022, 7:02 PM

    This talks about it in the idea of using it for bots... BUT it is essentially the same for livechat deployments.

    https://chatbotslife.com/einstein-bots-for-employees-the-easy-way-4ccf80e4ae16

     

    also try slack :)

0/9000

I am having an issue where duplicate transcripts are being created as customers click the 'Start a New Chat' button after a transcript was missed and we display a 'No agents available' message.  SFDC thinks it is due to subsequent attempts to start a chat by the user.  Has anyone been able to disable the option to start a new chat?  I'd like to remove the button.

 

#Service Cloud

 

@* Service Cloud *

15 answers
  1. Mar 25, 2022, 3:15 AM

    You cannot remove it directly. You will have to write small code for it. I had same use case and was able resolve it by writing few lines of code.  The No agent available will only possible when a maximize event is fired:  embedded_svc.addEventHandler('afterMaximize', function(data) {         timeInterval = setInterval(function () {           if(document.getElementById("dialogTextTitle") !== undefined && document.getElementById("dialogTextTitle") !== null ){            if("No agents available." == document.getElementById("dialogTextTitle").innerHTML ){                           const embServiceButton = document.getElementsByClassName('embeddedServiceSidebarButton');               for(i=0; i<embServiceButton.length; i++){                 if(embServiceButton[i].innerHTML.indexOf("Start a New Chat") !== -1 ){                   embServiceButton[i].style.display = 'none';                   }            }           }                         }clearInterval(timeInterval);           }, 200); *************************************************

     

    or     embedded_svc.addEventHandler('afterMaximize', function(data) {         timeInterval = setInterval(function () {                       const embServiceButton = document.getElementsByClassName('embeddedServiceSidebarButton');               for(i=0; i<embServiceButton.length; i++){                 if(embServiceButton[i].innerHTML.indexOf("Start a New Chat") !== -1 ){                   embServiceButton[i].style.display = 'none';                   }             }clearInterval(timeInterval);           }, 200);  

0/9000

I have established live web chat in org.T wo users asssigned to that Queue  and both are active when customer starts chat but it is assigned to only one user .

When I visit the omni supervisor tab i find out that  both user is shown available -chat but capacity of other user is shown 0.

here is screen shot reference 

 

Omni supervisor is unable to change the status .

issue 1: User Kiran's status is available-chat but why there is orange dot instead of green dot .

issue 2: Why there is no option in change status  picklist.

issue 3: why workload for  user kiran is 0/0 .Why it is not 0/20 if no work assigned.

issue 4: user kiran is already in queue assigned but in Assigned Queue column there is no queue name mentioned.

 

Please help

 

#Omni Channel  #Omni-Channel  #Omni Routing  #Omni-Channel Queue  #Live Agent Web Chat  #Web Chat  #Sales Cloud  #Service Cloud

6 answers
  1. Feb 7, 2022, 11:59 AM

    Sometimes these errors happen with the Omnichannel. Agents have to go offline and then online to see the latest change.

    Also as an admin, pls ensure to check both "Chat User" and "Service Cloud User" checkboxes on the User record.

     

    Hope this helps. Thank you :)

0/9000

Hello All,

Hope you all doing well.  I have created one ChatBot. I have used Apex Action to make a HTTP callout to get chat response. 

 

Need to show URL in Einstein Chatbot message replay

 

It is working fine. But when I'm trying to embed URL in the chat message it is coming as raw URL(with anchor tag) not as hyperlink.

 

rtaImage (1).png

 

I am trying to achieve as below:

 

rtaImage (2).png

 

#Live Chat  #Chatbot  #Chat Transcript  #Chat Box Character Limit  #Live Agent Web Chat  #Sales Cloud  #Service Cloud

2 answers
0/9000

Hi everyone. Does anybody know if it is possible to find existing contacts by email and recordtypeid when using lwc for a custom prechat form on an embedded service?

 

Before the lwc we were able to do this with the standard prechat form by customising the embedded service snippet settings js file. 

 

Those customisations looked like this:

<script type='text/javascript'>

var initESW = function(gslbBaseURL) {

embedded_svc.settings.displayHelpButton = true; //Or false

embedded_svc.settings.language = ''; //For example, enter 'en' or 'en-US'

embedded_svc.settings.extraPrechatFormDetails = [

{"label":"First Name",

"transcriptFields":["PreChat_First_Name__c"]

}, {

"label":"Last Name",

"transcriptFields":["PreChat_Last_Name__c"]

}, {

"label":"Email",

"transcriptFields":["PreChat_Email__c"]

},

{

"label":"RecordTypeId",

"value":"0127F000000Hj9CQAS",

}];

embedded_svc.settings.extraPrechatInfo = [{

"entityFieldMaps": [{

"doCreate": true,

"doFind": false,

"fieldName": "LastName",

"isExactMatch": false,

"label": "Last Name"

}, {

"doCreate": true,

"doFind": false,

"fieldName": "FirstName",

"isExactMatch": false,

"label": "First Name"

}, {

"doCreate": true,

"doFind": true,

"fieldName": "Email",

"isExactMatch": true,

"label": "Email"

}, {

"doCreate": true,

"doFind": true,

"fieldName": "RecordTypeId",

"isExactMatch": true,

"label": "RecordTypeId"

}],

"entityName": "Contact",

"saveToTranscript": "Contact",

"showOnCreate": true

}];

#Live Chat #Live Agent Chat #Live Agent Web Chat 

11 answers
  1. Jan 12, 2022, 1:05 AM

    @Andy Kallio I can not provide developer support Im afraid, (we do have the developer forum) my suggestion was to not do this in code at all and to use omnichannel flow instead.

    there are also options to not have to do this with any customisation that you may not be aware of, we will reach out offline

0/9000

I have created a pre-chat form on my community site. A visitor is chatting with an agent.

Before accepting the chat request, I am able to see the visitor details like First Name, Last Name & Email id

 

Agent not able to get last Name & email of the user while chatting, which was filled in pre-chat form

 

But once the agent accepts the chat request & starts chatting, the agent is not able to get Lastname & email that is filled in the pre-chat form.

 

screenshot2.png

 In case if a user is part of the system, it maps with a contact record, in case if the user is a new user we are not able to get the info that is filled in the pre-chat form.

2 answers
0/9000