From Bright Pattern Documentation
Jump to: navigation, search
• 5.19 • 5.8

Text Masking

Depending on the type of services that your contact center provides, incoming chats may contain some sensitive data that could pose Internet security risks. Examples of such data include payment card numbers, access codes, social security numbers, and clients’ personal health information. The handling of such data may be governed by various laws, industry security standards, as well as internal policies of your organization. Thus, while reviewing incoming mail, you may be expected to identify such data and make sure it is masked before the email is further processed and stored. (Data masking is the process of hiding original data by replacing it with random characters.)

It is possible to mask sensitive data not only in emails, but also in chats. To mask a fragment of an incoming chat, you must first set up the functionality in the Contact Center Administrator application in Configuration > Security > Text Masking.


In the properties pane that appears, check the box for Mask sensitive data in web chat. This enables text masking. Then click add to add values.

  • Name - The name of your mask (anything you like)
  • Mask - The string of values that will identify the contents of the sensitive data and replace it with a string of asterisks (i.e., ****************)

Check the box to mask sensitive data

Example Masks

Masks require regex syntax. After entering an expression, click Apply to save your changes. Saving masks will cause any such sensitive data in chats to be "masked" in subsequent chats on the Agent Desktop application. Masking sensitive data ensures that when the chat conversation is saved, or when the chat transcript is provided to the customer or other users via email, the customer's confidential personal information is hidden.

Note: Each expression must be entered separately.

Credit card masking:

  • Visa: 4[0-9]{3}[ -]*[0-9]{4}[ -]*[0-9]{4}[ -]*[0-9]{4}
  • American Express (Amex): 3[0-9 -]{13,18}
  • MasterCard (MC): 5[1-5][0-9]{2}[ -]*[0-9]{4}[ -]*[0-9]{4}[ -]*[0-9]{4}
  • Diner's Club: 3(?:0[0-5]|[68][0-9])[0-9]{11}
  • Discover:
    • 65[4-9][0-9][ -]*[0-9]{4}[ -]*[0-9]{4}[ -]*[0-9]{4}
    • 64[4-9][0-9][ -]*[0-9]{4}[ -]*[0-9]{4}[ -]*[0-9]{4}
    • 6011[ -]*[0-9]{4}[ -]*[0-9]{4}[ -]*[0-9]{4}
    • 6221[ -]*2[6-9][0-9]{2}[ -]*[0-9]{4}[ -]*[0-9]{4}
    • 6221[ -]*[3-9][0-9]{3}[ -]*[0-9]{4}[ -]*[0-9]{4}
    • 622[2-8][ -]*[0-9]{4}[ -]*[0-9]{4}[ -]*[0-9]{4}
    • 6229[ -]*[01][0-9]{3}[ -]*[0-9]{4}[ -]*[0-9]{4}
    • 6229[ -]*2[0-5][0-9]{2}[ -]*[0-9]{4}[ -]*[0-9]{4}

These masks will hide credit card numbers that are provided by customers in incoming chats. Note that the name (Visa, Amex, MC, etc.) of each mask does not affect the mask settings.

Text Masking can be used to hide credit card numbers, as shown in this example

Social security number masking:

  • \d{3}[- ]?\d{2}[- ]?\d{4}

Use text masking to hide Social Security numbers

This mask will hide a Social Security number that may be provided by customers in incoming chats. Note that the name of the mask does not affect the mask setting.

< Previous | Next >