Skip to main content

#Live Chat1 discussing

Live Chat Window button problems?

 

Hello Service Cloud People!

I am trying to fix a Live Agent Chat window on a website. It is functional (chatting, cases, contacts). However, the buttons to minimize and X to close are not visible (or at least slightly outlined). Also, when minimizing the chat window, it turns pure white. Is there a way to fix the button visibility and change the minimized chat color?

 

Thanks!

Kevin.

1 comment
0/9000

How can I auto start chat in preChat(LWC) when the page loaded and the condition is true.  

 I tried to do the code below

import BasePrechat from 'lightningsnapin/basePrechat';

import { api, track } from 'lwc';

import startChatLabel from '@salesforce/label/c.StartChat';

export default class Prechat extends BasePrechat {

@api prechatFields;

@api backgroundImgURL;

@track fields;

@track namelist;#Chatbot

startChatLabel;

test = 'test';

// test = '';

connectedCallback() {

this.startChatLabel = startChatLabel;

this.fields = this.prechatFields.map(field => {

const { label, name, value, required, maxLength } = field;

return { label, value, name, required, maxLength };

});

this.namelist = this.fields.map(field => field.name);

if (this.test != '') {

this.handleStartChat();

}

}

renderedCallback() {

this.template.querySelector("lightning-input").focus();

}

handleStartChat() {

this.template.querySelectorAll("lightning-input").forEach(input => {

this.fields[this.namelist.indexOf(input.name)].value = input.value;

});

if (this.validateFields(this.fields).valid) {

this.startChat(this.fields);

} else {

// Error handling if fields do not pass validation.

}

}

}

 But the error below occurs

How can I auto start chat in preChat(LWC) when the page loaded and the condition is true

 

How can I solve this problem?  Thank you! 

 

#Salesforce Developer

2 answers
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

@* Service Cloud * @* Sales Cloud - Best Practices * 

 

Hi All

 

I'm currently looking to deploy embedded chat in Production.  We have created a Pre Chat Form to create a lead.

 

Can anyone confirm how I can set the Lead Source on the Lead created from the Pre Chat Form?

 

#Live Chat #Chat #Prechat Window

3 answers
  1. Jun 7, 2022, 3:29 AM

    Hi Brian,

    I haven't worked with Pre Chat forms in a couple years, but I think I found a resource that can help. The important part is the hidden input containing the lead source to be set.

    http://peterknolle.com/live-agent-pre-chat-api/  Example code (uncompiled and untested)

    <!-- Detail inputs -->

    First Name: <input type="text" name="liveagent.prechat:leadFirstName" /><br />

    Last Name: <input type="text" name="liveagent.prechat:leadLastName" /><br />

    Email: <input type="text" name="liveagent.prechat:leadEmail" /><br />

    <!-- Hidden input to store Lead Source -->

    <input type="hidden" name="liveagent.prechat:leadSrc" value="Chat" />

    <!-- Map the detail inputs to the Lead fields -->

    <input type="hidden" name="liveagent.prechat.findorcreate.map:Lead" value="FirstName,leadFirstName;LastName,leadLastName;Email,leadEmail;LeadSource,leadSrc;" />

    <!-- Try to find the Lead by email (exact match) -->

    <input type="hidden" name="liveagent.prechat.findorcreate.map.doFind:Lead" value="Email,true;" />

    <input type="hidden" name="liveagent.prechat.findorcreate.map.isExactMatch:Lead" value="Email,true;" />

    <!-- If the Lead is not found, then create one with the following fields set -->

    <input type="hidden" name="liveagent.prechat.findorcreate.map.doCreate:Lead" value="FirstName,true;LastName,true;Email,true;LeadSource,true;" />

    Let me know if this helps!

    Charlie

0/9000

We've implemented Live Chat but the Source URL field on the chat transcript record is not populating. I thought this field was automatically populated upon setup but perhaps I missed something when creating our embedded service snippets for chat. Any ideas?

0/9000

I have a requirement, When a customer using LiveChat through the website, it will create a case. The case is successfully created but the main requirement is to catch the customer website page URL and populate that URL in case Internal comments.

  #Service Cloud

#Trailhead Challenges #Trailhead #Live Chat #Salesforce Developer

2 answers
  1. Tom Bassett (Vera Solutions) Forum Ambassador
    Jul 23, 2021, 6:56 AM

    Hello,

     

    You'd need to add JavaScript to add this into your code and pass those values into a hidden field. 

     

    https://developer.salesforce.com/docs/atlas.en-us.snapins_web_dev.meta/snapins_web_dev/snapins_web_populate_prechat.htm

     

    Thanks Tom

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

 Hi Trailblazers!

 

Who knows how to reach Salesforce Labs, or who can help with one of their unofficial package?

 

We installed the Conversation Notifications Package to our Sandbox and set all the steps described in instruction, but it still not work for us. But the ringtone remains the same.

 

We have a request from our business team, as they need to change sound for new Chat in Omni Channel for our Chat Operators.

 

We contacted the Salesforce Support, but they only told us what we can write in the Community and that further checking on it, they realized and could confirm that salesforce Labs is a program that lets salesforce.com engineers, professional services staff, and other employees share AppExchange apps they've created with the customer community and can be used at the customer own risk and the salesforce.com is not responsible for any of the functionality.

 

Thanks.

 

#Salesforce Labs

#Conversation Notifications

#Change Ringtone

#Chat

#Live Chat

#Omni Channel

2 comments
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