Skip to content

Changelog

General upgrade guide

This guide will help you upgrade from previous versions of the Open Chat Studio Widget to the latest version. Please follow these steps carefully to ensure a smooth transition and also review any changes and upgrade steps between your current version and the latest version.

Quick Upgrade Steps

1. Update the script tags

Update your script tags to use the latest version:

<script 
  src="https://unpkg.com/open-chat-studio-widget{LATEST_VERSION_NUMBER}/dist/open-chat-studio-widget/open-chat-studio-widget.js"
  type="module"
  async
  ></script>

2. Review Your Implementation

Check your current HTML implementation and compare it with the latest properties reference.

Changelog

v0.4.4

  • Merge width & height vars:
    • --button-icon-width, --button-icon-height -> --button-icon-size
  • Fix launch button styling.
    • Correctly apply font size and borders.
  • Add variables to control header font and icon size:
    • --header-font-size
    • --header-button-icon-size
  • Support for placing text in the window header using the header-text.
    • User --header-text-font-size and --header-text-color to style it independently of the other header elements.

v0.4.3

  • Fix markdown styling
  • Allow customizing the chat window width and height using the following CSS vars:
    • --chat-window-width
    • --chat-window-height
    • --chat-window-fullscreen-width
    • See the styling guide for details.
  • Change size units from rem to em.

v0.4.2

  • Fully configurable styling via CSS properties.

v0.4.1

  • Improved styling.
  • Replaced 'expand' with 'fullscreen' mode.

Attribute changes

Added

  • allow-full-screen: Allow the user to make the chat window full screen.

Removed

  • expanded

v0.4.0

Warning

This is a full rebuild of the widget and includes breaking changes. See the upgrade guide for details.

  • Enhanced Mobile Experience
    • Improved responsive design for mobile devices
    • Better touch interactions and scrolling
  • Draggable Chat Window
    • Desktop users can now drag the chat window to reposition it
  • Button Customization
    • You can now set a button icon and change the button shape
  • Welcome Messages & Starter Questions
    • Display welcome messages when the chat opens
    • Provide clickable starter questions to help users get started
    • Both support rich markdown formatting
  • Session persistence across page loads
    • Store session data in browser local storage to allow resuming sessions across page loads.

Upgrading from 0.3.x

The minimal steps required to upgrade are to replace the bot-url attribute with the chatbot-id attribute:

  <open-chat-studio-widget
-     bot-url=".../experiments/e/{CHATBOT_ID}/embed/start/"
+     chatbot-id="{CHATBOT_ID}"
  </open-chat-studio-widget>

The chatbot_id can be extracted from the bot-url by copying the UUID from the URL as shown above.

Upgrade Checklist

✅ Check These Items

Property Names: Ensure all property names use kebab-case (e.g., chatbot-id, not chatbotId) JSON Properties: Verify that welcome-messages and starter-questions are properly formatted JSON strings:

<!--  Correct -->
welcome-messages='["Message 1", "Message 2"]'

<!--  Incorrect -->
welcome-messages="Message 1, Message 2"

API Base URL: If you were using a custom API URL, ensure the api-base-url property is set correctly

Boolean Properties: Use string values for boolean properties:

<!--  Correct -->
visible="true"
expanded="false"

<!--  Incorrect -->
visible={true}
expanded={false}