Skip to main content

Advanced Rule-based Automation in Bookkeeping

Introduction

Advanced rule-based automation in Spendesk is designed to streamline your pre-bookkeeping process, significantly reducing the time spent on data entry. This feature allows you to set up conditions that automatically pre-fill your payables in the Bookkeep > Prepare section.

Rules with a supplier, requester, amount or document type condition also prefill invoices and purchase orders before they reach Bookkeep. See "Rules that prefill invoices and purchase orders" below.

It provides you with comprehensive control, ensures consistent categorisation, and dramatically cuts down the hours spent on pre-bookkeeping tasks.

Who's it for?

This feature is ideal for

  • Accountants and bookkeepers who aim to minimise manual data entry during pre-bookkeeping in the Bookkeep > Prepare section.

  • Requesters who can benefit from automatic filing of their analytical fields based on supplier, amount, requester or document type upon invoice submission

Creating a New Rule

Creating a rule is straightforward. Before diving into the process, let's define the key components of a rule:

  • Conditions: Define which payables the rule will apply to.

  • Outputs: Specify the field values for payables that meet the rule's conditions.

There are two types of rules based on the number of conditions:

  • Single Condition Rules (SCRs): Rules with one condition.

  • Multiple Condition Rules (MCRs): Rules with more than one condition.

Steps to Create a Rule:

  1. Navigate to Settings > Accounting Setup > Rule-based Automation.

  2. Click Create a Rule.

  3. Name your rule and select an icon to help identify it among others.

  4. Set your conditions for which payables you want to apply the rule to

  5. Set your outputs for this rule, meaning what field values do you want to prefill when this rule triggers on a payable

  6. If you're ready to publish the rule, click 'Publish and apply'. If not, click 'Save as draft' so that you can come back to it later and edit before publishing.

Publishing and Unpublishing

You can easily control which rules are published or unpublished, by using the 'Active?' toggle in the rules table.

Note that when you unpublish a rule, any payables that meet the conditions for the rule that have not yet been saved in Bookkeep > Prepare will immediately lose the output prefills from that rule.

And, as soon as you publish a rule, any payables that meet the conditions for the rule that have not yet been saved in Bookkeep > Prepare will immediately display the output prefills from that rule.

Rule Hierarchy

It's possible for multiple rules to apply to the same payable, as rules aren't necessarily mutually exclusive.

When a payable meets the conditions for multiple rules that have outputs for different fields, then these rules are not 'competing', and both rules will apply in their respective output fields.

But, when a payable meets the conditions for multiple rules that have different outputs for the same field, then these rules are 'competing'.

In these cases, the rules that are more granular (those with more conditions) take precedence. This is illustrated below:

So, for example, a rule with three conditions will override a rule with one or two conditions. This is useful for setting broader default scenarios with SCRs, allowing MCRs to handle more specific cases.

Note that when you have competing Single Condition Rules (rules with 1 condition), then SCRs with a Supplier condition has a higher hierarchy than Expense Category, and Expense Category has a higher hierarchy than other condition types. This follows the same logic as the previous AutoCat feature.

Even with this hierarchy, you might still encounter scenarios where multiple rules of the same hierarchy level compete at the field level. The next section explains how this is managed.

Handling Multiple Rule Outputs

At times, multiple rules of the same hierarchy may suggest different outputs for the same field in Bookkeep > Prepare or All Expenses > All Payables. Here's how it's handled:

  1. The output from the most recently created rule will be pre-filled.

  2. A new indicator under the field will notify you of different rule outputs.

  3. Click the indicator to see a dropdown with details of the different outputs.

  4. Choose your preferred output by clicking on it.

  5. Once selected, ensure you save the payable to apply the change.

Fields with existing user value

If there’s a rule value for a field, but the Requestor has already entered something, we will keep the requestor's value. To make you aware of the rule output value, we display it to you in a callout, giving you the option to easily update the field, or to ignore it.

Save the Payable to Accept Rule Outputs

When a rule output appears in a field, marked by a ‘⚡’ icon, it is not saved until you save the payable or mark it as ready.

Rules that prefill invoices and purchase orders

Your accounting rules now fill the cost centre, expense category and custom fields before an invoice reaches Bookkeep. Account owners and controllers set these rules in Settings > Accounting Setup > Rule-based automation.

Where rules apply

  • Inbox: invoices, e-invoices and credit notes.

  • The Submit an invoice form.

  • Purchase orders, when you create or edit one.

  • Review and Approval show which values came from a rule.

Rules run when the form opens and when the supplier, amount including tax, currency, team or invoice date changes. Other currencies are converted to your company currency first.

Which rule wins

The order is the same as in "Rule Hierarchy" above:

  • A rule with more conditions wins over a rule with fewer.

  • Among one-condition rules, a "supplier is" rule wins.

  • If two equally strong rules give different values, the most recently created one applies and "2 rules apply" shows.

A rule only fills a field that is empty or holds a default or suggested value. It never replaces a value entered by hand. If a rule stops matching, the field goes back to its default or suggested value.

Requester rules use the person the invoice is assigned to. For an unassigned inbox invoice, they use the person processing it.

What you see

  • Lightning icon: a rule filled this field. Hover over it to see the rule's name.

  • "2 rules apply": open it to see each rule, with its own icon, and pick one.

  • Rule suggestion: when a value entered by hand differs from the rule's, a box below the field says which value the rule suggests. Choose "Update with rule value" or "Ignore". In Review, updating the cost centre also brings the same rule's expense category.

  • "Accelerate this step with automation": shown to account owners, admins and controllers in the inbox and Review until they close it, even if your company already has rules. "Learn more" opens the rule settings in a new tab.

Saving a draft

  • Inbox: a picked rule and an "Ignore" are kept after More actions > "Save draft". When the invoice is assigned to someone else, rules run again for that person. In Review, an ignored suggestion can show again.

  • Submit an invoice form: "Save as draft" keeps which values came from a rule, but not an "Ignore".

Good to know

  • Only rules whose conditions are all on supplier, requester, amount or document type run here. Rules with any other condition, such as expense category, cost centre or custom field, still apply only in Bookkeep > Prepare.

  • Only the cost centre, expense category and custom fields are prefilled here. Other rule outputs, such as the expense account, still apply in Bookkeep > Prepare.

  • No rules apply while "Split on multiple dimensions?" is on.

  • A new supplier typed by name gets no supplier rule.

  • A purchase order decides its own fields: on a linked invoice, its values stay.

  • On a credit note, values copied from the original invoice stay.

  • If a value entered by hand differs from two tied rules, the box offers the newest rule only.

  • Drafts saved before this feature was turned on count as entered by hand.

  • Invoices submitted before then show no rule icons in Review.

  • The mobile app has no rule prefill.

Existing Customers - Note on Migration of Old Rules

If you were a customer in May 2025 when the Advanced Rule-based Automation feature launched, your existing Supplier and Expense Category rules (previously called AutoCat) will have been migrated.

These now appear in the new format under Settings > Accounting Setup > Rule-based Automation.

Note: Supplier and Expense Category rules that output to the same Expense Account are consolidated into a single rule, reducing the number of rules and simplifying management.

Here's an example showing 3 separate Supplier rules before the migration and the Single Condition Rule that is created after migration:

Feature Availability

All customers can create unlimited Single Condition Rules, but Multiple Condition Rules are only available on certain plans. You can check your credit level within the product when creating a Multiple Condition Rule (see screenshot below). If you are have any questions, or if you want to discuss upgrading your plan to access more Multiple Condition Rules, reach out to your CSM or Customer Support.

Did this answer your question?