Question
IN
IN
Last activity: 20 Jan 2021 12:39 EST
Pega WebChatbot on click of button - load PegaHelper on button click
We are building WebChatbot using Pega (8.2.2) and have a requirement where our external site will have a button on click of which we will show a panel with 3 options and one of the option will be a button with "Chat Now". Currently the PegaHelper.js gets loaded on load of window. Can we have it loaded on click of the button. What is best way to achieve this.
I tried commenting $(document).ready(function() {} in PegaHelper.js with this on click of Chat Now the InvokeAdvisor is called and chat window is opened but the minimize doesn't work. So I believe I might need to include a custom function in PegaHelper.js instead of $(document).ready(function(). Kindly let me know if there is a better way.
Kindly help with the snippet.