Header
Header is an optional property inwxOConfiguration that controls whether header actions appear.
| Parameter | Type | Description |
|---|---|---|
header.showResetButton | boolean | Displays the Reset Chat button in the header when set to true. Default is true. |
header.showAiDisclaimer | boolean | Displays the AI disclaimer icon/button in the header when set to true. Default is true. |
Language
| Parameter | Type | Description |
|---|---|---|
defaultLocale | string | Defines the default language supported by the chat. Supported values: de, en, es, fr, it, ja, and pt-BR |
Styles
You can customize embedded web chats to create a unique chat interface that better fits your webpage. To apply custom styles, add astyle component inside the window.wxOConfiguration object in your web chat script. In this component, you can configure the following elements:
Header is an optional property of wxOConfiguration that controls the visibility of header actions.
| Parameter | Type | Description |
|---|---|---|
headerColor | string | Set a six-digit hex code that defines the chat header color. |
userMessageBackgroundColor | string | Set a six-digit hex code that defines the user message bubble color. |
primaryColor | string | Set a six-digit hex code that defines the interactive elements color. |
showBackgroundGradient | boolean | Displays the background gradient when set to true. Default is true. |
style component inside window.wxOConfiguration:
Layout
The watsonx Orchestrate embed supports a flexiblelayout object to control how and where the chat UI appears.
| Parameter | Type | Default | Description |
|---|---|---|---|
rootElementID | string | — | (fullscreen-overlay only) ID of the container node to mount chat into. |
showLauncher | boolean | true | (fullscreen-overlay only) Show the bubble launcher (true) or render chat immediately (false). |
layout.form | string | float | Defines the layout form of your web chat. Use fullscreen-overlay to display the web chat in fullscreen mode. No additional parameters are required.Use float to display the web chat as a floating window. Also configure:
custom to define a custom layout. Also configure the customElement parameter with your custom element. |
layout.width | string | — | (float only) Popup width (e.g. ‘350px’, ‘30rem’). |
layout.height | string | — | (float only) Popup height (e.g. ‘500px’, ‘40rem’). |
layout.showOrchestrateHeader | boolean | true | Render the standard header bar (true) or hide it (false). |
layout.customElement | HTMLElement | — | element reference to render into. |
JavaScript

