Initialize the Assistant with or without its launcher and wait until it is safe to call methods.
Initialization connects the global Assistant queue to one configured Assistant. Calls that depend
on rendered UI should run only after the ready callback fires.
Assistant('init', 'YOUR_ASSISTANT_ID');
Assistant('ready', () => {
Assistant('open');
});Use standard initialization when the configured launcher should appear.
Assistant('trigger-less-init', 'YOUR_ASSISTANT_ID');
Assistant('ready', () => {
document.querySelector('#support').addEventListener('click', () => {
Assistant('open');
});
});trigger-less-init initializes without the normal launcher. The separate triggerLess command can
also hide the launcher after standard initialization.
Assistant is undefined, the installation snippet has not executed or was blocked.