- 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
- You must log in through Opti ID.
- Your user account must have access to Opal.
- You must be using the new version of the Visual Editor.
-
You must have the following tools Enabled in Opal chat:
exp_ve_apply_changeexp_ve_element_globexp_ve_element_grepexp_ve_element_readexp_ve_element_treeexp_ve_get change_schemaexp_ve_get_selectorexp_ve_list_pending_changesexp_ve_revert_change-
exp_ve_validate_change
See System tools for Web Experimentation or System tools for Personalization.
Use Opal to edit a variation in the Visual Editor
-
Go to Optimizations and select an experiment or campaign.
-
Click on a variation name in the Design > Variations page or click Edit > Edit with new editor.
-
Click Opal.
- 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.
-
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 prompt – Create a 24-hour countdown timer. (This might reset each time the page reloads.)
- More specific prompt – Create 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 prompt – Change the button color to blue.
- More specific prompt – Change 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 prompt – Add 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 prompt – Make the headline more engaging.
- Opal response – Here's a new headline: 'Unlock Your Potential Today!'
- Refinement prompt – That'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 prompt – Add some text here.
- More specific prompt – Add 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 prompt – Add 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 prompt – Change 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 prompt – Update 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 prompt – Adjust 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 prompt – Apply 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 prompt – Convert 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 prompt – Make the headline more concise and impactful, focusing on urgency.
-
CTA optimization – Generate compelling and clear calls-to-action that encourage conversions.
- Example prompt – Suggest 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 prompt – Add 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 prompt – Insert 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 prompt – Replace 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 prompt – Provide 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 prompt – Generate 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 prompt – Redesign 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 prompt – Take 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 prompt – Create 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
A Content Security Policy (CSP) on your website is blocking the connection. Resolve this by doing one of the following:
- Install the CSP Unblock Chrome extension and enable it.
- Add the required sources to your site's CSP header.
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.
Article is closed for comments.