Skip to main content

Rule Conditions & Actions

Every rule in Mod AI is built from two parts: conditions that define when the rule triggers, and actions that define what happens when it does. This page is a reference for all available condition types, operators, and action types.

Conditions

Conditions define when a rule triggers. A rule only fires when all of its conditions are true.

Condition Types

Condition TypeDescriptionExample
Field comparisonCompare a document field to a specific valueInvoice number starts with "INV-2025"
Amount thresholdTrigger based on a monetary amountTotal amount greater than $1,000
Vendor matchTrigger for a specific vendorVendor is "Office Depot"
Date rangeTrigger based on an invoice dateInvoice date is in Q4
Contains textCheck if a field contains specific textDescription contains "consulting"
Is null / Is not nullCheck whether a field has a valuePO Number is not empty

Operators

The available operators depend on the field type, but the full list includes:

OperatorWorks WithDescription
EqualsText, number, dateExact match
Not equalsText, number, dateDoes not match
ContainsTextField includes the specified text
Starts withTextField begins with the specified text
Greater thanNumber, dateField value exceeds the specified value
Less thanNumber, dateField value is below the specified value
BetweenNumber, dateField value falls within a range (inclusive)
Is nullAnyField has no value
Is not nullAnyField has a value

Multiple Conditions

When a rule has multiple conditions, they are combined with AND logic -- all conditions must be true for the rule to fire. For example, a rule with these two conditions:

  • Vendor equals "Staples"
  • Total amount greater than $500

Only fires for Staples invoices over $500. A Staples invoice for $200 would not trigger it.

Actions

Actions define what happens when a rule's conditions are met. When a rule fires, all of its actions execute.

Action Types

Action TypeDescriptionExample
Set fieldSet a specific field to a valueSet Payment Terms to "Net 30"
Apply GL accountAssign a GL account to line itemsCode to account 5200 Office Supplies
Apply dimensionSet a dimension value on line itemsSet Department to "Marketing"
Flag for reviewAdd a review flag to the documentFlag invoices from new vendors
Add noteAttach a note to the documentNote: "Verify pricing against contract"
Skip validationBypass a specific validation checkSkip PO matching for this vendor

Multiple Actions

A single rule can have multiple actions. When the rule fires, all actions execute. For example, a rule could:

  1. Apply GL account 5200 (Office Supplies)
  2. Set Department dimension to "Operations"
  3. Add a note: "Standard monthly order"

All three actions happen together when the conditions are met.

Learn More

We use cookies to understand how visitors use our site.