AI Orchestration in E-Invoicing and EDI Document Mapping
See how AI agents support EDI document mapping at Comarch e-Invoicing: from analysis to testing, with a mapper approving every stage.
Published By From Comarch · 1 min read
AIAI Orchestration in E-Invoicing and EDI…
Every e-invoicing and EDI project depends on one unglamorous activity: translating documents from the format one trading partner sends into the format another can process. It is done in thousands of small, partner-specific maps, and it has traditionally been manual work that needs deep specialist knowledge.
At Comarch E-Invoicing, we have started to change this by building an agent-based AI orchestration around our mapping process. Dedicated chains of agents now support analysis, implementation, testing, and modification of maps, while people keep control over every decision that matters. Preliminary results from the first quarter show that a mapping task takes about 47% less time than it did a year earlier.
This is an excerpt. The full article is published by Comarch.
Answers to common questions regarding this article's topic, architecture, and practical applications.
Before AI tools were introduced, building maps involved problems that surfaced at every stage of the process.
Challenges / Risks
Every e-invoicing and EDI project depends on one unglamorous activity: translating documents from the format one trading partner sends into the format another can process. It is done in thousands of small, partner-specific maps, and it has traditionally been manual work that needs deep specialist knowledge.
Definition / Understanding
In the solution used in Comarch e-Invoicing, maps are built on a dedicated mapping engine developed in .NET using C#. We started by dividing the problem into types of use cases. The main ones are:
General
For each of these use cases, we designed a dedicated chain of agents that guides the model through the successive steps needed to complete the task, whether analysis, implementation, testing, or modification. Each use case is handled by a separate group of agents. The agents communicate with Jira and internal systems via Comarch MCP servers. Heavier subtasks are delegated to sub-agents: specialized helper agents with their own context and a restr
General
In EDI communication, an invoice in one input format must be converted into a different output format that the recipient's ERP system understands. Without this translation, the ERP systems of trading partners would not be able to communicate with each other. For example, an incoming invoice in EDIFACT format (the INVOIC message) has to be mapped to the format required by the recipient – this may be the American X12 standard (transaction 810) or m