🎣 Route law firm client intake with Anthropic Claude, Gmail and Google Sheets
⚡ 80 views · 🎣 Lead Generation & Enrichment
Description
Quick Overview
This workflow hosts an n8n intake form, sends submissions to Anthropic Claude for practice-area classification and qualification, then routes results to Gmail and Google Sheets before returning a confirmation message to the submitter.
How it works
- Receives a client intake submission through an n8n hosted form.
- Normalizes the submitted fields (contact details, matter type, incident date, description, and preferences) into a consistent structure.
- Sends the normalized intake to Anthropic Claude and requests a strict JSON assessment including practice area, summary, qualification, urgency, time sensitivity, and conflict-check flags.
- Parses Claude’s JSON response, merges it back into the intake record, and defaults to a manual-review outcome if the response is malformed.
- If the intake is qualified, sends an HTML alert email via Gmail and appends the intake details to a “Qualified Intakes” tab in Google Sheets.
- If the intake is not qualified, appends the record and decline reason to a “Declined Intakes” tab in Google Sheets.
- Returns a neutral on-screen confirmation message to the submitter after processing completes.
Setup
- Create an Anthropic API key and add an HTTP Header Auth credential that sends it as the
x-api-keyheader for the Anthropic Messages API request. - Connect a Gmail account and replace the
sendToaddress in the intake alert email with your intake team recipient. - Connect Google Sheets credentials, create a spreadsheet with “Qualified Intakes” and “Declined Intakes” tabs, and replace
REPLACE_WITH_YOUR_SHEET_IDin both Google Sheets append steps. - Review and customize the intake form fields (matter types and questions) to match your firm’s practice areas.
- Tune the Claude prompt rules (qualification, urgency, and conflict flagging) to your firm’s intake policy before activating and sharing the form URL.
đź”— Nodes Used
Google Sheets, HTTP Request, Gmail, n8n Form Trigger, n8n Form
📥 Import
Download workflow.json and import into n8n:
Workflow menu → Import from File