Skip to main content

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.
  1. Basic rules — built-in checks, each mapped to a configurable action: DECLINE, REVIEW, or NO_ACTION.
  2. 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:
To cross-reference another step, set value_type: "field" and point value at another field path:
Every matching rule contributes its status, and the strictest of those plus the base status wins (Declined > In Review > Approved). A rule can therefore raise severity but never pull a risk-driven 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.