Skip to content
agents/en vrai

Law firm: sort new inquiries, spot possible conflicts of interest and only offer a consultation after your go-ahead

For a small firm that receives new-matter inquiries through a web form: the agent checks the names supplied against your party register (clients and adverse parties), prepares a neutral internal summary with the practice area and stated dates, sends a plain acknowledgement, then waits for someone at the firm to clear it before offering consultation slots. Every day it sends the queue of overdue inquiries. The AI never decides whether the firm can act.

L2 semi-autonomousVerified sourceBased on official documentation we checked; not tested by us yet.Updated
Difficulty
Advanced
Setup time
≈ 2 h (estimate), plus the time to enter your party register
Estimated cost
Free template. n8n: free self-hosted or from €20/month; OpenRouter billed by usage (Gemini 4 by default, swappable); Google Sheets, Google Calendar and Gmail: free
Category
Legal & admin

⏱ Trigger

Each inquiry submitted through the firm's n8n form, plus a scheduled daily review of pending inquiries

✋ Human approval

Nothing is offered to the prospect before someone at the firm explicitly clears it. The conflict check is only a name match for you to confirm. The offered times are provisional: the firm confirms the booking after the prospect replies, then updates the status manually.

→ Output

An inquiry register in Google Sheets (status, conflict result, practice area, summary, offered slots), internal alert and clearance emails, an acknowledgement and a consultation offer to the prospect, and a daily review

Autonomy level 2 — Semi-autonomous (approval): Runs on its own but waits for your approval before anything sensitive.

01Connected tools

02What the agent does on its own

  1. step 01

    The form collects a unique reference, contact details, other parties, the matter description, any deadline and consent. Incomplete or non-consented submissions are logged as rejected and the firm is alerted.

  2. step 02

    Checks that the reference has not been handled already, then alerts the manager if the stated deadline is near or already past.

  3. step 03

    Compares the prospect's and other parties' names with your Google Sheets register (edit distance and token overlap). Result: none, possible or likely, with matching rows, or "unverified" if the register is empty. It is a first pass that a person must confirm.

  4. step 04

    Asks the model (Gemini 4 through OpenRouter in the template, swappable) for a practice area from your list, four neutral summary lines, literal dates and missing information. If the answer cannot be trusted, the inquiry goes to manual review.

  5. step 05

    Logs the review, sends the prospect a fixed acknowledgement (no AI-written text is sent to them) and emails the firm for clearance.

  6. step 06

    Only after explicit approval, reads the assigned attorney's Google Calendar, finds weekday openings within business hours and sends a provisional consultation offer. A decline or a timeout puts the inquiry on hold.

  7. step 07

    Every day, sends the firm the queue of inquiries overdue for review or not yet booked, even when nothing is overdue.

03Agent instructions

$ instructions.txt · replace the {VARIABLES}
> No AI instructions to write. Settings to fill in "Config": sheetId, managerEmail = {MANAGER_EMAIL}, the attorney → email and calendar mapping ({ATTORNEYS}), practiceAreas = {YOUR_PRACTICE_AREAS} (with "Other" as fallback), possibleThreshold and likelyThreshold, deadlineDays, slaHours, reviewHours, horizonDays, slotMinutes, businessStart and businessEnd, timezone = {YOUR_TIMEZONE}, maxOffers. Replace ackText and offerText with your approved firm wording.

04Limits and legal points

The name match can miss aliases, married names or non-Latin spellings: it does not replace your own conflict check. It is only as good as your register, which you must keep up to date (clients and adverse parties). The author states that this kit does not establish compliance with ethics rules. Statuses such as booked or closed are updated by hand. Executions must run one at a time (the reference check in Sheets is not a lock). The matter description goes through OpenRouter and the model provider: check that this fits your confidentiality duties and restrict access to execution data.

05In short

When does the agent run, and what does it produce?
Trigger: Each inquiry submitted through the firm's n8n form, plus a scheduled daily review of pending inquiries. Output: An inquiry register in Google Sheets (status, conflict result, practice area, summary, offered slots), internal alert and clearance emails, an acknowledgement and a consultation offer to the prospect, and a daily review.
What stays under your control?
Nothing is offered to the prospect before someone at the firm explicitly clears it. The conflict check is only a name match for you to confirm. The offered times are provisional: the firm confirms the booking after the prospect replies, then updates the status manually. Autonomy level 2 — Semi-autonomous (approval): Runs on its own but waits for your approval before anything sensitive.
How much does it cost and how long does setup take?
Estimated cost: Free template. n8n: free self-hosted or from €20/month; OpenRouter billed by usage (Gemini 4 by default, swappable); Google Sheets, Google Calendar and Gmail: free. Setup time: ≈ 2 h (estimate), plus the time to enter your party register, difficulty "advanced". Tools: n8n template 23068 (Khairul Muhtadin, 17 Nov 2026), n8n – Form Trigger, n8n – Schedule Trigger, n8n – OpenRouter Chat Model, n8n – Google Sheets, n8n – Google Calendar, n8n – Gmail, OpenRouter.

Answers taken from this recipe · updated 23 November 2026

06Source

https://n8n.io/workflows/23068-review-legal-intakes-and-offer-consultations-with-gemini-4-gmail-and-sheets/

07Related recipes

Same category or same connected tools.

All recipes in "Legal & admin" →

→ monthly newsletter

3 agents en vrai.
Every month.

Three reproducible, sourced autonomous agents. No hype, no "top 100 tools". One-click unsubscribe.