> 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-how-to-avoid-duplicate-opportunities-automatic-creator.md). Agents can also search and read this documentation through its [MCP server](https://docs.sprinthub.com/~gitbook/mcp).

# CRM - How to avoid duplicate opportunities (automatic creator)

By following this guide, you will learn how to create an automation in your CRM to avoid duplicating opportunities for the same lead.&#x20;

The automation will check whether the lead already has an opportunity in the pipeline and/or stage, preventing the creation of duplicate opportunities.

Follow the steps below:&#x20;

1 - Access the CRM and choose the pipeline. Click the automation icon and then click the “magic wand” icon so we can configure the automatic creation of opportunities.

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FjgspuWNd5VyIL0AjuFoE%2Foop1.png?alt=media&amp;token=a001b775-b7b7-4237-bbf9-d05b6add1c08" alt=""><figcaption></figcaption></figure>

2 - The magic wand is responsible for configuring the automatic creation of opportunities, and through it we will set conditions to block duplicate opportunities. Check it out below:

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2F8QVhdenzW8LIgEgRnH4X%2Fcrm1.png?alt=media&amp;token=0b2ef759-6180-48cb-8555-b7f27880a4a9" alt=""><figcaption></figcaption></figure>

* <mark style="color:purple;">**Trigger**</mark><mark style="color:purple;">:</mark> when the lead sends a message >> Any message.
* <mark style="color:purple;">**Condition**</mark><mark style="color:purple;">:</mark> choose the condition “Does the lead have an opportunity?” >> Does not have an opportunity.
* Configure the opportunity information, and NEVER forget to configure the owner type and assign it.
* <mark style="color:purple;">**Published?**</mark> YES when finishing the configuration.

{% hint style="info" %}
Pay attention to these two settings below:
{% endhint %}

* “Allow repeated creation in WON opportunities?”
* “Allow repeated creation in LOST opportunities?”

They allow or do not allow the creation of opportunities even if they already exist with WON or LOST status.&#x20;

Through this setting, you can also avoid duplicate opportunities with these conditions.
