# Create a New Rule

**Create a new rule**

To create a new Rule, navigate to the [Automation page](https://app.integraltreasury.xyz/rules) in the left sidebar. Find and click on the “Add Rule” button in the top right corner. Give your Rule a name that will be easy to recognize, for example: *Secondary sale royalty income*.

**Define the rule conditions**

Under Conditions, specify the transaction characteristics specific to your rule. By default, Transaction Type will already be selected. Add more conditions using the (+) widget on the right. Make sure to make these conditions as specific as possible.

For example,

* `Transaction Type → Deposit`
* `From → Contact → Seaport`
* `To → Wallet → Royalties Wallet`

**Define the rule actions**

Under Actions, we identify what we want the rule to do. By default, “Categorize transaction as…” will be the default action. The dropdown will be your Chart of Accounts. In our example, the account might be Secondaries Income.&#x20;

You can optionally automatically mark all transactions affected by this rule as “Ready to Sync” if you are very confident in the results.

**Preview the transactions that will be affected**

To make sure we set up our rule correctly, it’s very important to preview which transactions will be affected by the rule. When setting up a new rule, you will be prompted to Preview the rule before creating it.

Review the Preview, make sure the transactions shown are correct or adjust the rule conditions.

**Apply the Rule**

If the Preview results look good, it’s time to create the rule and apply it to your transactions!

{% hint style="info" %}
Only transactions that have not already synced to your accounting software or marked as ‘ready to sync’ will be affected. Integral does not overwrite anything already posted to Quickbooks/Xero.
{% endhint %}

Once your rule is created, you will see it appear in the [Automation page](https://app.integraltreasury.xyz/rules). You can edit, disable, or delete a Rule using the : icon on the right. See [**Manage your Rules**](https://www.notion.so/Rules-Automate-your-bookkeeping-ad30c7bb072741299d243e78f7bbe6db) for details.

To see which transactions have been affected by the rule, go to the “Categorized” tab in the Bookkeeping page and look for the autmation icon in the Category column.
