Document Automation
Product features
By practice area
By company size
Contract Review
PRODUCT FEATURES
Resources
LearN
Case Studies
Pricing

When to use rules-based document automation and when to use generative AI in a law practice, compared on accuracy, audit trail, cost, extraction and ethics.
Gavel Exec reviews, redlines and drafts contracts inside Microsoft Word, checked against your own playbooks. Start with 25 free queries, no credit card required.
Use rules-based automation when your firm produces the same type of document from client answers, such as engagement letters, estate plans and residential leases, because the same answers always produce the same document. Use generative artificial intelligence (AI) when you review or negotiate documents someone else wrote, such as a counterparty's nondisclosure agreement (NDA) or a landlord's lease.
Most practices need both, and the two work together: AI can draft the rules, and rules can steer the AI.
Last checked November 3, 2026. Gavel publishes this guide and makes Gavel Workflows, a rules-based document automation product, and Gavel Exec, a generative AI contract review and drafting product. Statutes, ethics guidance and studies are linked to their sources.
Rules-based automation follows instructions a person wrote in advance, such as "if the client has minor children, include a guardian nomination." Generative AI uses a large language model (LLM) to predict text from your prompt and documents, so it can read and write language nobody wrote a rule for. Rules give the same output for the same input; generative AI output can vary and needs a lawyer's review.
In a law practice, rules-based automation usually means document automation. A questionnaire collects the facts, and a template uses conditional logic, calculations and variables to assemble a finished Word or PDF document. Our guide to what document automation is covers the parts in detail, and legal expert systems apply the same if-then logic to answer legal questions.
Generative AI tools draft, summarize, answer questions about documents and propose edits. "AI" also covers older machine learning, such as clause classifiers trained on labeled contracts; this guide focuses on generative AI, the subject of ABA Formal Opinion 512. Our AI terminology guide for lawyers defines the related terms.
| Rules-based automation | Generative AI | |
|---|---|---|
| How it works | Runs if-then rules, calculations and templates that a person built | Predicts text with a large language model from your prompt and documents |
| Best for | Documents you produce again and again from client facts | Documents you receive, review or negotiate, and first drafts of one-off documents |
| Same input, same output | Yes | Not guaranteed. Output can change between runs |
| Audit trail | The answers, the template version and the rule behind each clause | The source documents, instructions or playbook, the output and the lawyer's accepted and rejected edits |
| Ongoing upkeep | Edit the rules when the law or your forms change | Keep playbooks current and review every output |
| Data extraction | Fixed layouts, form fields and structured intake answers | Varied layouts and wording, with a person checking each value |
| Main risk | A wrong or outdated rule repeats in every document | Plausible text that is wrong, including invented citations |
| Gavel product | Gavel Workflows | Gavel Exec |
Ask who wrote the first draft and how often you produce the document. If it starts from your own template and you produce it often, automate it with rules. If it starts on someone else's paper, or the language changes every time, use generative AI and review the result.
| Task | Better fit | Why |
|---|---|---|
| Engagement letters | Rules-based | Same structure every time, and required fee terms can be inserted by rule |
| Wills, trusts and powers of attorney | Rules-based | One intake drives a full document set with conditional clauses |
| Residential leases you issue | Rules-based | Statutory limits such as deposit caps can be calculated from the answers |
| NDAs on your own paper | Rules-based | Required notices go in automatically for the right recipients |
| NDAs on the other side's paper | Generative AI | The language changes with every counterparty |
| Commercial leases from a landlord | Generative AI | Long, negotiated and different every time |
| Pulling terms from a portfolio of existing leases | AI extraction, checked by a person | The same data points sit in different places and wording |
| Court forms filled from client intake | Rules-based | Fixed fields map directly to intake answers |
| Briefs and research memos | Generative AI, with every citation checked | Each case it cites has to be pulled and read |
In California, Business and Professions Code section 6148 requires a written fee agreement when it is reasonably foreseeable that the client's total expense, including attorney fees, will exceed $1,000 (contingency fee agreements fall under section 6147). The agreement must state the basis of compensation, the general nature of the legal services and the responsibilities of attorney and client. A rules-based template can ask for the state and the expected fee and insert those terms whenever the statute applies.
An estate plan is a set of documents built from one set of facts. One intake questionnaire can drive the will, revocable trust, powers of attorney and health care directive, with rules that add a guardian nomination when the client has minor children and a trust for any beneficiary under an age the client picks. Streeter Law Firm in New Mexico creates full estate plans in 30 minutes with Gavel.
On your own paper, an NDA is a rules problem. The federal Defend Trade Secrets Act of 2016 added section 1833(b) of Title 18 of the United States Code, which requires an employer to give notice of the Act's whistleblower immunity in any contract with an employee that governs the use of trade secrets or other confidential information, entered into or updated after May 11, 2016. It treats contractors and consultants as employees for this purpose, and the notice can be a cross-reference to a policy document that sets out the employer's reporting policy. An employer that leaves the notice out cannot recover exemplary damages or attorney fees under the Act from an employee who did not receive it. A template rule can add the notice whenever the recipient is an individual employee, contractor or consultant.
When the counterparty sends its own NDA, generative AI review fits better: a tool such as Gavel Exec compares the draft with your playbook and proposes tracked changes. Our guide to AI NDA review covers the playbook positions.
A firm that issues residential leases for landlord clients can build statutory limits into the template. Since July 1, 2024, California Civil Code section 1950.5 has capped most residential security deposits at one month's rent. Individual landlords (or limited liability companies owned only by individuals) who own no more than two residential rental properties with no more than four units in total may take up to two months' rent. That allowance doesn't apply when the prospective tenant is a service member. A rule can calculate the cap from the rent, the landlord's answers and the tenant's service member status. A commercial lease that arrives from a landlord's counsel is different every time, so generative AI review against your positions fits it better.
Rules-based automation is as accurate as its template: the same answers produce the same document, and you can point to the rule behind every clause. Generative AI can read and draft language no template covers, but its output can vary and can be wrong in ways that look right. Its audit trail has to include a lawyer's review.
Microsoft's Azure OpenAI documentation says that if you ask a chat model the same question multiple times, "you're likely to get a different response," and that even with its reproducible output setting, "Determinism isn't guaranteed."
Legal-specific tools reduce errors without removing them. Stanford and Yale researchers, in a study published in the Journal of Empirical Legal Studies in 2025, found that Lexis+ AI from LexisNexis, and Westlaw AI-Assisted Research and Ask Practical Law AI from Thomson Reuters, each hallucinated between 17% and 33% of the time in tests run in spring 2024, less often than GPT-4 did. In Mata v. Avianca, a federal judge in the Southern District of New York imposed a $5,000 penalty on two lawyers and their firm on June 22, 2023, after they submitted "non-existent judicial opinions with fake quotes and citations" created by ChatGPT.
Rules carry their own risk: a wrong or outdated rule repeats in every document until someone fixes it, so run each template against a known-good document after every change. Keep these records for each approach:
Gavel Exec supplies several parts of that record. Gavel Exec is AI contract review and drafting software that runs inside Microsoft Word as an add-in and on the web. Each redline includes its reasoning, suggestions go in as tracked changes that you accept or reject in Word, and each playbook rule passes or fails with a stated reason and proposed changes. Gavel Exec also cites the attachments and project files it relies on. To keep a record of which edits you accepted or rejected, save the marked-up version before you resolve the tracked changes.
Rules-based automation front-loads the cost: someone has to build the questionnaire and template logic, and after that each new document takes little time. Generative AI takes little setup, then costs a per-user subscription plus a lawyer's review time on every document it touches.
Build time grows with the number of branches in the document. Gavel Blueprint, covered below, shortens it: Gavel's AI automatically structures workflows from your uploaded fillable PDF and Word documents, ready for your review and approval.
Maintenance differs as well. A rules-based template changes only when someone edits it, so a statutory change such as California's deposit cap needs a person to update the rule; every later lease then follows it. Generative AI upkeep is ongoing: playbooks that match your current positions and a review of every output.
Gavel's two products show the two pricing models. Gavel Workflows is priced by plan, from $83 per month, with a 7-day free trial and no credit card; the Lite plan includes one builder seat and 10 workflows (see pricing). Gavel Exec is priced per user: $160 per user per month, or $1,740 per user per year, with 25 free queries per user and no credit card. Paid plans include 1,000 queries per user per month. The monthly plan is billed month to month, with no long-term contract.
Customers report time savings from both. Litson PLLC cut its time from lead to client by 90% with Gavel Workflows. Martin Algie of MIA Contract Lawyers cut first-cut contract review from about 15 hours to about 5 hours per contract with Gavel Exec.
Use rules-based extraction when every document shares one layout, such as a fillable PDF form or a standard court form. Use AI extraction when the same information appears in different places and words, such as rent and renewal terms in leases from many landlords, and have a person check the results.
Rules-based extraction reads a fixed position, a named form field or a text pattern, such as a regular expression that matches dates or dollar amounts. It is fast and predictable on documents built from one form, and it breaks when the layout or wording changes. AI extraction uses a model trained on many documents to find the value wherever it appears.
Microsoft's documentation for Azure AI Document Intelligence draws the same line. Its template models rely on "a consistent visual template," and variances in layout "affect the accuracy of your model." Its neural models extract fields "from structured, semi-structured, and unstructured documents," and Microsoft recommends neural models over template models "for higher accuracy" where the documents support them.
AI extraction still needs checking. The Vals Legal AI Report of February 2025 compared legal AI tools with a control group of lawyers answering the same questions without AI. On data extraction, the top tool (Harvey Assistant) scored 75.1% and the lawyer baseline 71.1%. Those numbers call for a review step on every extracted value that feeds a deadline, a payment or a filing.
When you control the document, you can skip extraction: collect the facts as structured answers at intake and generate the documents from them. Gavel Workflows generates complete document sets from one set of answers, so a fact entered once at intake appears in every document that needs it. When the documents come from outside, such as a stack of vendor agreements you need to compare, Gavel Exec runs batch analysis across many documents in its web app and cites each source.
Yes, in three common ways: AI can draft the rules for a template, rules can steer an AI review, and one matter can move from one tool to the other as it goes from your first draft to the other side's markup.
Building templates is the main cost of rules-based automation, and AI can do the first pass. With Gavel Blueprint, you upload your documents and Gavel's AI suggests custom questions to generate your Word and fillable PDF forms. It automatically structures workflows from your uploaded fillable PDF and Word documents, ready for your review and approval. Once you approve a workflow, it runs on rules, so the finished documents keep the predictability of document automation.
A contract playbook is a set of rules written in plain language: the positions you accept, the ones you push back on and what to propose instead. In Gavel Exec playbooks, each rule has a name and a description of what to verify. The AI checks the open agreement against each rule, and a failed rule shows the reason and proposed changes. You can generate rules from checklists, spreadsheet playbooks or signed agreements, then test them against an agreement you consider correct.
On an NDA, the firm generates its own form from a short questionnaire in Gavel Workflows, with the trade secret notice and governing law set by rule. When the counterparty returns a markup or sends its own form, Gavel Exec reviews it against the firm's NDA playbook in Word. Our guide to redlining contracts with AI walks through the review side.
ABA Formal Opinion 512, issued July 29, 2024, applies the existing Model Rules of Professional Conduct to generative AI tools. It asks lawyers to check output, protect client information, communicate with clients, make only accurate statements to courts, bill fairly and supervise how the firm uses these tools.
The opinion focuses on generative AI. A rules-based template that assembles text you wrote neither learns from client data nor invents content. You remain responsible for every document it produces. Our list of security questions to ask legal software vendors covers the data terms to check before you upload anything.
Sort your work by who writes the first draft and how often the document repeats. Then test one tool on each side with a real, closed matter.
On step 5, Gavel Exec holds SOC 2 Type II certification, has Zero Data Retention agreements with its AI model providers and does not use customer data to train AI models.
Some writers group rules-based expert systems under AI, and others reserve the term for systems that learn from data. Rules-based automation applies rules a person wrote and produces the same document for the same answers. Workflows in Gavel Workflows run this way, including workflows that Gavel Blueprint's AI structured and you approved.
For documents built from your own templates, document automation is more reliable because the same answers always produce the same document. Generative AI is the better tool for language no template anticipated, such as a counterparty's contract, with a lawyer reviewing the result.
Rules-based extraction reads fixed positions, form fields or text patterns, so it suits documents with one layout, such as fillable PDF forms. AI extraction finds the same information across different layouts and wording, and a person should check every value it returns.
Gavel Blueprint does this: upload your documents, and Gavel's AI suggests custom questions to generate your Word and fillable PDF forms and structures workflows from them, ready for your review and approval. After you approve a workflow, it runs on rules and produces the same documents for the same answers.
The opinion addresses generative AI tools, and its footnote 3 says many of the same professional responsibility concerns arise with other AI tools. Your duties of competence and supervision cover every document a rules-based template produces, so test templates and review what they generate.
Gavel Workflows starts at $83 per month, with a 7-day free trial and no credit card. Gavel Exec costs $160 per user per month, or $1,740 per user per year, with 25 free queries per user and no credit card.
Related reading: what document automation is, the best legal document automation software, how to redline contracts with AI and our AI terminology guide for lawyers. To automate the documents you produce, start a 7-day Gavel Workflows trial. To review the contracts you receive, try Gavel Exec free with 25 queries and no credit card.
What Claude offers lawyers and law firms in 2026: which plan to buy, how client data is handled, Claude for Legal plugins, Cowork and Claude's limits.
Client intake and CRM software for law firms compared by firm size: what each tool does, what it costs and how it hands off to documents.
28 verbatim Reddit comments about Gavel Exec and Gavel Workflows from r/LawFirm, r/legaltech and r/Lawyertalk, grouped by topic, each linked to its thread.