> 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).

# 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.


---

# 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-how-to-avoid-duplicate-opportunities-automatic-creator.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.
