Skip to content

Client project

Legacy Legal AI

One intake. A document ready for review.

Estate planning clients answer guided questions in plain English. The application fills approved document templates and routes drafts to an attorney for review.

legacylegalai.com
Legacy Legal AI homepage showing multi-state guided legal document workflows
Product screenshot from Legacy Legal AI.
Single client intake
Populates wills, POAs, and healthcare directives
Human legal oversight
Three-tier attorney review queue
Buyer confidence
Watermarked preview before checkout

The problem

A single estate plan can require a will, a power of attorney and a healthcare directive. Re-entering the same details across forms makes it easy to introduce inconsistencies.

How it works

  • Client answers plain-English questions once
  • System populates approved legal templates
  • Attorney reviews draft before final release

What changed

The same client answers populate both the watermarked preview and final PDF, with structured human legal review built directly into the flow.

  • The application supports wills, powers of attorney and healthcare directives.
  • Clients can preview their documents before checkout. The same fields populate the final PDF.

Apply this to your business

A services team can use the same intake answers to prepare a proposal, an agreement and a kickoff checklist, with a reviewer responsible for the final wording.

See the proposal-to-onboarding sprint
Engineering details and controls

Operational controls

  • Explicit non-law-firm disclosures and statutory scope boundaries across intake, previews, and final documents.
  • Clerk authentication, CSRF protection, Helmet Content-Security-Policy, and DOMPurify input sanitization.
  • Strict noindex/nofollow isolation on authenticated, review, and checkout routes, plus migration alerts via AWS SES and Slack.

Architecture & stack

Schema-Backed Conversational Intake

Paired Perplexity llama-3.1-sonar-small-128k-online guidance with structured JSON schemas and reasoning-tag sanitization so plain-English answers map into validated fields.

Dual Deterministic PDF Engine

Combined PDFKit custom rendering with pdf-lib form mapping to produce watermarked previews before Stripe checkout and clean final PDFs afterward.

3-Level Attorney Review Queue

Built a structured review portal with rich-text Attorney Notes editing and Clerk role-based permissions before final delivery.

Per-Route SEO & Event Tracking

Implemented server-side route metadata injection, LegalService JSON-LD, llms.txt, and server-authoritative GA4 purchase tracking.

React & TypeScriptExpress & PostgreSQLPerplexity Sonar AIPDFKit & pdf-libStripe & ClerkAWS SES

Want this pattern working in your business?

Bring one example from your current process. In 15 minutes, I’ll map what a practical first version would take and cost.