Install Chat Widget via iframe

As an alternative to our JavaScript SDK, you can embed the Alhena chat widget inline in your webpage with an iframe. The look and feel, along with all functionality is available with the iframe.

Insert this code into your page to display the iframe widget. You can adjust the width and height to your liking through the width and height properties, or use CSS to adjust the size.

<iframe
src="https://app.alhena.ai/iframe-widget/gleen/"
width="600px"
height="800px"
style="border: none; border-radius: 12px"
frameborder="0"
></iframe>
circle-info

IMPORTANT: You must replace "gleen" with your own bot profile key. Your bot profile key is present in the URL you use to view the Alhena dashboard, eg https://app.alhena.ai/dashboard/gleen/.

If your organization is hosted in the EU region, you should replace "app.alhena.ai" with "eu.alhena.ai".

Below is the code for a complete example page as seen above:

URL parameters supported by iframe

You can configure the iframe widget with URL query parameters added to the src attribute

Supported parameters

  • locale: Sets the widget language (for example, en, de, fr).​

  • hide_header: Hides the widget header when set to true.​

Last updated