Skip to main content
Rules and Automation

Automating Your Workflow with Rules

Use rules to let Neuro tag, route, update and notify on your orders, products, fulfilments and invoices automatically.

Last updated 14 days ago

What rules are and when to use them

A rule tells Neuro to do something for you when an event happens. For example, when an order is created and its total is over a set amount, Neuro can add a tag, put it on hold or email your team. Rules save you from checking every record by hand and make sure the same decision is applied every time.

Each rule has four parts:

  • Triggers: the events that make the rule run, such as an order being created or a product's quantity changing.

  • Conditions (optional): checks on the record, such as "Shipping Method is Express". Without conditions, the rule runs every time it is triggered.

  • Then Actions: what Neuro does when the conditions match.

  • Else Actions (optional): what Neuro does when the conditions do not match.

You find rules under Automations > Rules in the side menu.

Before you start

  • Rules are available on selected plans. If you see a lock icon or an upgrade prompt, contact your account manager or Neuro Support.

  • Some actions, such as Set Plugin and the item replacement actions, only appear if your plan includes them.

  • Think about which records the rule should affect and try it on a small number of records first.

The Rules page

The Rules page lists all your rules with these columns:

Column

What it shows

Priority

The order rules run in. Lower numbers run first. You can type a new number straight into this box.

Rule Name

The name you gave the rule.

Triggers (count)

How many trigger events the rule uses.

Conditions (count)

How many conditions the rule has.

Actions (count)

How many actions the rule has.

Active

A switch to turn the rule on or off.

Actions

Buttons to Edit, Duplicate or Delete the rule.

At the top of the page you also have:

  • Create a Rule: build a rule step by step.

  • Create with AI: describe the rule in plain words and let the AI Rule Builder draft it (see "Creating Rules with the AI Rule Builder").

  • Transaction Records: opens the rule logs, so you can see what each rule did.

You can search the list with Search by Rule Name.

Rules page with Create a Rule, Create with AI and a rule row highlighted
The numbers match the steps below.

Steps shown in the screenshot:

  1. Create a rule yourself.

  2. Create a rule with the AI Rule Builder.

  3. Each rule shows its priority, counts, Active switch and edit, duplicate and delete icons.

Creating a rule

  1. Go to Automations > Rules and click Create a Rule.

  2. Under Rule Info, enter a Rule Name, for example "Hold high-value orders".

  3. Under Triggers, pick an Object (for example Order) and one or more Event values (for example Created). Click Add another trigger if the rule should also run for another object.

  4. Under Conditions, click Add Condition Group if you only want the rule to act on some records. For each condition choose:

    • Condition Type: the record to check, such as Order or Order Item.

    • Condition Data: the field to check, such as Total or Shipping Method.

    • Operator: how to compare, such as Greater than or Contains.

    • Value: what to compare with. Some operators, such as Is empty, show "No value needed".

    Click Add Condition to add another condition to the same group.

  5. Under Then Actions, choose an Action Type and an Action, then fill in the fields that appear. Click Add action to add more.

  6. If you added conditions, you can also add Else Actions with Add else action. These run only when the conditions do not match.

  7. Click Save Changes.

New rules are saved as inactive. Turn the rule on with the Active switch on the Rules page, or with the Active switch at the top of the rule's page.

Create a Rule form with the rule name and the trigger object and event highlighted
The numbers match the steps below.

Steps shown in the screenshot:

  1. Name the rule.

  2. Choose the object and the event that starts it.

Rule form with a condition group, a Then action and the Save Changes button highlighted
The numbers match the steps below.

Steps shown in the screenshot:

  1. Add the conditions that must match.

  2. Add the actions to run.

  3. Click Save Changes.

How condition groups work

  • All conditions inside one group must match (AND).

  • Groups are joined with OR, so the rule matches if any one group matches.

  • Use Duplicate Group to copy a group and change one value, which is handy for "this OR that" rules.

Running actions in order

Actions run in the order they are listed. Drag an action by its handle to move it up or down. Then and Else actions are ordered separately.

What a rule can work with

When you pick a trigger Object, the Condition Type and Action Type lists show the records linked to it.

Trigger object

Records you can check and act on

Order

Order, Order Item, Fulfillment, Plugin Order, Webhook Order

Order Item

Order Item, Order, Plugin Order Item

Fulfillment

Fulfillment, Order

Product

Product, Channel Product, Plugin Product

Channel Product

Channel Product, Product

Plugin Product

Plugin Product, Product

Invoice

Invoice

Plugin Order

Plugin Order, Plugin Order Item, Order

Plugin Order Item

Plugin Order, Plugin Order Item, Order, Order Item

Webhook Order

Webhook Order, Order

For example, a rule triggered by an order can check the order's items and change the order's fulfilments.

Trigger events

Each object offers its own events:

Object

Events

Order

Created, Updated, Deleted, Manual, Rule, When Sending To Plugin, When Sending To Webhook

Order Item

Created, Updated, Deleted, Rule

Fulfillment

Created, Updated, Deleted, Manual, Rule

Product

Created, Updated, Deleted, Api Quantity Updated, Total Quantity Updated, Manual, Rule

Channel Product

Created, Updated, Deleted, Quantity Updated, Manual, Rule

Plugin Product

Created, Updated, Deleted, Quantity Updated, Manual, Rule

Invoice

Created, Updated, Deleted, Manual, Rule

Plugin Order

