Skip to content
On this page

Control the widget programmatically from your page.

Methods #

JavaScript
window.Helpway.open();        // open the widget
window.Helpway.close();       // close it
window.Helpway.toggle();      // toggle
window.Helpway.sendMessage("Hi"); // start a conversation

Events #

JavaScript
window.Helpway.on("open", () => { /* ... */ });
window.Helpway.on("message", (msg) => { /* ... */ });
window.Helpway.on("conversation:resolved", () => { /* ... */ });

Use these to trigger the widget from a custom "Need help?" button, or to fire analytics when a conversation starts.