Best Practices Guide
Handling Psychotherapy Notes in LLM Prompts
Treat psychotherapy notes as a distinct data class with an explicit rule, not as generic PHI. The safest default is to block them from general-purpose LLM workflows.
Why psychotherapy notes need their own handling rule
This guide is written for AI governance leaders who need to set policy and runtime controls for psychotherapy notes in LLM prompts, retrieval, logs, and outputs. Handling these notes as a distinct data class, with an explicit rule rather than generic PHI treatment, gives you one clear default: block them from general-purpose LLM workflows. Any permitted use is then defined as an exception by policy.
Decide the policy before choosing controls
Any permitted use should be limited to a named, approved workflow. For each such workflow, the policy should specify:
- Documented authorization for the use of psychotherapy notes.
- Least-privilege access to the notes and the systems that hold them.
- Vendor terms covering retention and training use.
- Minimal logging of prompts and outputs.
- Runtime enforcement that can detect, block, redact, and audit this content before it reaches a model.
Controls by exposure point
Define the handling policy first, then map controls to each point where data enters, moves through, and exits LLM workflows.
Where psychotherapy notes can be exposed in an LLM workflow
| Exposure point | Description |
|---|---|
| Prompt input | Users or agents paste or submit note content directly. |
| Retrieval and tools | Connected sources return notes as context. |
| Model provider | Content is processed and possibly stored by a third party. |
| Logs and histories | Prompts and outputs persist in downstream systems. |
| Outputs | Generated text repeats or summarizes sensitive content. |
Runtime capabilities to require
- Detection and classification of the psychotherapy notes class in prompts, retrieved context, tool responses, and outputs.
- Policy actions of block, redact, allow with conditions, or route for approval, applied before data reaches a model or provider.
- Agent identity and permissions that enforce least privilege on records systems and tools.
- Approval workflows for tools that can read sensitive records.
- Audit logging of policy decisions that does not depend on storing raw note content.
- Reporting that lets you test, tune, and demonstrate control effectiveness over time.
Know the limits of detection and de-identification
Detection and classification are runtime controls that support the policy; they do not replace it. Pair them with named workflows, documented authorization, least-privilege access, and vendor terms, and confirm the legal basis with privacy counsel.
Vendor terms, retention, and logging
Because a model provider may process and store content, vendor terms should cover retention and training use. Prompts and outputs can also persist in logs and histories in downstream systems, so keep logging minimal and make sure audit logging of policy decisions does not depend on storing raw note content.