# A/B tests

An email step or WhatsApp step can hold more than one version of its message. Each
contact is given one of the active variants, so you can try two subject lines or two
openings on the same list.

## Where to find it

Open an email step or WhatsApp step. The variants are tabs at the top — the first is
**Test A** — with **Add test** beside them.

## Before you start

- A step with its first variant written.

## Add a variant

1. Open the step and click **Add test** ("Add an A/B test variant").
2. Write the new variant. Subject, body, mode (Template, Prompt or Imported) and type can
   all differ.
3. Use the **Active** switch to include or leave out a variant.
4. **Save** the workflow.

![Screenshot coming soon: an email step with Test A and Test B variant tabs](/screenshots/coming-soon.svg)

## How contacts are split

- Contacts are spread evenly across the **active** variants.
- The choice is fixed per contact, so the same person always gets the same variant.
- If no variant is active, the first one is sent.
- Attachments and the sender are shared by every variant.

## Good to know

- The step's numbers (delivered, opened, clicked) are for the step as a whole; they are
  not split per variant.
- Each sent email records its variant, and **View live data** shows the exact email each
  contact got.
- The [Email ingest API](/developers/api) can write a chosen variant.

## Related

- [Email step](/steps/email-step) · [Live data](/running/live-data)

<section aria-labelledby="faq" class="faq">

## FAQ

<details>
<summary>How are contacts split between variants?</summary>

Evenly across the active variants, and the same person always gets the same one.

</details>
<details>
<summary>Are the numbers shown per variant?</summary>

No. The step's numbers are for the step as a whole; **View live data** shows the exact email each contact got.

</details>
<details>
<summary>What if no variant is active?</summary>

The first one is sent.

</details>

</section>
