Open the widget from your page
Open, close or prefill the chat bubble from your own buttons with the small JavaScript API the widget script exposes.
Once the widget script is on the page, it exposes window.Lookio:
Lookio.open(); // opens the chat
Lookio.close();
Lookio.toggle();
Lookio.ask("How do returns work?"); // opens the chat and asksFor example, a help button of your own:
<button onclick="Lookio.open()">Ask our assistant</button>The page receives lookio:open and lookio:close events on window:
window.addEventListener("lookio:open", () => console.log("chat opened"));The API drives the bubble. An in-page chat is always open.