# CRM Automations with the condition "Has the lead sent a message?"

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

Lead engagement is the heart of successful marketing and sales strategies. When a lead engages with your company, they show interest and open doors to conversion opportunities.

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 '*Did the lead send a message?*'.

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

Set the **settings**;&#x20;

<figure><img src="/files/e503a5ac58d64804f23e49b1a8e3ab554092b93a" 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 '**Start a ChatBot**'. Upon detecting that a lead sent a message, your ChatBot can respond promptly, improving the customer experience.

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

'**Send Message Template**': When a lead sends a message, you will send predefined message templates to ensure communications are consistent, professional, and effective.

Select the **ChatBot** that should be started when the lead sends the message and clicks on **Save**;&#x20;

<figure><img src="/files/9f0a22a36a048ce1316054d231850e81ef1b55a3" 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/ded82354b9a64c0579ebab5b41826ccbe454e29c" alt=""><figcaption></figcaption></figure>

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

{% 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-has-the-lead-sent-a-message.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.
