Privilege-protected
AI for law
Deploy AI tools for legal work while maintaining attorney-client privilege. Enforce disclaimers, protect confidential information, and create audit trails for regulatory requirements.
Where a legal workflow is exposed
- 01
Privilege Policies You Write
An llm_guard policy can flag or block content that reads as privileged before it reaches an external model. You describe privilege in plain English; an LLM judges each request against it.
- 02
Disclaimer Policies You Write
An output policy can block a reply that reads as legal advice without the qualification you require. You define the rule; PromptGuard judges the answer against it rather than editing it.
- 03
Confidential Document Protection
Redact identifiers with a fixed shape, such as emails, phone numbers and national IDs, plus anything matching your own custom rules, such as your matter-number format.
- 04
Client Name Blocklists
An entity blocklist stops requests that name the clients or matters you list, so they never reach an external model.
- 05
One Project per Practice Group
Each project has its own policies, API keys and audit trail, so one group's rules and records stay separate from another's.
- 06
Regulatory Audit Trail
Every scan is recorded with its decision and threat type, and a masked preview unless zero retention is on.
Why PromptGuard for legal?
- Policies you write for privilege and advice
- Client and matter blocklists
- One project per practice group
- An audit trail of every scan
- Redaction of identifiers and your own patterns
How it works for legal
- 01
Integrate
Deploy PromptGuard with your legal AI tools. Works with contract review, research assistants, and document automation.
- 02
Configure
Add custom rules for your matter numbers and client names, and policies for privilege and legal advice.
- 03
Document
Generate audit reports for ethics compliance. Demonstrate responsible AI use to regulators and clients.
Securing legal AI applications
from promptguard import GuardClient
guard = GuardClient() # reads PROMPTGUARD_API_KEY
# Custom rules for your matter-number format and client names, and an
# llm_guard policy that flags privileged content, are set on the project.
# Give each practice group its own project and API key.
messages = [{"role": "user", "content": contract_text}]
decision = guard.scan(messages, direction="input")
if decision.blocked:
raise PermissionError(f"Blocked: {decision.threat_type}")
# A redacted request comes back with the values replaced
messages = decision.redacted_messages or messagesThe controls this sector runs on
Secure your legal AI
Deploy AI in legal practice while maintaining privilege and regulatory compliance.