Skip to content

Opening the Chat Programatically

Mimir supports opening the chat programatically via custom javascript events. This is useful if you want to open the chat from custom triggers, like a “Chat with us” button.

The following piece of javascript opens the Mimir bubble:

window.dispatchEvent(new Event('mimir:open'));