Integration of Widget in best possible way with Crisp Chat?

Step 1: Add your TalkTo code below the Widget code in the HTML Page.

<!--Start of crisp.chat Script-->
<Your crispchat Code

<!--End of crisp.chat Script-->

Step 2: In the faqbotChatExecution function add the following line -

function faqbotChatExecution()
{
    $crisp.push(["do", "chat:open"]);
    $crisp.push(["do", "chat:show"]);
}

 

// Add the followind code below the faqbotChatExecution
var faqbotMyVar = setInterval(faqbotMyTimer, 200);

function faqbotMyTimer() 

{
   if (typeof $crisp !== 'undefined') {
         $crisp.push(["do", "chat:hide"]);
         $crisp.push(["on", "chat:closed", faqbotHideCrispIfClosed]);
         clearInterval(faqbotMyVar);
   }
}

function faqbotHideCrispIfClosed() 

{
    $crisp.push(["do", "chat:hide"]);
}

   

...