+ Start a Discussion

When transferring live agent chat, the auto greeting gets repeat

Referring to the same question asked in the link (When transferring live agent chat, the auto greeting repeats and is inaccurate) I tried the solution mentioned in the https://resources.docs.salesforce.com/sfdc/pdf/service_dev.pdf but it doesn't work. The auto greeting message is still being sent to the customer. Can someone help me, please? I need to send customize greeting when chats are being transferred.
NagendraNagendra (Salesforce Developers) 
Hi Jayesh,

Please try this solution which is suggested in the stack exchange community for the above issue.

The solution requires the creation of a visual force page, custom component, and adding the component to the SC console.

Apex Controller:
 <apex:includeScript value="/support/console/32.0/integration.js"/>
 <script type="text/javascript">
        sforce.console.chat.onChatStarted(function(result) {
            function(resOnAgentSend) {
                /*Monitors every chat message sent by the agent to verify
                that the chat has not been transferred.*/
                if(!(resOnAgentSend.isAutoGreeting && resOnAgentSend.isTransferred)) {
                    resOnAgentSend.content, function(resSendMessage) {
} });
} else {
    /*Sends your customized transfer message to the customer
    if the chat has been transferred to a new agent. Replace
    the text in quotation marks to whatever you want your transfer
    message to say.*/
    sforce.console.chat.sendMessage(result.chatKey, "Hi! Thank you
    for your patience. Give me one second while I review your chat." ,
} });
} });