> ## Documentation Index
> Fetch the complete documentation index at: https://help.experro.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Creating a New Variant

A variant is an alternate version of a record. You build it in the record itself, then map it to an experiment variant when you set up an A/B test or personalization experiment.

<Frame>
  <img src="https://mintcdn.com/experro/ErrjKBYr1D3REwmP/images/content/variantcontentlibrary_record_details.png?fit=max&auto=format&n=ErrjKBYr1D3REwmP&q=85&s=b43d0a4ea81bbc0e7ad006ee1576e63a" alt="" width="1440" height="900" data-path="images/content/variantcontentlibrary_record_details.png" />
</Frame>

Variants work the same way for pages and for components. The steps below apply to both.

## Prerequisites

* Permission to edit records in the content library.
* A plan that includes A/B testing. Without it, the option to save a variant does not appear.

## Create a Variant

<Steps>
  <Step title="Open the record">
    In **Content Library**, open the page or component you want to create a variant of.
  </Step>

  <Step title="Make your changes">
    Edit the fields you want the variant to differ on — a different headline, a different image, a different call to action.

    Everything you do not change carries over from the variant you started from.
  </Step>

  <Step title="Save it as a variant">
    Click the arrow beside **Save**, then select **Save as a New Variant**.
  </Step>

  <Step title="Confirm it was created">
    The new variant appears in the variant selector at the top of the record.
  </Step>
</Steps>

<Info>
  **Save as a New Variant** only appears when your plan includes A/B testing. If you do not see it in the dropdown, the feature is not enabled for your workspace.
</Info>

## Switch Between Variants

The variant selector sits at the top of the record, beside the language selector. Open it to see every variant on the record and switch between them.

The variant currently served on your storefront carries an **Active** badge.

Switching variants changes what the editor below displays. Your unsaved changes are not carried across, so save before you switch.

## Using Variants in an Experiment

Variants are what an experiment maps to. Once a record has more than one, it becomes selectable on the **Experience** step of the experiment flow, where you decide which variant each experiment group sees.

<Note>
  A record used by an experiment cannot be deleted from the content library, whatever the experiment's status. Delete the experiment first, or remove the record from it.
</Note>

## What's Next

* [Versioning](/content/content_library/versioning)
* [Map Experiences to Variants](/experiments/a_b_testing/experience)
