Challenge: documents arrive through several channels, and a deadline depends on someone noticing them in time

A law firm (illustrative example) handles dozens of court cases at once. Documents reach it in different ways: through the Information Portal of the Common Courts (Portal Informacyjny Sądów Powszechnych), where advocates and attorneys-at-law (radcowie prawni) are required to have an account, by email from clients and the opposing party, and by traditional mail. Today, an assistant checks the portal and the inbox every day, scans letters, enters each document into a spreadsheet, looks for the case it belongs to, and writes to the responsible lawyer. The lawyer then sets the response deadline and enters it in their own calendar.

This process had three recurring problems:

  • the document register depends on one person, so when that person is away, documents wait to be described,
  • the same data (case number, court, service date) is retyped into the spreadsheet, messages, and the calendar, which invites mistakes,
  • deadlines are scattered across lawyers' private calendars, so nobody sees the whole picture, and covering for a colleague on a case means hunting for information.

Solution: from an incoming document to an approved deadline in a shared calendar

Automation collects documents in one place, describes them, and proposes a deadline, but a calendar entry is created only after the lawyer approves it:

  1. Collecting documents – n8n, a tool for building workflows between systems, watches the firm's mailbox using an email trigger (IMAP) and downloads attachments. The second source is a folder that receives scans of traditional mail and documents downloaded from the court portal.
  2. Reading and describing – OCR (optical character recognition) turns the scanned document into text, and an AI agent extracts the case number, the name of the court, and the type of document. The flow takes the service date from the channel the document came through: for documents from the court portal, from the portal’s own data (service there depends on the document being opened or a set period passing after it is made available), and for post and e-mail, from the date recorded at intake. Each field is marked with the place in the document it came from, so it can be checked quickly.
  3. Matching to a case – the workflow looks up the case number and parties in the case management system. When it finds exactly one match, it attaches the document to the case and to the responsible lawyer. When it finds none, or several, the document goes to the assistant's “to be assigned” queue.
  4. Proposing a deadline – based on a table of rules set by the lawyers (type of document, number of days, method of counting), the system calculates a proposed date. The proposal has the status “to be verified” and does not yet reach the calendar.
  5. Lawyer's approval – the responsible lawyer receives a short message with the document, its description, and the proposed deadline. With one click they approve the deadline or enter a different date. If they do not respond by the end of the day, the workflow reminds them and the person covering for them.
  6. Calendar and reminders – the approved deadline goes into the firm's shared calendar with reminders set in advance, as defined in the rules. Every morning the team receives a summary of deadlines for the coming days and of documents still waiting for a decision.

Sample timeline: 6 weeks from design to a working process

  • Week 1 – audit and process mapping: a map of the channels through which documents arrive, a list of systems and exceptions, and the metrics to measure before the change.
  • Week 2 – rules design: a table of document types and deadline-counting methods agreed with the lawyers, plus rules for substitutes and escalation.
  • Weeks 3–4 – building the workflow in n8n: collecting documents, OCR, description by the AI agent, and matching to cases.
  • Weeks 4–5 – approvals and calendar: messages for lawyers, the shared calendar, reminders, and the morning summary.
  • Weeks 5–6 – tests on a subset of cases in parallel with the existing register, team training, and full rollout.

What results to expect

Specific numbers depend on the starting point, so before rollout we measure a few indicators and compare them with the baseline afterward. For a document register, these are usually the time from a document's arrival to the deadline being entered in the calendar, the number of documents described manually, and the number of deadlines approved at the last minute.

The direction of change is usually this:

  • Document registration: from checking several places every day to a single queue in which documents are already described.
  • Case data: from retyping case numbers and dates into several tools to one entry that feeds both the register and the calendar.
  • Deadlines: from private calendars to a shared view that the person covering for a colleague can use as well.
  • The assistant's work: from retyping to checking exceptions and cases the system could not assign.

Where a human decides

Automation never makes the final call on a procedural deadline and does not decide what the firm does in a case. A deadline appears in the calendar only once it is approved by the responsible lawyer, who knows the case and can take into account circumstances that a rule cannot see. The lawyers set the table of rules and the reminder thresholds, and changing them is a configuration adjustment, not a rebuild of the workflow. Every proposal from the system can be corrected in one move: change the date, assign the document to a different case, or mark it as requiring no action. The team does not lose control over cases, and instead of retyping, the assistant focuses on what needs attention.

Takeaways

Automating the document register removes repetitive work, not people from the process. The biggest effect usually comes from three elements: one place where documents from all channels arrive, a description of each document prepared before a human sees it, and a shared calendar with deadlines approved by the lawyers.

If in your firm deadlines live in private calendars and the document register depends on one person, that is usually the first sign it is worth starting with an audit of the current process.