Lucky Orange provides a robust messenger tool that handles displaying surveys, announcements, chat invites, and the ability to interact with your support team.

Trigger Chat Programmatically

By default, chat is only opened when a visitor clicks on the chat launcher displayed on your site. If you would like a button or another element on your site to control the chat state, you can take advantage of the messenger API.

Utilizing the LO.messenger API, you can control the state by calling open() or close() .

function openChat () {

function closeChat () {

The LO.messenger API is only available once chat has been set up for your site.

The chat launcher can also be completely hidden, should you desire to control the chat state exclusively through an element on your site. You can find this and other chat launcher settings in the Lucky Orange app under the Chat Settings tab, located within your site's Settings section.

Last updated