AI variation development agent

  • Updated
  • Optimizely Web Experimentation
  • Optimizely Personalization

Optimizely Opal uses AI in the Visual Editor to help you modify and update existing website elements, create new ones, and generate and apply enhancement suggestions, while maintaining brand consistency by automatically retrieving page styles.

If you use Opti ID, administrators can turn off generative AI in the Opti ID Admin Center. See Turn generative AI off across Optimizely applications.

Powered by Opal, the variation development agent (dev agent) lets you interact using natural language to achieve various tasks without writing custom code. For example:

  • Update a call-to-action's (CTA) styles with dynamic effects to increase clicks, while keeping brand guidelines.
  • Add a butter bar with a sale promotion that includes a countdown timer.
  • Provide suggestions to improve the menu layout for better discoverability.
  • Generate different variants of a section of the page to accomplish a specific goal.
  • Redesign a webpage based on a theme.

The variation development agent is only available in the new Visual Editor.

Prerequisites

Use Opal to edit a variation in the Visual Editor

  1. Go to Optimizations and select an experiment or campaign.

  2. Click on a variation name in the Design > Variations page or click Edit > Edit with new editor.

  3. Click Opal.

  4. Enter what you would like to change about the page, such as Improve the Get started button to increase more clicks. See Tips and tricks for help with effective prompt writing for Opal. Opal uses the Visual Editor to make the updates and validates the results.
  5. Click Save All if you like Opal's changes. If not, iterate with Opal until the changes look good or click Undo All to start over.

You can repeat this process to update anything on the site, including updates that require custom code to change, as Opal generates that custom code for you.

Tips and tricks

Be explicit and precise.

Write explicit and precise prompts to Optimizely Opal. Adding more context to your prompts leads to better results.

Example

  • Initial promptCreate a 24-hour countdown timer. (This might reset each time the page reloads.)
  • More specific promptCreate a countdown timer that counts down to July 24, 12:00 a.m. GMT. (This ensures the timer functions as expected, counting down to a specific date and time.)
Focus on the desired outcome.

Instead of just telling Opal what to do, explain why you want it done. This helps Opal understand the underlying goal and generate more effective and relevant variations.

Example

  • Initial promptChange the button color to blue.
  • More specific promptChange the 'Add to Cart' button color to a vibrant blue to increase its visibility and encourage more clicks. (This clarifies the objective of increased visibility and click-through rates.)
Specify constraints and limitations.

If there are any design system rules, brand guidelines, or technical limitations, communicate them clearly. This prevents Opal from generating variations that are unusable or off-brand. You can also use Instructions to help guide Opal.

Example

  • Initial promptAdd a new heading here.
  • More specific prompt Add a new H2 heading above this section, using the 'Optimizely Blue' color and 'TT Commons Book' font, as per our brand guidelines. (This incorporates specific brand constraints.)
Guide iterative refinement.

AI-generated variations might not be perfect on the first try. Provide feedback on initial results and refine your prompts to guide Opal to the desired outcome.

Example

  • Initial promptMake the headline more engaging.
  • Opal responseHere's a new headline: 'Unlock Your Potential Today!'
  • Refinement promptThat's a good start. Now, make the headline more benefit-driven and include a sense of urgency, similar to the tone of our 'Cool-girl confident' voice pillar. (This guides Opal to a more specific tone and benefit.)
Consider user experience (UX) and accessibility.

Prompt Opal to think about the end-user experience. Encourage requests that improve usability, readability, and accessibility for all visitors.

Example

  • Initial promptAdd some text here.
  • More specific promptAdd a short paragraph of explanatory text here, ensuring it has sufficient contrast for accessibility and is easily scannable for users on mobile devices. (This emphasizes UX and accessibility considerations.)
Provide negative constraints (what not to do).

Sometimes it is clearer to tell Opal what not to do, especially if you encounter undesirable outcomes.

Example

  • Initial prompt Add a pop-up for our newsletter.
  • More specific promptAdd a newsletter signup pop-up, but ensure it does not appear immediately on page load and is not intrusive; perhaps trigger it by exit intent. (This prevents common UX pitfalls.)

Use cases

The dev agent, powered by Opal, changes how you create and optimize digital experiences. By using natural language processing and maintaining brand consistency, it lets marketers and developers rapidly iterate, test, and personalize website elements without requiring extensive coding.

The following are key scenarios where the agent significantly enhances your workflow:

Rapidly modify and style elements.

