Skip to main content
Initializes the SDK, fetches widget configuration from the server, and mounts the chat bubble and iframe on the page.

Parameters

ActiobaseConfig
required
Configuration object.

Example

Behavior

  • Calling init twice without calling destroy() first logs a warning and does nothing.
  • If sdkKey or tenant is missing, the SDK logs an error and does not mount.
  • If the document is still loading, mounting is deferred until DOMContentLoaded.

Pre-queue pattern

You can set configuration on the global Hacktionbase object before the script loads. The SDK will auto-initialize when it detects a queued config: