> 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). Agents can also search and read this documentation through its [MCP server](https://docs.sprinthub.com/~gitbook/mcp).

# 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**](https://docs.sprinthub.com/en/topics/relate/automation-flows/conditions/automation-flow-lead-segments.md)
