Integracje Gaius-Lex z Outlookiem, Gmailem, OneDrive i Dyskiem Google są już dostępneDowiedz się więcej

Automatyzacja n8n · Weryfikacja umow

Analiza Ryzyka Umowy.

Kompleksowa analiza ryzyka umowy: weryfikacja dokumentu, abuzywność klauzul i tezy prawne w jednym uruchomieniu z raportem na Telegram.

  • Średniozaawansowany
  • 11 kroków
  • ok. 12 s pauz na wyniki Gaius-Lex
Jak dodać węzeł Gaius-Lex do n8n
Start
POST /webhook/analiza-ryzykaŻądanie przekazuje: pole „contractText”, pole „chatId”.
Gaius-Lex
  • Weryfikacja dokumentu i cytowań
  • Klauzule abuzywne
  • Analiza tez prawnych
Wynik
  • Telegram
  • Odpowiedź HTTP

Przebieg

Co dzieje się po uruchomieniu.

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.

  1. Workflow rusza, gdy inny system (formularz, CRM, skrypt) wyśle żądanie na adres webhooka.

    Wywołanie
    POST /webhook/analiza-ryzyka

    Węzeł w n8n: Webhook

  2. Równolegle · 3 kroki
  3. Oczekiwanie 12 s
  4. Równolegle · 3 kroki

Uruchomienie

Cztery kroki do pierwszego wyniku.

Potrzebujesz instancji n8n (w chmurze albo na własnym serwerze) i konta Gaius-Lex.

Przykładowe wywołanie
curl -X POST "https://<twoja-instancja-n8n>/webhook/analiza-ryzyka" \
  -H "Content-Type: application/json" \
  -d '{ "contractText": "…", "chatId": "…" }'

Zastąp adres swoją instancją n8n, a wielokropki danymi ze sprawy.

  1. 1

    Zainstaluj węzeł Gaius-Lex

    W n8n otwórz Settings → Community nodes → Install i wpisz pakiet n8n-nodes-gaius.
    Instrukcja krok po kroku
  2. 2

    Zaimportuj plik

    Pobierz JSON z tej strony i w n8n wybierz Import from file. Workflow otworzy się ze wszystkimi krokami i połączeniami.
  3. 3

    Podłącz konta

    • Klucz API Gaius-Lex (węzeł n8n-nodes-gaius)
    • Bot Telegram (token od @BotFather)
  4. 4

    Wywołaj webhook

    Najpierw przetestuj na adresie testowym, potem aktywuj workflow i podepnij adres produkcyjny do formularza lub systemu.