Created, Updated, Deleted, Manual, Rule

Plugin Order Item

Created, Updated, Deleted, Manual, Rule

Webhook Order

Created, Updated, Deleted, Manual, Rule

What the special events mean:

  • When Sending To Plugin and When Sending To Webhook run just before Neuro sends an order to a plugin or a webhook. Once you pick one of these, other order events are disabled for that trigger, and the other way round.

  • Manual marks a rule for running by hand from a list page (see "Running rules manually" below).

  • Rule lets another rule start this one with the Trigger Rules action.

Conditions and operators

The fields under Condition Data depend on the record type. For an order they include things like Total, Shipping Method, Payment Status, Tags, Order Item SKUs, Total Order Items (Including Kits) and the shipping and invoice address fields.

The operators offered depend on the field. The main ones are:

Operator

Use it for

Is / Is not

An exact match, for example a payment status.

Contains / Does not contain

Part of a text, for example a word in the shipping method.

Starts with / Ends with

The start or end of a text, for example a SKU prefix.

Greater than / Greater than or equal / Less than / Less than or equal

Numbers and dates, for example an order total.

Is empty / Is not empty

Whether a field has a value at all. No value is needed.

In / Not in

A list of values. Type each value and press Enter to add it.

When a rule is triggered by an order and you add an Order Item condition, Neuro checks every item in the order.

When rules run

  • Rules run automatically in the background shortly after the trigger event. It can take a few seconds before you see the result.

  • When several active rules share the same trigger, they run one after another in Priority order, lowest number first.

  • Changes made by a rule's actions do not trigger other rules. If you want one rule to start another, use the Trigger Rules action.

  • When a new order arrives and you have an active rule triggered by Order > Created with order actions, Neuro holds the order with the sync status Rule Engine In Progress until those rules have finished. This stops the order being sent to a plugin or webhook before your rules have had their say. If no plugin was set by a rule, Neuro then assigns your default plugin where one is set.

  • Only active rules run.

Setting the priority

Priority decides the running order when more than one rule is triggered by the same event.

  • Type a number in the Priority box. Neuro saves it shortly after you stop typing. Only whole numbers above 0 are accepted.

  • Or drag rows up and down. Dragging works while the list is sorted by Priority.

  • New and duplicated rules are added at the bottom of the list.

Put the rules that decide something important, such as routing an order to a plugin, before rules that depend on that decision.

Editing, duplicating and deleting

  • Click a rule, or its Edit button, to open it. The rule page has three tabs: Settings, Activities (who changed the rule and when) and Transaction Records (what the rule did).

  • At the bottom of the Settings tab you see "Unsaved changes" until you click Save Changes.

  • Duplicate creates a copy that is inactive, so you can change it safely before switching it on.

  • Delete asks you to confirm with Delete Rule. A deleted rule cannot be recovered.

Running rules manually

You can run active rules on records you choose, for example to fix a batch of older orders.

  1. On the Orders, Products or Invoices page (and on several other list pages, such as an order's detail page, a channel's products and a plugin's orders and products), open the actions menu and choose Apply Rules Manually.

  2. Choose the Action Data Type (on the Orders page), then pick the Rules to run. The list shows active rules that have actions for that record type.

  3. Enter the IDs or SKUs, up to 500, or turn on Use File Upload to Enter Remote IDs and upload a CSV or Excel file with one value per line and no header row. Download CSV Template gives you an example.

  4. Click Apply Rules.

Manual runs can cause duplicate data in Neuro or in the system the data is sent to, for example if a rule sends an order again. Check what your rules do before running them manually. When you run rules on entered IDs, Neuro emails you when the run is complete.

Worked example: hold high-value orders

You want orders over 1,000 to wait for a manual check before they go to your warehouse.

  1. Rule Name: "Hold high-value orders".

  2. Triggers: Object = Order, Event = Created.

  3. Conditions: one group with Condition Type = Order, Condition Data = Total, Operator = Greater than, Value = 1000.

  4. Then Actions:

    • Action Type = Order, Action = Add Tag, Tags = "high-value".

    • Action Type = Order, Action = Set Sync Status, New Sync Status = On Hold.

  5. Click Save Changes, then turn the rule on with the Active switch.

Place a test order (or use Apply Rules Manually on one order) and check the order's tags and sync status.

Good to know

  • New rules are always inactive until you switch them on.

  • Without conditions, a rule acts on every record that triggers it. Double-check before switching such a rule on.

  • Keep rule names clear, for example "Route EU orders to Warehouse B", so the logs are easy to read.

  • Each action's own fields, and what every action does, are described in "Rule Actions Reference".

Troubleshooting

The rule did not run. Check that the rule is Active, that the trigger event matches what happened (for example Created and not Updated), and that the conditions match the record. Open Transaction Records to see whether the rule ran and what each action returned.

An action I expect is missing from the list. Some actions only show for certain record types, some depend on your plan, and Replace Order Items (New Version) only appears when the rule's only triggers are When Sending To Plugin or When Sending To Webhook.

Saving fails with "Check: ..." in the message. The message names the part of the rule that needs attention, for example "Action 2 (shipping method)". Fill in the missing field and save again.

Two rules change the same thing. The rule that runs last wins. Adjust the Priority so the rules run in the order you want.

Related articles

  • Rule Actions Reference

  • Creating Rules with the AI Rule Builder

  • Stock Allocation Rules

  • Neuro Transaction Records Guide