# Automation Flow - Lead Segments

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

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

<figure><img src="/files/ce093bff34135fb7af8ffcd67e5473db9f8c362d" 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="/files/f5378a0400883c4f17ec2a01b7569cb17f76b5d2" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/4022441f6a21fc6a7ba766f2d9899589d571e378" alt=""><figcaption></figcaption></figure>

You have several options to customize your actions according to the needs of your audience.

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


---

# 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/automation-flows/conditions/automation-flow-lead-segments.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.