Podgląd JSON workflow
{
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "analiza-ryzyka",
        "responseMode": "responseNode",
        "options": {}
      },
      "id": "g8a",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        -800,
        200
      ]
    },
    {
      "parameters": {
        "keepOnlySet": true,
        "values": {
          "string": [
            {
              "name": "contractText",
              "value": "={{$json.body.contractText}}"
            },
            {
              "name": "chatId",
              "value": "={{$json.body.chatId || ''}}"
            }
          ]
        },
        "options": {}
      },
      "id": "g8b",
      "name": "Extract",
      "type": "n8n-nodes-base.set",
      "typeVersion": 2,
      "position": [
        -560,
        200
      ]
    },
    {
      "parameters": {
        "operation": "docVerificationPollCreate",
        "text": "={{$json.contractText}}",
        "checkJudiciary": true,
        "checkInterpretations": true,
        "checkActs": true,
        "checkKio": true
      },
      "id": "g8c",
      "name": "Verify Doc",
      "type": "n8n-nodes-gaius.gaiusLex",
      "typeVersion": 1,
      "position": [
        -320,
        80
      ],
      "credentials": {
        "gaiusLexApi": {
          "name": "Gaius-Lex account"
        }
      }
    },
    {
      "parameters": {
        "operation": "abusivityPollCreate",
        "text": "={{$('Extract').item.json.contractText}}"
      },
      "id": "g8d",
      "name": "Abusivity",
      "type": "n8n-nodes-gaius.gaiusLex",
      "typeVersion": 1,
      "position": [
        -320,
        200
      ],
      "credentials": {
        "gaiusLexApi": {
          "name": "Gaius-Lex account"
        }
      }
    },
    {
      "parameters": {
        "operation": "thesesAnalysisPollCreate",
        "text": "={{$('Extract').item.json.contractText}}"
      },
      "id": "g8e",
      "name": "Theses",
      "type": "n8n-nodes-gaius.gaiusLex",
      "typeVersion": 1,
      "position": [
        -320,
        320
      ],
      "credentials": {
        "gaiusLexApi": {
          "name": "Gaius-Lex account"
        }
      }
    },
    {
      "parameters": {
        "amount": 12,
        "unit": "seconds"
      },
      "id": "g8f",
      "name": "Wait All",
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [
        -60,
        200
      ]
    },
    {
      "parameters": {
        "operation": "docVerificationPollGet",
        "requestId": "={{$('Verify Doc').item.json.request_id}}"
      },
      "id": "g8g",
      "name": "Get Verify",
      "type": "n8n-nodes-gaius.gaiusLex",
      "typeVersion": 1,
      "position": [
        180,
        80
      ],
      "credentials": {
        "gaiusLexApi": {
          "name": "Gaius-Lex account"
        }
      }
    },
    {
      "parameters": {
        "operation": "abusivityPollGet",
        "requestId": "={{$('Abusivity').item.json.request_id}}"
      },
      "id": "g8h",
      "name": "Get Abusivity",
      "type": "n8n-nodes-gaius.gaiusLex",
      "typeVersion": 1,
      "position": [
        180,
        200
      ],
      "credentials": {
        "gaiusLexApi": {
          "name": "Gaius-Lex account"
        }
      }
    },
    {
      "parameters": {
        "operation": "thesesAnalysisPollGet",
        "requestId": "={{$('Theses').item.json.request_id}}"
      },
      "id": "g8i",
      "name": "Get Theses",
      "type": "n8n-nodes-gaius.gaiusLex",
      "typeVersion": 1,
      "position": [
        180,
        320
      ],
      "credentials": {
        "gaiusLexApi": {
          "name": "Gaius-Lex account"
        }
      }
    },
    {
      "parameters": {
        "mode": "append",
        "options": {}
      },
      "id": "g8j",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "typeVersion": 3,
      "position": [
        420,
        200
      ]
    },
    {
      "parameters": {
        "resource": "message",
        "operation": "sendMessage",
        "chatId": "={{$('Extract').item.json.chatId}}",
        "text": "Raport ryzyka umowy gotowy. Weryfikacja, abuzywnosc i tezy sprawdzone.",
        "additionalFields": {}
      },
      "id": "g8k",
      "name": "Telegram",
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        660,
        200
      ]
    },
    {
      "parameters": {
        "respondWith": "json",
        "responseBody": "={{ JSON.stringify({ verification: $('Get Verify').item.json, abusivity: $('Get Abusivity').item.json, theses: $('Get Theses').item.json }) }}",
        "options": {}
      },
      "id": "g8l",
      "name": "Respond",
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1,
      "position": [
        900,
        200
      ]
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Extract",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract": {
      "main": [
        [
          {
            "node": "Verify Doc",
            "type": "main",
            "index": 0
          },
          {
            "node": "Abusivity",
            "type": "main",
            "index": 0
          },
          {
            "node": "Theses",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Verify Doc": {
      "main": [
        [
          {
            "node": "Wait All",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Abusivity": {
      "main": [
        [
          {
            "node": "Wait All",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Theses": {
      "main": [
        [
          {
            "node": "Wait All",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait All": {
      "main": [
        [
          {
            "node": "Get Verify",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get Abusivity",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get Theses",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Verify": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Abusivity": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Get Theses": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram": {
      "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

Opis i dostosowanie.

Janusz Marszałek · aktualizacja 10 maja 2026

Jak to działa

Automatyzacja przyjmuje tekst umowy. Równolegle uruchamia weryfikacje dokumentu (sprawdzenie źródeł), analizę abuzywności klauzul i analizę tez prawnych. Wyniki są agregowane i wysyłane jako raport ryzyka na Telegram i webhook response.

Wymagania

  • Instancja n8n z dostępem do internetu
  • Aktywne konto Gaius-Lex
  • Telegram Bot

Dostosowanie

Dodać powiadomienie email, zmienić zakres sprawdzanych źródeł, lub dołączyć alignment check.

  • Analiza ryzyka
  • Weryfikacja umowy
  • Abuzywnosc
  • Tezy prawne

Weryfikacja umow

Podobne automatyzacje.

Wszystkie z tej kategorii

Analiza Ryzyka Umowy

Uruchom ten workflow na własnym dokumencie.

Załóż konto Gaius-Lex, podłącz je w n8n i sprawdź wynik na prawdziwej sprawie. Wdrożenie automatyzacji w zespole omówimy na rozmowie.