Automatyzacja n8n · Due Diligence
Zintegrowana automatyzacja due diligence: sprawdza podmiot w KRS, analizuje umówę pod kątem abuzywności klauzul i analizuje tezy prawne. Wszystkie wyniki łączy w jeden raport.
Przebieg
Te same kroki co w edytorze n8n, opisane po polsku. Kroki w jednym rzędzie działają równolegle.
Kliknij krok, żeby zobaczyć, co robi.
Workflow rusza, gdy inny system (formularz, CRM, skrypt) wyśle żądanie na adres webhooka.
Węzeł w n8n: Webhook
Uruchomienie
Potrzebujesz instancji n8n (w chmurze albo na własnym serwerze) i konta Gaius-Lex.
curl -X POST "https://<twoja-instancja-n8n>/webhook/due-diligence-full" \
-H "Content-Type: application/json" \
-d '{ "krs": "…", "contractText": "…", "notifyEmail": "…" }'Zastąp adres swoją instancją n8n, a wielokropki danymi ze sprawy.
n8n-nodes-gaius.{
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "due-diligence-full",
"responseMode": "responseNode",
"options": {}
},
"id": "f3a1",
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 2,
"position": [
-900,
200
]
},
{
"parameters": {
"keepOnlySet": true,
"values": {
"string": [
{
"name": "krs",
"value": "={{$json.body.krs}}"
},
{
"name": "contractText",
"value": "={{$json.body.contractText}}"
},
{
"name": "notifyEmail",
"value": "={{$json.body.notifyEmail}}"
}
]
},
"options": {}
},
"id": "f3a2",
"name": "Extract Input",
"type": "n8n-nodes-base.set",
"typeVersion": 2,
"position": [
-660,
200
]
},
{
"parameters": {
"operation": "krsLookup",
"krsNumber": "={{$json.krs}}"
},
"id": "f3a3",
"name": "KRS Lookup",
"type": "n8n-nodes-gaius.gaiusLex",
"typeVersion": 1,
"position": [
-400,
80
],
"credentials": {
"gaiusLexApi": {
"name": "Gaius-Lex account"
}
}
},
{
"parameters": {
"operation": "abusivityPollCreate",
"text": "={{$('Extract Input').item.json.contractText}}"
},
"id": "f3a4",
"name": "Abusivity Check",
"type": "n8n-nodes-gaius.gaiusLex",
"typeVersion": 1,
"position": [
-400,
200
],
"credentials": {
"gaiusLexApi": {
"name": "Gaius-Lex account"
}
}
},
{
"parameters": {
"operation": "thesesAnalysisPollCreate",
"text": "={{$('Extract Input').item.json.contractText}}"
},
"id": "f3a5",
"name": "Theses Analysis",
"type": "n8n-nodes-gaius.gaiusLex",
"typeVersion": 1,
"position": [
-400,
320
],
"credentials": {
"gaiusLexApi": {
"name": "Gaius-Lex account"
}
}
},
{
"parameters": {
"amount": 12,
"unit": "seconds"
},
"id": "f3a6",
"name": "Wait Analysis",
"type": "n8n-nodes-base.wait",
"typeVersion": 1.1,
"position": [
-140,
200
]
},
{
"parameters": {
"operation": "abusivityPollGet",
"requestId": "={{$('Abusivity Check').item.json.request_id}}"
},
"id": "f3a7",
"name": "Get Abusivity",
"type": "n8n-nodes-gaius.gaiusLex",
"typeVersion": 1,
"position": [
100,
200
],
"credentials": {
"gaiusLexApi": {
"name": "Gaius-Lex account"
}
}
},
{
"parameters": {
"operation": "thesesAnalysisPollGet",
"requestId": "={{$('Theses Analysis').item.json.request_id}}"
},
"id": "f3a8",
"name": "Get Theses",
"type": "n8n-nodes-gaius.gaiusLex",
"typeVersion": 1,
"position": [
100,
320
],
"credentials": {
"gaiusLexApi": {
"name": "Gaius-Lex account"
}
}
},
{
"parameters": {
"mode": "append",
"options": {}
},
"id": "f3a9",
"name": "Merge All",
"type": "n8n-nodes-base.merge",
"typeVersion": 3,
"position": [
340,
200
]
},
{
"parameters": {
"fromEmail": "dd@kancelaria.pl",
"toEmail": "={{$('Extract Input').item.json.notifyEmail}}",
"subject": "Raport Due Diligence - KRS {{$json.krs}}",
"message": "<h1>Raport Due Diligence</h1><h2>Dane KRS</h2><pre>{{ JSON.stringify($('KRS Lookup').item.json) }}</pre><h2>Analiza Abuzywnosci</h2><pre>{{ JSON.stringify($('Get Abusivity').item.json) }}</pre><h2>Analiza Tez</h2><pre>{{ JSON.stringify($('Get Theses').item.json) }}</pre>",
"options": {}
},
"id": "f3a10",
"name": "Send DD Report",
"type": "n8n-nodes-base.emailSend",
"typeVersion": 2.1,
"position": [
580,
200
]
},
{
"parameters": {
"respondWith": "json",
"responseBody": "={{ JSON.stringify({ status: 'completed' }) }}",
"options": {}
},
"id": "f3a11",
"name": "Respond",
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1,
"position": [
820,
200
]
}
],
"connections": {
"Webhook": {
"main": [
[
{
"node": "Extract Input",
"type": "main",
"index": 0
}
]
]
},
"Extract Input": {
"main": [
[
{
"node": "KRS Lookup",
"type": "main",
"index": 0
},
{
"node": "Abusivity Check",
"type": "main",
"index": 0
},
{
"node": "Theses Analysis",
"type": "main",
"index": 0
}
]
]
},
"KRS Lookup": {
"main": [
[
{
"node": "Merge All",
"type": "main",
"index": 0
}
]
]
},
"Abusivity Check": {
"main": [
[
{
"node": "Wait Analysis",
"type": "main",
"index": 0
}
]
]
},
"Theses Analysis": {
"main": [
[
{
"node": "Wait Analysis",
"type": "main",
"index": 0
}
]
]
},
"Wait Analysis": {
"main": [
[
{
"node": "Get Abusivity",
"type": "main",
"index": 0
},
{
"node": "Get Theses",
"type": "main",
"index": 0
}
]
]
},
"Get Abusivity": {
"main": [
[
{
"node": "Merge All",
"type": "main",
"index": 1
}
]
]
},
"Get Theses": {
"main": [
[
{
"node": "Merge All",
"type": "main",
"index": 2
}
]
]
},
"Merge All": {
"main": [
[
{
"node": "Send DD Report",
"type": "main",
"index": 0
}
]
]
},
"Send DD Report": {
"main": [
[
{
"node": "Respond",
"type": "main",
"index": 0
}
]
]
}
},
"meta": {
"templateCredsSetupCompleted": true
}
}Plik nie zawiera identyfikatorów poświadczeń; po imporcie n8n poprosi o podłączenie własnych kont.
Od autora
Janusz Marszałek · aktualizacja 10 maja 2026
Automatyzacja przyjmuje numer KRS i tekst umowy. Równolegle uruchamia trzy analizy: wyciąg danych z KRS, analizę abuzywności klauzul umownych oraz analizę tez prawnych. Wyniki są łączone w jeden kompleksowy raport due diligence i wysyłane emailem.
Mozesz dodać dodatkowe równolegle analizy (np. weryfikacje dokumentu, alignment check), zmienić zakres sprawdzanych źródeł, lub dodać integracje z systemem zarządzania sprawami kancelarii.
Due Diligence
Sprawdza podmiot w KRS i wysyła powiadomienie na kanał Slack. Szybki wglad w dane kontrahenta dla zespołu.
Sprawdza podmiot w KRS i wysyła raport na email. Wersja dla due diligence z powiadomieniem.
Najszybszy sposób na sprawdzenie podmiotu w KRS. Zwraca surowe dane rejestrowe przez prosty webhook.
Kompleksowe Due Diligence
Załóż konto Gaius-Lex, podłącz je w n8n i sprawdź wynik na prawdziwej sprawie. Wdrożenie automatyzacji w zespole omówimy na rozmowie.