← All work

Course capstone / PreLegal

From a guided conversation to a document draft.

An AI-assisted document builder maps structured answers into eleven agreement templates and exports a PDF draft.

My role

Curriculum build with an agentic development workflow

Project status

Document-builder demo · sign-in required

The result you can inspect

Structured generation fills template fields before PDF rendering.

System overview

How the pieces connect.

  1. 01

    Choose

    Select an agreement from the catalogue.

  2. 02

    Complete

    Structured generation populates fields.

  3. 03

    Review

    Preview and export a PDF draft.

A simplified view of the documented architecture.

The short version

Context before code.

The problem

Routine legal documents — NDAs, service agreements, DPAs, HIPAA BAAs, licensing — are template-driven but still leave people unsure which document they need and how to complete it correctly. Slow, error-prone, and still requires review for the specific circumstances.

What I built

Built a SaaS document builder with a catalog of eleven agreement types spanning confidentiality, commercial services, data-protection compliance (GDPR DPA, HIPAA BAA), IP and licensing, and an AI-specific addendum. An AI assistant helps the user choose the right document and walks them through the fields, then an LLM with Structured Outputs populates the template, renders a live preview, and produces a downloadable PDF.

What it demonstrates

A curriculum project demonstrating catalogue-driven selection, structured generation mapped to template fields, and PDF drafts for review. Legal suitability and regulatory compliance are not established by the generation process. Proves the pattern that turns an LLM from "answers questions" into "produces structured document drafts for review."

For a closer look

The decisions behind it.

Delivery process

Built via an agentic coding workflow — features specced in Jira, developed through a 7-step process with unit and integration tests, and shipped via GitHub PRs.

Document catalogue
  • Mutual NDA
  • Cloud Service Agreement
  • Data Processing Agreement (GDPR)
  • Professional Services Agreement
  • Service Level Agreement
  • Design Partner Agreement
  • Partnership Agreement
  • Pilot Agreement
  • Business Associate Agreement (HIPAA)
  • Software License Agreement
  • AI-Specific Addendum

Tools used on this project

Continue the conversation

Working on something similar?

Explore it with Jay ↗Talk to Justin ↗
Next project BPS Agent Co-Pilot
top