Code recipe · Intermediate · 15 min
Redact personal data before sending a ticket to a model
Strip emails, phone numbers and order numbers from ticket text before it leaves your systems.
- ChatGPT
- Claude
- Any assistant
- support
- code
- typescript
Inside this code recipe
- Support text carries personal data; a model call should see the problem, not the identity. Redact deterministically and keep a map to restore in the reply.
- Language
- TypeScript
The full code recipe opens with a membership that covers AI Customer Support.
Sign in if you already subscribe.
Sign in
