A/B variants
DeliverabilityA/B variants
Design multiple variants and render them with weights for split testing.
A design can carry A/B variants; renderAbVariants produces the base plus each weighted variant, ready to feed your ESP's split-test.
ts
import { renderAbVariants } from "email-craft-sdk";
const variants = renderAbVariants(design); // base + weighted variantsEditing a variant in the editor#
In the Body tab, open A/B Variants. Add a variant and it starts as a copy of the main email. Rename it in its name box, or press Edit content to put it on the canvas. A bar above the canvas says which variant you are editing, and Back to the main email returns to the original. Your own code always receives the whole email (onDesignChange and getDesign()), with the variant's edits inside ab_variants, never the variant on its own.
While a variant is open, saved versions are paused, because a version records the whole email. Go back to the main email to save one.