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.

Back to Catalog
Core Blockspii_mask

Block Preview

PII Masking

Detect and mask personally identifiable information

Usage

  1. Add the block to your workflow and connect it to the upstream step.
  2. Configure any required credentials or tokens in the inputs.
  3. Fill in required inputs and optional parameters for the run.
  4. Run a test execution, inspect outputs, and iterate before deploying.
  5. Deploy the pii_mask block with monitoring enabled in production.

Inputs (UI)

Input Text

long-input

Placeholder: Enter text or reference a variable containing text to scan for PII...

Layout: full

Masking Mode

dropdown

Layout: half

Options: Asterisk (***), Hash ([EMAIL_HASH_abc123]), Redact ([EMAIL_REDACTED]), Remove (delete PII)

PII Types to Detect

checkbox-list

Layout: full

Options: Email, Phone Number, Credit Card, SSN

Exempt Fields (comma-separated)

short-input

Placeholder: e.g., metadata.source, config.webhook_url

Layout: full

Inputs (API)

input

string

Required

maskingMode

string

Optional

piiTypes

json

Optional

exemptFields

string

Optional

Outputs

Primary response type:

{
  "maskedText": "string",
  "hasPII": "boolean",
  "matchCount": "number",
  "matches": "json"
}

Tool Access

pii_detect_and_mask
PII Masking | NowFlow Blocks