How I Built a Federal Motion Generator in Under 8 Hours
In early 2026, I needed to file a federal motion to vacate in an active civil rights case involving 130 families. I had no legal team. I had no money. I had Base44 and a folder full of super prompts. What happened next changed how I think about AI-assisted legal access forever.
The Problem
Family court in New York had issued a default judgment that violated multiple federal statutes. The case involved suppressed evidence, undisclosed conflicts of interest, and procedural irregularities that would later form the basis of a 9-count federal civil rights complaint under 42 U.S.C. ยง 1983.
Filing a Motion to Vacate required precise legal formatting, citations to FRCP Rules 60(b)(1โ6), a chronological statement of facts, exhibit management, and a formal relief request โ all documents that attorneys typically charge $3,000โ$8,000 to draft.
๐ก The insight: Every element of a Motion to Vacate follows a predictable structure. If you can describe that structure in a prompt, you can build a tool that generates it โ correctly and completely.
The Solution: A 7-Step AI-Powered Generator
Rather than building a static template, I built a fully interactive multi-step wizard that guides any pro se litigant through the complete motion drafting process. The app uses AI at key decision points to generate legally sound language based on the user's specific facts.
What the app does:
- Collects all case metadata (court, judge, parties, case number)
- Presents interactive FRCP ground selection with strength scoring
- Builds a chronological timeline and AI-generates a Statement of Facts
- Auto-populates legal argument templates for each selected ground
- Manages exhibits with auto-labeling (Exhibit A, B, Cโฆ)
- Provides a structured Relief Requested dashboard
- Assembles and exports a print-ready court document
- Saves drafts automatically every 30 seconds
The Build: Hour by Hour
The 7 Prompts Used
Every one of these prompts is available free in the Prompt Library. Here's a summary of what each one built:
Multi-step wizard architecture with sidebar, top nav, progress tracking, auto-save infrastructure, and MotionDrafts entity schema.
6-field intake form with real-time validation, completion tracking, and a conditional success state that unlocks Step 2.
7 interactive FRCP ground cards with detail capture, strength meter, and completion logic tied to at least 1 detailed selection.
Two-panel layout: timeline event builder (modal-based) + AI-generated formal Statement of Facts from user-provided events.
Per-ground argument cards pre-populated with templates, plus a side-by-side AI comparison modal for enhanced legal language.
Exhibit manager with auto-labeling + 9-checkbox relief request builder with conditional detail fields per selection.
Full document assembly from all step data. Copy to clipboard + print-to-PDF with court-formatted @media print CSS.
Key Technical Decisions
Why Base44?
Base44 was the only platform that gave me a built-in entity database, InvokeLLM integration, and a deployable frontend in one place. I didn't need a separate backend, a database config, or API key management. The MotionDrafts entity was created with a JSON schema and immediately available for reading and writing from any component.
Auto-Save Architecture
All form state is stored in a single formData object and synced to refs to avoid stale closure issues in the 30-second auto-save interval. The draft ID is stored in the URL so users can return to their work at any time.
AI Integration Points
Two AI calls power the app: one in Step 3 generates a formal Statement of Facts from the user's timeline events, and one in Step 4 enhances individual legal arguments with stronger language and case law references. Both use Base44's InvokeLLM integration, which requires no API key setup.
Print-to-PDF
The final step renders the complete motion as a styled HTML document and calls window.print(). A dedicated @media print stylesheet hides all UI chrome and formats the document at 8.5ร11 with Times New Roman 12pt, double-spacing, and 1-inch margins โ matching federal court filing standards.
Results
The Motion to Vacate Generator was used to draft and file supporting documents in Case No. 8:26-cv-00290 in the Northern District of New York. The federal civil rights complaint named multiple defendants across 9 counts including violations of 42 U.S.C. ยง 1983, Due Process, and Equal Protection.
- Built entirely in 1 day by a single non-attorney using 7 prompts
- Used to support a class action on behalf of 130+ affected families
- $30 million in damages sought across 9 federal counts
- Zero attorney fees paid for document generation
- Now publicly available as a free tool at zoprompts.com/legal
โ ๏ธ Disclaimer: This tool is provided for informational and educational purposes only. It is not a substitute for legal counsel. Always consult a licensed attorney for advice specific to your legal situation.
What's Next
This build proved that a full legal document platform โ the kind that normally costs thousands of dollars to commission โ can be built by one person in a single day using the right prompts. The next builds in this series include:
- Federal Civil Rights Complaint Builder (ยง 1983 โ 9 counts)
- Evidence Locker โ secure exhibit management with OCR
- Class Action Member Portal โ intake, tracking, and communication for 130+ plaintiffs
- Case Timeline Visualizer โ interactive chronology with AI annotation
Every prompt used to build these tools will be published in the ZoPrompts library โ free, forever.