# Create Real Time Segment Rules After creating a segment, you can create rule sets to refine the segment, including drag-on rules (Drag-on rules must be enabled in the parent segment). Individual rules are categorized by Attributes, Behaviors, Existing Segments, and Predictive Scores. Unlike batch segments, you are not able to access Funnels and A/B Testing. Additionally, you cannot create activations from a real-time segment. | Rule Type | Description | | --- | --- | | Attributes | Predefined characteristics of the customer such as age, email, gender, etc. | | Behaviors | Real-time behaviors of the customer such as page views | | Existing Segments | A predefined rule set used for another real-time segment | | Predictive Scores | A predefined rule set for predictive scoring models. | ## Creating Rules 1. Open TD Console. ![](/assets/image2021-9-27_15-32-16.8dafa5ca427131782b8e060380a82c5e125e880d84b233fd03d7d9ee29fa4d7d.cf3845cb.png) 1. Navigate to Audience Studio and select the segment for which you want to create rules. ![](/assets/image2021-9-27_15-32-57.9dc476d3d353163bece8f1d8976ad63e94cf303c71b88f71b5250f664a2082ed.cf3845cb.png) 1. Select Edit segment rules. ![](/assets/image2021-2-18_14-54-53.49d98731806c0579a89f29a91042703b8b38adac29da60c05a36ac7f3cf7cfe3.cf3845cb.png) 1. Rules are listed in the right-side menu by category. Select the sort icon to sort attributes and behaviors alphabetically. 2. To add a rule, click or drag it into the ruleset space. ![](/assets/image2021-9-16_13-25-57.c8efacf074754650ecbadffd111e221ef42d0d1c57b3e967c7eb8413e61de137.cf3845cb.png) 1. For each attribute or behavior rule you add, select the operator (i.e. =is) from the dropdown and edit the values (i.e. 25). ![](/assets/image2021-9-27_15-47-38.f75f42b3ef516ef6d6fd9e2fb7e1803d9b772da920f0690c12e86b2784f63265.cf3845cb.png) Real-time segments do not have all of the operators and aggregate types available in batch segments. The following are not available: * Operators- IsNull, Regexp, EndWith, TimeRange * Aggregation type- CountDistinct, Average * Calculation (min, max, sum) and Order (first, last) don't support grouping columns or order by columns 1. Add additional rules (up to 26) and apply one or multiple rules using all or any match logic. ![](/assets/image2021-9-27_15-52-17.d735e3f88d5ad2d703ccfe77f65f9cb445cac9848d69f4630eacbd0763140900.cf3845cb.png) You can only select real-time behaviors coming from the JS SDK and must set up a Profiles API Token to track those in your real-time segment.You must set the Time frame "within" value to greater than zero. 1. After finishing setting up your rules, select Save. 2. Next, set up your [Profiles API Token](/products/customer-data-platform/audience-studio/profiles/create-a-profiles-api-token).