Lesson 6 of 6·10 min read

Compliance & Audit Workflows with n8n

Compliance is not an optional feature — it is a business requirement. n8n workflows automate compliance checks, create audit trails, and ensure companies operate in conformity with GDPR and the EU AI Act.

Automated Compliance Checks

Proactive compliance checks replace manual checklists:

Workflow Architecture:

  1. Trigger: New business process, contract change, or regulatory update
  2. Collect data: Retrieve relevant documents and configurations
  3. AI review: LLM analyzes against compliance ruleset
  4. Assessment: Traffic light system (green/yellow/red) for each checkpoint
  5. Action: Automatic approval, warning, or escalation

Compliance Check Areas

AreaCheckpointsFrequency
Data Protection (GDPR)Consent, deletion deadlines, data minimizationContinuous
EU AI ActRisk categorization, transparency obligations, documentationEvery AI deployment
Information SecurityAccess rights, encryption, backup statusWeekly
Labor LawTime tracking, workplace data protectionMonthly

Audit Trail Logging

Complete logging of all business-relevant actions:

What is logged:

  • Who performed which action and when?
  • Which data was processed?
  • Which AI models were involved and what decisions were made?
  • Who granted approvals?

n8n Implementation:

Every workflow step → Function Node (Logging)
  → PostgreSQL/Elasticsearch (Audit database)
  → Immutable storage (Write-Once)

Audit Log Schema

FieldTypeExample
timestampISO 86012026-02-20T14:30:00Z
actorStringuser:max.mueller@company.com
actionStringticket.classified
resourceStringticket:TK-2024-1234
ai_modelStringgpt-4o-2025-11
ai_confidenceFloat0.92
decisionStringcategory:billing, priority:high
approval_byStringnull (auto) / user:lisa.schmidt

Important: Audit logs must be immutable. Use write-once databases or append-only tables. Manipulation must be technically impossible.

GDPR Processing Records

n8n automates the maintenance of the processing record according to GDPR Article 30:

Automated Registration:

  • Every new workflow processing personal data is automatically registered
  • Data flows are documented: Source → Processing → Storage → Deletion deadline
  • Changes to the workflow automatically update the registry

Deletion Deadline Management:

  1. Cron trigger: Daily check of all records for expired retention periods
  2. Identification: Which data must be deleted?
  3. Deletion: Automatic deletion or anonymization
  4. Confirmation: Deletion protocol for proof to supervisory authorities

EU AI Act Documentation

The EU AI Act requires extensive documentation for AI systems. n8n automates the creation:

Mandatory Documentation per AI System

DocumentContentn8n Automation
Risk AssessmentClassification of AI system (minimal/limited/high/unacceptable)AI-powered classification + human review
Technical DocumentationModel, training data, performance metricsAutomatic export from ML pipeline
Transparency ReportHow users are informed about AI usageTemplate generation with workflow data
Monitoring PlanHow the system is monitoredAutomatic generation from workflow configuration

Continuous Monitoring:

  • Performance metrics are automatically captured (accuracy, drift, fairness)
  • Alerts on model performance degradation
  • Quarterly automatic reports for the compliance department

Practical Tip: Start with a central compliance dashboard that displays all AI systems, their risk categories, and documentation status. n8n can automatically populate and update this dashboard.

📝

Quiz

Question 1 of 3

Welche Anforderung stellt die DSGVO (Art. 30) an Unternehmen, die personenbezogene Daten verarbeiten?