# Real-time Segments

put Real-time segmentation can be used whenever users have to be segmented immediately based on an action, for example, as soon as the user purchases a product, you wish to send a Thank You email.

Additionally, you may define exclusion events, where you wish to evaluate if the user DOES NOT do something after doing the inclusion event. For example, as soon as the user adds a product to cart AND does not do product purchase in the next 2 days, follow up with a Whatsapp nudge.

## **Create Real time segments**

1. **Name:** Provide a name for your segment.
2. **Tags:** Select the tags to identify your segments.
3. **Segment priority:** Prioritize your segments according to your requirement.
4. In the Applied rules section, select the event which you want to track in as the inclusion event. You may optionally add more events in the inclusion criteria.
5. Then, add the event(s) which is to be evaluated as the exclusion criteria - when the users do not perform xyz event. You can add multiple events her as well.

<figure><img src="https://1782533751-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FazJDZwzHkmWIbkYOetQH%2Fuploads%2FP5rtfMSnzKStcpFCPoZ7%2Fimage.png?alt=media&#x26;token=2cabc134-2ebf-4b41-8d91-2fd2f7742ba4" alt=""><figcaption></figcaption></figure>

6. And add filters for the selected event using its properties as shown below.\
   ![](https://1782533751-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FazJDZwzHkmWIbkYOetQH%2Fuploads%2F8hlTvdjP9GwvpPDJaqRt%2Fimage.png?alt=media\&token=3f79949d-1cd6-4351-9838-f71012332156)
7.  You can include filters based on users’ attributes and past behaviour to the segment as well by selecting the checkbox **Filter on user attributes and past behaviour.**&#x20;

    <figure><img src="https://1782533751-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FazJDZwzHkmWIbkYOetQH%2Fuploads%2FOAXiC9LLcp8DmmiobK8N%2Fimage.png?alt=media&#x26;token=39f625de-f907-4821-89e6-caea8e282661" alt=""><figcaption></figcaption></figure>


8. **Communication type:** To communicate user in an entity level, **select the check box communicate at an entity level** and choose the entity to target.
   1. Further, select if the PII data has to be picked from the Entity of the profiles or from the profiles itself.
   2. Fallback (If PII is to be picked from Entity level) : Choose whether to drop the engagement or fallback to profile's PII.

### Edit Segment

Perform the following steps to edit the existing segments

1. Navigate to > S**egments** and click on any of the existing segments.
2. Once you click on the segment, a new window opens with a button **Edit segment** which allows to edit the segment descriptions, tags and conditions.

<figure><img src="https://1782533751-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FazJDZwzHkmWIbkYOetQH%2Fuploads%2FVkjWSejivCXOaKBWR90s%2Fedit%20segments%20-%20RT.gif?alt=media&#x26;token=4bc6b329-eb9e-4bd1-a8ae-bbb9a4a1050d" alt=""><figcaption></figcaption></figure>
