Reference plugin that strips PII from the user's message before it leaves the browser. The redacted text is what gets displayed and sent, so the user sees that redaction happened. Optionally redacts assistant replies too.
<ChatWidget apiUrl={url} plugins={[pluginRedactPII()]} /> Copy
<ChatWidget apiUrl={url} plugins={[pluginRedactPII()]} />
Reference plugin that strips PII from the user's message before it leaves the browser. The redacted text is what gets displayed and sent, so the user sees that redaction happened. Optionally redacts assistant replies too.