Back to work

Client Intake and Case Management · Legal intake automation

An enquiry read, recorded and passed to a lawyer

Built for a law firm's intake desk. Enquiries arrive by web form, voice call, uploaded document or WhatsApp, and contract reviews wait for a lawyer before the client sees them.

What the workflow handles

  • 8Ways in
    What it covers
    A web form, a voice-call callback, a document upload, a case status change, a contract upload, a lawyer's approval, an inbound WhatsApp message and the platform's verification check. Each is its own entry point, and a daily schedule adds a ninth start for follow-ups.
  • 6AI steps
    What it covers
    They classify an enquiry, read a call transcript, summarise a document, write a follow-up, review a contract and answer WhatsApp messages. The prompts say the output is administrative and not legal advice.
  • 1Approval step for contracts
    What it covers
    An AI contract review goes to the lawyer first. The summary email to the client sits after the lawyer's approval request and the approved check.
  • 1Error alert route
    What it covers
    A catch-all error branch formats an alert with the workflow, the failed node and the message, and sends it to a chat.

How an enquiry moves

  1. An enquiry arrivesForm, call, document or message
  2. It is read and recordedClassified, saved to the case sheet
  3. People are toldLawyer and client notified
  4. A lawyer decidesContract summaries wait for approval

How it works, in detail

For technical reviewers: the workflow, its routes and architecture.

TriggerStepAnswer to senderRedrawn from the build’s layout file

Inside the automation · 78 nodes, 6 chat models shown inside their AI steps

From enquiry to lawyer

Scroll the steps. Tap any node for its job, retries and what it sends.

  1. Intake and cases1 / 9

    3

    Form to lawyer and client

    How it works
    An intake POST must carry name, phone, email and an issue summary, and the phone needs at least 10 digits; the node's error output goes to a validation response. A language model classifies the matter and scores the lead Hot, Warm or Cold, and a parse step falls back to Other, Warm and a manual-review flag when the JSON is unreadable. The row is appended to the Leads tab, then three notices go out in parallel: a Telegram message and an email to the lawyer and a WhatsApp acknowledgement to the client. The success response follows the Telegram notice.
  2. Intake and cases2 / 9

    10:00

    Call to calendar booking

    How it works
    A voice service posts the call result. The webhook acknowledges at once, a model pulls name, email, category, urgency and whether an appointment was asked for out of the transcript, and the lead is stored. When an appointment was requested, the calendar is read and an event is created for 10:00 the next day, followed by a WhatsApp confirmation. The calendar read is not used to pick the slot. A separate outbound-call node sits on its own with nothing wired into it.
  3. Intake and cases3 / 9

    8,000

    Document read and summarised

    How it works
    An upload is acknowledged at once. The file goes to a text-extraction call written for Google Document AI, and the text is cut to 8,000 characters for the model, which returns a structured summary with missing documents and information. The original goes to Google Drive, the summary to the Documents tab, and an email goes to the lawyer when anything is missing.
  4. Intake and cases4 / 9

    3

    Follow-ups capped per case

    How it works
    At 09:00 Monday to Saturday the Cases tab is read. A code step drops closed cases and any case that already had three follow-ups, and keeps those with a deadline within 7 days, a hearing within 3 days or no contact for 7 days. A model writes a WhatsApp message and an email; both go out, and an escalation alert goes to the lawyer on Telegram when the model marks the case for escalation. The follow-up count is updated through the email path.
  5. Intake and cases5 / 9

    9

    Status change to the client

    How it works
    A POST carries a case id, a new status, notes and the lawyer's name. Nine statuses have a ready client message, from New to On Hold; any other status gets a generic line. The case record is read for the client's phone and a WhatsApp message goes out.
  6. Intake and cases6 / 9

    10,000

    Contract text sent for review

    How it works
    A contract upload is acknowledged, its text is extracted and cut to 10,000 characters, and a model returns clause-by-clause findings with a risk level. The review is saved with the status pending_lawyer_approval and goes to the lawyer by email and Telegram. The email says the findings must be checked by a qualified lawyer and not shared with the client first.
  7. Intake and cases7 / 9

    1

    Approval comes before the client

    How it works
    The lawyer posts review_id, approved and notes. An approved request reads the saved review and sends the summary by email. Only the yes output of the check is connected, so a rejection ends there, and the recipient field of the email still has to be pointed at the client's address.
  8. Intake and cases8 / 9

    200

    Receptionist under 200 words

    How it works
    The inbound webhook returns 200 to the platform immediately, and events that are not messages stop at the parse step. A model answers as a receptionist: no legal advice, under 200 words, in the client's language, and a request to share name, phone, email and a short description for a new case. The verification branch returns hub.challenge without checking a token.
  9. Intake and cases9 / 9

    3

    Failures reported to a chat

    How it works
    The error trigger formats the workflow, the failed node, the message and a link to the run, and sends them to a Telegram chat with 2 retries 5 s apart. The file's settings do not name this workflow as an error workflow. 32 nodes set their error output to continue and only one, the intake validation, has it connected.

Build notes

What the workflow file shows about how it is built, and what it leaves open.

One copy of the route is drawn

Why 78 nodes
The file holds the whole route twice. The page draws the first copy, 78 nodes with the error branch. The second copy has the same wiring.

Error outputs mostly go nowhere

What the file shows
32 nodes select an error output and only the intake validation node connects it, to an error response. The catch-all error branch formats an alert for a chat, and the file's settings do not name it as the error workflow of anything.

The calendar read is not used

What happens
After a voice call that asks for an appointment, the calendar is read and an event is created for 10:00 the next day. The slot does not depend on what the read returned, so a conflict would not be seen.

Contract summaries wait for a lawyer

How the gate works
The AI contract review goes to the lawyer by email and chat. The summary to the client sits after an approval request and the approved check. Only the yes output of that check is connected, and the client email still needs its recipient set.

Deployment configuration

Checklist
Bind OAuth and API credentials per workspace, enable webhook authentication on the eight endpoints, set the client email recipient on approved summaries, and configure callback token verification.

Next

Customer Service and Orders

Customer Service and Orders