Turn on PII masking
BeforeQuery detects and masks personally identifiable information before content is stored or forwarded to any LLM — at ingest time (crawled pages, uploaded files, tickets) and at query time (user messages). Masked tokens are replaced with type placeholders like[EMAIL] and [PHONE], and every masking event is recorded in the audit log.
Built-in patterns cover: phone numbers, email addresses, credit card numbers, IBANs, IP addresses, and person names.
1
Enable masking
Open Knowledge Base → Settings → PII Masking, turn it on, and tick the categories to mask. It then applies to every surface that knowledge base answers on — widget, APIs, bots, and helpdesk automation.
2
Add custom patterns and an allow-list (optional)
Add regex patterns for proprietary identifiers — customer IDs, license keys, internal hostnames — that the built-in detectors don’t know about. Allow-list terms do the opposite: strings that match a pattern but should never be masked, such as your own support address.
3
Verify on your riskiest source
Sync a ticket or Slack source and spot-check the resulting documents under Knowledge Base → Documents — identifiers should appear as
[EMAIL]-style placeholders.For chat identity, no end-user personal data needs to be stored: the API accepts an opaque
user.id, and nothing beyond that opaque identifier is retained.