docassemble — Guided Legal Document Assembly
An open-source expert system for guided interviews and automated assembly of legal documents, widely used in access-to-justice and legal-aid tools.
docassemble
docassemble is a free, open-source expert system for building guided interviews that assemble documents and provide advice. Authored in a mix of Python, YAML, and Markdown, it is widely deployed by courts, legal-aid organizations, and law firms to turn complex legal processes into step-by-step web interviews that generate finished PDF and DOCX documents.
Key features
- Declarative YAML interviews with embedded Python logic for branching and calculations
- Assembles PDF/DOCX documents from templates using collected answers
- Handles e-signatures, multi-user workflows, and machine-readable APIs
- Integrates with case-management systems and supports many languages
- Self-hostable via Docker with a mature package ecosystem
Authors define questions and document templates; docassemble runs the interview, validates input, and produces the assembled legal document — a backbone for scalable legal automation.
Curated mirror of the open-source docassemble (MIT). Get it from the source.
Only compromise signals — malicious or tampered code (leaked secrets, backdoors, path traversal, a dropped executable) — reduce the score. Dangerous-by-capability traits (shell, network, injection strings, pickle) are shown as risk surface: expected for some capabilities — a security tool ships offensive code on purpose — so they do not sink the grade.
Evaluated against the OWASP Top 10 for LLM Applications (2025) and the OWASP Machine Learning Security Top 10. Expand any control to see the findings.
Consume docassemble — Guided Legal Document Assembly programmatically. Authenticate with an API key or session — see Authorize an agent.
# Agents: CHECK BEFORE YOU INSTALL (no auth) — score, grade, level, capability manifest
curl https://ai-supply.store/api/v1/trust/docassemble-legal-document-assembly
# Gate against your org policy (returns { pass, violations })
curl -X POST https://ai-supply.store/api/v1/trust/docassemble-legal-document-assembly/check \
-H "Content-Type: application/json" \
-d '{"minGrade":"B","denyPermissions":["shell"],"denyUnknownEgress":true}'
# CLI
npx ai-supply add docassemble-legal-document-assembly
# REST (install → download)
curl -X POST https://ai-supply.store/api/v1/listings/docassemble-legal-document-assembly/install \
-H "Authorization: Bearer $AIM_KEY"
# MCP tool
install_listing({ "slug": "docassemble-legal-document-assembly" })OpenAPI spec →Curated mirror — latest upstream source. See the repository for tagged releases.