NLU Sensitive Entity Not Working


I am trying to set up a sensitive entity for SSN as described here: Entity Extraction · | Developer's Guide

I created it in the admin center and checked the sensitive option. I looked at the ssn.json file and it’s marked sensitive: true.

When I look at the events table in postgres, I see it identify the entity and marking sensitive: true, but it’s not changing the SSN text to **** in the database as described in the documentation:

Can you please let me know if there’s something I’m missing? Thank you very much.

Hi @user123 , just wanted to make sure that I ask you this before I reproduce your issue. Did you restart your server after tweaking the json file?

Yes, I did restart Botpress, but it didn’t help. The above picture was using building Botpress from source, but I also just tried using the latest binary release (12.26.7 for Windows) and on the binary it’s actually showing sensitive: false in the events table (even though the json still says sensitive: true):
nlu sensitive not working 11.18

Here is the ssn.json file:

  "id": "ssn",
  "name": "SSN",
  "type": "pattern",
  "occurrences": [],
  "sensitive": true,
  "fuzzy": 0.8,
  "examples": [
  "pattern": "[0-9]{3}-[0-9]{2}-[0-9]{4}",
  "matchCase": false