# Create a Segment

In this how-to, you’ll learn how to create one or more Segments for a Trigger or Broadcast.

### Prerequisites

* [A LootLocker account](https://lootlocker.com/sign-up)
* [A created game in the web console](https://docs.lootlocker.com/)
* A [trigger](/game-systems/triggers.md) or [broadcast](/players/broadcasts.md)

### Creating a Segment

To add a Segment to a Trigger or Broadcast, click Add Segment.

![](/files/AV89jvAO5jhM9uGO3gcN)

#### Segment Name

Enter a name for the Segment, or leave it blank to have a name and description automatically generated based on the Segment configuration.

#### Segment Configuration

Each Segment is made up of one or more conditions that define which players qualify.

Available configuration options include:

* **Are Playing On:** Select one or more platforms that the player has (or has not) played on previously.
* **Have Linked:** Select one or more platform accounts that the player has linked to their LootLocker profile through Unified Player Accounts.
* **Joined:** Filter players based on the date or date range when they started playing the game they are currently playing.
* **Were Last Seen:** Filter players by the date or date range of their most recent session (excluding their current session) in the game they are currently playing.
* **Have a Playtime:** Target players based on a specific playtime value or time range in the game they are currently playing.
* **Have Also Played:** Select one or more games that the player has (or has not) played previously.
* **Have String Metadata:** Target players based on a string Metadata value attached to their player profile, such as region, faction, rank name, or custom tags.
* **Have Number Metadata:** Target players based on a numeric Metadata value attached to their player profile, such as score, level, reputation, or matchmaking rating.
* **Have Boolean Metadata:** Target players based on a true or false Metadata value attached to their player profile, such as whether a tutorial has been completed or a feature has been unlocked.

Different Metadata types support different comparison operations depending on the selected condition type.

#### Adding Multiple Conditions

Click Add Another Option to add additional conditions to the same Segment.

![](/files/tCts4juDdA3hLTnavqhI)

{% hint style="info" %}
All conditions within a single Segment must be met for a player to qualify (AND logic). If you want to target players who match one condition OR another, create multiple Segments instead of adding multiple conditions to the same Segment. When multiple Segments are added to a Trigger or Broadcast, they are evaluated using OR logic.
{% endhint %}

### Conclusion

You now know how to attach one or multiple segments to a Trigger or Broadcast.


---

# 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.lootlocker.com/shared-systems/player-segments/how-to/create-a-segment.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.
