ai_redactor
Detect and permanently redact sensitive information in documents with AI analysis. Supports PII, financial data, PHI, and custom criteria.
Instructions
Detect and permanently redact sensitive content using the Nutrient AI Redaction API. Reads input files from the local file system or sandbox (if enabled) and writes redacted output back locally.
Automatically detects and permanently removes sensitive information from documents using AI analysis. Detected content types include: • Personally identifiable information (names, addresses, phone numbers) • Financial data (credit card numbers, bank accounts, SSNs) • Email addresses and URLs • Protected health information (PHI) • Any custom criteria you specify
By default (when neither stage nor apply is set), redactions are detected and immediately applied. Set stage to true to detect and stage redactions without applying them. Set apply to true to apply previously staged redactions.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apply | No | Applies previously staged redactions. By default (when neither stage nor apply is set), redactions are detected and immediately applied. Mutually exclusive with stage. Typical workflow: run once with stage=true, then later run again with apply=true to apply staged redactions. | |
| stage | No | Stages redactions without applying them. By default (when neither stage nor apply is set), redactions are detected and immediately applied. Mutually exclusive with apply. Typical workflow: run once with stage=true, then later run again with apply=true to apply staged redactions. | |
| criteria | No | What sensitive information to redact. The AI will detect and remove matching content. Examples: "All personally identifiable information", "Social security numbers and credit card numbers", "Names, email addresses, and phone numbers", "Protected health information (PHI)". | All personally identifiable information |
| filePath | Yes | The path to the document to redact. Resolves to sandbox path if enabled, otherwise resolves to the local file system. | |
| outputPath | Yes | Path for the redacted output file. Resolves to sandbox path if enabled, otherwise resolves to the local file system. |