Header
Controls the visibility of chat header actions. To apply header configuration, add aheader component inside the window.wxOConfiguration object in your web chat script. In this component, you can configure the following parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
header.showResetButton | Boolean | true | Displays the Reset Chat button in the header when set to true. |
header.showAiDisclaimer | Boolean | true | Displays the AI disclaimer icon/button in the header when set to true. |
header.showMaximize | Boolean | false | Controls the visibility of the ‘Maximize chat’ button in the chat header. You can combine this parameter with additional layout modifiers, such as:
|
Language
Define the default language of the chat interface. To apply language configuration, add the following parameters inside thewindow.wxOConfiguration object in your web chat script:
| Parameter | Type | Default | Description |
|---|---|---|---|
defaultLocale | String | en | Defines the default language supported by the chat. |
| Language | Language code |
|---|---|
| Chinese - Traditional | zh-TW |
| Chinese - Simplified | zh-CN |
| English | en |
| French | fr |
| German | de |
| Italian | it |
| Japanese | ja |
| Korean | ko |
| Portuguese - Brazil | pt-BR |
| Spanish | es |
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 parameters:
| Parameter | Type | Default | 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 | true | Displays the background gradient when set to true. |
Layout
Control how and where the chat UI appears. To apply layout configuration, add alayout component inside the window.wxOConfiguration object in your web chat script. In this component, you can configure the following parameters:
| Parameter | Type | Default | Scope | Description |
|---|---|---|---|---|
rootElementID | String | — | fullscreen-overlay only | The 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.showMaxWidth | Boolean | false | — | Controls whether additional vertical padding is applied between the chat border and content container. |
layout.customElement | HTMLElement | — | — | Element reference to render into. |

