The Global Querlo Object
The Querlo object provides methods to control all instances on the page simultaneously.
| Method | Description |
|---|---|
| `embed(options)` | Initializes a new chatbot instance. Returns a [Controller](/docs/sdk-controller). |
| `open(fullscreen?)` | Opens all chatbot instances. If `fullscreen` is true, applies fullscreen mode. |
| `openFullscreen()` | Convenience method to open all instances in fullscreen. |
| `close()` | Closes all chatbot instances. |
| `changeChat(chatId, params, event?)` | Navigates the active chatbot to a different chat flow. |
| `on(event, callback)` | Subscribes to global events (see [Events](/docs/sdk-events)). Returns an unsubscribe function. |
| `off(event, callback)` | Removes a previously registered event listener. |