Have you ever imagined turning WhatsApp into an automated channel to capture qualified clients for labor lawsuits, with intelligent and humanized service? That’s exactly what we did for a law firm — and here’s how we made it happen.
The Challenge
Every day, the law firm received dozens of WhatsApp messages: potential clients with questions about dismissals, rights, legal procedures… The problem? Filtering who actually had a viable case for legal assistance — and doing it without overloading the legal team.
The 5-Step Solution
1. The lead initiates contact via WhatsApp
The potential client sends a message. This is where it all begins. An AI Agent steps in — fully automated and friendly.
2. Intelligent and humanized conversation (OpenAI)
We used the OpenAI API to simulate a natural conversation, with accessible language and targeted questions:
- What was the type of employment relationship?
- Was the employment officially registered?
- When did the dismissal occur?
- Did you receive all your entitled payments?
These details are essential to assess the case.
3. Automatic lead classification
Based on the responses, the agent classifies the lead:
- Type of case (constructive dismissal, unpaid wages, moral harassment, etc.)
- Degree of viability (strong or weak indicators)
- Urgency level
4. Secure storage in Supabase
All collected data is stored directly in Supabase — a secure, cloud-based PostgreSQL database. This ensures easy access and case history for the lawyers.
5. Automation with n8n
Using n8n, we built workflows that:
- Notify lawyers when a viable lead appears
- Organize contacts by priority
- Trigger alerts or create tasks automatically
Tools and Skills Used
- n8n — process automation and orchestration
- OpenAI API — AI for legal conversations with accessible language
- WhatsApp — entry channel for clients
- Supabase — secure and scalable database
- Agent GPT — creation and operation of the intelligent agent
The Result
The legal team began receiving qualified leads with complete information, optimizing response time and avoiding rework. This allowed the firm to scale its services without sacrificing quality — or the human touch.