You can now create A/B experiments using AI in just a few seconds. Our new experiment creation flow lets you generate tests by simply writing a prompt—no code required.
- What is prompt-based experimentation?
- Prerequisites
- Access the prompt-based creation flow
- Configure your prompt-based experiment
- Finalize the prompt-based experiment
- Frequently Asked Questions (FAQ)
- 1. Which LLM is used for prompt-based experimentation?
- 2. Which LLM does Kameleoon use for image generation?
- 3. Can I use the images generated by Kameleoon AI?
- 4. Can I edit the code generated by Kameleoon?
- 5. Can I use the Graphic editor on a variant created with AI?
- 6. Can I create any type of variant with prompts?
- 7. Can I create multi-page experiments?
- 8. Can I prompt changes on elements that appear on hover?
- 9. I’ve created a variation on a product page and want to test it across several product pages — how can I do that?
- 10. Can I use my own design or mockup to create a variant?
- 11. Can I create a prompt-based experiment without installing the Kameleoon snippet?
What is prompt-based experimentation?
Prompt-based experimentation refers to a new methodology of creating, configuring, and analyzing experiments using natural language prompts and generative AI. In prompt-based experiments, users describe what they want to test and their criteria for success to the AI, rather than using a visual editor or writing code. The AI generates an experiment that is targeted and measurable.
Prompt-based experimentation possesses all of a visual editor’s creative capabilities and more. The AI can handle intricate layout changes, creating new elements, and brand-oriented features that are often impossible with visual editors. Prompt-based experimentation allows users to optimize existing websites, rather than solely supporting the creation of new web products.
With prompt-based experimentation, you can:
- Add dynamic “Add to cart” buttons on product pages and align them with your brand’s visual identity.
- Implement sticky headers or call-to-action bars that are consistent with your site’s design.
- Introduce persistent personalized pop-ups and tooltips that are triggered by user behavior.
- Add infinite scroll to your website’s category pages.
- Generate quizzes, forms, pop-ups, banners, and surveys that accelerate the customer journey and increase user engagement.
Prerequisites
Use a Chromium-based browser
To create a prompt-based experiment, you must install the Kameleoon Prompt Testing extension, which is only available on browsers that support the Chrome Web Store (for example, Chrome, Arc, Brave, Edge).
Install the Prompt Testing Chrome Extension
Install the extension from the Chrome Web Store
This lightweight extension lets you create and preview prompt-based experiments directly on your live site, without using a visual editor or writing any code.
With this extension, you can:
- Type a prompt in natural language
e.g. “Add an Add to Cart button to listings for returning users“ - Upload a sketch or mockup as a design reference
- See your changes rendered instantly
- Refine and review the JS/CSS code the AI generates
- Simulate your experiment on your web pages
- (Coming soon) Set targeting, traffic allocation, and goals
- Track performance via the Kameleoon dashboard or any connected data/analytics tool
Note: If you don’t have the extension installed, and you’re using a compatible browser, you’ll be asked to download it before continuing.
Access the prompt-based creation flow
To get started, go to the A/B Test dashboard and click New experiment.
A pop-in will open, asking how you want to build your experiment. You’ll have three options:
- By Prompt
- With the graphic editor
- With the code editor

Select By Prompt and fill in the required information, then click Create.
Configure your prompt-based experiment
1. Define your prompt
In the right-hand text field, enter a natural language instruction describing your intended modification.
Examples:
- “Update the product listing grid to display 2 products per row instead of 4”
- “Change the default sorting option to ‘Price, low to high’”
You can also click the + icon and select Add file to upload a mockup (banner, popup…) and ask the AI to recreate it on your site.
How to select an element for modification
There are two ways to help the AI identify the element to update:
- Describe it precisely in your prompt:
For example: “Move the product grid below the banner“ or “Change the hero heading to ‘Welcome to our Summer Sale’ and change its color to #FF6600“. - Draw a selection box:
Click the + icon > Draw sketch. Use your mouse to outline the target element directly on the page. Using the toolbox that appears at the bottom of the selection area, you can draw a line, partially erase it, or delete it entirely.
To help you get more targeted results, we’ve designed specific prompt tools like Suggest Ideas, Insert Overlay Element, etc. While optional, they can improve the quality and relevance of your output. Simply click on TOOLS to access these predefined prompts:
- Suggest ideas
- Insert overlay element
- Insert element within the page
- Change element style
- Improve text
- Add animations or visual effects
- Edit page theme
Generating optimization ideas
- Ask for inspiration: In the right-hand Ideas panel, type a prompt such as “Suggest ideas to optimize this page“. Kameleoon’s AI will analyse the current variation and return a curated list of actionable improvements.
- Review the suggestions: Each idea appears with a short title and a concise explanation of the expected benefit—for example “Add prominent hero call-to-action” or “Optimise hero image performance“.
- Pick what you like: Tick the checkbox beside every idea you want to apply.
- Let the AI build it: Click Send. Kameleoon will automatically implement the selected ideas on the page in code, creating a new version you can compare, simulate and test.
You can re-run the prompt at any time to generate a fresh set of ideas, helping you iterate quickly toward the highest-performing version of your page.
2. Let Kameleoon AI work
Once you submit your prompt:
- Kameleoon AI identifies target elements.
- It generates all the detailed specifications for the use case, including accessibility checks, responsiveness requirements, and QA steps to ensure the generated code is perfectly tailored to the use case.
- It generates the JavaScript and CSS updates needed to implement your change.
- A checklist appears with detailed steps. You can click each section to get more details about what Kameleoon AI did.
Depending on your prompt, Kameleoon AI may ask for more details or confirmation. For example, if you prompt the AI to “Create a two-column popup with an image on the left and content on the right, allowing users to subscribe to our newsletter“, Kameleoon AI will ask additional questions.
These questions may include which image to use, what the popup’s purpose is, or what kind of content should appear.
This refinement process ensures the AI’s generated result matches your intent before any changes are applied.
Kameleoon can also generate images using Recraft.ai. These AI-generated images are available directly in your Image Library and can be used in your variations. Recraft typically grants commercial usage rights for the images it produces.

