# Stop automation (https://docs.pulsarml.com/guides/settings/stop-automation)

Create rules that classify stops automatically, based on how long they last and when they usually happen.



You can create rules that classify machine stops automatically: stops under 5 minutes, lunch breaks, cleaning, setup, machine preparation and much more. Go to **Settings** > **Stops**, open the **Stop Automation** tab and start creating your own rules. The **Stop Triggers** list shows the rules you've already created.

<Callout title="Video">
  [Watch how to do it](https://app.trupeer.ai/view/6Vhz6usnn)

  , step by step.
</Callout>

## Create an automation [#create-an-automation]

Click **New Automated Stop Trigger**. Fill in the **Create New Automated Stop Trigger** window in this order.

<Steps>
  <Step>
    ### Name it and select the machines [#name-it-and-select-the-machines]

    Type a clear name in **Trigger Name**, for example *Lunch – AM*. Then, in **Assign Machines**, open **Select machines**, tick the machines the rule applies to and apply your selection.

    <Screenshot id="stop-automation-new-trigger" alt="The Create New Automated Stop Trigger window, with the Trigger Name field, the Assign Machines drop-down set to Select machines, the Set Trigger options with Based on stop duration selected, the Minimum duration of the stop and Maximum duration of the stop fields in minutes, the Stop Labels drop-downs General Cause, Specific cause and Default name, and the Cancel and Create Automated Stop Trigger buttons." width="562" height="682" />
  </Step>

  <Step>
    ### Create a trigger [#create-a-trigger]

    In **Set Trigger**, choose what the rule is based on:

    * **Based on stop duration:** enter the **Minimum duration of the stop** and the **Maximum duration of the stop**, in minutes.
    * **Based on stop duration and schedule:** enter the same minimum and maximum duration, then choose the **Days** the stop happens (**Mo** to **Su**, all ticked at first) and the time window in which it usually starts, with &#x2A;*Stop start (from)** and &#x2A;*Stop start (to)** (hour, minutes and AM or PM).

    <Screenshot id="stop-automation-schedule" alt="The Create New Automated Stop Trigger window with Based on stop duration and schedule selected, showing the minimum and maximum duration fields, the Days checkboxes Mo to Su all ticked, and the Stop start (from) and Stop start (to) times set to 12:00 AM and 11:59 PM." width="562" height="790" />
  </Step>

  <Step>
    ### Assign the stop causes [#assign-the-stop-causes]

    Under **Stop Labels**, choose the **General Cause** and **Specific cause** from your [stop catalog](/guides/settings/stop-catalog), and a value of the [additional stop label](/guides/settings/additional-stop-label) in the third drop-down, which carries that label's name (**Default name** until you rename it). Each drop-down has a search box. If you need a new label for this cause, create it in the stop labels or directly here with **Add new label** at the bottom of the drop-down.

    <Screenshot id="stop-automation-stop-labels" alt="The Create New Automated Stop Trigger window with the General Cause drop-down open under Stop Labels: a Search box, the list of general causes and the Add new label link at the bottom." width="562" height="790" />
  </Step>

  <Step>
    ### Create it [#create-it]

    Click **Create Automated Stop Trigger**.
  </Step>
</Steps>

The automation is created and appears in **Stop Triggers**, where you can edit it at any time. There is no limit to the number of automations you can create.

If you have trouble setting up stop automation or need help, contact your Customer Success representative or [raise a support ticket](/guides/getting-started/support-ticket) from the app.
