> 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/topicos/relacionar/fluxos-de-automacao/acoes/fluxo-de-automacao-exclusao-de-leads-via-segmento.md).

# Fluxo de Automação - Exclusão de Leads via Segmento

## Na SprintHub, temos a opção de fazer a exclusão de Leads em massa, caso ele possua uma ou mais tags.&#x20;

{% hint style="danger" %}
Atenção: ao excluir o(s) Lead(s), essa ação não poderá ser desfeita.
{% endhint %}

{% hint style="warning" %}
Leads que possuírem oportunidades nos funis não poderão ser excluídos. É necessário excluir as oportunidades antes de realizar a exclusão do Lead.

Para excluir as oportunidades, veja esse artigo: [CRM - Excluindo Oportunidades](/topicos/geral/crm/crm-duvidas-comuns/crm-excluindo-oportunidades.md)
{% endhint %}

<figure><img src="/files/11x10QLQk6YPar8zEFMF" alt=""><figcaption></figcaption></figure>

## Para criar o fluxo siga os seguintes passos:

1. Entre no serviço “Fluxos de Automação”;

Ou basta digitar em “Encontrar serviço” e o mesmo já vai aparecer.

<figure><img src="https://lh7-us.googleusercontent.com/docsz/AD_4nXc4GAHmdo3yxPNRBQUCNKP7rEoU_n4NacAA4_qVhDOwsOYdPBTdXS30xA9HBIKrc5RNWBKlRjRWWy1OPzJiT7cdBZm2UckqfvG0Ex8nGxqzJLPW1CDZPCqzPmT4cJVd2FmzRiesABsr_5bIMHI65KKWjQAb?key=e0ZeGKkErcUwKkUi3w1oKg" alt=""><figcaption></figcaption></figure>

2. Já em Fluxos de Automação, clique no botão “Novo”;<br>

<figure><img src="https://lh7-us.googleusercontent.com/docsz/AD_4nXfczxOXrIqfNIm3VSpux_ues72xFGPu2Xe1SNqaicIjkDfqQK3uCY5UQcYQ7_drBAZW_RKmocLWNKDwW169__us7moGw_U15GPen4ocr9v1BFD9YbLh2ieiHxSU282G5aY7fP7G0kaBHFvgaFUBT_Ni-XA?key=e0ZeGKkErcUwKkUi3w1oKg" alt=""><figcaption></figcaption></figure>

3. Insira as informações e dados do seu fluxo;

<figure><img src="https://lh7-us.googleusercontent.com/docsz/AD_4nXcEKMxHuLHJb8etbqB2QIMiI89D6PR0k14pEcNNwUtVkLzVZxVbwEIvtVSt-8A5LZ8BEjyXEBld2wxJuTmezbb9f_et5AGAL11KLJV-GaPDNkol1pm4u-dVdKabR19fl9IERby6LaSPoHGpNNran2m2wT82?key=e0ZeGKkErcUwKkUi3w1oKg" alt=""><figcaption></figcaption></figure>

Opcional a colocação de categoria.

4. Clique em “Abrir Construtor”;

<figure><img src="https://lh7-us.googleusercontent.com/docsz/AD_4nXcm-2RzNoMvnIYGWfsD0v93xYNcYnlxlJ9OXBzS1L_ilyMxI4Ec6hiAI0FlmK_R5l3VAugEcWTCZmRbzq1tOIBrUpx2uOGo0UlhDyQ-2uIF4yBwj9XAoO94mWa-QQKK6Zci3KopLltECIS9zgBSY4w24jA?key=e0ZeGKkErcUwKkUi3w1oKg" alt=""><figcaption></figcaption></figure>

{% embed url="<https://youtu.be/sn44zj6kT3g>" %}

5. Feito isso, para ativar seu fluxo em “Publicado?”, ative para sim e depois clique em “Salvar” e depois em “Salvar e fechar”;<br>

<figure><img src="https://lh7-us.googleusercontent.com/docsz/AD_4nXdPlNC9iOiX0BEA1HQ2M90k21Gv9Q_4j9xRRFTbBD1l4Vd2UpvROYyCJ61lLK4AqZ5MZgaAt2r3C8MmGLkXds-fRMJJtSb24OGpMSLS-wYxk-62IjK-5-jmHhrQO4Wny7pTZ4grTSltmzmA5JuBeBTm_jdX?key=e0ZeGKkErcUwKkUi3w1oKg" alt=""><figcaption></figcaption></figure>

*Pronto! Seu fluxo de exclusão iniciará, e se os leads corresponderem a condição, serão excluídos.*&#x20;

{% hint style="danger" %}
*<mark style="color:red;">**Cuidado! Excluir o(s) Lead(s) é uma ação irreversível.**</mark>*
{% endhint %}


---

# 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/topicos/relacionar/fluxos-de-automacao/acoes/fluxo-de-automacao-exclusao-de-leads-via-segmento.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.
