Skip to main content

Detect personal data

Find personal data such as names, addresses, phone numbers, emails and card or account numbers in a text, and give a copy with them masked (Amazon Comprehend).

Command in the AWS AI services toolkit · id ooa.aws_ai/comprehend_detect_pii · 4 inputs (1 required), 3 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
SessionStringNoaws_aiName of the session opened by Connect.
TextStringYesThe text to read, at most 100,000 bytes.
LanguageStringNoenLanguage of the text: en or es.
Minimum scoreNumberNo0Leave out findings scored below this (0 to 1).

Outputs​

OutputTypeWhat it is
entitiesTableColumns: text, type, score, begin_offset, end_offset.
redacted_textStringThe text with each piece of personal data replaced by its type, e.g. [EMAIL].
countNumberHow many pieces of personal data were found.