# How to create server-side personalization

## Prerequisites

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

## 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="" width="563"><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="563"><figcaption></figcaption></figure>
3. Fill in the requirements information to create the key

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

{% step %}

### Create a Personalization 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/4yHEXGIMWZNRB9TLiiFK" alt="" width="563"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Create scenarios

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

<figure><img src="/files/lIuykYw14NLrpWZVTj9P" 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 personalization.

<figure><img src="/files/JQUoZiP11AuChv9edDts" 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/cuYUhskKh3z71k8WUafZ" alt="" width="563"><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Set traffic allocation

Determine the percentage of traffic that will be exposed to each personalization.

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

{% step %}

### Review the Personalization campaign details

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

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

{% step %}

### Activate campaign

Launch the Personalization 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

<figure><img src="/files/Na5RdU6VVCCPcCvMMlpq" alt="" width="563"><figcaption></figcaption></figure>
{% 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-server-side-personalization.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.
