Short answer: Use AI to do the reading and the shortlisting, and keep a person (or your customs broker) responsible for the final code. A good setup pulls each product's materials, function and specs from your own records, has a language model propose two or three candidate codes with the reasoning and matching official rulings, and sends every suggestion to a reviewer before it reaches your product master or a customs entry. The AI makes classification faster and better documented. It does not take the legal responsibility off you.
The problem
If you import physical goods, every product needs a tariff code. In the UK it is a commodity code, in the US an HTS number, and both start from the same six-digit Harmonized System (HS) code. HMRC's guidance is plain about whose job this is: you need to find the right commodity code for anything you import or export, because the code sets the duty and VAT you pay.
For a business with a few dozen products that is manageable. For a distributor or online retailer adding new lines every month, it turns into a backlog that nobody wants to own. Someone copies the code from the supplier's invoice, or from a similar product, and moves on.
Merchants have also seen what happens when automation is done badly. In a long-running Shopify Community thread, sellers described a classification feature that replaced their HS codes with ones guessed from product descriptions. A yarn shop said a colour name like "Burgundy" got its yarn coded as wine. Bicycle frame parts came back as clothing and tractor parts. Sellers reported parcels refused by Canadian customs and customers charged the wrong duties at checkout, and several wrote scripts to put their own codes back. In a separate thread from May 2025, a dropshipper asked why they had to work out codes at all when the supplier knows the product better, and was left unsure who was responsible.
What a wrong code costs
The obvious cost is paying too much duty, or too little and owing it later. The less obvious cost is penalties. In the US, CBP's penalty guidelines say that an unreasonable classification is treated as a lack of reasonable care. For negligence, the maximum penalty where duty was lost is up to two times the lost duty; for gross negligence, up to four times.
To put that in numbers (an illustration, not a forecast): if a wrong code meant you underpaid $10,000 in duty across a year of shipments, you would owe the $10,000, and a negligence penalty could in principle reach $20,000 on top. Mitigation is possible, and the guidelines take your compliance history and any prior disclosure into account, but the starting point is not small.
Then there is the time. Each new product means reading the tariff, checking the notes for the chapter, and searching for rulings on similar goods. Even at a modest pace this adds up across a catalogue.
Why it keeps happening
A few things make classification hard to keep on top of in a small or mid-sized business.
The product data lives in the wrong places. Materials are in a spec sheet, the intended use is on the website, and the composition of a mixed item is in an email from the factory. The person classifying has to chase all of it.
Supplier codes look authoritative but often are not. Flexport's list of common classification mistakes includes copying a supplier's or competitor's code without checking it, and using a foreign country's code for a US import. The first six digits may match across countries, but the extra national digits do not.
Nobody writes down why. The same Flexport list flags failing to document how a classification was reached, and not reviewing codes when a product changes. When a question comes later, there is no record of the reasoning.
Generic AI is a poor shortcut on its own. Research published in the last year shows how hard this task is for language models working alone. The ATLAS benchmark, built from US Customs rulings, found its best fine-tuned model got the full 10-digit code right 40% of the time and the 6-digit code 57.5% of the time. The HSCodeComp benchmark reported 46.8% 10-digit accuracy for the best AI agent against 95.0% for human experts. Asking a chatbot "what's the HS code for this?" and pasting the answer into a customs entry is the Shopify thread above, done by hand.
How AI solves it
The useful approach treats AI as a well-read assistant to the person who classifies. It gathers the facts, narrows the tariff down to a short list, finds the official rulings that support each option and writes up the reasoning. A human picks the code.
Step 1: Build a clean product fact sheet
For each SKU, pull together what classification depends on: what it is made of (with percentages for mixed materials), what it does, how it is used, whether it is a part or a finished item, whether it is sold as a set, and the country of origin. Most of this sits in your ERP, PIM, supplier spec sheets and product pages.
This is where a language model earns its keep first. It can read a PDF spec sheet or a supplier email and fill in structured fields, and it can flag what is missing ("composition not stated", "unclear if sold as a kit"). Plain code should then validate the fields, for example that material percentages add up to 100.
Step 2: Shortlist candidate codes
Rather than asking the model for one answer, ask it for the two or three most plausible headings and why. It should work down the tariff in order (section, chapter, heading, subheading) using the published tariff text and chapter notes as its reference material, not its memory. This is a retrieval-augmented setup: the model is given the relevant parts of the official tariff and rulings and must point to them.
Step 3: Attach the evidence
For each candidate, search published rulings on similar products. In the US that is CBP's rulings database (CROSS); in the UK, HMRC has a searchable database of Advance Tariff Rulings. The model summarises the closest rulings and how your product differs. Every reference must be a real link a reviewer can open, and the system should reject any suggestion that cites a ruling it cannot find.
Step 4: Human review and sign-off
A reviewer (your trade compliance lead or your customs broker) sees the fact sheet, the candidates, the evidence and a confidence flag, then accepts, edits or rejects. The decision and the reasoning are saved against the SKU. Low-confidence items, kits and anything touching a high-duty or restricted heading go to the broker by default.
Step 5: Keep it current
Plain automation handles the upkeep. When a product's spec changes, its code goes back into the review queue. When the national tariff is updated, the system lists SKUs under affected headings. Nothing is changed silently.
| Task | Best handled by | Why |
|---|---|---|
| Reading spec sheets and supplier emails | Language model | Unstructured text, varied formats |
| Checking required fields are present | Rules / code | Exact, repeatable checks |
| Shortlisting headings with reasons | Language model with tariff text | Needs reading and comparison |
| Finding similar rulings | Search plus language model summary | Large text database |
| Choosing the final code | Person or licensed broker | Legal responsibility, judgement |
| Pushing approved codes to ERP and shop | Automation (n8n, API scripts) | Simple data transfer |
| Re-queuing changed products | Rules / code | Triggered by data changes |
The output that matters most is the audit trail. For each code you can show what you knew about the product, which options were considered, which rulings were checked and who approved it. That is the kind of record that supports a claim of reasonable care.
Costs and timeline
All figures below are estimates for planning, not quotes. Your own numbers will depend on catalogue size, how messy your product data is and which systems you connect.
Assumptions
- A catalogue of 2,000 active SKUs, with 40 new SKUs a month.
- A trained person spends about 30 minutes classifying a new SKU from scratch (finding specs, reading the tariff, checking rulings), and about 10 minutes reviewing a prepared shortlist with evidence.
- Staff time costed at $45 an hour (or £35).
On those assumptions, manual classification of new lines takes about 20 hours a month. With a prepared shortlist, review takes about 7 hours. That saves around 13 hours a month, roughly $585 (or £455). If you also want to re-check the existing 2,000 SKUs once, the same assumptions give about 1,000 hours by hand against about 330 hours of review.
Three options compared
| Option | Typical cost (estimate) | Timeline | Suits |
|---|---|---|---|
| Do nothing (copy supplier codes) | No upfront cost; exposure to duty corrections and penalties | None | Very small, low-duty catalogues only |
| Buy: broker or classification service | Per-SKU or subscription pricing; ask for quotes | Days per batch | Most small importers |
| Build: AI-assisted workflow inside your systems | Roughly $15,000 to $40,000 for a first version, plus model and hosting costs | 6 to 10 weeks | Larger or fast-changing catalogues, data spread across systems |
Off-the-shelf services are a real option. Flexport, for example, describes a product classification service where AI flags possible errors and its licensed customs brokers confirm every code. If that fits, it is usually quicker than building anything. A custom build makes more sense when your product data is scattered, when you want the reasoning stored in your own ERP or PIM, or when you classify for several countries and want one review process.
When not to use AI
Do not let any system, yours or a vendor's, write codes straight into live customs data without a person signing off. The Shopify thread shows what happens when a tool overwrites codes at "high confidence" and merchants cannot stop it.
AI is not much help if your product data is thin. If you do not know a product's composition, a model will guess, and a guess presented neatly is still a guess. Fix the data first.
For a small catalogue, say under a hundred SKUs that rarely change, a broker or a few hours with the official tariff tool is cheaper than any build.
For genuinely uncertain or high-value products, get an official ruling. CBP will issue a binding ruling letter on a described transaction, and HMRC's Advance Tariff Ruling service replies in 30 to 120 days. AI can help you prepare a clear, complete application, which is a good use of it.
How to start
- Export your SKU list with current codes and where each code came from (supplier, broker, staff, unknown).
- Rank SKUs by import value and duty rate, and start with the top 10% to 20%.
- Check what product facts you actually hold for those SKUs: materials, function, origin, kit contents.
- Agree a review rule with your broker: what they must approve and what your team can approve.
- Pilot the shortlist and evidence step on 50 to 100 SKUs whose codes your broker has already confirmed, and measure how often the confirmed code appears in the shortlist.
- Only then connect it to your ERP or shop platform.
If you want help designing a classification assistant grounded in the official tariff and your own product data, that is the kind of work our custom LLM and RAG development service covers, including evaluation and guardrails. If you are still deciding whether it is worth building at all, AI strategy consulting ends in a working prototype you can test against your broker's codes.
Related reading: if supplier files are already the source of your product data, see how to automate supplier price and stock file imports with AI. For the cost side of imports, see how to automate freight invoice audits and catch overcharges.
FAQ
Can AI classify HS codes accurately?
Not reliably on its own. Recent benchmarks found the best AI systems got the full 10-digit code right well under half the time, compared with about 95% for human experts. AI is much more useful for gathering product facts, shortlisting candidate codes and finding similar rulings for a person to check.
Who is responsible for the HS code on an import?
The importer. HMRC tells traders they need to find the right commodity code for goods they import, and US penalty guidelines treat an unreasonable classification as a lack of reasonable care by the parties to the entry. Using a broker or a software tool does not move that responsibility away from you.
Can I use the HS code my supplier gives me?
Treat it as a starting point. A supplier's code may be wrong, out of date, or based on their own country's tariff, where the digits after the first six differ. Check it against your own country's tariff before you rely on it.
What is the penalty for using the wrong HTS code in the US?
Under CBP's guidelines, a negligent error that causes lost duty can carry a penalty of up to two times the lost duty, and gross negligence up to four times, on top of paying the duty owed. Penalties can be reduced, and the guidelines consider your compliance history and whether you made a prior disclosure.
How do I get an official ruling on a product's tariff code?
In the US, you can request a binding ruling from CBP by letter or through its eRulings template. In the UK, apply to HMRC for an Advance Tariff Ruling, which takes 30 to 120 days and must be requested before the goods clear customs.
Is there software that does HS classification automatically?
Yes. Several trade and tax platforms offer AI-assisted classification, and some, such as Flexport, have licensed brokers confirm the codes. Whichever you use, make sure you can see and override every code and that the reasoning is kept on record.
Sources
- HMRC, "Finding commodity codes for imports or exports": https://www.gov.uk/guidance/finding-commodity-codes-for-imports-or-exports
- HMRC, "Apply for an Advance Tariff Ruling": https://www.gov.uk/guidance/apply-for-an-advance-tariff-ruling
- eCFR / Cornell LII, 19 CFR Part 171 Appendix B, "Customs (Civil) Penalties Under 19 U.S.C. 1592": https://www.law.cornell.edu/cfr/text/19/appendix-B_to_part_171
- HMRC, "Search for Advance Tariff Rulings": https://www.tax.service.gov.uk/search-for-advance-tariff-rulings
- U.S. Customs and Border Protection, "Rulings": https://www.cbp.gov/trade/rulings
- U.S. Customs and Border Protection, "Ruling Letters": https://www.cbp.gov/trade/rulings/ruling-letters
- "ATLAS: Benchmarking and Adapting LLMs for Global Trade via Harmonized Tariff Code Classification" (arXiv, September 2025): https://arxiv.org/abs/2509.18400
- "HSCodeComp: A Realistic and Expert-level Benchmark for Deep Search Agents in Hierarchical Rule Application" (arXiv, October 2025): https://arxiv.org/abs/2510.19631
- Flexport, "The 10 most common HTS classification mistakes made by importers": https://www.flexport.com/blog/the-10-most-common-hts-classification-mistakes-made-by-importers/
- Flexport, "Product Classification": https://www.flexport.com/products/product-classification
- Shopify Community, "Harmonized System Codes are incorrect, cause unnecessary tariffs": https://community.shopify.com/t/harmonized-system-codes-are-incorrect-cause-unnecessary-tariffs/309687
- Shopify Community, "As a dropshipper dealing with HS codes" (May 2025): https://community.shopify.com/t/as-a-dropshipper-dealing-with-hs-codes/414492
If you'd like to talk through your product catalogue and whether an AI-assisted classification process would pay off, get in touch at https://sintraflow.com/contact.