web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / [URGENT] Filter out se...
Copilot Studio
Unanswered

[URGENT] Filter out sensitive information from user Query.

(0) ShareShare
ReportReport
Posted on by 34

I am a beginner here. I want to filter out the sensitive data(like PII, or Credit Card number or SSN) and replace it with these texts "Credit Card", "Personal Identification Information") from user query every time if it is present before sending it for knowledge base search. How can I implement it in copilot studio. @Pstork1 

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,417 Most Valuable Professional on at

    I'm not sure there is a way to do that.  The closest I think you could get would be to implement specific REGEX filters on the variable that contains the query before it is used. But I'm not aware of any built-in functionality to intercept PII.

  • adilei Profile Picture
    Microsoft Employee on at

    Even if you filter PII out before sending it to Gen Answers, it is still stored in the conversation transcript. Are you okay with that?

  • minakshimathpal Profile Picture
    34 on at

    No! It should not be available in the transcript as well. Our old platform is using it for mapping to the required article/intent but when we export the interactions it would have *********** in that place. @adilei 

  • adilei Profile Picture
    Microsoft Employee on at

    Then you should consider sanitizing transcripts after they are saved. Transcripts are stored here: Understand conversation transcripts - Microsoft Copilot Studio | Microsoft Learn

  • minakshimathpal Profile Picture
    34 on at

    @adilei Thank you for replying. How can I scrub the sensitive data before it goes to GenAI. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 813

#2
Vish WR Profile Picture

Vish WR 302

#3
Haque Profile Picture

Haque 268

Last 30 days Overall leaderboard