> 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-common-questions/crm-how-to-mark-opportunities-as-lost-based-on-lead-creation-date.md).

# CRM - How to mark opportunities as "Lost" based on lead creation date

Imagine that you have a pipeline with opportunities linked to old leads, and you want to change the status of these opportunities to “Lost”.

Follow these steps:<br>

1 -  Access the pipeline;

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FQtyi5BZWCrUclAyigD6L%2Fcrm1.png?alt=media&amp;token=0437c7cd-fe00-4f03-acb7-71878534a21d" alt=""><figcaption></figcaption></figure>

2 - Choose the pipeline;

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FPUNcnP0rXdvnVklxjSzV%2Fcrm2.png?alt=media&amp;token=00c58915-d072-4fe8-be43-1347e644716d" alt=""><figcaption></figcaption></figure>

3 - Click the automation icon, choose “Pipeline Automation”, and finally select “\
\+ New automation”;

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2Fj4HPbkbXjr0zQyQxDccT%2Fcrm3.png?alt=media&amp;token=c4c13987-c45c-4934-9da6-af8692fa0670" alt=""><figcaption></figcaption></figure>

**NOTE: Pipeline automation will perform the action at all stages.**

But you can also configure this same automation per stage by clicking the + icon on the desired stage.

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2F18wWjj7YMMbvDIRJcobZ%2Fcrm4.png?alt=media&amp;token=deaf317d-a75a-496d-b38c-4c2c3d1043ac" alt=""><figcaption></figcaption></figure>

4 - Enter a title;&#x20;

* In + Condition, choose “The Lead Field Value >> Creation Date, configure according to the desired date;&#x20;
* In + Action choose “Change opportunity status” >> Choose the status and the reason.&#x20;
* Select YES for “Only a single trigger per lead, and click Save

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FNs4PxhWUlD3S9A3MTJCb%2Fcrm5.png?alt=media&amp;token=e5b90c58-6594-4c57-a54f-4e504a148bdf" alt=""><figcaption></figcaption></figure>


---

# 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-common-questions/crm-how-to-mark-opportunities-as-lost-based-on-lead-creation-date.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.
