Law · Lead generation site with a management panel
Flávio Prado
Lead generation site and office panel for a jury trial defense lawyer, with CRM, billing and a court monitoring robot.

- Client
- Criminal defense lawyer focused on jury trials
- Where
- Minas Gerais, Brazil · serves clients nationwide
- Technology
- PHP · MariaDB · HTML · CSS · JavaScript · API DataJud (CNJ) · Comunica PJe · Google Gemini · Resend · Hostinger
- Status
- Live · flavioprado.com
- Development
- André Gomes · NexiaLabs
In short
Flávio Prado is a criminal defense lawyer registered with the Minas Gerais bar, working in jury trials and serving clients across Brazil. André Gomes, from NexiaLabs, built the lead generation site in HTML, CSS and PHP, with six defense area pages, a blog and contact capture. Behind the site runs a PHP and MariaDB panel with a lead CRM, calendar, case files, fee billing and a robot that queries DataJud and Comunica PJe.
The client
Flávio Prado is a criminal defense lawyer and retired judge who works through the firm Figueiredo & Neiva Advogados Associados. His practice centers on intentional crimes against life, from investigation to the jury floor. People looking for this kind of lawyer are rarely calm: it is usually a family with a trial date set or a relative in custody. The office needed an online presence that fits that moment and a place to organize the contacts coming in.
The challenge
The page had to shorten the path from a distressed person to a conversation with the lawyer, without promising outcomes, since legal advertising in Brazil follows bar association rules. Each defense area needed its own page to show up for people searching the name of the charge. Contacts arrived through a form and through WhatsApp, and without a record there was no way to know which channel or campaign brought clients. On the office side, deadlines, court notices and fees were scattered across spreadsheets, court systems and memory.
What was built
André built an HTML and CSS site with six area pages, from homicide and femicide to habeas corpus and criminal review, plus a section on defensive investigation under the bar's Provision 188/2018. The blog became dynamic in PHP, with articles published from the panel and videos from the lawyer's YouTube channel read through its public feed. A script intercepts every WhatsApp link, asks for the type of case and the visitor's name, records the contact and stores the campaign source. In the panel, the office follows each lead until it becomes a client, registers case files, receives court notices as calendar tasks and manages fee agreements.
What the system does
- Six defense area pages written for people searching for a lawyer for a specific charge.
- Qualified WhatsApp capture: before opening the chat, the site asks the type of case and records the contact with its campaign source.
- Blog with area filter, a page for each article and a video section fed by the lawyer's YouTube channel.
- Lead CRM with stages, temperature, next contact date, loss reason and a timeline for each person.
- Court robot that pulls case updates from DataJud and notices from Comunica PJe, then creates a task for the lawyer to confirm the deadline.
- Billing module with fee agreements, down payment, monthly installments, success fee percentage and monthly entries.
- AI writing assistant for the blog that always returns a draft for the lawyer to review and never publishes on its own.
- Office calendar that can be subscribed to in Google Calendar through a secret token address.
// For whoever reviews the code: architecture and decisions.
Under the hood
The public site is HTML pages with custom CSS, while the blog, sitemap and contact capture run in PHP on Hostinger shared hosting. The panel is PHP with MariaDB, with its own login, seven access profiles and permissions checked in the menu, in data loading and in the API. A daily scheduled task runs the court robot, which queries the public DataJud API by case number and Comunica PJe by bar registration, and in the same pass generates the month's billing entries. Transactional email goes through Resend and the writing assistant calls Gemini from the server, with keys stored outside the public folder. Database changes ship as additive, idempotent migrations, and the panel keeps working with modules switched off if a migration has not run yet.
Technical decisions
- The robot never computes a final deadline on its own: a notice becomes a task and the lawyer confirms the date, because a missed deadline in a criminal case cannot be undone.
- AI generated text comes back as a draft and is never published directly, because under the bar's Provision 205/2021 the lawyer is responsible for what goes live.
- A client is the lead itself at the client stage, with no separate table, so the person's name and data live in one place instead of being retyped in case files, contracts and fees.
- The video section reads the public YouTube feed with a six hour cache, with no API key and without loading the player until the visitor clicks.
Does your business look like this one?
For law offices that receive clients in urgent moments and want a site that leads to a conversation and a panel that organizes leads, deadlines and fees.
Frequently asked questions
Who developed Flávio Prado?
Flávio Prado was developed by André Gomes Andrade, a full stack developer from Carlos Chagas, Minas Gerais, Brazil, at NexiaLabs, from planning to launch.
Where is the client of Flávio Prado based?
Criminal defense lawyer focused on jury trials. Minas Gerais, Brazil · serves clients nationwide.
Which technologies were used to build Flávio Prado?
Flávio Prado uses PHP, MariaDB, HTML, CSS, JavaScript, API DataJud (CNJ), Comunica PJe, Google Gemini, Resend, and Hostinger.
Can you build a similar project for my business?
Yes. Every project is custom built, with code and accounts in the client's name. The first step is a WhatsApp conversation at +55 (33) 98465 6356 to understand what you need.
More law projects

Oliveira & Jesus Advogados
Nine practice area site and internal panel for a law firm in Itamaraju, Bahia, with blog, CRM, billing and a court robot.
General practice law firm in the far south of Bahia
See the project
Sarah Barreto
Site for a consumer rights lawyer in Teófilo Otoni, organized around the problems clients face, with direct WhatsApp contact.
Consumer rights lawyer in the Mucuri Valley
See the project