Quickly adjust the appearance and behavior of existing website elements to align with campaigns, branding updates, or performance goals.

  • Brand consistency – Apply specific brand colors, fonts, or styles to text elements, buttons, or entire sections with a simple prompt.
    • Example promptChange all primary call-to-action buttons to Optimizely Blue (#0037ff) and use the 'TT Commons Demi Bold' font.
  • Dynamic effects – Enhance user engagement by adding interactive or animated styles to call to actions (CTAs), banners, or other interactive components.
    • Example promptUpdate the 'Shop Now' button to include a subtle hover animation and a slight shadow effect.
  • Seasonal and thematic updates – Effortlessly adapt your website's look and feel for holidays, promotions, or special events.
    • Example promptAdjust the website's main banner for a Christmas-themed campaign, incorporating festive imagery and a snow effect.
  • Batch element updates – Apply a consistent set of changes (for example, styling, text modifications, or attribute updates) across multiple similar elements on a page simultaneously, based on their type, class, or other identifying characteristics.
    • Example promptApply a subtle grey background (#f5f5f5) and a 1px solid light grey border to all Buy now buttons on this page.
Enhance and optimize content.

Refine and restructure your on-page content for better readability, conciseness, or impact, ensuring your message resonates with your audience.

  • Information decongestion – Transform lengthy paragraphs into concise bullet points or summaries to enhance user comprehension.
    • Example promptConvert this product description into three key bullet points highlighting its main benefits.
  • Text refinement – Adjust the tone, length, or clarity of any text content to match specific campaign objectives or audience segments.
    • Example promptMake the headline more concise and impactful, focusing on urgency.
  • CTA optimization – Generate compelling and clear calls-to-action that encourage conversions.
    • Example promptSuggest three alternative phrases for the 'Learn More' button that emphasize immediate value.
Insert dynamic elements and create widgets.

Introduce new functional or promotional elements to your webpage to capture attention, provide information, or drive specific actions.

  • Promotional banners – Add "butter bars" or sticky banners for sales announcements, limited-time offers, or important alerts.
    • Example promptAdd a prominent banner at the top of the page announcing a 20% off sale, with a countdown timer ending on December 31st.
  • Interactive widgets – Integrate new interactive components like countdown timers, searchable frequently asked question (FAQ) sections, or social proof elements.
    • Example promptInsert a customer testimonial carousel below the hero section, featuring positive reviews.
  • Visual storytelling – Generate and place images to support your content, creating different scenes or showcasing products from various angles.
    • Example promptReplace the current product image with a variation showing the smartwatch from a different angle, perhaps on a person's wrist.
Explore designs and layout optimization.

Explore multiple design directions and optimize page layouts for improved user experience, visual hierarchy, and conversion rates.

  • Layout suggestions – Receive AI-driven recommendations for improving the arrangement and presentation of elements on a page.
    • Example promptProvide suggestions to improve the menu layout for better navigation on mobile devices.
  • Variant generation – Quickly generate multiple distinct design variations for a specific page section or an entire webpage based on a theme or objective.
    • Example promptGenerate three different variants for the product listing section, focusing on a minimalist design, a grid layout, and a featured product highlight.
  • Full-page redesigns – Experiment with new page designs or themes to test radical changes and discover optimal user journeys.
    • Example promptRedesign this entire product page based on a 'modern and clean' aesthetic, prioritizing product imagery and clear pricing.
Experiment and personalize iteratively.

Create and refine variations directly within the Visual Editor, supporting continuous optimization cycles.

  • Building on success – Create variations based on existing successful ones, letting you continuously refine and improve high-performing experiences.
    • Example promptTake the current winning variation of the checkout page and create a variant that simplifies the shipping information section.
  • Personalized experiences – Develop tailored content and layouts for different audience segments, ensuring relevance and maximizing impact for each user group.
    • Example promptCreate a personalized hero banner for returning customers that highlights recently viewed items.

Troubleshoot

The following sections cover common errors you may encounter when using the variation development agent. Each issue includes the likely cause and steps to resolve it.

Connection lost

image

A Content Security Policy (CSP) on your website is blocking the connection. Resolve this by doing one of the following:

Unable to find the selector

This error is caused by disabled Opal tools. Enable the necessary tools.

Something unexpected happened

This error indicates that your Opal instance is not connected to your Experimentation or Personalization instance. To resolve it, an Opal Administrator must connect the correct Opal instance to your Experimentation or Personalization instance. See Get started with Optimizely Opal for administrators for steps on connecting products.