This documentation supports the 25.4 version of BMC Helix Digital Workplace Basic and BMC Helix Digital Workplace Advanced. Icons distinguish capabilities available only for the Advanced and External license levels. For more information, see the License types and features topic. To view an earlier version, select the version from the Product version menu.

 

Embedding the Employee Navigator chat panel in your website


Important

The features and enhancements in this topic are under controlled availability to select customers.

As a website developer, you can embed the Employee Navigator chat panel in an HTML-based website. The panel is injected as an iframe by a script that connects to your BMC Helix Digital Workplace instance and loads the chat interface inside your website. However, the chat panel can't be embedded inside any page in BMC Helix Digital Workplace, the guest portal, or the external portal. 

You can configure the panel by specifying a BMC HelixGPT skill, setting a custom panel title, adjusting its appearance, or launching it from a custom button instead of the default floating icon.

End users can use this chat panel to get an intelligent, context-aware assistance without leaving the website. Alternatively, they can access the panel as a standalone web page by using the direct chat URL. To launch the panel as a standalone webpage, only the BMC HelixGPT skill must be selected for the Employee Navigator panel in the Admin Console. No other configurations are required. 

For more information about the benefits of using the embedded Employee Navigator chat panel and examples of user interaction, see Using Employee Navigator capabilities in your website.

Before you begin

Before embedding the Employee Navigator chat panel, ensure the following prerequisites are met:

  • BMC HelixGPT entitlement: Your organization must be entitled to use BMC HelixGPT. For more information, see BMC Helix Service Management service.
  • Employee Navigator skill configuration: As a BMC Helix Digital Workplace administrator, you must select a BMC HelixGPT skill for the Employee Navigator panel in the Admin Console. 
    This skill is used by default to provide AI capabilities in the embedded panel and when the panel is launched as a standalone web page. For more information, see Configuring BMC HelixGPT in the end-user console and studio pages. While Employee Navigator Supervisor is the recommended core skill, you can select other prompt-based or agentic skills depending on your use case.
  • Alternative skill configuration: To use an alternative skill for the embedded Employee Navigator panel, you must locate an appropriate out-of-the-box skill or create a custom skill in BMC HelixGPT Admin Studio. You must then copy its Skill ID and reference it in the embed script to override the skill configured in the Admin Console. For instructions on creating and configuring skills, see Creating and managing skills
  • Basic web development knowledge: You must have a foundational understanding of web development to embed and configure the chat panel.
  • Content-Security-Policy (CSP) configuration: You must update your website’s CSP header to allow script-src and style-src directives for the BMC Helix Digital Workplace host.
    This configuration must be applied in the application your organization uses to serve and render the website. The exact steps depend on the technology stack used. For example, procedures for configuring CSP headers might be different for Nginx and Apache web servers. 
  • Secure context requirement: The website where you embed the chat panel must be served over HTTPS, as embedding in non-secure (HTTP) contexts is not supported.

Process for embedding the Employee Navigator chat panel

The following table describes the actions that you must perform to embed the Employee Navigator chat panel in a website:

TaskRoleProductActionReference
1BMC Helix Innovation Studio administratorBMC Helix Innovation StudioSet the HTTP headers to allow embedding the chat panel in a third-party website.Task 1: To set the HTTP headers for the embeddable chat panel
2BMC Helix Innovation Studio administratorBMC Helix Innovation StudioRegister the website URL in which you want to embed the chat panel.Task 2: To register the website URL
3BMC Helix Single Sign-On administratorBMC Helix Single Sign-OnConfigure BMC Helix SSO to open the Employee Navigator chat panel in an iframe. Task 3: To configure BMC Helix SSO to open the Employee Navigator chat panel in an iframe
4Website developerindex.html file of the websiteAdd the embed script to the website to load the chat panel.Task 4: To include the script in the website
5Website developerindex.html file of the website

(Optional) Configure script attributes to specify a custom skill ID, panel title, and title language.

Task 5: To customize the skill and the panel label
6Website developerindex.html file of the website

(Optional) Customize the appearance of the floating icon and the chat panel container, such as color, position, size, and margin.

Task 6: To customize the icon and the chat panel style
7Website developerindex.html file of the website(Optional) Add a custom button or a menu to launch the chat panel instead of using the default floating icon. Task 7: To add a custom button 

Task 1: To set the HTTP headers for the embeddable chat panel

