> For the complete documentation index, see [llms.txt](https://docs.appmysite.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.appmysite.com/app/notifications/advanced-notifications/audience-segmentation.md).

# Audience segmentation

### How does audience segmentation work for advanced push notifications?

Along with creating advanced push notifications, AppMySite enables extensive audience segmentation. In the Audiences tab of the advanced notifications feature, you can create different audience segments according to your preferences.

{% embed url="<https://scribehow.com/shared/Audience_segmentation__1KMv2o1pR5yfPMsPZKewQQ>" %}

Here’s how it works:

#### Step 1: **Navigate to notifications**

* Navigate to [**Advanced > Notifications**](https://app.appmysite.com/app/advanced-notifications) from your app dashboard and click on the Audiences tab.&#x20;

#### Step 2: Create new segments

* You will find a group of premade segments. To create your own segment, click on **Create**.&#x20;
* Give your segment a name.&#x20;
* Next, you’ll find a set of filters using which you can create a segment. These filters are:&#x20;
  * First session: Filter users based on when their first session occurred.&#x20;
  * Last session: Filter users based on when their last session occurred.&#x20;
  * Session count: Select users based on the number of app sessions they have initiated.&#x20;
  * Total duration: Segment users based on the total duration that have been on the app.&#x20;
  * Language: Filter users based on their device’s default language.&#x20;
  * App version: Filter users based on the app version they’re on. You can use this filter to ask users to update their apps by segmenting users with the older version.&#x20;
  * Location: Segment users based on location. Enter the latitude and longitude of your target location and enter the radius (in meters). There is no upper limit on the radius.&#x20;
  * Country: Filter users based on their country.
* Click on Create when you’re done.&#x20;

{% hint style="success" %}
While sending your advanced notification, you can choose the audience you’ve created. This way, you can send notifications to a targeted segment as per your preferences.&#x20;
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.appmysite.com/app/notifications/advanced-notifications/audience-segmentation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
