Automated LGPD audits with n8n: run your own compliance check before the ANPD does
automation August 5, 2026 · Mintec

Automated LGPD audits with n8n: run your own compliance check before the ANPD does

The ANPD opened 81 inspections in 2025 and asks for your ROPA first. Here's the n8n LGPD self-audit workflow: mapping, consent, retention, incidents.

Yes, an LGPD self-audit can be automated with the same stack you already use for sales —n8n, your CRM, and a couple of APIs— and for most Brazilian companies it's the highest-ROI compliance move available right now. The ANPD opened 81 inspection processes in 2025 alone, answered 12,701 data-subject requests, and has sanctioned at least nine cases since its first fine in July 2023. Here's the detail almost nobody knows: in that first fine against a private company, the absence of a ROPA and of a named data protection officer weighed as heavily as processing data with no legal basis.

That conclusion isn't mine, it's the regulator's: missing basic documentation is an autonomous infraction. You don't need a data leak to be non-compliant. The good news is that what the ANPD asks for first —processing records, documented legal basis, consent with evidence, retention limits, and an incident runbook— is exactly the kind of information an n8n workflow can generate, verify, and keep alive automatically.

Why 2026 is the year this stopped being theoretical

Brazil moved from theory to active enforcement in two steps. First came the inaugural fine in July 2023: Telekall Infoservice, a micro-company selling WhatsApp contact lists with no legal basis. R$14,400 in penalties —reduced because it was a micro-enterprise— plus an infraction combo that defines the pattern: processing without legal basis, no appointed data protection officer, and failure to answer the authority's requests.