To allow the Employee Navigator chat panel to be embedded in a website, configure the Content-Security-Policy headers:

  1. Log in to BMC Helix Innovation Studio.
  2. On the Workspace tab, select Digital Workplace > Records.
  3. On the Records tab, select HttpResponseHeaders record and click Edit data.
  4. On the Data Editor (HttpResponseHeaders) page, open a record associated with your BMC Helix Digital Workplace subtenant.
  5. In the Value field, replace the default value of frame-ancestors 'none' with one of the following values:
    • A specific domain to allow embedding only from that site. For example, frame-ancestors https://example.org
    • Multiple domains to allow embedding from several sites. For example, frame-ancestors https://example.org https://acme.com
    • An asterisk (*) to allow embedding from any website. 

      WarningOnly update the frame-ancestors directive. Do not modify other parts of the header value.

      frame_ancestors_1.png
       
  6. Click Save.

Task 2: To register the website URL

Specify the trusted URL of the website in which you want to embed the chat panel: 

  1. Log in to BMC Helix Innovation Studio and navigate to the Administration tab. 
  2. Select Integrations > Iframe Security.
  3. On the Iframe Security page, navigate to the Trusted websites section.
  4. Enter the address of the website and click Add to list.
    For example, https://view.host.com.
    You can add multiple URLs.
    Warning
    Important

    Do not include any wildcard character, such as asterisk (*) in the URL.

  5. Click Save.

Task 3: To configure BMC Helix SSO to open the Employee Navigator chat panel in an iframe

To open the Employee Navigator chat panel in an iframe, you have to configure the BMC Helix Single Sign-On server to allow opening it from domains other than the BMC Helix Single Sign-On server domain.

  1. Log in to the BMC Helix SSO Admin Console.
  2. To include all the external domains from which the chat panel can be opened in an iframe, complete the following steps:
    1. In the BMC Helix SSO Admin Console, select Realms tab, and then click Edit to view the realm configuration. 
    2. On the Authentication tab, configure the ALLOW-FROM Domain(s) setting to include all the external domains from which the chat panel can be opened in an iframe.
      For more information about how to configure this setting, see To configure BMC Helix SSO to open applications in iframes in Configuring BMC Helix SSO to open applications in iframes.
  3. To set the cookie security options for the tenant of the BMC Helix SSO server used to authenticate the application, complete the following steps:
    1. In the BMC Helix SSO Admin Console, select General > Advanced.
    2. Set the following options:
      • Set the Secure Cookie setting to ON
      • Set the Same Site Cookie setting to None.
        For more information about setting cookie security, see To manage the cookie security for end users by setting site cookie properties in Configuring settings for the BMC Helix SSO server.

Task 4: To include the script in the website

To load the Employee Navigator chat panel, add a script tag to your website’s HTML file:

  1. Open the website’s index.html file.
  2. Add the following <script> tag before closing the <body> tag:
    <script defer src="<<dwp-server:port>>/app/navigator/script/navigator-trigger.min.js" type="text/javascript" id="dwp-navigator__trigger-script">
  3. Replace <<dwp-server:port>> with the actual hostname of your BMC Helix Digital Workplace instance. For example: 
    <script defer src="https://dwp-org.bmc.com/app/navigator/script/navigator-trigger.min.js" type="text/javascript" id="dwp-navigator__trigger-script">
    Ensure the hostname is served over HTTPS. Embedding over HTTP is not supported due to cross-site cookie requirements.

After you add the script and reload the page, the panel is automatically injected in the page as an iframe. A floating icon appears on the website that users can click to open the panel. By default, the panel uses the following attributes:

  • BMC HelixGPT skill that is selected in the Digital Workplace Admin Console
  • Default panel title
  • Default styling

(Optional) Task 5: To customize the skill and the panel label

You can configure the chat panel to use a custom BMC HelixGPT skill, set a custom panel title, localize the title, and modify the styling of the default floating icon.

To apply these customizations, add the following data-* attributes to the <script> tag:

AttributeTypeDescription
data-skillIdString or nullOverrides the default BMC HelixGPT skill. Create a custom skill in BMC HelixGPT Agent Studio and reference its ID in the script.
data-productNameString or Object Sets the panel title and accessibility labels for different views.
data-languageString

Specifies the title language. Only languages supported by BMC Helix Digital Workplace are allowed. The conversation language inside the chat panel is determined by the chat server and might differ from the wrapper language.

data-customBooleanRemoves the default SVG styling of the floating button that displays stars if the value of the attribute is set to true.

The following example displays the customization of the panel title:

<script defer src="<<dwp-server:port>>/app/dwp-navigator/script/navigator-trigger.min.js" data-productName="Support chat" data-language="en-US" data-skillId="my-skill-id" data-custom="true" type="text/javascript" id="dwp-navigator__trigger-script">

