How to launch your widget
Let’s take the example from above. To launch the Chaty widget with a JavaScript function, add an image of your choice. This image will serve as your custom ”button” that visitors will click to close the Chaty widget. Click on the image you just uploaded, then click on “More options” and select “Edit as HTML” button to see the image HTML code. This is where you need to add the JavaScript function. Then, you need to add this(without the quotes):
“<a href=”javascript:launch_chaty();”><img src=”https://path-to-your-image.com/image.png”></a>”