# CRM - How to move opportunities by automation

You can also move pipeline or stage opportunities through CRM automations.&#x20;

In this example, we will create a stage automation in which when the lead replies to the message, we will move the opportunity to the next stage within the same pipeline.

Follow the step-by-step below:

1 - Go to CRM;

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2F4BjJiRPYbEoBubFa8zK6%2Fcrm1.png?alt=media&#x26;token=97b66812-5913-49d5-b515-6fc0d8624917" alt=""><figcaption></figcaption></figure>

2 - Click the automation icon, then click + to create a new automation in this stage.<br>

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FS7PpDx9PI9wdqrKI4rjj%2Fcrm2.png?alt=media&#x26;token=61652c9f-8292-4430-bbd2-7f491c88b156" alt=""><figcaption></figcaption></figure>

3 - Add a title, then set:&#x20;

* **Trigger**: When the lead sends a message >> Any message, and also set the message channel.
* **Action**: Change the opportunity's pipeline/stage >> Choose the destination and save.

Leave only a single trigger per lead, and the status open.

<figure><img src="https://684109703-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9FzUKkagBNy5uQ7AtGNa%2Fuploads%2FxVTFzJb7az6mkc4l8rEV%2Fcrmmm.png?alt=media&#x26;token=962c69b3-efde-420a-a420-fd592ca4e8e8" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
To create the automation to move the opportunity between pipelines, choose this same action “Change the opportunity's pipeline/stage”, select the pipeline and the pipeline stage.
{% endhint %}
