---
title: Get started with a headless A/B/n test
slug: "get-started-with-headless-abn-test"
abstract: "Learn how to create, configure, test, publish, and run a headless A/B/n test in SitecoreAI."
---
# Get started with a headless A/B/n test

> [!important]
> Feature availability is part of a phased rollout. Your organization may not see this functionality yet. It will become available when your environment is included in the rollout.

Use a headless A/B/n test when you want to compare multiple variants and measure which performs better. An A/B/n test is a headless experience with **2 to 6 variants**.

Complete the following steps:

1. [Create a headless A/B/n test](https://doc.sitecore.com/sai/en/users/sitecoreai/headless-personalization-and-abn-testing/create-a-headless-abn-test.html). Configure the control variant and add the variants you want to test.

2. [Assign traffic to the variants](https://doc.sitecore.com/sai/en/users/sitecoreai/headless-personalization-and-abn-testing/assign-traffic-to-headless-abn-test-variants.html) and configure the required sample size. You can also [edit advanced options](https://doc.sitecore.com/sai/en/users/sitecoreai/headless-personalization-and-abn-testing/edit-advanced-options-for-a-headless-abn-test.html) or [set automated actions](https://doc.sitecore.com/sai/en/users/sitecoreai/headless-personalization-and-abn-testing/set-automated-actions-for-a-headless-abn-test.html).
3. Optionally, [add a condition](https://doc.sitecore.com/sai/en/users/sitecoreai/headless-personalization-and-abn-testing/add-a-condition-to-a-headless-experience.html) to control which visitors qualify for the A/B/n test.
4. Optionally, [add a goal](https://doc.sitecore.com/sai/en/users/sitecoreai/headless-personalization-and-abn-testing/add-a-goal-to-a-headless-experience.html) to track performance.
5. [Edit the details](https://doc.sitecore.com/sai/en/users/sitecoreai/headless-personalization-and-abn-testing/edit-a-headless-experience.html) to add a description, tags, and channels.
6. Use **Preview API** to [test the API response](https://doc.sitecore.com/sai/en/users/sitecoreai/headless-personalization-and-abn-testing/test-the-api-response-of-a-headless-experience.html) before launch and verify the returned variant and response.
7. [Publish the A/B/n test](https://doc.sitecore.com/sai/en/users/sitecoreai/headless-personalization-and-abn-testing/publish-a-headless-experience.html) now or schedule it for later.
8. [Run the A/B/n test](https://doc.sitecore.com/sai/en/users/sitecoreai/headless-personalization-and-abn-testing/run-a-headless-experience.html) from your application and use the returned data to render the assigned variant.
9. Monitor the test in [Operational data](https://doc.sitecore.com/sai/en/users/sitecoreai/headless-personalization-and-abn-testing/view-operational-data.html) and [Performance analytics](https://doc.sitecore.com/sai/en/users/sitecoreai/headless-personalization-and-abn-testing/view-performance-analytics.html). Interpret the results after the required sample size has been reached.
