Skip to main content
The Genow Widget is a web component designed for embedding in websites. It allows you to bring Genow Agents directly to your end users.
Note that the widget only shows one Agent. Users will only see the input field and the answer. An asset selection is not possible - the preselected assets will be taken into account. Guided search fields are not supported currently.
Before you can use the widget, you must send Genow the URL of the page where the widget will be embedded. This is required so the widget can be correctly authorized for your domain. Without this step, the widget will not load correctly.
Prerequisites: Before you begin, ensure you have the required files provided by Genow: vue.global.prod.js (Vue 3 build),
genow-widget.css (styles), and
genow-widget.umd.min.js (minified UMD bundle with FontAwesome included)
To integrate the widget, you need to follow three main steps:
  1. Load the required resources (CSS, Vue3, UMD bundle - see above),
  2. Add the custom element <genow-widget> to your HTML &
  3. Configure authentication and attributes.

(1) Basic Integration Steps

1

Load Resources

Include the CSS and JavaScript files in your HTML structure. You must load the widget CSS, the Vue 3 global build, and the Genow Widget UMD bundle.
2

Add the Custom Element

Add the <genow-widget> custom element to your HTML where you want the widget to load. The widget is responsive and adapts to the container size, while overlays are shown over the whole screen.
3

Handle Authentication

The widget requires a valid authentication token to access your data.
Token Management: Tokens must be obtained from your authentication system. When a token expires, it must be refreshed, and the widget may need to be reloaded.
Supported Authentication Methods:
  • Firebase (email/password, Google SSO): use auth-provider="Firebase"
  • Microsoft SSO (EntraID/Azure AD): use auth-provider="Microsoft"
  • Google SAML: use auth-provider="Genow"
Implementation Example: You can update the widget attributes dynamically via JavaScript after the user logs in.

(2) Configuration and Attributes

You can configure the widget using HTML attributes. Dynamic updates to these attributes via JavaScript are supported.

Required Attributes

Optional Attributes


(3) Advanced Customization

If use-shadow-dom is enabled (default), you must use the custom-css attribute to override styles. You can override specific CSS variables for theming.

Example


Troubleshooting

Browser Compatibility: The widget supports modern browsers (Chrome, Firefox, Safari, Edge) and requires JavaScript to be enabled.
If you encounter issues, please check the following:
  • Widget not loading: Verify script paths for Vue and the UMD bundle.
  • Authentication errors: Verify the validity of your token and that the provider name matches the backend configuration.
  • Styling conflicts: If styles look wrong, try enabling Shadow DOM or adjusting your custom-css.
  • CORS errors: Ensure your API endpoint allows requests from your domain.
For multiple widget instances on the same page, ensure each has its own configuration. They operate independently.