1. Home
  2. Case studies
  3. LegalTech and EdTech

AI-generated legal study materials for a law education platform

Turning legal case data into structured study material in seconds using AI

Diagram of the legal study materials platform. A question comes in with a course, topic and format. The system searches the legal knowledge base, falls back to a case brief library, then to the AI model, and returns a structured rulebook and a practice question.
≈10 secTo generate a full study guide, in our tests
≈90-95%Requests answered from the knowledge base
2API for rulebooks and practice questions

The problem

A legal education platform needed to give law students structured study material: rulebooks that break a legal topic into a standard framework, and practice questions with a realistic fact pattern. Creating this by hand was slow. Each course had to be read, summarised and written up one topic at a time, and the work could not keep up with new cases or new courses.

Quality was also uneven. Different authors structured the same kind of material in different ways, and the platform had to support several analysis formats, each with its own sections. Where the platform had no data on a niche topic, a plain AI model would fill the gap with answers that sounded right but were not grounded in real case law.

What we built

We built an AI backend that creates legal study material on demand. A student or the platform sends a question, a course, a topic and the format they want.The system returns a structured rulebook that breaks the topic into clear steps: the legal issue, the rule, how it applies to the facts, and the conclusion. It can then turn the rulebook into a practice question with a short story and model answers.then turn the rulebook into a practice question with a short story and model answers.

Every request gets an answer. The system first looks for matching material in the platform's own legal knowledge base. If that has nothing, it uses a library of case briefs. If that also has nothing, the AI model writes the rulebook directly. Each rulebook is tagged with where it came from, so the team always knows whether an answer is grounded in their data or generated from scratch.

The result

The platform moved from hand-written study material to material generated on demand. The structure is consistent, because the same format rules apply to every request. Topics with thin coverage still get a useful answer through the fallback layers instead of an error. New legal data can be added to the knowledge base on a schedule, so the content keeps up without a rebuild.

The team can also change how the AI writes, including its tone, instructions and format rules, from the admin panel, with no new deployment. Access is controlled with API keys, so the platform can offer the service safely to its own apps and partners.

Tech approach

The core of the system is retrieval-augmented generation (RAG). Legal data is split into small pieces, converted into numeric meaning-based representations and stored in a vector database. When a request arrives, the system searches by meaning, not just keywords, and gives the best matches to the AI model as context, so the answer rests on real material.

Search runs in steps, from the most specific to the broadest: course and topic together, then course alone, then topic alone. Strict filtering stops results from unrelated courses leaking in. If the knowledge base has no good match, the request moves to the case brief library and then to direct AI generation.

We use two AI models, each for the job it does best: one for structured rulebooks and one for stories and practice questions. A single format engine controls which sections each format needs, so adding a new format does not need new logic. The instructions given to the models are stored in a database and checked before use, which keeps outputs consistent. A scheduled job brings in new legal data and updates the knowledge base without re-processing what is already there.

Want a result like this?Tell us about your business and get 3 AI opportunities, free.
Get my free AI Growth Plan

More case studies

Automotive and Customer Engagement

Automobile automation

Follow-up emails to automobile customers were sent by hand, when someone remembered. We built an automation that runs four campaign types and answers replies on its own.

Read the case study
Food Retail and Customer Engagement

Bakery automation

A bakery handled orders, review requests and offers by hand in chat. We built an AI assistant that takes order requests and follows up, while the owner confirms each order.

Read the case study