Chat
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() .
1
function openChat () {
2
LO.messenger.open()
3
}
4
5
function closeChat () {
6
LO.messenger.close()
7
}
Copied!
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 modified 1mo ago
Copy link