Quick Overview
This workflow runs every Monday to check a Google Sheets watchlist of Polish companies against the KRZ National Debtor Register and MSiG court gazette via Apify, then emails (and optionally Slack-posts) only newly detected insolvency or restructuring-related entries.
How it works
- Runs every Monday at 07:00 (or manually with a sample watchlist for testing).
- Reads your counterparty watchlist from Google Sheets and normalizes NIP/KRS identifiers, keeping only rows with a valid identifier.
- Uses Apify to search the KRZ National Debtor Register for each company and formats results (or registry errors) into alert-ready entries.
- Drops KRZ items that were already reported in previous executions and, for newly found proceedings, uses Apify to fetch proceeding details such as type, status, case number, and start date.
- Uses Apify to search the MSiG court gazette for recent notices (last 8 days), formats the findings (or errors), and drops items already reported in previous executions.
- Combines all new KRZ and MSiG entries into a single table-based alert message.
- Sends one HTML email via Gmail with the new entries and can optionally post the text version to a Slack channel.
Setup
- Add an Apify API token and (if self-hosting n8n) install the community node
@apify/n8n-nodes-apify.
- Connect Google Sheets credentials and select the spreadsheet/document and sheet that contains
company, nip, and krs columns.
- Connect Gmail credentials and replace the recipient address in the email step (and enable/configure the Slack connection and channel if you want Slack alerts).