Then came institutional consolidation. In March 2026 the ANPD became a full regulatory agency with management and budget autonomy, hired 213 new staff, and —per its first Integrated Management Report— opened 81 inspection processes in 2025. The sanctions map tracked by Confidata shows the trend: nine sanctioning cases since 2023, from late incident reporting (Brazil's Health Ministry, 8 months late) to the INSS being forced to publicize its infraction inside its own app for 60 days — the most expensive sanction of all: reputational.

The most instructive case for a normal company is SEEDF in 2024: the authority found an infraction for inadequately maintained ROPA and missing RIPD even without a new incident. Translation: a dead document is a live risk. It's the same enforcement pattern we mapped for WhatsApp compliance in regulated industries in Mexico and Colombia — authorities ask for paperwork first, excuses later.

What the ANPD checks first: the 5 audit fronts

FrontWhat the ANPD reviewsWhere companies fail
ROPA (art. 37)Processing records organized by activity, not by data type; kept currentCreated once and never touched; a stale ROPA reads as negligence
Legal basis (art. 7)Every activity has a documented legal basisConsent used for everything, even where contract or legal obligation applies
DPO (art. 41)Named officer with a published, functional contact channelNo officer, or a generic inbox nobody reads
ConsentRecords with timestamp, capture channel, notice version, exact textNothing recorded; pre-checked boxes; no separation by purpose
Retention & incidents (art. 48)Per-category retention and notification within 3 business daysData kept forever; no response runbook

The ROPA is the first document the authority requests in an inspection, and the LGPD doesn't mandate fixed fields: the converging practice —official template and consultants alike— is to organize by processing activity, not by data category. The same CPF can sit on different legal bases in employee onboarding (legal obligation) and a loyalty program (consent). If your record is organized by data, it's organized wrong.

The n8n self-audit workflow: 6 nodes

This isn't theory: it's the pattern we apply when auditing a Brazilian client's CRM. The flow runs on n8n —self-hosted when sensitive data is involved, cloud when budget is tight— and pulls from the CRM, web forms, WhatsApp logs, and spreadsheets. It returns evidence instead of opinions.

NodeWhat it auditsSources it queriesOutput
1. InventoryWhich processes handle personal data, and for what purposeCRM, forms, WhatsApp API, emailROPA draft per activity with legal-basis flag
2. Living ROPAWhether the record still reflects the real operationCRM schema and field comparisonDetected drift + update tasks
3. ConsentTimestamp, channel, notice version, exact text of each opt-inCRM consent fieldsReport of missing or incomplete records
4. RetentionPer-category data deadlinesLast-interaction datesList of records to delete or anonymize
5. IncidentsDetection and response within deadlineSecurity alerts, logs, phishing reportsContainment checklist + ANPD report draft with computed deadline
6. Data-subject rights15-day responses to art. 18 requestsRequest inboxQueue with expiry dates and response evidence

Node 1 delivers 80% of the value. In a manual audit, data mapping eats weeks: you interview every department and reconstruct from memory which system stores what. A flow that walks the CRM and the forms detects where CPFs, phones, addresses, or health data appear, groups them by activity, and produces a ROPA draft in hours. Human review then concentrates where it belongs: confirming purposes and legal bases.

Node 5 is the one that saves the company. Resolution CD/ANPD 15/2024 set the reporting deadline at three business days from when the controller learns the incident affected personal data —six for small-scale agents— with 20 business days to supplement the initial report. Three business days is not enough time to assemble a report covering the nature of the incident, categories and counts of affected subjects, measures applied, mitigation plan, and DPO contact. An n8n flow that catches the alert, fires the containment checklist, and drafts the report using the ANPD's form turns panic into a validation task. And note: even when you decide not to report, the resolution requires keeping the incident record anyway.

Spreadsheet vs compliance software vs your own n8n flow

Spreadsheet/DriveLGPD softwareOwn n8n flow
Setup cost$0R$300–3,000/mo (~$55–550)$0 + VPS at $6–20/mo
MaintenanceManual; goes staleIncluded in subscription2–4 hours/month
ROPAStaticSemi-liveLive, with change triggers
ConsentNo verificationManual entryAutomatic field verification
IncidentsNo runbookGeneric templatesRunbook with computed deadline
Main riskStale ROPA = provable negligenceMonthly cost in dollarsNeeds a technical owner

Straight opinion: for a Brazilian SMB, paying for compliance software in dollars every month is expensive, and a full consultancy audit costs about as much as a light fine. The sweet spot is the DIY flow: the same process automation stack with n8n and CRM you already run for leads and sales, reused for compliance. For 500+ employee companies or regulated sectors, software or a consultant does make sense — the rule of thumb is: automate the evidence, leave the interpretation to a lawyer.

The 4 audit maturity levels

LevelWhat you haveWhat the ANPD seesRisk
0 — NoneNothing documentedAutonomous infractions: no ROPA, no DPOMaximum: fine, blocking, publicization
1 — ManualROPA in a spreadsheet, updated onceBetter than nothing; stale = negligenceMedium
2 — Semi-automatedROPA + reminders + consent in CRMDemonstrable governanceLow
3 — ContinuousLiving ROPA + automated retention + incident runbookDocumented good faith → sanction mitigation (art. 52, §1°, VIII)Minimal

Level 3 isn't vanity: the LGPD itself provides that adopting good governance practices mitigates sanctions. The authority prioritizes whoever shows good faith —reported on time, mitigated, documented—. In practice, the same incident can end in a warning for a level-3 company and a fine for a level-0 one.

What you should not automate (even at level 3)

  • Choosing the legal basis. The flow proposes one per activity; a lawyer confirms it. Automating that decision without oversight builds a brand-new risk.
  • Deciding whether to notify data subjects. The resolution requires assessing significant-risk triggers —sensitive data, children, financial data, large scale—. That assessment is human.
  • Defining valid anonymization. Automated deletion or anonymization works once deadlines pass, but validating that the technique isn't reversible is the DPO's job.

One recurring finding in our implementations: consent exists in the WhatsApp conversation but not in the CRM, and email consent doesn't cover other channels. That gap opens every audit we run for a Brazilian clinic or law firm — which is why we solve it inside the 5 automated compliance layers and why, before auditing, CRM data has to be clean: a ROPA generated from duplicate or incomplete records is a fake ROPA.

The 30-day plan

WeekWhat you doDeliverable
1Run the inventory node; appoint a DPOROPA draft + published officer
2Review legal bases and register consentsValidated ROPA + opt-in report
3Define retention per category and build the incident runbookRetention policy + notification flow
4Activate the rights node and the closing reportFull audit + quarterly re-audit cron

Brazilian enforcement isn't going to slow down: more staff, more budget, and a public sanctions map that rewards inspecting. The question is no longer whether you'll be audited, but whether when it happens you can show a living ROPA, consent records with evidence, and a runbook that worked. If you want to build the flow on your current stack, that's exactly the kind of automation and chatbots project Mintec implements: evidence first, compliance second.

Frequently Asked Questions

What is an LGPD self-audit and how often should you run one?

It's an internal, documented review of how your company processes personal data against LGPD requirements: processing records (ROPA), legal basis, data protection officer, consent records, and retention. Best practice is a quarterly cycle, plus triggers whenever you change a process, an integration, or a campaign.

How long do I have to report an incident to the ANPD?

Three business days from when the controller learns the incident affected personal data, per Resolution CD/ANPD 15/2024. The deadline doubles for small-scale agents, and the initial report can be supplemented with additional information within 20 business days.

Can n8n replace a lawyer or consultant for LGPD compliance?

No. Automation produces the evidence — inventory, records, deadlines, reports — but legal interpretation, like which legal basis applies or whether an incident poses relevant risk, stays human. An n8n workflow cuts the cost and time of an audit; it doesn't replace legal judgment.

Related Articles