Thanks, Nagendra  ", "upvoteCount": 0, "url": "https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007T4CvdSAF", "datePublished": "2017-07-06T10:12:47.000Z", "author": { "@type": "Person", "name": "Nagendra Babu Pilli", "url": "https://trailblazers.salesforce.com/profileView?u=0053A00000CO9yeQAD", "affiliation": { "@type": "Organization", "name": "Salesforce" } } } ] } } Skip to main content
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.
2 个回答
  1. 2017年7月6日 10:12
    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:page>

    <apex:includeScript value="/support/console/32.0/integration.js"/>

    <script type="text/javascript">

    sforce.console.chat.onChatStarted(function(result) {

    sforce.console.chat.onAgentSend(result.chatKey,

    function(resOnAgentSend) {

    /*Monitors every chat message sent by the agent to verify

    that the chat has not been transferred.*/

    if(!(resOnAgentSend.isAutoGreeting && resOnAgentSend.isTransferred)) {

    sforce.console.chat.sendMessage(result.chatKey,

    resOnAgentSend.content, function(resSendMessage) {

    if(!resSendMessage.success){

    return;

    } });

    } 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." ,

    } });

    } });

    });

    </script>

    </apex:page>

    Thanks,

    Nagendra

     
0/9000