---
sourceDocument: Xanadu Enable AI
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/intelligent-experiences

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu Enable AI

ft:clusterId :

    - platai

bundleId :

    - platai

workflow :

    - Platform


---

# Configure sensitive data handling for generative AI

# Configure sensitive data handling for generative AI {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

Set up and configure how personally identifiable information and other sensitive data is removed from generative AI prompts.

## Before you begin

You can create a new Sensitive Data Regex record with a pattern or you can modify an existing record.
The Generative AI category will apply the pattern to your generative AI prompts.

Role required: admin

## About this task

Personally identifiable information and other sensitive data can be masked so that it does not appear in generative AI prompts. Placeholder text is sent with the prompt instead, and that placeholder text is replaced with the
original text after the response has been received. This two-way masking ensures your users see the correct values, but the LLM is not exposed to any sensitive information.  
There are some considerations for using the Sensitive Data Handler with generative AI.

* The sensitive data detection toggle in the Conversational Interfaces Settings is unrelated to the Generative AI Controller, which uses sensitive data handling capabilities separately from this utility.
* The prompt, response, edited_response and additional_data fields in a conversational topic are masked during data extraction.
* The prompt is masked before sending it to the large language model (LLM) by using the sensitive data handling plugin. Only regular expressions (regexes) in the Generative AI category are used to mask the prompt.

## Procedure

1. Navigate to AllSensitive Data HandlingAll.
2. Select the Sensitive Data Regex record you would like to apply for generative AI prompts.
3. Unlock the Categories field by selecting the lock icon ![Lock icon.]().
4. Enter <kbd class="ph userinput">Generative AI</kbd> in the target field and select the record.
5. Select the lock icon again to lock the Categories field.
6. Set the Status field to Active if it is not already.  
7. Select Update to save the record.

*[\>]: and then


