Code and the AI builder
Write a variant in CSS and JavaScript, or let Claude write it from a description.
On this page
Every content test variant can carry its own CSS and JavaScript, on top of or instead of visual editor changes.
Code
In Test groups, select a variant and open Code:
- CSS is added in the page head, before the page paints, so there's no flicker.
- JavaScript runs once the page HTML is ready. Use it for changes CSS can't make.
/* Restyle anything for this group */
.product-form__submit { background: #111; border-radius: 999px; }// Runs for visitors in this group
const price = document.querySelector('.price');
price?.insertAdjacentHTML('afterend', '<p>Free shipping</p>');Build with AI
- Select a variant and open Build with AI.
- Describe the change, for example "Make the line smaller and put it under the price".
- Crovio opens a Claude chat with the request, the test and the group already filled in. Send it.
- Claude reads your live page and the test idea, writes the CSS and JavaScript and saves it to that group. It shows up in Crovio when it's done.
To revise it, use Build with AI again or just reply in the same Claude chat. Writing again replaces that group's code.
The AI builder works through the Crovio connector for Claude, on your own Claude plan. If Claude isn't connected, the button shows Connect Claude instead.
Fix from QA comments
On QA & preview, click anywhere on a screenshot to pin a comment ("Make this line smaller"). Click Fix comments with AI to hand your open comments to Claude: it updates the variant through the connector and re-runs QA.
Was this page helpful?