Automate KSeF Invoices to NocoDB with n8n Workflow
Automate KSeF Invoices to NocoDB with n8n Workflow
Couldn't load pickup availability
Automate KSeF Invoices to NocoDB with n8n Workflow
Streamline your Polish business invoicing with this powerful n8n workflow that automatically connects to KSeF (Krajowy System e-Faktur) — Poland's national e-invoicing platform — and pulls both issued and received invoices directly into your NocoDB database, complete with email notifications for every new invoice.
What this workflow does
This automation handles the complete KSeF v2 authentication process, including RSA-OAEP token encryption, session initialization, and status polling, so you never need to manually log into the government portal. The workflow fetches invoice metadata from KSeF, intelligently filters out duplicates already stored in your NocoDB database, retrieves full XML invoice details, and converts them into clean, styled HTML format. Each new invoice triggers an automatic email notification and gets stored in your structured database before the session terminates cleanly.
Use cases
- Automated invoice management: Polish businesses can automatically track both cost and issued invoices in one centralized NocoDB database
- Accounting workflow automation: Accountants can eliminate manual KSeF portal checking and get instant email alerts for new invoices
- Business intelligence: Build downstream automation and reporting on top of your structured invoice data
- Compliance tracking: Maintain comprehensive records of all KSeF transactions without manual data entry
Technical details
Built with essential n8n nodes including Set, XML, Code, Wait, Merge, and NocoDB integrations. The workflow features a one-time setup subflow and main execution process that handles complex KSeF API authentication and data processing. This is an enhanced version of Greg Brzezinka's original KSeF workflow, specifically optimized for NocoDB integration and HTML email notifications.
Perfect for Polish businesses, accountants, and developers seeking reliable KSeF invoice automation without the complexity of manual government portal navigation or custom API development.
