window.chatwootSettings = { hideMessageBubble:false, position:"left",// This can be left or right locale:"en",// Language to be set type:"standard",// [standard, expanded_bubble] darkMode:"auto",// [light, auto]};
Then trigger with
window.$chatwoot.toggle("open"); // To open widgetwindow.$chatwoot.toggle("close"); // To close widget