> For the complete documentation index, see [llms.txt](https://limechatai.gitbook.io/limechat-product-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://limechatai.gitbook.io/limechat-product-guide/whatsapp-marketing/segments/creating-a-segment/segment-1-based-on-who-performed-an-event.md).

# Segment-1: Based on who performed an event

## Segment Definition

{% hint style="info" %}
Customers who purchased twice or more in the last 7 days
{% endhint %}

Let's breakdown this into the different filters:

1. Filter-1: Who performed the event: Order Created
2. Filter-2: Number of times the event was performed: Twice or more
3. Filter-3: When the event was performed: In the last 7 days

***

{% stepper %}
{% step %}
**Step-1: Choose the event**

Here we will choose `Order Created` to create our segment.

<figure><img src="/files/c3dQI7We9hZDnTHZPqam" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Step-2: Choose the number of times the event was performed**

Here we will choose `total`  `greater than equal to`  `2` , since we want people who purchased twice or more.

<figure><img src="/files/sIdCWQbOLxm0bQfsuMxP" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Step-3: Choose the time range**

Here we will choose `since 7 days` since we want people who made their purchases in the last week.

<figure><img src="/files/gt6erOrNEMqgABIUyVrg" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

**At the end, give a name to your segment & then click on `Save` to save it.**

<figure><img src="/files/050bEzEzXxJQ0Q788DFq" alt=""><figcaption></figcaption></figure>
