24/10/2026
KSeF and AI for Accounting Firms: Automation Ahead of the 2027 Changes
What can be automated in KSeF workflows, how RAG can help with guidance, and how to protect an accounting firm's client data.
Poland’s National e-Invoicing System (KSeF) changes how invoices are issued, received, and processed. According to the Polish Ministry of Finance rollout schedule, mandatory issuing began for large businesses on February 1, 2026, and for other businesses on April 1, 2026. Businesses benefiting from the transitional relief for sales documented by invoices of up to PLN 10,000 per month are due to join on January 1, 2027. Check the latest ministry guidance and each client’s circumstances before changing a firm’s workflow.
A structured invoice does not eliminate the rest of an accountant’s work: expenses still need coding, exceptions need checking, and clients need answers. Automation and AI can help with these steps, but they should not make tax decisions without human review.
From invoice retrieval to a proposed accounting entry
Once integrated with KSeF, a system can retrieve an invoice and connect it to the client’s records. Business rules or an AI model can suggest an expense category, flag missing information, or mark an item for review. An accountant checks the result before approval. Accuracy depends on the quality of the data, the integrations, and exceptional cases; it cannot be promised without testing on real documents.
When preparing for later KSeF stages, it is also worth deciding which invoice identifiers need to reach payment systems and who approves their use. Specific requirements should be checked against the current Ministry of Finance guidance rather than relying on a language model’s memory of regulations.
RAG as an assistant for procedures
A RAG assistant can search a firm’s internal instructions, KSeF documentation, and approved guidance, then draft answers with links to its sources. The answer is not guaranteed to be correct: the sources may be outdated, or the model may misread them. The person responsible for the client should review it before sending.
For a firm serving multiple businesses, keeping each client’s documents separate is especially important. Permissions must be enforced before passages reach the model, including in the search index. This is a core recommendation in OWASP’s RAG security guidance.
Where should the data be processed?
A local model or a dedicated environment can make it easier to control where invoices and queries go. It is not an automatic confidentiality guarantee: OCR, document indexes, backups, logs, KSeF integrations, and any third-party services also need reviewing. The choice between a firm’s server and a cloud environment depends on client requirements, contracts, costs, and the actual architecture.
A sensible first step is one workflow — such as initial invoice classification or searching internal procedures — tested with accountants against real examples and measurable review effort.
If you would like to discuss a pilot, get in touch. I design integrations and AI systems in direct collaboration with client teams.
This article is for information only and does not constitute tax, accounting, or legal advice.