# #3: Create automation rules

Automating the labeling rules for crypto transactions allows thousands of transactions to be accurately categorized, reducing the need for manual effort by over 80%. By utilizing sophisticated algorithms and machine learning techniques, these mappings can be performed in a fraction of the time it would take a human to manually sort and categorize each transaction. This automation not only saves time and energy, but also reduces the potential for human error and improves overall accuracy.<br>

**Automations** are available via side menu:

<figure><img src="https://1216418940-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRGdiePSgjhiR8UTUPtuO%2Fuploads%2FifO6DRqhbz5UVq7F9BK5%2Fauto.png?alt=media&#x26;token=a0d2dfaa-a96b-4e5d-9690-78f099191c46" alt="" width="249"><figcaption></figcaption></figure>

## Adding your first automation.

<figure><img src="https://1216418940-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRGdiePSgjhiR8UTUPtuO%2Fuploads%2FXaljz2805nj7xyS0wKJJ%2FScreenshot%202023-06-29%20at%2020-01-26%20SMPLR%20Dashboard.png?alt=media&#x26;token=ee5eb7e7-38b6-49e3-82a5-f6b13d9192c7" alt=""><figcaption></figcaption></figure>

1. Add a **name**
2. Select an **event** that will trigger an automation:
   1. incoming transaction added
   2. outgoing transaction added
   3. any transaction added
3. Add **conditions** and **operators**. Currently SMPLR supports:
   1. Account - transactions associated with one of synced account.
   2. Address - transactions associated with specific address *(your accounts should have transactions with this address to make automation work).*
   3. Asset - transactions associated with specific asset *(e.g. $ETH, $USDT etc.).*
   4. Contract - transactions associated with specific contact *(only previously added contacts available for selection).*
   5. Cost basis - value in selected currency, based on asset historical rate.
   6. Date of transaction - transactions within selected time frame.
   7. Status - transaction status *(e.g. Success, Failed, Cancelled)*.
4. You can **skip** conditions or **combine** several conditions within automation.
5. Add a resulting **action** that will be applied to transactions that meet the conditions.

<figure><img src="https://1216418940-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRGdiePSgjhiR8UTUPtuO%2Fuploads%2FSvgZRz7ctRdCvOei2tTu%2FScreenshot%202023-06-29%20at%2020-06-04%20SMPLR%20Dashboard.png?alt=media&#x26;token=5ad260d1-98d7-4b0a-809f-f004e17c21d1" alt=""><figcaption></figcaption></figure>

After finishing with creating rules, all you need to do is check for conflicts, to be sure that automation rules are not overlap - in case everything is fine, you will get a number of previously added transactions that fall under the rules.

<figure><img src="https://1216418940-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRGdiePSgjhiR8UTUPtuO%2Fuploads%2FH8peZ358aVEbCfU2yvH1%2FScreenshot%202023-06-29%20at%2020-08-13%20SMPLR%20Dashboard.png?alt=media&#x26;token=dd3f7216-2149-4bbf-a301-3c5f6d5d0716" alt=""><figcaption></figcaption></figure>

Last step is to save and activate an automation. There are several options available:

1. **apply to history transactions** - all previously added transactions that fall under selected filters will be mapped to selected category. *Uncheck in case you want to apply the rule only to upcoming transactions.*
2. **activate automation upon saving** - run automation immediately after saving, the automation will start "listening" to the incoming transaction flow and checking them for compliance with selected rules. Automation will be active until you deactivate it. *If you want to save the automation as a draft for launching later, uncheck the box.*

## Manage automations.

<figure><img src="https://1216418940-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRGdiePSgjhiR8UTUPtuO%2Fuploads%2FnqBYpD0PUV52Sn9FAtoW%2FScreenshot%202023-06-29%20at%2020-18-58%20SMPLR%20Automations.png?alt=media&#x26;token=b1ac1e1a-3b6d-45d7-b8de-8dc45233dc36" alt=""><figcaption></figcaption></figure>

The list of created rules is available on the *automations* page. You can view active rules, temporarily deactivate outdated ones, or delete unnecessary ones.

<figure><img src="https://1216418940-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRGdiePSgjhiR8UTUPtuO%2Fuploads%2FEHeVV8JFnMleX4m7zHi2%2FScreenshot%202023-06-29%20at%2020-21-55%20SMPLR%20Automations.png?alt=media&#x26;token=6b9bdd60-1eb1-4dc8-8e75-d3fece08774a" alt="" width="563"><figcaption></figcaption></figure>
