Widget
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.
When the widget script is on the page, window.Lookio is available:
Lookio.open(); // opens the chat
Lookio.close();
Lookio.toggle();
Lookio.ask("How do returns work?"); // opens the chat and asksFor example, your own help button, and a link that asks a question for the visitor:
<button onclick="Lookio.open()">Ask our assistant</button>
<a href="#" onclick="Lookio.ask('How do I issue a credit note?'); return false">How do credit notes work?</a>window receives the events lookio:open and lookio:close:
window.addEventListener("lookio:open", () => console.log("chat opened"));