# How to create feature toggles and manage rollouts

## Prerequisites

* Ensure you have the necessary permissions to create and manage campaigns on the FE\&R platform.
* Install the [FE\&R SDK or implement the Decision API](/server-side/readme.md)<br>

## Step-by-step guide

{% stepper %}
{% step %}

### Create a flag

1. Click on  **Flags** in the Feature Experimentation side menu.

   <figure><img src="/files/7EcGtKQ0oX0UAPIOLlvU" alt="" width="223"><figcaption></figcaption></figure>
2. Click on the **Create Flag** button

   <figure><img src="/files/QMtGQQaLeJQ6tURhg0h1" alt="" width="375"><figcaption><p>Click on the <strong>Create Flag</strong> button</p></figcaption></figure>
3. Fill in the requirements information to create the flag

<figure><img src="/files/zkgyZuAL0N2ERR0u6vLQ" alt=""><figcaption><p>Fill in the requirements information to create the flag</p></figcaption></figure>
{% endstep %}

{% step %}

### Create a context key

Define a context key that identifies the user or session attributes used for segmentation in your test.

1. Click on **Context keys** in the Feature Experimentation side menu.

   <figure><img src="/files/65koOzUPoZz1Yi0i8KYr" alt="" width="225"><figcaption></figcaption></figure>
2. Click on the **Create key** button

   <figure><img src="/files/AiS1R3F3ho10axsZTqk0" alt="" width="375"><figcaption></figcaption></figure>
3. Fill in the requirements information to create the key

<figure><img src="/files/HyoFdCXcLzWBr1VWsh5O" alt="" width="375"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Create a Toggle campaign

1. Navigate to the AB Tasty dashboard.
2. Click on the **Create campaign** button.
3. Fill in the requirements information to create the campaign

{% hint style="info" %}
The **slug** refers to a custom ID that can be used when duplicating campaigns
{% endhint %}

<figure><img src="/files/owZTkCATRNXJdNq5k3rR" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="/files/u52kTSmRRU5nOaraUUby" alt="" width="563"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### segmentCreate scenarios

Create the different scenarios you want to test by specifying flags for each scenarios.

<figure><img src="/files/pg9i9N6CLWlQiiq0ibpX" alt="" width="563"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Define goals

Define the objectives or metrics that you want to measure to determine the success of each feature toggling campaign.

<figure><img src="/files/kVt63t7D8zF08cX9D3tD" alt="" width="563"><figcaption></figcaption></figure>

{% hint style="info" %}
Learn more about [Goal management](/web-experimentation-and-personalization/campaign-flow-goals-step.md)
{% endhint %}
{% endstep %}

{% step %}

### Define Targeting

Configure the criteria for each segments of users that should be included in the test. You can select the target by:

1. User ID
2. Context Key
3. Selecting all users

<figure><img src="/files/hHGkPsWWZAczjFPwjwzA" alt="" width="563"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Review the Toggle campaign details

Ensure all settings and configurations are correct before activating the campaign.

<figure><img src="/files/BgLGROwP015jwiZdSmZM" alt="" width="563"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Activate campaign

Launch the Toggle by activating the campaign, and monitor the results through the FE\&R dashboard.

1. Click on the **Draft** drop-down menu&#x20;
2. Select **LIVE** to launch the campaign
   {% endstep %}
   {% endstepper %}


---

# Agent Instructions: 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/how-to-create-feature-toggles-and-manage-rollouts.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.
