Iframe Embed
Embed the Alhena chat widget as an iframe for use in custom layouts, internal tools, or standalone pages.
You can embed the Alhena chat widget directly into any page using an iframe. This is useful when you want the widget displayed inline as part of your page layout, rather than as a floating button.
When to Use Iframe Embed
The iframe embed is ideal for:
Dedicated support pages where the widget is the main content
Internal tools or dashboards that need an embedded chat experience
Kiosk or single-purpose displays where the widget should fill a specific area
Custom layouts where you want full control over widget placement and sizing
Quick Start
Add an iframe pointing to your widget URL:
<iframe
src="https://app.alhena.ai/iframe-widget/YOUR_COMPANY_KEY/"
width="600px"
height="800px"
style="border: none; border-radius: 12px"
frameborder="0"
></iframe>Complete Example
Here is a full HTML page with the widget centered on screen:
Regional URLs
Use the correct base URL for your region:
US
https://app.alhena.ai/iframe-widget/YOUR_COMPANY_KEY/
EU
https://eu.alhena.ai/iframe-widget/YOUR_COMPANY_KEY/
Query Parameters
The iframe URL supports the following query parameters:
locale
string
en
Language/locale for the widget UI
hideHeader
boolean
false
Hide the chat header bar
Examples
Set the widget language to French:
Hide the header for a cleaner embedded look:
Combine multiple parameters:
Customization
You can adjust the iframe to fit your layout:
Width and height - Set the
widthandheightattributes to control the widget sizeBorder radius - Use
border-radiusin thestyleattribute for rounded cornersResponsive sizing - Use percentage-based or viewport-based dimensions (e.g.,
width="100%" height="100vh")
Responsive Example
Comparison: Iframe vs Inline Embed vs JavaScript Snippet
Floating widget button
No
No
Yes
Inline page placement
Yes
Yes
No
Close / minimize button
No
No
Yes
Nudges
No
No
Yes
SDK API access
No
Yes
Yes
Event listeners
No
Yes
Yes
Custom data / user identity
No
Yes
Yes
Locale via query parameter
Yes
Via SDK config
Via SDK config
Setup complexity
Minimal
Minimal
Minimal
Last updated