Block 1 - Overview
- Type / Role
- n8n-nodes-base.stickyNote - stickyNote
- Config choices
- Version 1
Who is this for This template is built for solo attorneys, small law firms, and legal billing coordinators who receive timesheet documents by email and need to produce LEDES compliant e billing fil...
n8n-nodes-base.stickynote, n8n-nodes-base.emailreadimap, n8n-nodes-base.code, n8n-nodes-base.if, n8n-nodes-base.microsoftexcel, n8n-nodes-base.extractfromfile, n8n-nodes-word2text.word2text, @n8n/n8n-nodes-langchain.lmchatopenai
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by AI Solutions.
Original n8n.io sourceThis template is built for solo attorneys, small law firms, and legal billing coordinators who receive timesheet documents by email and need to produce LEDES-compliant e-billing files for client billing management systems. If you have an IMAP inbox, an OpenAI API key, a self-hosted Gotenberg instance, and a Microsoft 365 account, you can have AI-processed LEDES invoices delivering automatically in under 30 minutes of setup.
The workflow monitors an inbox for emails with PDF or Word timesheet attachments, extracts all time entries using GPT-4o, assigns UTBMS task codes, auto-increments an invoice number, and returns a PDF invoice, LEDES 1998B file, and LEDES XML 2.0 file to the original sender — all without any manual data entry.
An IMAP — Watch Inbox trigger monitors for unread emails with attachments. Classify Attachment detects whether the file is a PDF or Word document and routes it to the correct extractor.
Extract — PDF Text or Extract — Word Text pulls the raw text content from the attachment and passes it to the AI pipeline.
AI Agent — Extract Time Entries uses GPT-4o to parse all time entries from the document, capture date, timekeeper, hours, rate, description, client, and matter fields, and assign the best-fit UTBMS ABA task code (A101–A111) for each line. If rate or timekeeper information is missing, configurable defaults are applied automatically.
AI Agent — Extract Sender Info runs a second GPT-4o-mini pass over the email body and signature to extract the sender's name, address, and contact details for the "Remit To" section of the invoice.
Excel — Read Invoice Numbers queries your timesheets.xlsx tracking workbook via Microsoft Graph API to find the last issued invoice number and increment it automatically.
Merge — Time Entries + Invoice Number combines the AI-extracted data with the new invoice number, then fans out to four parallel generation nodes.
Generate — LEDES 1998B, Generate — LEDES XML 2.0, Generate — Invoice HTML, and Prep Excel Rows run simultaneously to produce all outputs. All brand variables — logo URL, firm name, colors — are defined as named constants at the top of the Invoice HTML Code node for easy one-time customization.
Convert to PDF sends the finished HTML to your self-hosted Gotenberg instance, returning a print-ready US Letter PDF — no third-party PDF service required.
Send Invoice Email delivers all three billing files as attachments via Gmail OAuth2 back to the original sender. Excel — Append Time Entries and Excel — Append Invoice Number update your tracking workbook with the full LEDES row data and the new invoice record.
timesheets.xlsx workbook, worksheet, and table.'INV-' prefix to match your firm's invoice numbering convention.logoUrl and the brand color constants to match your firm identity.@page CSS rules and table-based layout for reliable PDF rendering.Visit automatedintelligentsolutions.com for more information, support, and workflows.
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
Showing the first 24 of 34 workflow blocks. Download the JSON for the full node graph.
| Workflow | Convert legal timesheets to LEDES and PDF invoices |
|---|---|
| Complexity | advanced |
| Nodes | 34 |
| Categories | Invoice Processing, AI Summarization |
| Author | AI Solutions |
| Published | 17 Apr 2026 |
Use the JSON export at /data/workflows/15121/15121.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
Who is this for This template is built for solo attorneys, small law firms, and legal billing coordinators who receive timesheet documents by email and need to produce LEDES compliant e billing fil...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Invoice Processing, AI Summarization use case.