> 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/general/crm/crm-automations/crm-automations-in-crm-with-the-condition-does-the-lead-have-a-phone-number.md).

# CRM - Automations in CRM with the condition "Does the lead have a phone number"

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FnJpHwkogOV7KXAFjrrYh%2Fcomposicao-isometrica-com-chatbot-no-laptop-pessoas-sorrisos-felizes_1284-63053.png?alt=media&amp;token=50085a66-91e5-499f-84e9-b043d4e7e289" alt=""><figcaption></figcaption></figure>

Go to the **CRM**, and click on **Automations**;

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FOIfwc72dGzjOrZPUFBiR%2Fimage.png?alt=media&amp;token=333e7681-ba21-4eb5-bfa5-4cc52e2bd6a2" alt=""><figcaption></figcaption></figure>

Define the **title** and the **condition**, which, in this case, will be '*Does the lead have a phone number?*'.

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2F4NbElVy73aYc65ZAYvyf%2Fimage.png?alt=media&amp;token=cb079d7d-2741-421d-ae18-8c46c7bb0877" alt=""><figcaption></figcaption></figure>

Define the **settings**;

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FOSrHMXLlXEiOmbJagBaN%2Fimage.png?alt=media&amp;token=62789395-2081-4a25-b322-7f9f1bff6f49" 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 WhatsApp to the lead**'. This will make leads that have WhatsApp receive a personalized message of your choice on WhatsApp.

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

**Update lead data:** This will ensure that whenever a lead has a phone number, the automation will automatically update its data.

Select the **account** that will send the messages, and enter the **message** that will be sent and click **Save**;

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FxlPFRb0D1H5MouuSVNbV%2Fimage.png?alt=media&amp;token=1d24c43e-7cb8-45c5-8444-4691c2b6f2eb" 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="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FtGUGR9izElT4Pczxa2E3%2Fimage.png?alt=media&amp;token=32fbde48-59f3-4861-b7f1-df6714e113fc" alt=""><figcaption></figcaption></figure>

<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
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/general/crm/crm-automations/crm-automations-in-crm-with-the-condition-does-the-lead-have-a-phone-number.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.
