Issue with launching answer in the messaging | Community
Skip to main content

Issue with launching answer in the messaging

  • May 30, 2024
  • 1 reply
  • 0 views

I tried to create a button with id: urgent and when it is clicked, it will open up the messaging window and search or select the answer, but it does not do anything.

Please advise, thanks.

 

<script>
$("#urgent").click(function(){
       zE("messenger", "open");
         window.zESettings = {
               webWidget: {
               answerBot: {
               search: {
                       labels: ['I would like some help']
                       }
               }
       };

});
</script>
 

1 reply

Tipene
  • June 10, 2024
Hi Andrew,
 
Just to confirm, you have initialized the SDK with the script in your HTML file, correct? Also, are you seeing any errors in the browser console when you click the button?