Install Optimizely Mark chat in CMS 13
Mark (Optimizely Agent Platform) is an agent orchestration platform that helps you work smarter in CMS 13. The Mark chat widget in the CMS 13 editorial UI gives editors AI-powered assistance without leaving CMS. In CMS 13.2.0 and later, the EPiServer.CMS package includes Mark chat.
Mark helps you explore complex questions, find answers about the Optimizely platform, and access step-by-step instructions. Mark automates tasks, surfaces insights, and guides decision-making.
Prerequisites
- CMS 13 in Optimizely Digital Experience Platform (DXP).
- Opti ID enabled for your CMS instance.
- Mark provisioned at the organizational level. Contact your Customer Success Manager (CSM) to request Mark access.
- Third-party cookies enabled in your browser.
See Add-ons platform compatibility for package and version information.
Add Mark chat to your site
Add Mark chat to your CMS site so editors can work with Mark without leaving the CMS 13 editorial UI. In CMS 13.2.0 and later, Mark chat ships in the EPiServer.CMS package, and services.AddCms() registers it. You do not need to install a separate package or change Startup.cs.
For CMS 13 versions earlier than 13.2.0, install Mark chat through NuGet.
Note When you upgrade to CMS 13.2.0 or later, remove the Optimizely.Cms.OpalChat package reference and the services.AddOpalChat() call from your project. Your existing Optimizely:OpalChat configuration still applies. Outside DXP, Mark chat displays only when InstanceId is set, so add it if your configuration does not include it.
Connect CMS 13 to Mark
Configure CMS site
Install and configure the Mark chat add-on for your CMS site.
- For CMS 13 versions earlier than 13.2.0, add the following NuGet package to your project. Skip this step in CMS 13.2.0 and later.
Optimizely.Cms.OpalChat- For CMS 13 versions earlier than 13.2.0, register Mark chat in Startup.cs. Skip this step in CMS 13.2.0 and later.
services.AddOpalChat();- Configure your local environment.
- Configure Opti ID login on your local machine. Access the PaaS Portal to locate your Client Id, Client Secret, and Instance Id, as shown in the following screenshot.

- Copy your Client Id, Client Secret, and Instance Id, and paste them into the configuration as follows:
"EPiServer": {
"Cms": {
"OptimizelyIdentity": {
"Authority": "https://login.optimizely.com/oauth2/default",
"InstanceId": "INSTANCE_ID",
"ClientId": "CLIENT_ID",
"ClientSecret": "CLIENT_SECRET"
}
}
}- Configure Mark chat.
"Optimizely": {
"OpalChat": {
"InstanceId": "INSTANCE_ID",
"ServiceUrl": "https://opal-backend.optimizely.com"
}
}- Grant your login username access rights to the CMS instance.
InstanceId is the only required setting. ServiceUrl, AppBaseUrl, and SocketUrl default to the production endpoints https://opal-backend.optimizely.com, https://opal.optimizely.com, and https://ws.opal.optimizely.com.
Note In DXP, the platform supplies the instance ID when your site calls services.AddCmsCloudPlatformSupport(configuration), so production environments require no additional configuration. This value overrides any InstanceId in your configuration. Outside DXP, if you do not set InstanceId, the site starts normally, but Mark chat does not display.
To control when Mark chat is available with your own logic, implement the IOpalInstanceChecker interface. Its HasOpalInstanceAsync method returns true when Mark chat should display. Register your implementation with services.Replace(ServiceDescriptor.Singleton<IOpalInstanceChecker, CUSTOM_CHECKER>()), where CUSTOM_CHECKER is your class. This registration works before or after services.AddCms().
After completing the configuration, deploy your CMS site to your PaaS Portal project.
Associate CMS with Mark
The following screenshot shows the Connections tab in the Admin Center, where you associate your CMS instance with Mark.

- In your organization's Admin Center, ensure you have the Mark Administrator role.
Note Contact Optimizely Support if you need access or role assignment.
- From the main menu, select Mark.
- Open the Connections tab.
- Select the instance associated with your CMS site.
- Click Save to complete the association.
After you save, your CMS 13 site connects to Mark. You can chat with Mark and call agents that do not require CMS tools.