Guides

Chat Widget Configurator User Guide


This guide explains how to use the new Chat Widget configurator in OCP Integrations. The configurator centralizes widget setup in a dedicated Chat Widget area, replacing the older configuration approach from the miniApp Chat tab and providing fuller configuration coverage with live preview support.

Use this guide when you want to configure how the web chat widget looks, behaves, and is embedded on your website.

Overview

The Chat Widget configurator lets you prepare a web chat experience before embedding it into a website. In general, you will use it to:

  • Adjust the widget’s visual identity and branding,

  • Define how agent and bot profiles appear to end users,

  • Control interaction behavior and session handling,

  • Configure notifications and footer content, and

  • Generate the script needed to place the widget on a website.

Based on the product rollout, WebChat widget configuration has moved to a dedicated Chat Widget tab in the Integrations section of the OCP Console. The legacy miniApp Chat tab is being simplified and retained mainly for locale-based key generation, transfer configuration, and Try WebChat actions.

2026-08-18_15-23-13.png

Before you begin

Before configuring the widget, make sure you have access to the Chat Widget area in OCP Integrations and the required connection details for your deployment.

You will typically need:

  • an API URL for the WebChat service,

  • an API key for the target locale or environment,

  • Branding assets such as logos, bubble icons, agent images, or bot images, and

  • A target website where the generated script will be embedded.

It is preferable to use the API URL-based delivery of the widget so that new versions are received automatically. Using a downloaded chat file can lock you to a specific version and prevent automatic updates.

UI tabs and features

Appearance and Branding

This tab controls the overall look and feel of the chat widget. It is where you align the widget with your brand so that it feels native on your website.

2026-08-18_15-26-36.png

Common options in this area include:

  • Content: Main content configuration

    • Widget title: the main header text shown at the top of the widget.

    • Subtitle: supporting text under the main title.

  • Logo & Bubble Icon:

    • Logo: the brand image displayed in the widget header and, in some cases, also as the conversation avatar when no separate agent or bot avatar is set.

    • Logo alt text: accessibility text for the logo image.

    • Logo border: Toggle whether the logo is displayed with a border or not.

    • Bubble icon: the launcher icon users click to open chat.

    • Bubble alt text: accessibility text for the bubble icon.

  • Colors: Select the color theme of the widget. Select a hex code, or click on the color icon to select RGB code or any color from the palette.

    2026-08-18_15-34-00.png
    • Brand color: the primary theme color used across the widget.

    • Background color: the chat window background color.

  • Font: A font family to match your website style.

    • Google font: Add any Google font. Used when generating the embed script.

  • Locale: the language used by the widget interface, such as English or French.

Best practice: keep the widget title short, choose a brand color with strong contrast, and use clear alt text for all images to improve accessibility.

Important details:

  • The subtitle has a maximum length of 22 characters.

  • Logo and bubble image assets should be valid paths or Base64-encoded assets.

  • Referenced logo assets are expected to be suitable for small UI display.

Agent and Bot

This tab defines how human agents and the bot are presented in the conversation UI. It helps users understand whether they are interacting with automation, a live agent, or both.

2026-08-18_17-16-58.png

You can configure separate profiles for agent and bot, including:

  • Name: the display name shown in the conversation.

  • Show name: whether the name is visible to the end user.

  • Avatar: an image representing the agent or the bot.


This is useful when:

  • you want a branded bot identity,

  • you want live-agent handoff to feel more personal, or

  • you want to clearly distinguish bot messages from agent messages.

If agent or bot avatar settings are provided, the widget logo is primarily used in the header rather than also serving as the default conversation avatar.

Behaviour

This tab controls how the chat behaves during and after conversations. These settings affect user experience, continuity, and session management.

2026-08-18_15-41-55.png

Typical behaviour-related options include:

  • Reset button: enables a button that restarts the chat by calling the Restart Chat action.

  • Consecutive dialogs: when enabled, users can continue typing after a dialogue ends; when disabled, the input becomes inactive until the chat is restarted.

  • Transcript download: enables downloading the conversation transcript as a PDF at the end of a dialogue from the Download Transcript option in the chat menu.

  • Data Persistent: Data persists between sessions without page reload.

  • Cross-tab sync: determines whether different browser tabs share the same conversation.

  • Reopen minimized chat: controls whether a minimized widget automatically reopens across navigation, reloads, or new tabs.

Examples of practical use:

  • Enable cross-tab sync when users commonly navigate across multiple pages during a support session.

  • Enable transfer input disable to prevent confusing input while the user is waiting to connect to a live agent.

  • Enable sensitive input masking for flows that capture personal or confidential information.

Be thoughtful with session-related settings. Features like consecutive dialogs and cross-tab synchronization can affect how startup data and semantics persist across sessions and browser tabs.

Notifications

