Law firm intake automation with WhatsApp booking (n8n)
At a glance
- Setup estimate
- 3–4 h (ESTIMATE)
- Tools
- Industries
- Professional services
Problem
Prospective clients fill out a contact form and then wait for someone to call back and book a consultation
Who it's for
Law firm intake automation for small firms and solo practitioners who take enquiries through a website form and want new leads contacted quickly on WhatsApp. The trigger: a prospective client fills in the intake form, and nobody gets back to them until a staff member has time to call and agree a consultation slot.
Skip it if your clients don't use WhatsApp, if your bar or regulator restricts automated contact with prospective clients, or if you need conflict checks before booking. Nothing here checks for conflicts.
Tools and what each does
- JotForm Trigger
- Fires when the intake form is submitted (full name, email, phone, client type, legal service, brief message, referral source).
- Google Sheets ('Law Client Enquiries')
- Stores each enquiry, keyed on email address. The scheduling agent also reads it as a lookup tool.
- AI Agent + Google Gemini Chat Model
- Writes a short WhatsApp welcome that acknowledges the enquiry and links to a booking page.
- WhatsApp Business Cloud (trigger + send)
- Sends the welcome, receives the client's replies, and sends the scheduling agent's answers.
- Second AI Agent + Postgres Chat Memory
- Chats with the client over WhatsApp, remembers the conversation per WhatsApp number, finds their enquiry, checks calendar availability and books the consultation.
- Google Calendar (two tools)
- Lists events on the requested day and creates the consultation event with the client as attendee, sending invites.
Browse by tool: n8n, Jotform, Google Sheets, WhatsApp, Google Gemini, Postgres, Google Calendar
Steps
- A prospective client submits the JotForm.
- The enquiry is saved (or updated) in Google Sheets.
- Gemini drafts a welcome message and WhatsApp sends it to the client's phone number.
- When the client replies on WhatsApp, the scheduling agent looks up their enquiry and asks for a preferred date and time.
- It checks the calendar for that day and either books the slot (with an invite) or suggests alternatives.
Known problems in the source template
Found by reading the template's JSON, not by running it. Likely fails as shipped.
Problem: The enquiry lookup tool filters on 'Phone Number' with no value, and the sheet stores JotForm's formatted phone while WhatsApp identifies the client by wa_id (digits with country code), so the agent likely can't find the enquiry.
Fix: Store a normalised number (digits with country code) at intake and pass the sender's wa_id as the lookup value.
Problem: Both Gemini nodes leave the model blank, so the node default (gemini-2.5-flash) likely applies.
Fix: Select gemini-3.6-flash in both.
Problem: Firm name ('VTR Law Firm' vs 'VTR Law Associates'), the author's Calendly link, the sheet, the WhatsApp phone number ID and the calendar ([email protected]) are hard-coded.
Fix: Replace them with your own in both prompts and all nodes.
Before you start
- JotForm with fields named exactly as in the template, plus API key.
- A Meta WhatsApp Business Cloud account with a phone number ID and an approved message template for the first contact.
- Google Sheets via a service account, Google Calendar OAuth, a Google Gemini API key, and a Postgres database for chat memory.
- Setup estimate: 3–4 h (ESTIMATE).
What can go wrong
Needs a Jotform account, a Google Cloud project (service account for Sheets, OAuth for Calendar, Gemini API key), a Postgres database for chat memory, and the WhatsApp Business Platform, which is separate from the regular WhatsApp Business app (costs UNKNOWN). Prospects' messages about legal matters are sent to Google Gemini, so check confidentiality and professional-conduct rules before using it, and make sure the bot never gives legal advice. Get WhatsApp opt-in on the form.
- Rate limitMeta's docs say free-form messages can only be sent inside a 24-hour customer service window opened by the user; outside it you need an approved template. The first welcome is free-form text, so it likely won't be delivered to a lead who has never messaged you.
- ReliabilityThe WhatsApp trigger also listens for 'delivered' status updates, which carry no message text, so those runs may error or stop at the IF.
- LegalThe agent is told to stick to scheduling, but a client may describe their matter or ask for advice in chat. Decide with your firm what the assistant may say, add a disclaimer, and check your jurisdiction's rules on solicitation and confidentiality.
- Data privacyEnquiry details (which can be sensitive legal matters) go to Google, Meta and the Gemini API, and chat history is kept in Postgres.
- ModelGemini model left blank; the node default gemini-2.5-flash is restricted to existing users per Google's deprecations page. Select gemini-3.6-flash.
How to adapt it
- Send a booking link (Calendly or Google appointment schedule) instead of letting the AI book.
- Use SMS or email for the first contact and WhatsApp only once the client replies.
- Add a conflict-check step that searches your matter list before booking.
- Use Typeform or a Webflow form instead of JotForm.
Sources we checked
- Status
- Researched: Sourced and summarized, not yet run end-to-end by us
- Last checked
- Details checked
Setup estimates are rough guesses for someone comfortable with the tools who already has the accounts and API keys. Real time is unknown until tested.