---
sourceDocument: Brazil Platform security
sourceDocumentLink: https://www.servicenow.com/docs/r/platform-security

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Platform security

ft:clusterId :

    - psec

bundleId :

    - psec

workflow :

    - Platform


---

# Configure patterns

# Configure Data Discovery patterns {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 3 minutes to read  
Configure a Data Discovery pattern and review current patterns. A Data Discovery pattern defines the regular expression used to match data against a target table.

## Before you begin

Role required: data_discovery_admin

## About this task

Custom Data Discovery patterns can be used with Now Assist anonymization in addition to the base system patterns provided with the platform. A pattern applies to Now Assist prompts when it is associated with the
Generative AI data channel. Base system patterns that don't include "(Generative AI)" in their name can also apply to Now Assist, provided they are associated with the Generative AI data channel. Configured patterns apply consistently across Now Assist skills, Now Assist Virtual Agent, AI Agents, and custom skills built with the Now Assist Skill Kit.  
Note:  
Data Privacy for Now Assist is available in Yokohama and later releases. On Xanadu instances, use the Sensitive Data Handler to mask sensitive data for generative AI.  
Important:  
Now Assist anonymization uses two-way masking. When a Now Assist skill such as incident summarization processes a record, sensitive data matching an active pattern is replaced with placeholder tokens in the prompt sent to the large language model (LLM). The original values are then restored in the response returned to the end user. End users therefore see unmasked data in Now Assist responses; this is by design. The purpose of masking is to prevent sensitive data from being transmitted to the LLM, not to hide it from the end user in the final response.

## Procedure

1. Navigate to System SecurityData DiscoveryAll Data Patterns.
2. In the Data Discovery Pattern list, select New.
3. In the Data Discovery job fields form, fill in the fields.  
   {#configure-data-discovery-patterns__table_tgp_2pb_grb__entry__2}

   | Field | Description |
   |-|-|
   | Internal Scope | Scope of the pattern. |
   | Description | Description of the job. |
   | Name | Name of the data pattern. |
   | Application | Application scope of pattern. |
   | Expression | Regular expression used to discover the data pattern. Note: Expression length must be less than 1000 characters. |
   | Keyword(Optional) | A specific word(or words separated by comma) to be searched for around a expression. Must be used with Keyword Proximity Note: A keyword can be used to search for additional context for a pattern. For example, using keyword can help differentiate between a date of birth or a date of hire given they have the same MM/DD/YY formatting. |
   | Keyword Proximity(Optional) | How far from the expression to search for keywords. Must be used with Keyword Note: Default is 30, upper bound of 64 |
   | Privacy technique configuration | The masking technique applied to matched data before it is sent to the LLM. Common techniques include: Synthetic replacement :   Replaces the matched value with a realistic but fictitious substitute (for example, substituting a different email address). Use when the LLM needs plausible values to maintain response quality. Static replacement :   Replaces the matched value with a fixed non-inferable placeholder (for example, replacing any SSN with "999-99-9999"). Selective replacement with x :   Obscures part or all of the value using wildcard characters (for example, masking most digits of a card number while retaining the last four). Use when partial visibility is acceptable and helps the LLM understand context. Remove :   Deletes the matched value from the prompt entirely. |
   | Synthetic Value | List of values substituted for the patterns |
   | Type | Type of pattern * Local: The pattern is regex-based * Model: Uses AI/ML service {#configure-data-discovery-patterns__ul_hjr_fch_cgc} |
   [Table 1. Data Discovery job fields]

   {#configure-data-discovery-patterns__table_tgp_2pb_grb}
4. Select Submit.
   * The Test button enables you to test your regular expression before submitting the data pattern list.
   {#configure-data-discovery-patterns__choices_pq1_dp3_3xb}

The data pattern must be set as active to be used with scheduled jobs.

5. Navigate to System SecurityData DiscoveryActive Data Patterns.
6. In the Data Discovery Active Pattern list, select Edit.
7. Select the pattern list from Available Lists and move it to Selected Lists.

*[\>]: and then


