# Segments - Removing leads from segments based on the calendar

In this example, you have a meeting calendar created in SprintHub, and you want to include in segments the leads who schedule a meeting, the leads who attend the meeting, and those who do not attend. In addition, you want to remove those leads automatically if they no longer fit that segment.<br>

**For this strategy, we will use the SprintHub Calendar and Segments.**

Follow the tutorial below:

* First we will create the calendar. [To learn how to create a calendar, click here.](https://docs.sprinthub.com/topicos/relacionar/calendario-publico)

Next we will **create the segments:** Scheduled Meetings, Attended the Meeting, Did Not Attend the Meeting.

1 - Go to Segments

<figure><img src="/files/e705b5b5219e68f84b8d32106303688c6461db90" alt=""><figcaption></figcaption></figure>

2 - Click +New, add a Name: Scheduled Meetings.

<figure><img src="/files/428324280d8411c1012af252769b0296a31762b7" alt=""><figcaption></figcaption></figure>

3 - On the Filters tab, choose the following filter: “Does the lead have a scheduled meeting? >> YES >> And specify the calendar.

4 - Select YES for the option “Remove leads that no longer meet the filter?”

This feature ensures that leads who no longer have a scheduled meeting in this calendar are automatically removed from this segment.\
Click Save and Close.

<figure><img src="/files/d2ed9e72388e2c1b9aa7c41e426002f396e4596f" alt=""><figcaption></figcaption></figure>

**Now let's configure the next segment: Attended the Meeting.**

Repeat steps 1 and 2, and on the segment's Filter tab, click +New and add the filters:

* Click +New Filter and add the filter “The lead attended a meeting” >> Yes and specify the calendar.
* Select YES for “Remove leads that no longer meet the filter?”.

Click Save and Close

<figure><img src="/files/d76c01c050d8e0c43c79513f40f01d5d61bfc267" alt=""><figcaption></figcaption></figure>

**Finally, let's create the last segment: Did Not Attend the Meeting.**&#x20;

Repeat steps 1 and 2, and on the segment's Filter tab, click +New Filter and add the filters:

* Click +New Filter and add the filter “The lead DID NOT attend a meeting” >> Yes and specify the calendar.
* Select YES for “Remove leads that no longer meet the filter?”.

Click Save and Close.

<figure><img src="/files/5502ade8250c9bb2c5e3ac090c0b623a2c61c22e" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: 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:

```
GET https://docs.sprinthub.com/en/topics/relate/segments/segments-removing-leads-from-segments-based-on-calendar.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
