> ## Documentation Index
> Fetch the complete documentation index at: https://statsig-4b2ff144-devin-1763168466-llm-docs-audit.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Adding Rules

> Learn how to create rules that define which users are included in a segment

## Create a rule for a segment

A rule defines the criteria for which users are included in a segment. To add a rule to a segment,

* Log into the Statsig console at [https://console.statsig.com](https://console.statsig.com)
* On the left-hand navigation panel, select **Segments**
* Select the segment where you want to add a rule
* Click the **Add New Rule** button
* Select the criteria to target a set of users. For example, select Email and the Contains any of operator, and enter the email domain of your company to target only internal employees

<Frame>
  <img src="https://mintcdn.com/statsig-4b2ff144-devin-1763168466-llm-docs-audit/irMbAnbt5SZMvu00/images/segments/add-rule/129094975-a78b8caf-ac0d-4b14-96f7-adba2fe73f1f.png?fit=max&auto=format&n=irMbAnbt5SZMvu00&q=85&s=175ecdd853b42b94262a7a320be6d993" alt="Segment rule configuration interface" width="502" height="450" data-path="images/segments/add-rule/129094975-a78b8caf-ac0d-4b14-96f7-adba2fe73f1f.png" />
</Frame>

* Click the **Add Rule** button
* Click the **Save Changes** button at the top right of the **Rules** section
