> For the complete documentation index, see [llms.txt](https://docs.sprinthub.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sprinthub.com/en/topics/relate/automation-flows/conditions/automation-flow-lead-segments.md).

# Automation Flow - Lead Segments

You can apply a condition in your automation flow to check whether the lead belongs to one of the selected segments.

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FiY49zo1E1WOoVRbQf3gJ%2Fundraw_career-development_f0n6.png?alt=media&amp;token=1af7c0c6-b22c-4d32-b84e-13c40a214a76" alt=""><figcaption></figcaption></figure>

To create your automation, go to "**Automation Flows**", and click "**Open Builder**".

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2Fgs08FxNMwe5SRMuZYMxY%2Ffl1.png?alt=media&amp;token=eed9b64d-e39c-4d94-9671-578ff3e40420" alt=""><figcaption></figcaption></figure>

Add a block of **"Condition"** and then select the condition **"Does the lead belong to a segment? Yes, but including one of the segments (Specify the segment)"**.

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FA6OzjGuxRNPH5isulsJv%2Fseg1.png?alt=media&amp;token=101bc27d-f41f-48e5-96d2-793c59609f70" alt=""><figcaption></figcaption></figure>

**Set up the actions that should be executed when the lead is in a specific segment.**\
For example, you can send a promotional email to leads that belong to the indicated segment. Since this is a qualified lead, the email can be personalized with information relevant to that group.

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FEfkUXjcFQy1Ts3xw0O7E%2Fenv.png?alt=media&amp;token=88c1bfb6-0f36-493f-8d5e-95ef26bf11ce" alt=""><figcaption></figcaption></figure>

You have several options to customize your actions according to your audience's needs.

[**Click here to access the guide on how to create segments**](/en/topics/relate/automation-flows/conditions/automation-flow-lead-segments.md)


---

# 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.sprinthub.com/en/topics/relate/automation-flows/conditions/automation-flow-lead-segments.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.
