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>
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?