Skip to main content
Here you can find some example usage of the Chat Widget JavaScript API. They all require the Widget to be installed on the page and window.LiveChatWidget to be defined.

Show the Widget after time

Show the Chat Widget after 30 seconds and keep it open after reloading.

Open the Widget using the button

Show the hidden or minimized Widget after a button has been clicked. You can change the Widget visibility as described in our Help Center.

Prefill username and email

It sets the Customers name and email using their login and email.

Initialize Widget asynchronously on button click

Initialize Chat Widget after clicking the button.