> For the complete documentation index, see [llms.txt](https://brainence.gitbook.io/advanced-order-allocator/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://brainence.gitbook.io/advanced-order-allocator/overview/rules-engine-configuration.md).

# Rules Engine Configuration

**Open the Rules Engine section in your Linnworks account**

<figure><img src="/files/pJToHpl0M1JPsHmR8ixW" alt=""><figcaption><p>Click on Rules engine to start configuring it</p></figcaption></figure>

**Add a new rule on your account for the Allocator**

<figure><img src="/files/hShQdkVyZl2ILU0H8qt4" alt=""><figcaption><p>Click on Add new rule button</p></figcaption></figure>

**On the opened screen add the conditions for the orders you would like to be moved to the predefined in the app config locations** &#x20;

<figure><img src="/files/5DAYPX64OMUBUkG60q3w" alt=""><figcaption><p>Add a condition name and the conditions you prefer. Click on Save condition button</p></figcaption></figure>

{% hint style="info" %}
In case you would like all the orders to be considered by the app, leave the condition empty or add some general one that is true for all the orders.
{% endhint %}

{% hint style="info" %}
You can create multiple app configurations and use them on different orders based on the conditions predefined in the rules engines.
{% endhint %}

**After the condition is predefined, add an action for the rules engine. You need:**

* **to add a friendly action name**
* **to select Action type - Execute a macro**
* **to select Action value - the name of** [**the configuration created for a macro**](/advanced-order-allocator/overview/macro-configuration.md)

<figure><img src="/files/gha3g9q2aN8HZUpAn8oc" alt=""><figcaption><p>Configure the action for rules engine and save it</p></figcaption></figure>

**After you save the Rules engine config, you will be redirected to the list of your rules engines. Make sure you enabled the rules engine**

<figure><img src="/files/AIoeYUNxTfMIuzdAFExO" alt=""><figcaption><p>Enable the rules engine</p></figcaption></figure>

### The application is ready for use. The rules engine will be triggered when the order appears in Linnworks and will move the order to the location with the available stock or will split it between the location with the stock available if this is configured in the app.
