Overview
Document AI produces a status for each uploaded document from two layers of rules, and the per-document statuses combine into the feature status using the precedence Declined > In Review > Approved.- Basic rules — built-in checks, each mapped to a configurable action:
DECLINE,REVIEW, orNO_ACTION. - Custom status rules — your own conditions on any extracted field, including cross-references against other steps.
Basic rules
Each rule below is detected automatically during extraction and forensic analysis. Configure the action for each in the Document AI feature’s Rules tab.
The name mismatch check compares the document’s marked name field against the verified subject using a 0–100 score: on a person (KYC) workflow against the verified ID (and the expected details supplied at session creation), and on a business (KYB) workflow against the verified company (the registry-matched company, or the expected company name). Set the cut-off with
document_ai_name_match_score_threshold.
Custom status rules
Custom status rules let you set a status (Approved, In Review, Declined, or No Action) when a condition on an extracted field is met. Each rule is:
value_type: "field" and point value at another field path:
Declined/In Review back up. No Action rules are recorded but leave the status unchanged.
Extracted fields are addressable as
document_ai.<field_key> using the key you configured for each field. Number and date fields support comparison operators (greater_than, less_than, date ranges); text fields support equality, contains, and fuzzy_match.