All case studies

Legal tech

Building playbooks in a conversation with AI

For Neo.Law, we built the Playbook Manager in about six weeks. Lawyers describe their positions in their own words, and the AI drafts a structured playbook from them.

Client
Neo.Law
Industry
Legal tech
Period
2026
Status
Completed

How it works

  1. Positions in plain language or a sample contract
  2. sourcecast The AI drafts topics and rules or asks back
  3. sourcecast Automated review against authoring conventions
  4. Versioned playbook

The starting point

Before Neo.Law's platform can review a contract, someone has to encode the company's negotiation positions as a playbook, with topics, rules, variables and clauses that are required or prohibited. Until then this ran through a multi-step form we had built ourselves in 2025. Before the first review, legal experts had to configure dozens of topics and rule variables in it.

Neo.Law's product team wanted lawyers to simply say what they want and let the AI draft the playbook. We were asked to build this quickly and on the existing platform.

What we built

We built the Playbook Manager on the platform's data model, model configuration and prompt management. Users describe their positions in their own words or upload a sample contract. For every message, the model decides whether to draft topics and rules, ask a clarifying question when an instruction is ambiguous, or reply conversationally.

Every draft goes through an automated review against authoring conventions and is revised up to three times if needed. Users then refine topic by topic, and the result is saved as a regular, versioned playbook, with a history of which instruction changed which rule. Scanned uploads are read with OCR. We worked in small pull requests, often several a day, and adjusted the scope with the product team as we went.

Outcome

About six weeks after work started, the Playbook Manager was part of the main product. A playbook can now start from a guided conversation instead of a form, and every rule passes an automated review first. Client-side developers started building on top of it right away.

Working with sourcecast is exactly what you imagine modern software development to be. Focused, professional and agile. Quick understanding and a friendly manner make joint meetings efficient and pleasant. I would start projects with the team again at any time.
Flavio Trillo · Head of Product, Neo.Law Technology GmbH
Technical details
  • One model call with three tools and a forced tool choice. The model asks back, submits a topic with rules or replies, and the application always gets a validated result.
  • A separate review call with structured output. If only the same minor issue keeps coming back, the draft is marked instead of looping.
  • Prompts live in the database, so legal engineers can tune them without a deployment.
  • Every model step runs as a Celery task after the database commit, and the HTMX interface polls the status.
work with us
get in touch