Anonymizer icon

Anonymizer

Anonymize PII before sending to LLMs and restore it after (Proxy Sandwich pattern)

Restore

AI-generated

Summary

Restore replaces tokens in anonymized text with their original values from a mapping vault. Supply the text and the vault produced by the Anonymize operation.

Inputs

  • Anonymized Text (required) — Text containing tokens such as {{NAME_1}}.
  • Mapping Vault (required) — JSON mapping tokens to their original values, typically from the Anonymize operation.

Output shape

One output item per input item, each containing restoredText as a string.

Tokens present in the vault are replaced globally, processing longer token keys first. Tokens with no matching vault entry remain unchanged. Invalid vault JSON produces an error; with Continue On Fail enabled, the item instead contains an error field.

Links

Discussion