Skip to main content
Version: Studio 2.2.32

PII redaction

Personal data (PII) redaction replaces or removes personal data, such as counterparty contact names or client account numbers, at the stages of a Flow run you choose, and the run reports what it did. For anyone who builds or reads Flows that handle personal data. You set it per Flow version, in Flow settings and in the Redact PII step.

The deployment default is a floor that a Flow can tighten but never loosen. An Organisation administrator sets it when the deployment is created: Off on a standard deployment and Mask on a governed one unless they choose otherwise.

Set the Flow's protection​

  1. In the Flow editor, click Flow settings and find Personal data protection.

  2. Choose a Protection mode:

    ModeWhat it does (the product's own text)
    Use deployment default (named, for example "Use deployment default (Mask)")"Runs use the deployment default: Mask."
    No additional redaction"Nothing is redacted."
    Mask"Each value becomes a stable placeholder such as [EMAIL_1]; the same value gets the same placeholder within a run."
    Hash"Each value becomes a deployment-keyed token such as EMAIL:3f9a…; identical across runs, so files can still be joined."
    Drop rows"Rows that contain personal data are removed from CSV, JSON and Parquet files; free text is hashed."
  1. After choosing Mask, Hash or Drop rows, open Customise detection and processing to change what is detected and where:

    SettingOptionsDefault
    CategoriesE-mail addresses, Phone numbers, National ids, Bank accounts (IBAN), Card numbers, Postcodes and addresses, Person names, Dates of birth, IP addresses, Medical facts, Personal financial factsAll ticked
    Redact atRun inputs (files copied in before the first step, from a connector or from Folio, reference files included), Uploads, Connector results (rows a step reads from a Data Bridge connector, and what an MCP server tool returns: its text and the files it sends), Outputs (files under outputs/ and the run summary), result.json (the result the API returns)All ticked
    Additional model reviewPattern matching only; Review likely personal data (chunks with a name or date-of-birth cue are also read by your deployment's Coordinator model); Review all contentReview likely personal data
    Minimum detection confidence0.5 to 1, in steps of 0.050.8
    Maximum model review calls per run0 to 100,000200
  2. Save a new version and activate it (Flows: build a Flow).

Redact one file mid-run​

Add a Redact PII step after the step that writes the file and before the step that sends it on:

  1. File to redact: a run-relative path under inputs/ (what the run was given) or outputs/ (what an earlier step wrote), for example outputs/counterparties.csv.
  2. Redacted copy: a path under outputs/. Leave it empty for outputs/<name>.redacted.<ext>. The next step must read this copy, never the original.
  3. Redaction mode: The Flow's policy, Mask, Hash or Drop rows. "Only a tighter mode than the workflow's policy is honoured; the run's mode is never loosened."

What you should see​

In the run's Lens, the Work and Decisions view's outcome strip reads "PII redacted · N values · k categories", or "PII redaction · completing…" while the final sweep runs. Its history has a PII redaction entry that reads, for example, "Mask · model · 37 coordinator calls" and expands to one line per stage and file, such as "outputs · outputs/memo.md · 6 values (person_name 6) · 3 coordinator calls". Steps whose outputs were redacted carry an Outputs redacted shield, and Run details shows the Effective PII mode and what was applied under Data protection.

In the files: Mask gives a bracketed category and number ([EMAIL_1], [PERSON_NAME_3], [IBAN_1]), the same placeholder for the same value everywhere in a run (a name in a CSV and in the memo built from it read identically), with numbers restarting each run. Hash gives the category in capitals, a colon and sixteen hexadecimal characters (EMAIL:3f9a1c…), identical for the same value in every run and file on the deployment, so files can be joined but not reversed. Drop rows removes the whole row from CSV, JSON and Parquet files and hashes the value in free text.

Files from Folio and from connectors​

  • Folio inputs. When Run inputs is ticked, a file a run copies in from Folio (a File from Folio, Folder from Folio or Newest file in a folder input, or a reference file) is redacted as it is copied. The file in Folio is unchanged; the run reads only the redacted copy.
  • Connector files. When Connector results is ticked, a PDF, CSV, JSON, Markdown or text file an MCP tool returns is redacted before it is saved (a PDF is rewritten as a text PDF), and the original is never kept. Other kinds, such as images and spreadsheets, are saved unchanged and reported "skipped: binary"; no image is shown to the model. A PDF whose text cannot be read to remove personal data, such as a scan, is not saved. MCP text results are redacted too.
  • Save to Folio. When the protection covers outputs, a step's Save to Folio files are saved as soon as the step finishes, after its own redaction pass, so they are in the folder while the rest of the run goes on. When the run ends, and when it waits for a person, every file a step saved is read back from Folio and checked against the personal data the run has found since. A file that holds some gets the redacted file as its current version, and the version saved before is removed from its History. Until that check, a saved file can still hold a value only a later step identifies. If a saved file cannot be checked, the step finishes with a warning such as "1 file saved to Team folder › Research › Thesis cards could not be checked for personal data the run found after saving it. Check the file in Folio." If redaction has not finished on a file the step would save, the step's files are saved when the run ends, after its last redaction pass, and the run's Saved to Folio row reads "Saved when the run ended". If redaction still does not finish, nothing is saved: "Redaction did not finish on this step's files, so nothing was saved to Team folder › Research › Thesis cards. The files are still in this run's outputs."
  • Chats: what is masked today. Personal data protection is set for Flow runs. In a chat, the deployment's default also applies to files you upload or attach: text-type files, that is .eml, .txt, .md and .csv files and the text layer of a PDF, are masked as they are uploaded, so the agent reads placeholders such as [EMAIL_1]. Office files, that is Word, Excel and PowerPoint files (including .msg), are not masked in chats yet and reach the agent as they are. Files a connector returns in a chat, and files you reference in a chat, also reach the agent as they are. See Chats.

The coder​

When a step hands an analysis to its coder, the coder reads files, runs programs and looks things up on its own. In a Flow run whose protection is on, what the coder reads is redacted under the run's policy before the coder's model sees it: files it opens and searches, documents, program and command output, connector results, and its searches of Folio and the Intelligence Graph. That includes the explorer and reviewer it works with. If redaction cannot run on a result, the coder does not see it and is told why; it never falls back to the original. The run's activity in Lens then shows an Execution update: "Personal data could not be removed from a file the analysis read, so that output was withheld." (the sentence names what was withheld, such as a program the analysis ran or a Folio search the analysis ran). If the run's privacy settings cannot be applied at all, the analysis reads nothing and the update says "This run's privacy settings could not be applied, so the analysis read no data and ran no program. Check the privacy settings for this agent or Flow, then run it again." Chats send the coder no policy, so what the coder reads in a chat is not redacted by the coder; uploaded text-type files are already masked (Chats).

Results too long to show an agent at once, saved as files of the run (Large results and long work), are swept after the deliverables when the protection covers outputs, with the pattern pass. Results already redacted at source, such as connector results, are skipped. A result the agent saved this way is served to people only once it is swept; until then, opening it shows "Redaction in progress. This saved result is being checked for personal data. Open it again when the step that saved it has finished." This follows the run's protection: there is no separate switch.

Chats​

What is masked in a chat is exactly what the list above says, and no more:

In a chatMasked?
Uploaded text-type files: .eml, .txt, .md, .csvYes, as they are uploaded, under the deployment default
The text layer of an uploaded PDFYes. A scanned PDF with no text layer is not
Word, Excel and PowerPoint files, and .msg emailsNot yet
Files a connector returns, and files you reference from FolioNot masked

When an answer depends on something the privacy setting hid, the agent says so plainly, for example "The sender's address is hidden by your organisation's privacy setting." Lens shows that redaction was applied to the file. The agent never reveals the original value, and this also holds in a shared chat. What is redacted, and when, is unchanged. Do not rely on a chat to mask Office files; use a Flow with protection on for those.

Notes​

  • Redaction runs as part of the run, at the stages the policy names. Outputs are served through the API only once the final sweep completes.
  • A run always uses the stricter of the Flow's mode and the deployment default. Choosing a looser mode shows "The selected mode is less protective than the deployment minimum. Runs will use mask instead."
  • "The deployment default is unavailable. This selection cannot confirm the protection that will apply when the Flow runs.": Studio could not read the default; the floor still applies when the run starts.
  • A stage line ending in "capped", and "coordinator call cap reached" in the summary, mean the call limit stopped the model review; raise Maximum model review calls per run and save a new version. A line reading "skipped:" names why that file could not be processed.
  • "Name the file to redact (inputs/… or outputs/…).", "The file must be a run-relative path under inputs/ or outputs/." or "The redacted copy must go under outputs/.": fix the path in the step.
  • Detectors and how redaction is applied: PII redaction posture.