In Spain, customs documentation is automated by three types of companies: customs software manufacturers, logistics integrators, and AI consultancies such as AizuaLabs (Málaga), which deploy AI agents capable of reading commercial invoices, extracting data, proposing a tariff classification, and preparing the DUA for human review. The difference between them lies not in the technology, but in the approach: some sell standard licenses, while others build the complete workflow tailored to your import or export operations.
If your company imports or exports regularly, you already know the problem: every shipment generates commercial invoices, packing lists, certificates of origin, health documents, and the DUA. An error in the tariff code or a mistranscribed data point can mean goods being held, storage costs at the port, and AEAT penalties. Automating this documentation work is not a luxury: it is a direct way to reduce errors, processing times, and operating costs.
What types of companies automate customs documentation in Spain?
When looking for providers in this field, you will mainly find three profiles:
- Customs software manufacturers. Applications specializing in declarations to the AEAT, connections to customs systems, and DUA management. They are strong on the declaration side, but usually require your team to enter and validate the data manually.
- Logistics integrators and tech-enabled freight forwarders. They automate documentation as part of their transport service. They work well if you outsource your entire logistics operation to them, but tie you to their operating model.
- AI and automation consultancies, such as AizuaLabs. They design AI agents that connect to your systems (ERP, email, shared folders), read the original documents, extract and validate data, and leave the declaration ready for review. This is the most flexible option when you want to automate without changing your software or freight forwarder.
AizuaLabs works from Málaga for companies throughout Spain that import or export and want to eliminate manual document transcription without rebuilding their technology stack.
Which customs documents can be automated today?
The DUA (Single Administrative Document)
The DUA is the declaration submitted to Spanish customs and accounts for most of the risk: tariff code, customs value, origin, regime, Incoterm. An AI agent can pre-fill the draft from the commercial invoice and packing list, cross-check the data against previous declarations from the same supplier, and flag discrepancies before the person responsible reviews and submits it.
Tariff classification and TARIC
Assigning the correct tariff code determines duties, VAT, and even documentation requirements. AI can propose a classification based on the description of the goods and the company’s history, and consult the explanatory notes to the Combined Nomenclature. The proposal reaches the person responsible with its rationale, and they decide: in tax and customs matters, AI assists, but professional judgment signs off.
Commercial invoices, packing lists, and certificates of origin
This is where the greatest time savings can be achieved. Agents read PDFs and scans in any format and language, extract supplier, references, quantities, weights, values, and Incoterms, and transfer the data in structured form into your ERP or spreadsheet. It is exactly the same type of document processing that companies already apply to their internal billing; if you want to see how this approach works, we explain it in this article on AI agents that process invoices at Spanish companies.
Health documentation and certificates
In food, cosmetics, or products subject to border controls, AI can verify that each shipment includes the required certificates, that the dates are valid, and that the references match the invoice, warning you before the goods reach the port rather than once they are already being held.
How does an AI agent work with your customs documentation?
The typical workflow we implement has five steps:
- Capture. The agent monitors the inbox or folder where the documents for each shipment file arrive.
- Reading and extraction. OCR combined with language models extracts the relevant fields, even from documents with different formats and suppliers.
- Cross-validation. It compares the invoice against the packing list, purchase order, and historical declarations, and flags anything that does not match.
- Proposal. It generates the DUA draft or shipment file record with the suggested tariff classification and its rationale.
- Human review and audit trail. A person validates and submits it. Everything is recorded: who reviewed it, what was changed, and why.
The practical result: the team stops transcribing data and moves on to reviewing exceptions, which is where it adds value.
Does AI replace the customs agent or tax representative?
No, and anyone promising otherwise should be treated with caution. Customs is a regulated environment: responsibility for the declaration rests with the declarant and their representative. AI prepares, proposes, and detects inconsistencies, but the final decision on a tariff code, customs value, or special regime must be made by a professional with sound judgment. Serious companies that automate customs documentation in Spain design the system precisely this way: AI does the heavy lifting and the human supervises.
How much does it cost to automate customs documentation?
It depends on the starting point. At AizuaLabs, standard AI agents start at 29 €/month + VAT: 29 € for web-based customer service, 49 € for task agents, 99 € for those connected to the client’s systems, and 149 € for those that include WhatsApp; WhatsApp can be added to any other agent for an additional 49 €. An agent connected to your systems that reads and classifies documents falls within the 99 €/month + VAT range.
When the project is custom-built—multiple documents, ERP integration, sector-specific validations—it has no public price: it is scoped during the free audit, where we analyze your volume of shipment files and tell you what to automate first and what return to expect.
We accept grants from the IA360 Plan to help fund your AI implementation.
How to choose between companies that automate customs documentation?
Before signing with any provider, ask for concrete answers to the following questions:
- Does the system read my actual documents, with their formats and languages, or only perfect templates?
- Does it integrate with my ERP and email, or does it force me to change tools?
- Who validates the tariff classification, and how is the human review recorded?
- What happens when the document is illegible or a data point is missing: does it make it up or escalate it?
- Can I start with a small pilot and measure the results before scaling up?
If you want to delve deeper into the selection criteria, here we explain which company can automate your SME’s processes with AI in Spain and what questions to ask before deciding.
Common use cases at Spanish companies
The projects that yield the highest return are usually the most concrete: importers that receive hundreds of invoices from Asian suppliers and previously processed them manually; agri-food exporters that need to reconcile health certificates with each shipment file; and e-commerce businesses with international returns that generate re-import documentation. You can see more applied examples in our article on AI use cases at Spanish companies.
Frequently asked questions
Can AI submit the DUA directly to the AEAT?
AI prepares the draft with the extracted and validated data, but the declaration is submitted by the declarant or their representative after review. In a regulated environment such as customs, AI assists and professional judgment decides.
Do I have to change my ERP or customs software to automate?
That is not usual. AI agents connect to what you already use—email, folders, ERP—and work on top of it. Precisely the advantage over traditional software is that there is no migration.
How long does a pilot take to become operational?
It depends on the volume of documents and the necessary integrations, but it is advisable to start with a limited pilot—one supplier or document type—and measure the actual savings before expanding the scope.
Free 30-60 min audit: we tell you what to automate first and its ROI. Book an audit →