The following example shows how to adjust the panel title to different user languages:

<script defer src="<<dwp-server:port>>/app/dwp-navigator/script/navigator-trigger.min.js" data-productName='{"en":"English","fr":"French"}' data-language="en-US" data-skillId="my-skill-id" type="text/javascript" id="dwp-navigator__trigger-script">

(Optional) Task 6: To customize the icon and chat panel style

You can override the default appearance of the floating icon and the chat panel container by applying custom CSS.

Important
Custom branding is supported only for the panel container, panel title area, and the floating icon. The branding of elements inside the chat panel can't be customized. 

  1. Download the default stylesheet by using the following URL: https://<your-dwp-host>/dwp/navigator/script/navigator-variables.css
    Replace  <your-dwp-host> with the actual hostname of your BMC Helix Digital Workplace instance. 
  2. Modify the CSS variables as required. 
    Refer to the full list of customizable variables in the stylesheet to adjust colors, sizes, positioning, shadows, and more.
  3. Save the file locally or host it on your site.
  4. Include the updated stylesheet in your index.html by adding the following <link> tag and specifying the path to the CSS file: <link rel="stylesheet" href="https://<<path-to-css-file>>" type="text/css">

Also, if your website defines global style variables, such as --primary-color, the chat panel can inherit them. For example, you can apply your site’s primary color to the floating icon:
--dwp-navigator-trigger-background: var(--primary-color)

View the list of customizable CSS variables

Variable name

Default value

Description

--dwp-navigator-trigger-display
 inline-block 

The style of the floating icon. 

If you want to add a custom button to launch the chat panel instead of using the default floating icon, set this variable to none​​​​​​. This configuration removes the default floating icon from the website.

--dwp-navigator-trigger-background
 #f86e00 The floating icon background.
--dwp-navigator-trigger-border
 #f1f1f4 The floating icon border.
--dwp-navigator-trigger-border-radius
 50% 50% 50% 3px The border radius of the floating icon.
--dwp-navigator-trigger-color
 white The text color of the floating icon.
--dwp-navigator-trigger-z-index
 2000 The floating icon's z-index, which is the depth of the view (a higher z-index value means the element will appear on top of other elements with lower z-index values).
--dwp-navigator-trigger-initial-top
 auto The floating icon's initial top position (the distance to the top of the screen). By defining the icon's position and setting the icon height, you can anchor its position to the bottom of the screen.
--dwp-navigator-trigger-initial-bottom
 2.5dvh The floating icon's distance to the bottom of the screen, when first displayed.
--dwp-navigator-trigger-initial-start
 auto The floating icon's initial left position (distance to the left of the screen). By defining the right position and setting the icon width, you can anchor its position to the right of the screen.
--dwp-navigator-trigger-initial-end
 5dvh The floating icon's distance to the right of the screen, when first displayed.
--dwp-navigator-trigger-width
 3.5rem The width of the floating icon.
--dwp-navigator-trigger-height
 3.5rem The height of the floating icon.
--dwp-navigator-trigger-transform
 scale(1) 

The transformation view of the icon at rest.

For example, by defining a --dwp-navigator-trigger-transform-hover with different values, you can create a hover effect that enlarges the icon.

--dwp-navigator-trigger-box-shadow
 0 2px 8px #0003, 0 8px 24px 8px #00000017 

The shadow of the floating icon. This shadow improves the icon's visibility.

--dwp-navigator-trigger-transition
 transform 0.15s cubic-bezier(.25, .8, .25, 1) Transition used for the hover effect.
--dwp-navigator-trigger-transform-hover
 scale(1.05) Hover transformation value for the floating icon that defines the visual transformation applied to the icon when a user hovers over it.
--dwp-navigator-trigger-box-shadow-hover
 0 3px 12px #0000003b, 0 12px 36px 12px #0000001f 

Shadow effect that is triggered on hovering the icon.

--dwp-navigator-trigger-outline-color
#1f37bdColor of the focus outline used in the floating icon. 
--dwp-navigator-iframe-z-index
 2000 

The depth of the chat panel view (a higher z-index value means the element will appear on top of other elements with lower z-index values).

--dwp-navigator-iframe-initial-top
 auto 

The panel's initial top position (the distance to the top of the screen). By defining the panel's position and setting the panel height, you can anchor its position to the bottom of the screen.

--dwp-navigator-iframe-initial-bottom
 5dvh 

The panel's distance to the bottom of the screen, when first displayed.

--dwp-navigator-iframe-initial-start
 auto 

The panel's initial left position (distance to the left of the screen). By defining the right position and setting the panel width, you can anchor its position to the right of the screen.

