Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

HomeDev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

Configure AI

How to configure AI in Optimizely Commerce Connect.

You can use AI in Optimizely Commerce Connect to generate text from a product property.

📘

Note

  • This feature is available only for DXP customers. If you are a DXP customer and would like to enable the Opal AI feature, submit a Support ticket or send an email to [email protected].
  • This feature only supports the XHtmlstring data type to generate AI content.

Request to configure AI

Optimizely uses a request-based process to access AI functionality while the service is rolled out to PaaS products. The Support team helps configure the AI service for your project in the PaaS portal.

Update the source code

In your CMS site project, open the Startup.cs file and add the code to specify which properties of your product models you want to apply the AI generation feature. The following example code adds the ConfigureServices method in the Startup.cs file:

services.Configure<TinyMceConfiguration>(config => 
{ 
    config.UseOpalAIForProperties<FashionProduct>(x => x.Description, x => x.LongDescription); 
    config.UseOpalAIForProperty<FashionBundle>(x => x.Description); 
}); 
  • UseOpalAIForProperties – Apply AI for multiple properties of a product model.
  • UseOpalAIForProperty – Apply AI for a property of a product model.
  • FashionProduct and FashionBundle – These are sample product models and Description and LongDescription are its properties. Replace with your product models and properties as you want.

Re-build the project. When you get confirmation from the previous step, you can redeploy the site and use the feature.