Skip to main content

Common Rule Examples

Here are real-world examples of rules you can create in Mod AI. Each example includes the goal, the conditions and actions you would configure, and the natural language equivalent if you prefer that approach.

Example 1: Auto-Code by Vendor

Goal: All invoices from Staples should be coded to GL account 5200 (Office Supplies).

ScopeVendor-specific: Staples
ConditionVendor equals "Staples"
ActionApply GL account 5200 (Office Supplies)

Natural language: "Code all Staples invoices to account 5200 Office Supplies"

This is the most common type of rule. If a vendor always provides the same type of goods or services, you can code their invoices automatically and skip the manual step.

Example 2: Route High-Value Invoices for Review

Goal: Flag any invoice over $10,000 for manual review before it proceeds.

ScopeGlobal
ConditionTotal amount greater than $10,000
ActionFlag for review

Natural language: "Flag all invoices over $10,000 for review"

Use this when your organization requires extra scrutiny on large payments. The flag ensures someone reviews the invoice before it moves to approval.

Example 3: Department-Based Coding

Goal: Invoices with "marketing" in the line item description should be coded to the Marketing department.

ScopeGlobal
ConditionLine item description contains "marketing"
ActionSet Department dimension to "Marketing"

This is useful when expense categorization depends on the content of the invoice rather than the vendor. You can create similar rules for other departments like IT, HR, or Operations.

Example 4: Skip PO Matching for Recurring Services

Goal: Monthly service invoices from your IT provider do not have POs. Skip the PO matching check so they are not flagged with a Missing Purchase Order notice.

ScopeVendor-specific: Acme IT Services
ConditionVendor equals "Acme IT Services"
ActionSkip PO matching validation

Natural language: "Skip PO matching for all Acme IT Services invoices"

This prevents unnecessary notices on invoices that you know will never have a PO, like monthly retainers, SaaS subscriptions, or utility bills.

Example 5: Auto-Code Shipping Invoices

Goal: Code all FedEx and UPS invoices to GL account 5300 (Shipping).

Since a rule can only have one vendor scope, create two separate rules:

Rule 1: FedEx

ScopeVendor-specific: FedEx
ConditionVendor equals "FedEx"
ActionApply GL account 5300 (Shipping)

Rule 2: UPS

ScopeVendor-specific: UPS
ConditionVendor equals "UPS"
ActionApply GL account 5300 (Shipping)

Natural language: Create two rules -- "Code all FedEx invoices to account 5300 Shipping" and "Code all UPS invoices to account 5300 Shipping."

tip

Review these examples and adapt them to your specific vendors and GL structure. Start with the vendors you process most frequently -- that is where rules save the most time.

Learn More

We use cookies to understand how visitors use our site.