Instance Control (Controller)
When you call Querlo.embed(), it returns a controller for that specific instance. This allows you to manage multiple chatbots independently.
javascript
const chat = Querlo.embed({ id: 'ABC_123' });
chat.open(); // Opens ONLY this instance
chat.open(true); // Opens ONLY this instance in fullscreen
chat.close(); // Closes ONLY this instance
chat.changeChat('OTHER_ID', {}); // Navigates ONLY this instance to a different chat
chat.destroy(); // Removes this instance from the DOM
console.log(chat.element); // Access the root HTMLElement