I need to open this with the line kare.open() from a butto on the page.
In order to do that I added an ID (oz-button) on a button and a div, and then added this script on the page again.
Unfortunately this doesnt laucnch the widget.
You can see the project here: Webflow - oztandir
A custom chat widget is usually prepared in the application is comes from first. When you finish customizing it, the code given should have all the necessary components to show.
There should be a custom trigger in that application that allows it to; open on load, open on scroll, open after 10 seconds.
Something to that effect. Search again to make sure.
The widget itself is actually working fine. I can launch it from the console by puttin kare.open()
I was unable to trigger it with the button. Turned out I didnt define the query, which I did now by adding
d.getElementById(‘oz’).onclick = function() {
to the widget script.