Installation
Add the Alhena chat widget to your website with a simple JavaScript snippet.

Quick Start
Add this code to your website, just before the closing </body> tag:
Finding Your Snippet
You can also copy your pre-configured snippet from the Alhena dashboard:
Integrations > Website > Installation
Regional URLs
Use the API base URL for your region:
US
https://app.alhena.ai
EU
https://eu.alhena.ai
Example for EU region:
Previewing Before Going Live
While the widget is installed but not yet enabled (or hidden by an A/B visibility experiment), you can still force it to appear for QA by adding the alhena_test=true query parameter to any page URL:
This temporarily force-enables both the chat widget (floating and inline) and the Product FAQ widget on that page load, overriding the backend enabled flag and any experiment that would otherwise hide it.
Next Steps
Once installed, you can:
Customize the widget appearance in the dashboard
Set up icebreakers and nudges
Configure human handoff
Developer Reference
For programmatic control and advanced integrations, see the SDK documentation:
JavaScript API - Control widget programmatically (open, close, toggle, send messages)
Events - Listen for widget events
Styles API - Customize appearance via code
Code Examples - Common integration patterns
Last updated