IBM Cloud Docs
Controlling the web chat version

Controlling the web chat version

The web chat JavaScript code follows semantic versioning practices. Starting with web chat version 7.0.0, you can set the version of the web chat that you want to use as a configuration option.

If you don't specify a version, the latest version is used automatically (clientVersion: "latest"). When you apply the latest version, you benefit from the continuous improvements, feature additions, and bug fixes that are made to the web chat regularly.

However, if you apply extensive customizations to your deployment, such as overriding the theme with your own custom theme, you might want to lock your deployment to a specific version. Locking on a version enables you to test new versions before you apply them to your live web chat.

To use a specific version (clientVersion: "major.minor.patch"), specify it as follows:

The following examples show what to specify when the current version is 7.7.1.

  • If you want to stay on a major version, but get the latest minor and patch releases, specify clientVersion: "7".
  • If you want to stay on a minor version, but get the latest patch releases, specify clientVersion: "7.7.0".
  • If you want to lock on to a specific minor version and patch release, specify clientVersion: "7.7.1".

To test the updates in a version release of the web chat before you apply the version to your live web chat, follow these steps:

  1. Lock the web chat that is running in your production environment to a specific version.
  2. Embed your web chat deployment into a new page in a test environment, and then override the version lock setting. For example, specify clientVersion: "latest".
  3. Test the web chat, and make adjustments to the configuration if necessary.
  4. Update your production deployment to use the latest version and apply any other configuration changes that you determined to be necessary after testing.

For more information about features that were introduced in previous web chat versions, see the Web chat release notes.