--dwp-navigator-iframe-initial-end
 5dvh The panel's distance to the right of the screen, when first displayed.
--dwp-navigator-iframe-width
 25dvh The panel's width with respect to the window size (similar to 25%).
--dwp-navigator-iframe-height
 90dvh The panel's height with respect to the window size (similar to 90%).
--dwp-navigator-iframe-min-width
 500px The minimum width acceptable for the panel.
--dwp-navigator-iframe-border-radius
 3px The panel's border radius (corner radius).
--dwp-navigator-iframe-background
 white The panel's background color. This value is different from the chat view background. This background is seen briefly, during the first loading of the panel. 
--dwp-navigator-iframe-box-shadow
 0 2px 8px #0003, 0 8px 24px 8px #00000017 The panel's surrounding shadow.
--dwp-navigator-iframe-transition
 opacity 0.3s ease-in-out The animation effect for the panel. 
--dwp-navigator-title-background
 #f9fafa The panel's header background.
--dwp-navigator-title-min-height
 3.25rem The minimum height of the panel's header.
--dwp-navigator-title-padding
 0.25rem 

The surrounding padding of the panel's header. This value defines the minimum distance of the header's action buttons to the header's borders.

--dwp-navigator-title-font-size
 1.125rem 

The font size of the panel's header title.

--dwp-navigator-title-font-weight
 600 

The font weight of the panel's header title.

--dwp-navigator-title-font-color
 #22242a 

The font color of the panel title. 

--dwp-navigator-title-button-width
 2.5rem 

The width of the panel header's action buttons.

--dwp-navigator-title-button-height
 2.5rem 

The height of the panel header's action buttons.

--dwp-navigator-title-button-border
 none 

The border of the panel header's action buttons.

--dwp-navigator-title-button-background
 none 

The background of the panel header's action buttons.

--dwp-navigator-title-button-color
 #22242a 

The text color of the panel header's action buttons.

--dwp-navigator-title-button-border-hover
 none 

The border that appears on hovering the panel header's action buttons.

--dwp-navigator-title-button-background-hover
 #f1f1f4 

The background that appears on hovering the panel header's action buttons.

--dwp-navigator-title-button-color-hover
 #22242a 

The text color that appears on hovering the panel header's action buttons.

--dwp-navigator-title-button-outline-color
 #1f37bd 

The color of the outline of the header's buttons when focused. 

(Optional) Task 7: To add a custom button

Instead of using the default floating icon, you can configure a custom button to launch the Employee Navigator chat panel. This setup allows for greater control over the button placement, styling, and behaviour. You can also add multiple custom buttons, each configured to open a chat panel powered by a different BMC HelixGPT skill, allowing you to tailor interactions based on specific use cases.

Important
Before adding a custom button, ensure that the embeddable script is already included in your HTML file. The button can't function without the script.

  1. Update your Content Security Policy (CSP) header to include 'unsafe-inline' in the script-src directive.
    This setting is required to support inline scripts, which are necessary for enabling button event handlers such as onclick.

    Important

    The unsafe-inline keyword allows the use of inline code within HTML elements, such as event handlers. This behavior is typically restricted by strict CSP configurations due to potential security vulnerabilities. Use this setting only if necessary, and consider implementing additional security measures such as CSP nonces or hashes to mitigate risks. Inserting custom buttons requires this setting.

  2. Insert a button in your HTML where you want users to trigger the chat panel:<button onclick="dwpNavigator.start({skillId: 'SkillID', productName: 'Chat panel title'}); dwpNavigator.show()">Button label</button>
    1. Use the dwpNavigator.start() function to define the chat panel’s behavior. You can pass the following parameters:
      AttributeTypeDescription
      skillIdString or null

      Specify the ID of a BMC HelixGPT skill to use in the chat.

      productNameString or Object Set the custom panel title and the accessibility labels of the different views.
      languageString

      Set the title language. You can specify only the languages supported by BMC Helix Digital Workplace. 

      The conversation language inside the chat panel uses the user's language as determined by the chat server, and it might differ from the language of the panel's wrapper.  

      customBoolean

      Set this value to true to remove the default SVG styling of stars in the button.

    2. After calling the dwpNavigator.start() function, you must also call dwpNavigator.show() to open the panel in its new state.
  3. (Optional) Style the button by using inline styles or CSS classes.
  4. (Optional) Hide the default floating icon by setting the following CSS variable:
    --dwp-navigator-trigger-display: none;
    You can set this variable via inline styles or in your stylesheet.

Where to go from here

Using Employee Navigator capabilities in your website

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC Helix Digital Workplace 25.4