Jump to content

ProcessLegalDocs: AI-powered legal document generator


Recommended Posts

Posted

Hi everyone,

I’ve released a new module: ProcessLegalDocs

GitHub: https://github.com/mxmsmnv/ProcessLegalDocs

ProcessLegalDocs generates legal documents directly from the ProcessWire admin, including:

  • Privacy Policy
  • Terms of Use
  • Cookie Policy
  • Data Processing Agreement
  • CCPA Notice
  • Refund Policy
  • Disclaimer

It currently supports 93 jurisdictions and 44 languages, with jurisdiction-aware language selection and document requirements.

This is also the first module built on top of my new Context module:
https://github.com/mxmsmnv/Context

Context acts as the AI/site-analysis base layer. ProcessLegalDocs uses it to understand the site structure, installed modules, fields, pages, and configured AI gateway, then uses that context to generate more relevant legal documents.

The module can still work without Context, but in that case it falls back to more generic templates. For best results, Context should be installed and configured with AI.

Main features:

  • Generates Markdown legal documents with YAML frontmatter
  • Stores files in /site/assets/legal/
  • Includes dashboard, preview, download, validation, regenerate, delete, and ZIP export actions
  • Supports many privacy/data protection regimes, including GDPR, UK GDPR, CCPA/CPRA, COPPA, PIPEDA, LGPD, APPI, PIPL, DPDP, PDPA variants, and many US state privacy laws
  • Includes settings for owner/company data, DPO, business audience, data categories, processors, analytics, payments, email/marketing tools, cookies, refunds, subscriptions, review status, and optional ProcessWire page publishing
  • Uses ProcessWire admin UI conventions / AdminThemeUikit

Requirements:

  • ProcessWire >= 3.0.255
  • PHP >= 8.3
  • Context module optional, but recommended for AI generation

Let’s take a look at the module interface:

legal-docs-1.png.65cbf47ecbabe0c055dacc5416a2d819.png legal-docs-2.png.88f9c6343673bd832d464821942d8e53.png

Install:

  1. Clone into /site/modules/ProcessLegalDocs/
  2. Refresh modules
  3. Install ProcessLegalDocs
  4. Open Setup → Legal Docs

GitHub:
https://github.com/mxmsmnv/ProcessLegalDocs

Context module:
https://github.com/mxmsmnv/Context

Quote

Note: For AI generation, please use Context v1.5+. The module can fall back to generic templates without Context, but full AI-powered generation depends on the newer Context API.

This is an early release, so feedback, testing, issue reports, and ideas are very welcome.

  • Like 8
  • Thanks 2

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...