Blocks
PII Masking
Detect and mask personally identifiable information
Automatically detect and mask PII (emails, phone numbers, credit cards, SSNs, etc.) in text data. Supports multiple masking modes: asterisk, hash, redact, or remove.
Core Blockspii_mask
Block Preview
PII Masking
Detect and mask personally identifiable information
Usage
- Add the block to your workflow and connect it to the upstream step.
- Configure any required credentials or tokens in the inputs.
- Fill in required inputs and optional parameters for the run.
- Run a test execution, inspect outputs, and iterate before deploying.
- Deploy the pii_mask block with monitoring enabled in production.
Inputs (UI)
Input Text
long-inputPlaceholder: Enter text or reference a variable containing text to scan for PII...
Layout: full
Masking Mode
dropdownLayout: half
Options: Asterisk (***), Hash ([EMAIL_HASH_abc123]), Redact ([EMAIL_REDACTED]), Remove (delete PII)
PII Types to Detect
checkbox-listLayout: full
Options: Email, Phone Number, Credit Card, SSN
Exempt Fields (comma-separated)
short-inputPlaceholder: e.g., metadata.source, config.webhook_url
Layout: full
Inputs (API)
input
stringRequired
maskingMode
stringOptional
piiTypes
jsonOptional
exemptFields
stringOptional
Outputs
Primary response type:
{
"maskedText": "string",
"hasPII": "boolean",
"matchCount": "number",
"matches": "json"
}Tool Access
pii_detect_and_mask