Tutorial for Legal Document Automation

Introduction

Professionals in the legal sector know that lawyering often involves paperwork. That’s where document automation comes in. Document automation allows you to automate document creation with the help of smart templates. In general, document automation helps in creating documents in a short period of time with consistent results.

Legal document automation is essential for improving and optimizing the way lawyers run their practice, and especially important for Kali to offer as a DAO self-help tool. With it, Kali ensures that the document is easily accessible, sharable, and well organized.

Kali

Kali is a legal DAO deployer; it is different from other DAO frameworks in that Kali wraps DAOs with bespoke legal instruments at inception.

Ultimately, we envision Kali automating legal documents for DAOs to effortlessly manage and process legal tasks, conduct commercial activities in meatspace, DAO2DAO collaborations in the metaverse, and many more.

Document Automation, the Kali Wei

1. Set up a drafting environment

Much like using Microsoft Word as the environment to draft legal documents, we need a specific environment to draft the legal templates for document automation purposes. To auto-generate legal documents, Kali uses Javascript programming languageopen in new window and the React frameworkopen in new window.

No worries if you're not familiar with the Javascript language or programming in general. All you'll need to do is to download an integrated development environment (IDE), a.k.a. code editor, to "program" legal templates.

At Kali, we recommend downloading Visual Studio Codeopen in new window.

2. Draft legal template

Once a code editor is set up, we can start drafting our legal document. For convenience, we've prepared a BlankTemplate.js fileopen in new window for you to get started.

Locate the line that says YOUR LEGAL TEMPLATE GOES HERE, and paste your legal template starting on the line below (line 76).

3. Define template-specific variables

In drafting legal documents, legal professionals often borrow boilerplate text with placeholders and fill them with case-specific information, e.g., names and dates. A boilerplace with placeholders may look like this:

This agreement is made and entered into effective as of ______, by and between ______, a limited liability company, located at ______...

For document automation purposes, we want to give each placeholder (i.e., _____) a name or variable so that the Kali document generator may recognize and replace placeholders with corresponding user inputs.

An updated version of the above example with placeholders may look like below, where [DATE], [PARTY A] and [ADDRESS] are the variables to be replaced with user inputs.

This agreement is made and entered into effective as of [DATE], by and between [PARTY A], a limited liability company, located at [ADDRESS] ...

Lastly, we must insert all the variables within the { } at line 71 of BlankTemplate.js.

In case you're unfamiliar with this process, here are some examples of legal templates for reference:

DocumentLinkVariables
Delaware LLC Operating AgreementLinkopen in new windowname, chain, date, arbitrator, ethAddress
Delaware series LLC Operating AgreementLinkopen in new windowricardianId
Delaware Investment Club Operating AgreementLinkopen in new windowname, chain, client, network, address, code, reference
Wyoming LLC Operating AgreementLinkopen in new windowname, date, email, ethAddress, id

4. Stylize the legal template

Once the legal template is drafted in a Javascript file, we can stylize the content with tags shown in the table below.

tagstyleusecase
heading1underlined, center alignment, all capstitle
heading2center alignment, all capssubtitle
heading3center alignmentsection title
textjustified alignmentparagraph
numbered_listjustified alignment, first line indentenumerated list
bulleted_listjustified alignment, first line indentenumerated list
<Br />single linkbreaknew line
<Tab />spacerspacer

[VIDEO WALKTHROUGH]

For those unfamiliar with tags, we recommend visiting the following for reference:

DocumentLink
Delaware LLC Operating AgreementLinkopen in new window
Delaware series LLC Operating AgreementLinkopen in new window
Delaware Investment Club Operating AgreementLinkopen in new window
Wyoming LLC Operating AgreementLinkopen in new window

5. Build a form for user to input dynamic data

Great job following along, we're almost done!

Thus far, you've set up a code editor, created a Javascript .js file, filled it with legal template and placeholders, given placeholders meaningful names, and stylized the template. Phew, that was a lot.

Now that you've done most of the heavy-lifting, we'll help you get through this last part. Simply fill out this Google Form and Kali will set up a form like below on the front end so that user may supply case-specific information for Kali document generator to fill the placeholders in the legal template with.

Once you submit the Google Form, pop into the KaliDAO Discordopen in new window and let us know how you wish to use your legal templates!

Get Involved

We welcome feature requests and feedback on our vision for more affordable and efficient DAO-run businesses.

Lurk on our Twitteropen in new windowJoin LexDAOopen in new window