Shipping AI Features in Regulated Industries
Healthcare, finance, and legal are where AI value is highest and mistakes are most expensive. What actually needs to be true before you ship.
Regulated industries are where AI creates the most value per user and where getting it wrong is most expensive. Healthcare, finance, and legal all have real workflows that AI could compress from hours to minutes. They also have real audit trails, liability, and consequences.
At Augere Labs we've helped teams ship AI features in HIPAA and SOC 2 environments. This is the version of the topic that isn't scared of it, and also isn't naive about what it takes.
The framing most founders miss
Compliance in AI features isn't a checklist you complete before launch. It's an operating model that runs alongside the product. Teams that treat it as one-time setup discover the gaps at the worst possible moment — usually during a customer's own audit or a bad output.
The good news: modern tooling makes this dramatically more doable than five years ago. The bad news: the tooling doesn't excuse you from doing the actual thinking about where the data goes and who can see it.
The three-layer question
Every regulated AI feature has to answer three questions clearly:
- Where does the data go? User input, model provider, storage, logging.
- Who can access it? Employees, model providers, customer's own team, third parties.
- What's the record? What happens after the fact if someone asks "what did the AI see and why did it output that?"
Answer these before writing code, not after. A team we know sketched them on a whiteboard on day one of the project — that whiteboard survived the whole build and later became the answer to their customer's SOC 2 vendor review.
Model provider selection
The BAAs that matter
For HIPAA, you need a Business Associate Agreement with any provider that touches PHI. OpenAI, Anthropic (via AWS Bedrock), Google (via Vertex AI), and Azure OpenAI all offer BAAs on their enterprise/API tiers. The free web interfaces do not — do not paste patient data into ChatGPT.com.
Data retention
Default OpenAI API retention is 30 days for abuse monitoring. On enterprise/zero-retention tiers, retention drops to zero. This matters more than most teams realize. For anything sensitive, use the zero-retention configuration and confirm it in writing.
Training data
API traffic from OpenAI's paid API is not used for training. Same for Anthropic API. Confirm this in the provider's docs for the specific product you're using. It changes.
Regional data residency
EU customers often require EU data residency. Azure OpenAI, AWS Bedrock, and Vertex AI all offer regional deployments. Direct-to-OpenAI or Direct-to-Anthropic APIs may not — check.
Auditability — the most underestimated requirement
In regulated industries, every AI output that affects a decision needs a trail. Not just "what was said" but "what was seen and why."
The minimum audit record for an AI action in a regulated context:
- Timestamp and user ID.
- Full input to the model (prompt + retrieved context).
- Model, version, and provider used.
- Full output.
- Any user acceptance or correction downstream.
Store this in an append-only log with retention that matches the regulatory requirement (six years for HIPAA in most cases). Skimping here is the fastest way to fail a customer's audit.
Guardrails that actually earn their keep
PII redaction on the way in
Before sending user data to a model provider, strip identifiers that aren't needed for the task. A summarizer usually doesn't need social security numbers to produce a useful summary. Redact at the edge; restore in the display if needed.
Human-in-the-loop for consequential decisions
Any AI output that leads to a treatment, a financial transaction, or a legal filing must have a human approver in the loop. Not just a checkbox — a real review step with the ability to reject and correct.
Content classifiers
Run a lightweight classifier on both inputs and outputs. Detect out-of-scope requests, sensitive content, or potential prompt injection. Reject and log — don't just filter silently.
Rate limits on sensitive actions
A user should not be able to submit 10,000 patient records to a summarizer in 60 seconds. That pattern is almost always misuse. Cap and alert.
Mistakes teams make
Assuming the vendor's compliance is yours
OpenAI being HIPAA-eligible doesn't mean your product is HIPAA-compliant. Your architecture, access controls, audit logs, and BAA chain all have to be in place too. The model provider is one link.
Storing PHI in prompts as "just text"
Prompts are logs. If you log prompts (and you should for debugging), those logs contain PHI, and your logging pipeline is now part of the regulated environment. Design accordingly.
Skipping the customer's vendor review
Enterprise customers in regulated industries will run you through a vendor review — sometimes 100+ questions. Not preparing for it means a six-month sales cycle stretches to nine. Prepare the answers before the questions come.
Treating "AI made a mistake" as excuse
Regulators don't accept "the model hallucinated" as a defense. Your product is responsible for its outputs. Design for the case where the AI is wrong, not just the case where it's right.
SOC 2 specifically
SOC 2 isn't AI-specific but it's the compliance bar most B2B customers ask about. For AI features, expect scrutiny on:
- Access controls to model providers and API keys.
- Encryption of prompt and output data at rest and in transit.
- Audit logging of AI actions.
- Change management for prompts (yes, prompt changes are considered changes).
- Incident response for AI-related events.
Vanta, Drata, and Secureframe all handle SOC 2 well and integrate with modern stacks. Start early; a first SOC 2 audit is typically a three-to-six month process.
Real example
A healthcare-adjacent team we worked with wanted to add an AI feature that summarized patient notes. First architecture: send notes directly to OpenAI's public API. Compliance officer flagged it. Rebuild took three weeks: BAA-covered Azure OpenAI deployment, prompt-level PII redaction, human review step, and a full audit log. The feature shipped, passed customer vendor reviews, and became a differentiator against competitors who wouldn't touch clinical text.
The extra work up front was real. The competitive advantage after was worth several times its cost.
Trade-offs
Regulated environments add real cost. BAA-covered infrastructure is more expensive. Audit logging is more storage. Human review adds latency. Vendor reviews slow sales cycles.
The trade is worth it when your customers already operate under the same rules. Regulated customers pay more, churn less, and have longer contract lengths. That's why the value is high.
Common misconceptions
"AI is too risky for healthcare/finance/legal." Not with the right guardrails. AI features are already in production across all three sectors — the successful ones are just architected for it.
"We can start unregulated and add compliance later." Retrofitting compliance is dramatically more expensive than designing for it. If your target market is regulated, plan for it in month one.
"Compliance is legal's job." Compliance is architecture. Legal reviews contracts and interprets rules. Engineering builds the systems that make compliance real.
Frequently Asked Questions
Can I use ChatGPT with patient data?
No, not the consumer product. You can use the OpenAI API under a BAA (via Azure OpenAI or the enterprise agreement) with appropriate configuration.
How long does HIPAA compliance take?
For a small team building a new product, three to six months to reach a defensible posture, with ongoing operations after. It's not a project you finish.
Do I need SOC 2 for enterprise customers?
For most B2B SaaS selling to mid-market and up, yes. Regulated industries almost always ask.
Which model provider is best for regulated industries?
Azure OpenAI, AWS Bedrock, and Google Vertex AI all offer BAA-covered enterprise deployments. Choose based on which cloud your customers prefer.
Where to go next
Pair this with the AI development contract checklist and multi-tenant architecture for AI SaaS. Contracts, architecture, and compliance are three interlocking parts of shipping in regulated environments.
Working with us
Building AI features in regulated environments is a specific skill set — the tooling matters, but the judgment about where to be conservative matters more. Talk to us if you're weighing a project like this.
FAQ
Frequently asked questions
Can I use LLMs with regulated data like PHI or financial records?+
Yes, with the right infrastructure — a BAA-covered provider (Azure OpenAI, Bedrock, Vertex), redaction, human review, and full audit logs. The consumer web products aren't appropriate for this.
How long does it take to make an AI feature HIPAA-compliant?+
Designed in from the start, part of a normal build. Retrofitted after launch, typically two to four extra weeks plus longer for compliance operations.
Is SOC 2 required for AI features?+
Not by regulation, but expected by most B2B enterprise customers. If you sell to mid-market and up, plan for it early.
What's the biggest risk when shipping AI in regulated industries?+
Underestimating auditability. Every consequential AI action needs a trail — what was seen, what was output, who approved it. Without that, one bad output becomes a company-level incident.
Building something similar?
Let's talk in 30 minutes.

