# CRM - Automation of recording "Won" or "Lost" opportunities in the Sales Funnel

<figure><img src="/files/52bd3af8740698645c017bc0dfe934e4e583bca6" alt=""><figcaption></figcaption></figure>

Inside the CRM, you can choose the desired funnel and stage. Next, we will create a **"Automation for the chosen Stage".**

In the template below of **"Stages",** we placed for **"Win Automation"** in the Stage of **Resolved** and for **"Loss Automation"** will be in the Stage of **Finished.**

<figure><img src="/files/586fc34325d3e2ff0e91e2a491acfe7952291291" alt=""><figcaption></figcaption></figure>

In the "Automation" and in the Stage of **"Resolved"(Win) or "Finished" (Loss) ,** we will click on the **"New automation for this stage".**

<figure><img src="/files/030b7592ef64a1414a21a6ce515774ed6f006cfe" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/657bc6d3ed2cdb17dcff2ae0b243091aa27fa357" alt=""><figcaption></figcaption></figure>

By performing the procedure mentioned above, we will assemble the automation.

{% hint style="warning" %}
Remembering that in this Automation, the **"Trigger"** and **"Condition"**, only the **"Action".**
{% endhint %}

To  **"Win Automation"** or **" Loss Automation"**

We will add the **"Action"** of **" Change Opportunity Status"**

Now, we will choose for "Win" or "Loss", also the "Reason".

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

<figure><img src="/files/02de9e77ca8bf9d6ae037d02cb326b7c460f41eb" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/6fe662b7dd6915b3493c0d88be37e985e148ec24" alt=""><figcaption></figcaption></figure>

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

{% hint style="warning" %}
It is important to remember that after refreshing the screen, the opportunity status will be automatically applied as Win or Loss.
{% endhint %}


---

# 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-automation-for-recording-won-or-lost-opportunities-in-the-sales-funnel.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.
