Skip to content

Configuration

Configure the widget by setting properties on window.receiveo before the loader script runs.

<script>
window.receiveo = window.receiveo || {};
window.receiveo.publicKey = "pk_live_YOUR_KEY_HERE";
window.receiveo.showBubbleOnLoad = false;
window.receiveo.hideBubbleOnClose = true;
</script>
<script src="https://widget.receiveo.com/loader.js" async></script>
Typestring
Default

Your workspace’s public key. Found in Settings → Widget Installation.

window.receiveo.publicKey = "pk_live_ABC123";
Typeboolean
Defaulttrue

Whether the chat bubble is visible when the widget loads. Set to false to start the widget completely hidden — useful for headless mode where you control visibility with your own UI.

window.receiveo.showBubbleOnLoad = false;
Typeboolean
Defaultfalse

When true, closing the chat window also hides the chat bubble. The bubble won’t reappear until you call receiveo.api.showBubble().

window.receiveo.hideBubbleOnClose = true;
Typeboolean
Defaultfalse

Automatically opens the chat window when the widget finishes loading.

window.receiveo.openOnLoad = true;
Typeboolean
Defaultfalse

Marks all conversations as demo mode. Useful for testing.

window.receiveo.demo = true;
Typeboolean
Defaultfalse

Enables console logging for debugging widget issues.

window.receiveo.debug = true;
Typestring
DefaultProduction URL

Override the API endpoint. Only needed for self-hosted or development setups.

window.receiveo.apiUrl = "https://api.your-domain.com";