This tab configures how the widget alerts users about unread messages.

2026-08-18_16-11-58.png

Available notification options include:

  • Show Notification Dot: A notification dot next to the chat bubble indicates that there are new messages.

  • Unread count: Shows the number of unread messages. (Requires Bubble indicator on)

  • Pulse effect: Animates the chat and notification bubbles to attract attention. (Requires Bubble indicator on)

  • Browser tab title alerts: Alternates the page title to indicate new messages.

  • Sound Notifications: Plays a notification sound as soon as message is received

  • Custom audio source: lets you define a custom sound file instead of the default sound.

These settings are especially helpful when the widget is minimized and users may not otherwise notice incoming replies.

Recommended setup:

Enable the bubble indicator and unread count first, then add sound or pulse effects only if they fit the customer experience and brand tone.

This tab manages the text and branding shown at the bottom of the widget.

2026-08-18_17-22-27.png

Typical footer options are:

  • Show footer: enables footer display.

  • Footer text: custom text shown in the footer.

  • Footer logo URL: optional image displayed in the footer.

If the footer is enabled but no custom text or logo is provided, the default footer content may be shown.

Common uses include:

  • adding company or department branding,

  • showing a trust message or service label, or

  • displaying a partner or program logo.

Advanced

This tab includes settings used for deeper customization, integration behavior, and data handling.

2026-08-18_17-24-08.png


Common advanced capabilities include:

  • Multiple API URLs for failover support.

  • URL selection method such as ordered failover or round-robin selection.

  • Initialization data passed into the widget when a new dialog starts.

  • Persistent data to retain provided data between sessions on an already loaded page.

  • Google Analytics integration to track widget events.

  • Event callback support for listening to route or dialog events.

  • Event subscription support for actions such as open, minimize, or restart.

  • Programmatic open, close, and restart methods for custom site behavior.

  • Predefined semantics or intent passing through initialization data or URL-driven setup.

Initialization data is useful for sending simple key-value pairs such as customer identifiers, names, or tokens that help personalize the experience.

Only send data that is necessary for the conversation experience. Complex nested objects and arrays are not supported in the initialization data object.

Examples of advanced use cases
  • Use multiple API URLs when high availability is required.

  • Pass a customer ID or bearer token when the website already knows the user context.

  • Launch the widget with a predefined intent to route users directly into a specific flow.

  • Subscribe to widget open events so that data is set just before a session begins.

Webchat Script

This tab provides the script required to embed the configured widget into a website. After configuration is complete, click the Generate Script button, copy the generated JavaScript snippet and paste it into your website’s HTML, preferably near the end of the body.

2026-08-18_17-25-51.png

The generated script typically includes:

  • the widget bundle source,

  • the root element ID where the widget will mount,

  • the config object containing your selected settings, and

  • optionally a data object for initialization values.

JavaScript
(function(docElement, tag, rootElementId, bundleSrc, config, data) {
  var body = docElement.getElementsByTagName('body')[0];
  var div = docElement.createElement('div');
  div.id = rootElementId;
  body.appendChild(div);
  var element = docElement.createElement(tag);
  element.src = bundleSrc;
  element.type = 'text/javascript';
  var callback = function() {
    ChatBot.init({ rootElementId, config, data });
  };
  element.onload = callback;
  element.onreadystatechange = function() {
    this.readyState == 'complete' && callback();
  };
  body.appendChild(element);
})(document, 'script', 'root-chatbot', '<redacted URL>', {
  apiUrl: 'YOUR_API_URL',
  apiKey: 'YOUR_API_KEY'
});

You can also extend the script with configuration values such as title, logo, brand color, notifications, footer settings, agent and bot details, and advanced behavior settings.

If your site uses a modern web framework such as Angular Universal, load the bundle script in the document head and initialize the widget from the application component.

  1. Open the Chat Widget configurator in OCP Integrations.

  2. Complete Appearance and Branding to match the customer website.

  3. Set up Agent and Bot identities.

  4. Adjust Behaviour for the desired conversation experience.

  5. Enable only the Notifications that fit the customer experience.

  6. Add optional Footer content.

  7. Review Advanced options for integrations, persistence, tracking, and startup data.

  8. Copy the generated code from Webchat Script.

  9. Embed the script into the target website.

  10. Use the available preview or test option to validate the final result.

Best practices

  • Keep branding consistent with the host website, but avoid overloading the widget with too many visual elements.

  • Use clear titles, concise subtitles, and recognizable icons.

  • Show bot and agent names only when they improve clarity for the user.

  • Enable transcript download and feedback only when they support the use case.

  • Test behavior across multiple tabs and page reloads if cross-tab sync or reopen settings are enabled.

  • Verify notification sound and visual effects in the customer’s browser and accessibility context.

  • Prefer automatic delivery through the API URL to stay current with widget updates.

References