Question

5
Replies
50
Views
Close popover
Abhilash Rout (AbhilashR1892)
IN

IN
IN
AbhilashR1892 Member since 2018 7 posts
IN
Posted: December 9, 2020
Last activity: January 20, 2021

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.

***Edited by Moderator: Pooja Gadige to add product details tag, add platform capability tags***
Pega Chat 8.1 Pega Platform 8.2.2 Low-Code App Development User Experience Conversational Channels Other Industry Senior System Architect