# CRM Automations with the condition "The lead has an email"

<figure><img src="/files/64912d254f13e0e717d5e0e4340257cfae931ba7" alt=""><figcaption></figcaption></figure>

In a CRM, the ability to filter opportunities based on the presence of an email address is crucial for effective marketing and sales strategies.

Access the **CRM**, and click on **Automations**;

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

Set the **title** and the **condition**, which, in this case, will be '*The lead has an Email*'.

<figure><img src="/files/1f6a71427a917b7cc01c506f6b59f127374f513f" alt=""><figcaption></figcaption></figure>

Set the configuration; **Yes** or **No**.

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

Configure the **condition** that must be met for the **automation to be triggered**.&#x20;

Determine what you want the CRM to do when the condition is met.

In the example, we will use '**Send an Email to the lead**'.  That way, whenever a lead associated with an opportunity has an email address available, they will automatically receive an email.

*But you can set other conditions, such as:*

'**Modify the Lead segments'**: You will be able to segment your lead however you prefer, including the possibility of placing them into specific segments to receive targeted emails.

<figure><img src="/files/7b5d430316492c1b09a3172a7d4d8fa64a1ca675" alt=""><figcaption></figcaption></figure>

Select the **Email** that you want to send and click on **Save**;&#x20;

<figure><img src="/files/02f73f3e2e4a8f49cb4898d6342e16d735b6d8d1" alt=""><figcaption></figcaption></figure>

After saving your automation, click on the '<mark style="color:green;">**Play**</mark>' icon to activate it.&#x20;

<figure><img src="/files/7374c3d2e803e9bc21ef70a15577dbe38ccfe4ee" alt=""><figcaption></figcaption></figure>

*With the automation configured, leads from opportunities that have an email address will automatically receive the email you defined to be sent in the automation.*

<mark style="color:purple;">**See similar articles:**</mark>

{% content-ref url="/pages/80e6c8e4d3ddf5ed225a8e8dff4239bc17b5bde0" %}
[CRM - Automations](/en/topics/general/crm/crm-automations.md)
{% endcontent-ref %}

{% content-ref url="/pages/4a1c7e56fdf5b057a091070b52862d8b0cbe813f" %}
[CRM](/en/topics/general/crm.md)
{% endcontent-ref %}


---

# 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/general/crm/crm-automations/crm-automations-in-crm-with-the-condition-the-lead-has-an-email.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.
