Skip to main content

Keyword Rule Automation

Set custom rules up at a supplier level to determine how bills are coded based on a keyword.

J
Written by Jessica Callaly

Keyword Rule Automation is useful when multiple locations or cost centres share one Lightyear account. For example, a restaurant group processing bills across several sites can use keywords such as addresses or postcodes to automatically apply the correct GL code or tracking category to each bill β€” without manually coding every line.

πŸ“Œ Note: Keyword rules apply to bills and credit notes only, not to purchase orders (POs).


Enable Keyword Rule Automation

Before setting up your rules, you need to turn on Keyword Rule Automation in your company settings.

  1. Click Settings, then click Company Settings.

  2. Locate Keyword Rule Automation, then turn it on.


Add keyword rules to a supplier

Once enabled, you can add keyword rules directly on a supplier record.

  1. Open the supplier you want to configure.

  2. Scroll to the Keyword Rule Automation table.

  3. Under Keyword Rules, enter a word or phrase that appears on bills from that supplier and is unique to that location β€” typically an address or postcode.

  4. Set the GL code or tracking category you want applied when that keyword is detected.

  5. Click Save.

πŸ€“ Tip: You can also copy a rule from one supplier to another, saving time by avoiding the need to configure each supplier individually.

The system scans for close matches to your keyword, ignoring punctuation, capitalisation, and spacing. An exact match is preferred.

Important: Do not set Keyword Rule Automation for suppliers where you use line-by-line rules at the product level. Keyword rules override product-level automation settings.

How it works

When a bill from that supplier is mapped and moves to your approvals tab, Lightyear scans the document for your keywords and automatically applies your chosen GL code and tracking category to every line on the bill.

Keyword rules override any defaults set at the supplier level or in the product list.


Limitations to be aware of

Keyword rules rely on Lightyear being able to detect a word or phrase in the document.

  • If a bill does not contain a recognisable keyword, it cannot be automatically coded using keyword rules.

  • Where keyword rules cannot be applied, consider using supplier-level defaults or conditional approvals at the supplier level as an alternative.


Frequently asked questions

Do keyword rules apply to purchase orders (POs)?

No, keyword rules apply only to bills and credit notes, not to purchase orders.

Where do I enable the keyword rules feature in Lightyear?

You can enable keyword rules by going to Company Settings and turning on Keyword Rule Automation.

Do keyword rules have to be added for every supplier individually?

Yes, keyword rules are set per supplier. You can copy a rule from one supplier to another to save time.

What if a bill does not contain a clear keyword?

If no detectable keyword is present, keyword rules cannot assign a code automatically. Use supplier-level defaults or conditional approvals instead.

Did this answer your question?