Automatyzacja n8n · Analiza dokumentow
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/full-pipeline" \
-F "data=@dokument.pdf" \
-F "email=…"Zastąp adres swoją instancją n8n, a wielokropki danymi ze sprawy.
n8n-nodes-gaius.{
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "full-pipeline",
"responseMode": "responseNode",
"options": {}
},
"id": "h146",
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 2,
"position": [
-1000,
200
]
},
{
"parameters": {
"keepOnlySet": true,
"values": {
"string": [
{
"name": "email",
"value": "={{$json.body.email}}"
}
]
},
"options": {}
},
"id": "h147",
"name": "Extract",
"type": "n8n-nodes-base.set",
"typeVersion": 2,
"position": [
-760,
200
]
},
{
"parameters": {
"operation": "ocrPollCreate",
"binaryFile": "data"
},
"id": "h148",
"name": "OCR",
"type": "n8n-nodes-gaius.gaiusLex",
"typeVersion": 1,
"position": [
-520,
200
],
"credentials": {
"gaiusLexApi": {
"name": "Gaius-Lex account"
}
}
},
{
"parameters": {
"amount": 10,
"unit": "seconds"
},
"id": "h149",
"name": "Wait",
"type": "n8n-nodes-base.wait",
"typeVersion": 1.1,
"position": [
-300,
200
]
},
{
"parameters": {
"operation": "ocrPollGet",
"requestId": "={{$('OCR').item.json.request_id}}"
},
"id": "h150",
"name": "GetOCR",
"type": "n8n-nodes-gaius.gaiusLex",
"typeVersion": 1,
"position": [
-120,
200
],
"credentials": {
"gaiusLexApi": {
"name": "Gaius-Lex account"
}
}
},
{
"parameters": {
"operation": "docVerificationPollCreate",
"text": "={{$json.text}}",
"deepCheck": true,
"checkJudiciary": true,
"checkInterpretations": true,
"checkActs": true,
"checkKio": true
},
"id": "h151",
"name": "Verify",
"type": "n8n-nodes-gaius.gaiusLex",
"typeVersion": 1,
"position": [
100,
100
],
"credentials": {
"gaiusLexApi": {
"name": "Gaius-Lex account"
}
}
},
{
"parameters": {
"operation": "abusivityPollCreate",
"text": "={{$('GetOCR').item.json.text}}"
},
"id": "h152",
"name": "Abusivity",
"type": "n8n-nodes-gaius.gaiusLex",
"typeVersion": 1,
"position": [
100,
300
],
"credentials": {
"gaiusLexApi": {
"name": "Gaius-Lex account"
}
}
},
{
"parameters": {
"amount": 12,
"unit": "seconds"
},
"id": "h153",
"name": "Wait",
"type": "n8n-nodes-base.wait",
"typeVersion": 1.1,
"position": [
320,
200
]
},
{
"parameters": {
"operation": "docVerificationPollGet",
"requestId": "={{$('Verify').item.json.request_id}}"
},
"id": "h154",
"name": "GetVerify",
"type": "n8n-nodes-gaius.gaiusLex",
"typeVersion": 1,
"position": [
520,
100
],
"credentials": {
"gaiusLexApi": {
"name": "Gaius-Lex account"
}
}
},
{
"parameters": {
"operation": "abusivityPollGet",
"requestId": "={{$('Abusivity').item.json.request_id}}"
},
"id": "h155",
"name": "GetAbusivity",
"type": "n8n-nodes-gaius.gaiusLex",
"typeVersion": 1,
"position": [
520,
300
],
"credentials": {
"gaiusLexApi": {
"name": "Gaius-Lex account"
}
}
},
{
"parameters": {
"mode": "append",
"options": {}
},
"id": "h156",
"name": "Merge",
"type": "n8n-nodes-base.merge",
"typeVersion": 3,
"position": [
720,
200
]
},
{
"parameters": {
"fromEmail": "raporty@kancelaria.pl",
"toEmail": "={{$('Extract').item.json.email}}",
"subject": "Pelny Raport Analizy Dokumentu",
"message": "<h1>Raport</h1><h2>OCR</h2><pre>{{ JSON.stringify($('GetOCR').item.json) }}</pre><h2>Weryfikacja</h2><pre>{{ JSON.stringify($('GetVerify').item.json) }}</pre><h2>Abuzywnosc</h2><pre>{{ JSON.stringify($('GetAbusivity').item.json) }}</pre>",
"options": {}
},
"id": "h157",
"name": "Email",
"type": "n8n-nodes-base.emailSend",
"typeVersion": 2.1,
"position": [
920,
200
]
},
{
"parameters": {
"respondWith": "json",
"responseBody": "={{ JSON.stringify($json) }}",
"options": {}
},
"id": "h158",
"name": "Respond",
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1,
"position": [
1120,
200
]
}
],
"connections": {
"Webhook": {
"main": [
[
{
"node": "Extract",
"type": "main",
"index": 0
}
]
]
},
"Extract": {
"main": [
[
{
"node": "OCR",
"type": "main",
"index": 0
}
]
]
},
"OCR": {
"main": [
[
{
"node": "Wait",
"type": "main",
"index": 0
}
]
]
},
"Wait": {
"main": [
[
{
"node": "GetVerify",
"type": "main",
"index": 0
},
{
"node": "GetAbusivity",
"type": "main",
"index": 0
}
]
]
},
"GetOCR": {
"main": [
[
{
"node": "Verify",
"type": "main",
"index": 0
},
{
"node": "Abusivity",
"type": "main",
"index": 0
}
]
]
},
"Verify": {
"main": [
[
{
"node": "Wait",
"type": "main",
"index": 0
}
]
]
},
"Abusivity": {
"main": [
[
{
"node": "Wait",
"type": "main",
"index": 0
}
]
]
},
"GetVerify": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 0
}
]
]
},
"GetAbusivity": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 0
}
]
]
},
"Merge": {
"main": [
[
{
"node": "Email",
"type": "main",
"index": 0
}
]
]
},
"Email": {
"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
Najbardziej kompletna automatyzacja: rozpoznaje tekst ze skanu (OCR), weryfikuje dokument względem źródeł prawnych, analizuje abuzywność klauzul i generuje pełny raport wysyłany na email. Wszystko w jednym uruchomieniu.
Dodaj analizę tez, KRS lookup lub agent AI dla jeszcze bardziej kompleksowej analizy.
Analiza dokumentow
Rozpoznaje tekst ze skanu przez OCR i wysyła wynik na Gmail. Wersja dla użytkowników Google Workspace.
Masowe OCR wielu dokumentów. Dzieli pliki na partie i przetwarza równolegle z opcjonalnym limitem prob.
Rozpoznaje tekst ze skanu przez OCR, a następnie pozwala zadawać pytania o treść dokumentu. Przydatne do szybkiej analizy dokumentów papierowych.
Full Prepline OCR Verify
Załóż konto Gaius-Lex, podłącz je w n8n i sprawdź wynik na prawdziwej sprawie. Wdrożenie automatyzacji w zespole omówimy na rozmowie.