FeaturedLegal & Compliance#Skills#Python#PII#Redaction#Legal#Compliance

PII Redactor (Agent Skill)

An agent runs a bundled Python skill that redacts emails, phone numbers, card numbers, and SSNs from text before it is shared.

Workflow at a glance

The full canvas, before you import it

Click any node to see its config.

#Skills#Python#PII#Redaction#Legal#Compliance

Click a node to select it — same as the Heym editor; the panel shows its settings.

3 nodes · Free & source-available

PII Redactor (Agent Skill)

Scrub sensitive identifiers before text leaves your workflow. This Heym Agent Skill redacts emails, phone numbers, card-like numbers, and SSN-like numbers using deterministic Python patterns, then returns the cleaned text and a count of what was removed.

What this workflow does

  1. rawText holds the text to scrub
  2. redactionAgent calls the bundled pii_redactor skill
  3. The skill replaces matches with labeled placeholders and counts each type
  4. redactedResult returns the cleaned text and counts

Why a skill

Redaction runs in Python with explicit patterns, so it is repeatable and does not depend on the model deciding what is sensitive. No API key required.

Setup

Open redactionAgent, pick an LLM credential, paste text, and run. This is a helpful first pass, not a compliance guarantee — review output for context-specific identifiers.

How to import this template

  1. 1Click Import → Copy JSON on this page.
  2. 2Open your Heym and navigate to a workflow canvas.
  3. 3PressCmd+V/Ctrl+V— nodes appear instantly.
  4. 4Add your API keys in the node config panels and click Run.
More workflow templates
View all templates