In addition, you can sketch directly on the page to design a popup, overlay, or any other component. Once your sketch is ready, simply prompt: “Build the popup based on my sketch“.
Kameleoon AI will interpret your drawing and come back with any clarifying questions if needed before generating the variation.
Learn how to write effective prompts for prompt-based experiments. Follow best practices and avoid common mistakes to get accurate, visually relevant results every time.
3. Review and adjust the generated code
Click [CSS] or [JS] in the right-hand panel to inspect the relevant code.
Once the AI generates content for your experiment, you can refine its output by editing the underlying code.
To modify an AI-generated variation, you must first duplicate it. At this stage, Kameleoon does not allow direct edits to the original code generated by the AI (see the FAQ section below).
Steps to follow:
1. Click the Edit in the code editor CTA.
2. The code editor will open, allowing you to make your desired changes in the newly duplicated variation.
4. Compare and simulate your variation
Use the toolbar in the top right to:
- Compare the original and variation side-by-side. Simply drag the vertical slider left or right to visually compare the variations.
- Simulate the experience live on your site.
You can switch between variations using the dropdown, and exit the editor at any time by clicking Exit Mode.
Finalize the prompt-based experiment
Once your variation is complete:
- Click Finalize.
- Set your goals, audience targeting and traffic allocation.
- Launch your experiment.
You’re ready to experiment, faster than ever, with no code and no delay.
Frequently Asked Questions (FAQ)
1. Which LLM is used for prompt-based experimentation?
Kameleoon currently uses openAi o3 for its prompt-based experimentation capabilities.
2. Which LLM does Kameleoon use for image generation?
Kameleoon integrates with Recraft.io for AI-powered image generation.
3. Can I use the images generated by Kameleoon AI?
Yes, all images generated by Kameleoon AI are free to use commercially. They are automatically uploaded to your Image Library within the Kameleoon platform for easy access.
4. Can I edit the code generated by Kameleoon?
Yes—however, for now, code editing is only available after duplicating the generated variant in our code editor. We’re actively working on an update that will allow you to edit code directly from the prompt-based interface.
5. Can I use the Graphic editor on a variant created with AI?
No, the Graphic editor cannot be used on AI-generated variants. While we understand some edge cases may benefit from the visual editor, our prompt-based experimentation is designed to handle all scenarios covered by the Graphic editor. To avoid conflicts, editing via the visual tool is currently disabled for AI-generated experiments.
6. Can I create any type of variant with prompts?
You can create any variant that can be managed with front-end code. However, if your prompt requires back-end logic or server-side changes, Kameleoon will not generate that code. In such cases, a developer familiar with your back-end system will need to step in.
7. Can I create multi-page experiments?
Yes, you can create multi-page experiments. Prompting changes across multiple pages is supported. You can simply browse to the pages of your choice and apply prompts directly. Kameleoon will automatically combine the code into the same variation
However, we strongly recommend using the Simulation Mode to validate the complete experience and ensure that the code generated across different pages works seamlessly together.
8. Can I prompt changes on elements that appear on hover?
Yes, you can—as long as the HTML code for the hover-triggered element is already present in the page’s DOM. If the element is dynamically generated only after the hover interaction (for example, injected by JavaScript at runtime), Kameleoon’s AI may not be able to detect or modify it accurately.
For best results, ensure that:
- The hover element exists in the initial HTML (even if hidden)
- The structure is stable and not created asychronously
9. I’ve created a variation on a product page and want to test it across several product pages — how can I do that?
Once your variation has been created on the first product page, simply navigate to the next product page. Then, click the Refresh icon located in the variation box. This will re-execute the AI-generated code on the new page.

Alternatively, we recommend using the Simulation Mode to test the full experience across all relevant pages and ensure the variation behaves consistently.
10. Can I use my own design or mockup to create a variant?
Yes, you can import your own mockup or design file using the “Import a file” feature. This allows you to guide the AI in building a variant that matches your visual input.
11. Can I create a prompt-based experiment without installing the Kameleoon snippet?
Yes! However, there is one additional step required
- Create an experiment as usual from the app.
- You’ll be redirected to the URL you selected.
- The editor will not load automatically. Use the shortcut Shift+F4 (on PC) or fn+Shift+F4 (on Mac) to launch it.
Note: You will not be able to launch the experiment until the Kameleoon snippet has been implemented.