Deidentify Text
AI-generatedSummary
Deidentify sensitive data in a given text by detecting specified entity types and replacing them with tokens formatted according to the chosen token type.
Inputs
- Text (required) — The text containing sensitive data to deidentify.
- Entities — Optional list of entity types to detect and deidentify, such as Credit Card, SSN, Phone Number, Name, Date of Birth, and Driver License. If left empty, all supported entity types are detected.
- Options — Options to customize token formatting with the Token Type parameter, which controls how detected sensitive entities are replaced (Vault Token, Entity Only, or Entity Counter).
Output shape
a single JSON object containing the processed text with deidentified sensitive data, a list of detected entities with their types and positions, and the count of words processed
The processedText field contains the input text with sensitive entities replaced by tokens according to the selected Token Type. The entities array details each detected sensitive entity. Errors from the Skyflow API calls are surfaced as node execution errors.
Examples
Example 1: Input text includes personal data with an SSN and credit card number; the node replaces these with Vault Tokens, storing original data securely in the vault and returning tokens in the output text.
Text parameter set with the sensitive text, Entities left empty to detect all types, and Token Type option set to Vault Token.