Disclosure: DROZlegal publishes this guide and builds the defence_drafting and motion_preparation agents, the litigation form registry, and the DOCX-to-PDF-to-CaseLines packaging pipeline described below, as part of its practice-automation product for Ontario law firms. The AI-citation and court-filing statistics cited are drawn from courtready.ca's tracking database, Cassels LLP's case commentary, Canadian HR Reporter, and the Ontario Superior Court of Justice's own published notice — not ours. This article is general information about Ontario litigation drafting workflow, not legal advice.
What "AI motion and factum drafting" actually means here
Two agents do the drafting: defence_drafting for a statement of defence or responding materials, and motion_preparation for a motion record. Both sit among DROZlegal's 22 registered agent classes, and both are manual-dispatch and propose-only — a lawyer starts the job, and the output lands as a draft, never as something already sent anywhere.
Neither agent works from a blank page. Each pulls from the matter's own parties, dates, and facts already sitting on the case file, then routes the draft through the same form registry, DOCX pipeline, and citation linker described below — defence_drafting to a Form 18A statement of defence, motion_preparation to a Form 37A notice of motion plus its supporting Form 4D affidavit. A factum runs through that identical DOCX-to-PDF pipeline too, generated directly from the registry rather than through either named agent.
The drafting-to-filing pipeline, step by step
Six stages sit between "an agent drafted something" and "a lawyer has a document to file," each backed by its own piece of the litigation module (backend/app/litigation/):
| Stage | What happens | Where a lawyer signs off |
|---|---|---|
| 1. Agent draft | defence_drafting or motion_preparation drafts from the matter's own facts | Every proposal is reviewed before it becomes part of the file |
| 2. Form selection | The draft is matched against the 241-entry Ontario court-form registry | — |
| 3. DOCX authoring | Rule 4 civil-procedure heading and closing blocks are applied; the citation linker hyperlinks case law and legislation to CanLII or e-Laws | Lawyer reads the drafted document, not just approves a click |
| 4. PDF conversion | LibreOffice headless converts the DOCX to a filing-ready PDF | — |
| 5. CaseLines-ready packaging | The final PDF is bundled into a package formatted for CaseLines-style upload | — |
| 6. Filing | The document goes to the court | Filing is the lawyer's own act, one of six permanent hard ceilings |
Every step before filing is mechanical or review-gated, never autonomous submission. Filing itself is a permanent hard ceiling — one of six actions across the whole platform that never gets automated no matter how much autonomy a firm has earned elsewhere, alongside trust money movement and settlement acceptance. A lawyer submits the document to the court; the software's job ends at a filing-ready PDF.
What's actually generatable in a 241-entry registry
The registry behind step two is built from ontariocourtforms.on.ca, 241 entries deep, and split into seven archetypes. Six of the seven are fully generatable, top to bottom.
| Archetype | Entries | Generatable |
|---|---|---|
| NOTICE | 70 | 70 (100%) |
| ORDER | 53 | 53 (100%) |
| APPELLATE | 24 | 24 (100%) |
| PLEADING | 18 | 18 (100%) |
| WRIT | 15 | 15 (100%) |
| AFFIDAVIT | 10 | 10 (100%) |
| SPECIALIZED | 51 | 5 — Form 57B (Costs Outline) and the Rule 49 offer-to-settle family (49A, 49C, 49D, 49E) |
| Total | 241 | 195 |
The SPECIALIZED bucket is the outlier, and deliberately so. A NOTICE or an AFFIDAVIT follows a small number of predictable content shapes; a SPECIALIZED form doesn't, and each one needs its own hand-authored content schema before the system can generate it. Of 51 SPECIALIZED entries, five have that schema built today — the Costs Outline and the Rule 49 offer-to-settle forms. The other 46 stay browse-only — findable and readable in the registry, not yet auto-drafted.
Why the citation linker matters right now
Once a document is drafted, the DOCX pipeline's citation linker hyperlinks every case-law and legislative reference it contains out to CanLII or e-Laws — a live record a lawyer can open before signing anything. That isn't a promise the model checked its own citations against a database; it's a bridge to a source the lawyer can verify without leaving the draft. In 2026, that check is not optional.
Canadian courts and tribunals have now documented 247 decisions involving AI-hallucinated case citations, with 372 fictitious citations turning up across 206 of them. Source: courtready.ca AI-hallucination tracking database, updated August 26, 2026 — a legal-tech tracking resource, not a court or law-society publication.
Ontario has already produced two of the clearest cautionary examples this cycle. In Ko v. Li, 2025 ONSC 2766, Justice Myers found a factum containing citations that could not be verified through any legal database, writing that "AI is ubiquitous and yet its risks and weaknesses are not yet universally understood." Source: Cassels LLP, "Fantasies in the Footnotes," published May 23, 2025. In Mazaheri v. Law Society of Ontario, 2026 ONLSTH 112, a suspended lawyer's unsupervised use of generative AI to draft motion materials containing fabricated citations was treated as a significantly aggravating factor, resulting in a $31,150 costs order. Source: Canadian HR Reporter, published June 18, 2026.
Neither case involved a citation-linking step. That's the gap the feature is built to close: a citation that doesn't resolve to a real CanLII or e-Laws entry is visibly, immediately wrong in the draft — before it reaches a factum with a lawyer's name on it, not after a judge finds it.
Update, September 2, 2026. Ontario Regulation 275/26 took effect September 1, 2026, adding a new procedural obligation: anyone signing a factum (Rule 4.06.1) or expert report (Rule 53.03) must personally certify they are satisfied any quotation attributed to an authority accurately reflects that authority's text. That certification is the filing lawyer's or expert's own obligation — it is not something DROZlegal's drafting pipeline performs or guarantees on their behalf; the citation linker described above hyperlinks a citation to its CanLII or e-Laws source so a lawyer can check it before signing, but the sign-off itself stays with the human filing the document. Source: practicePRO, “Effective September 1, 2026: Amendments to Rules of Civil Procedure (O. Reg. 275/26),” August 2026; filing confirmed in the Ontario Gazette, Vol. 159, Issue 35 (August 29, 2026).
Update, September 3, 2026. Weeks before that certification requirement took effect, the Law Society Tribunal supplied the cautionary example it anticipates. On July 16, 2026, it suspended Toronto lawyer Mary Hyun-Sook Lee's licence for six months and ordered her to pay $10,000 in costs, after finding her factum relied on ChatGPT-hallucinated case citations and that she then lied to the Ontario Superior Court and the Law Society about it — before admitting, once the Law Society investigated, that she had prepared the document herself (Law Society Tribunal, 2026 ONLSTH 136). Had that factum been signed on or after September 1, the same signature would also have carried a personal certification, under Rule 4.06.1, that she was satisfied every quoted authority accurately reflected its source. A citation linker that hyperlinks each case to a real CanLII or e-Laws record — the feature described above — is built to make that certification easier to honestly give; it's still the lawyer's own read of the case, not the software, that the certification is about. Source: Law Times News, “‘Out of Character’: Tribunal Explains Six-Month Suspension of Lawyer Who Lied About ChatGPT Use,” July 2026.
The honest caveat: no LibreOffice, no PDF
Step four's PDF conversion runs on LibreOffice headless, and that dependency is real. If LibreOffice isn't installed on the host, the generate endpoint returns the drafted DOCX only and fails fast with a clear error, rather than a silent or broken PDF. It's a plain technical limit worth knowing before you lean on the pipeline for a same-day filing, not something to discover at 4 p.m. on a deadline.
Proven on one file, not just a demo
This pipeline isn't only a product-tour claim. A responding factum was produced end-to-end through this suite — drafted, converted, and packaged through the same steps above — on a live Ontario matter. We don't name the matter or the client; the point isn't the case, it's that the sequence ran start to finish under a real deadline, not just in a demo environment.
The same case-detail page that carries the generate step also carries the offers, undertakings, and service-records tabs covered in our guide to litigation discovery and settlement tracking — settlement acceptance sits behind its own permanent hard ceiling there, the same way filing does here. For a broader look at what AI document drafting means across a firm, not just litigation, see AI document drafting for law firms; for the full 241-form registry alongside the deadline engine that runs next to it, see Law Firm Automation in Ontario. The full agent roster, including defence_drafting and motion_preparation, is on the AI Agents page; the module itself lives on the Litigation product page.
Update, September 7, 2026. This drafting pipeline is one piece of a wider evaluation — see our full litigation practice management software guide for Ontario for how motion/factum drafting fits alongside deadline tracking, discovery, settlement trust accounting, and citation integrity, plus a vendor comparison table across Clio, CosmoLex, MyCase, Smokeball, Actionstep, and PracticePanther.