> For the complete documentation index, see [llms.txt](https://docs.abtasty.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.abtasty.com/feature-experimentation-and-rollout/campaign-creation/how-to-create-server-side-a-b-tests/variations.md).

# Variations

<figure><img src="/files/KE5piIV8fjf1BPSZz5hz" alt=""><figcaption></figcaption></figure>

The **Variations** step is the core of your A/B test server-side campaign.

This is where you define what is actually being tested by configuring **flags and their values**.

Each variation represents a different experience exposed to users.

### What is a variation?

In Feature Experimentation and Rollout (FE\&R), a variation is defined by one or multiple **flag values**.

When a user is assigned to a variation, the SDK or Decision API returns the corresponding flag configuration.

This allows your backend to control exactly what experience is delivered.

### Configuring a Variation

<figure><img src="/files/OxE9lRJvcNNc5EEr5TJv" alt=""><figcaption></figcaption></figure>

You can manage your variations directly from the interface:

* Add a new variation
* Duplicate an existing variation
* Delete a variation
* Add multiple flags within a variation

For each variation, you must define:

* A **flag key**
* A **type**
* A **value**

Example:

* Flag: `button_color`
* Type: `String`
* Value: `orange`

#### Configuration modes

You can configure your variations using two modes:

**Standard mode**

<div align="left"><figure><img src="/files/vGJKGL1K0upcjaKD2RTK" alt="" width="563"><figcaption></figcaption></figure></div>

This is the default and most commonly used mode.

It allows you to:

* Select a flag
* Define its type
* Assign a value

This mode is ideal for most use cases and provides a clear and structured interface.

**Expert mode (JSON)**

<div align="left"><figure><img src="/files/LFKLbqPjw6sawtiPt9bk" alt="" width="563"><figcaption></figcaption></figure></div>

Expert mode allows you to define your variation using JSON.

This is useful when:

* Working with complex configurations
* Passing structured objects
* Managing multiple parameters at once

### Best practices

* Keep variations simple and focused on a single hypothesis
* Avoid testing too many changes in one variation
* Use clear naming for each variation (e.g. “Control”, “New CTA”, “Variant B”)
* Ensure flag values are correctly handled in your backend logic

{% hint style="info" %}

#### **Original vs Variation**

Every campaign includes an **Original** variation. You have two options:

* **Override the original (recommended):** Define a flag and value directly in FE\&R.\
  It a*voids relying on hardcoded fallback values and keeps configuration centralized in the platform.*
* **Use fallback values in your code:** Do not configure the original in FE\&R and rely on codebase defaults.\
  It m*ay result in less visibility and harder-to-maintain logic.*
  {% endhint %}

#### Next step

Once your variations are configured, proceed to [Goals](/feature-experimentation-and-rollout/campaign-creation/how-to-create-server-side-a-b-tests/goals.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.abtasty.com/feature-experimentation-and-rollout/campaign-creation/how-to-create-server-side-a-b-tests/variations.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
