Dutch Customs staff query rule handbooks with a RAG chatbot
Dutch Customs links its customs handbooks to a large language model so that staff can ask a chatbot about rules, duties and exceptions instead of searching the books themselves.
DouaneNetherlandsNational governmentPilot since Oct 2024
- Scale
- twenty employees in a six-week pilot
- Scenario
- Regulatory handbook assistant for staff
- Business function
- Legal and compliance
- Kind of solution
- Knowledge assistant
- Who built it
- Built in-house (TNO)
- Human oversight
- Assists people
- Organization
- Public sector, 1,000 to 9,999 employees, part of Belastingdienst
- AI types
- Generative AI, Conversational AI
- Users
- twenty
tl;drIn a six-week pilot, twenty customs staff rated the handbook chatbot mostly positive.See the results
Dutch Customs (Douane) is building a chatbot that answers staff questions from its five customs handbooks1. The chatbot links the handbooks to an existing large language model by using retrieval-augmented generation (RAG), and each answer cites the handbook source1, 2.
The Dutch research organization TNO studied the assistant as one of four cases in a report on AI and the quality of work, published in May 20261. Binnenlands Bestuur reported on the Douane case in June 20262.
In a six-week pilot in January 2026, twenty employees used the assistant in their daily work and rated it mostly positive1. The assistant is being developed further after the pilot1.
Before the deployment
Dutch Customs supervises the flow of goods across the borders of the European Union, and more than 6,000 people work there1. Five handbooks describe all customs rules, legislation and procedures, and most staff use them, including client managers and the staff of the Douanetelefoon helpline1.
Staff searched the handbooks themselves, and the search caused problems:
- Several books for one question: Staff had to look through different handbooks for information such as import duties and their exceptions1.
- Slow search: The handbooks are extensive and complex, so each search took time1.
- Missed information: A Douane data scientist told TNO that the handbooks are so complex and hard to search that staff don’t reach the right information1.
- Reliance on colleagues: Staff often needed an experienced colleague to point them to the right place or explain what they found1.
- Complaints: Both staff and businesses complained about the handbooks1.
The project started to explore what AI could do at Douane and to build a showcase1. At the end of 2024, government organizations received a conditional green light to use generative AI1.
What was built
The assistant lets a staff member type a question and returns an answer from the handbooks, with a reference to the source passage1. Asking the chatbot replaces the manual search through the handbooks2.
- Chatbot: Takes the question in a user-friendly interface and shows the answer with its source reference1.
- Retrieval and language model: RAG links the five handbooks to an existing large language model, so the model answers from handbook text1.
- Staff: Read the answer and take the information they need. TNO notes that they don’t have to verify the answers as they would with ChatGPT, because the information comes word for word from the handbooks1.
- Steering group and project team: A multidisciplinary steering group of strategy, IT, management and data science examined what AI development at Douane requires. A multidisciplinary project team builds the assistant to fit the primary processes1.
The team chose the handbooks as the first use case so that it could experiment without sensitive data1. Douane also runs its AI work through one central approach, so that it builds a solution once and then rolls it out more broadly instead of running many separate projects1.
Rollout
- Key milestone
In each of the two short rounds, the employees gave feedback on how the assistant worked and what it returned1. During the pilot, the team evaluated the assistant with the employees at three moments1.
Technology and architecture
The assistant has three parts: the chatbot that staff use, the retrieval step that connects the handbooks, and the language model that writes the answer1.
| Layer | What they used | Role | Source |
|---|---|---|---|
| Chat interface | Chatbot interface | Takes the staff question and shows the answer with its handbook source | 1, 2 |
| Search and vector index | RAG retrieval over the handbooks | Links the five handbooks to the model so that answers come from handbook text | 1 |
| Language model | Existing large language model | Writes the answer from the handbook content | 1, 2 |
Data inputs
- Customs handbooks: Five handbooks with all customs rules, legislation and procedures. The assistant always uses their current content, which pilot users named as an advantage over ChatGPT and Copilot1.
- Staff questions: The question that a staff member types, such as which goods and quantities are allowed1.
How one question flows through the system
- A customs officer at Schiphol needs to know which goods and quantities are allowed. The officer types the question into the chatbot1.
- The retrieval step most likely finds the handbook passages that match the question and passes them to the model.
- The language model writes an answer from the handbook content1.
- The chatbot shows the answer with a reference to the handbook source1.
- The officer reads the answer and takes the information needed, without searching the handbooks by hand1.
Results
Pilot users rated the assistant mostly positive in January 20261:
- Performance and speed: Performance was stable, and the assistant responded about as fast as existing applications1.
- Answer quality: Users rated the quality of the answers as good and valued their consistency1.
- Trust: Users said the assistant felt safe, because they know that its sources are the official handbooks1, 2.
- Search: The latest test round showed that the assistant makes finding information in the handbooks considerably faster and simpler. Staff can help people outside Douane faster and in a more targeted way1.
TNO expects the assistant to affect about 5,500 staff in the primary processes who consult the handbooks daily, and it expects less experienced staff to benefit most1. After the third round, positive user experiences and the option to extend the temporary environment opened a prospect of suitable infrastructure for the assistant1.
Lessons learned
Starting small with public handbooks worked. Using only open, non-sensitive information lowered the initial fear of AI and gave the team room to learn without large consequences1. Developers were surprised how fast a first working version came together, and because RAG is a relatively simple technique, the team could focus on embedding the assistant in the organization1.
Infrastructure nearly stopped the rollout. After the first two test rounds, no suitable IT infrastructure was available to deploy the assistant across the organization, and TNO writes that the project threatened to stall1.
Pilot users compared the assistant with ChatGPT and Copilot. They valued its consistent answers and current content, but sometimes found it more limited than commercial models, and they asked for more follow-up questions and sources beyond the handbooks1. A Douane adviser on IT strategy and innovation told TNO that AI literacy and the finer points of how such a tool is built are hard to get across to staff1.
The productivity gain is an expectation. TNO speaks of an expected impact based on the test rounds, and Binnenlands Bestuur headlined that the gain for Douane remains unproven until the time saved is measured and its use is clear1, 2. TNO’s wider finding is that saved time doesn’t lead to more output by itself, and that staff who answer more questions could see their work intensify1.
The core of the work doesn’t change, because one task replaces another: staff ask the chatbot instead of searching by hand1, 2. TNO expects that the traditional way of learning from the handbooks will be lost1.
Rules and caution slowed the start. Government organizations were first advised not to use generative AI, and readings of the AI Act pushed the team toward stricter interpretations that can create extra work1. The findings come from TNO’s interviews with Douane staff between October 2025 and February 2026, and Douane reviewed the draft case description for factual errors1.
Case study scorecard
- Rules and standards: EU AI Act
Sources by publication date
- Press, academic, and regulators 4
Build this solution yourself
Analysis
What you need
- Handbooks that are public and current: The assistant answers only from the five handbooks, and staff trust it because the text comes from them. Their open content also let the team experiment without sensitive data1.
- An environment that can serve the whole organization: The rollout depended on infrastructure that wasn’t available after the first tests. Check that you can host the assistant for every user before the pilot ends1.
- A team that spans strategy, IT and data science: The steering group and project team fitted the assistant to the primary processes and built the knowledge in-house1.
- A plan for the time it frees up: The effect on productivity depends on how managers and teams use the saved time1, 2.
Reference architecture
Knowledge assistant
A knowledge assistant answers a question that staff ask in their own words, by using the organization's own documents, and shows the sources of the answer. The search index returns the passages that best match a question, and a language model writes the answer from them. Content curators prepare the content beforehand, and the person who asked checks the answer and decides what to do with it.
- Chat interface (documented in this case study)
- Assistant platform
- Search index (documented in this case study)
- Knowledge content
- Content ingestion
- Embedding and ranking models
- Language model (documented in this case study)
- Answer ratings
- Business system
- Test set of sample questions
A check mark shows a building block that this case study's sources document.
Open the reference architectureOthers who built it
- Logius: Developed WetWijzer Bedrijven, a research prototype that answers businesses’ questions about legislation with an open-source Mistral model and source references3.
- Gemeente Gennep: Uses Chatbot JAI from Watermelon.ai, a chatbot trained on Dutch legislation that helps employees answer legal questions4.
In the library
- European Commission's DG INTPA gives staff an AI assistant European Commission
- AskNSI answers 83% of employee queries at NSI Luxembourg NSI Luxembourg
- West Midlands Police halts Copilot after AI hallucination West Midlands Police
- Vanderlande's AI assistant handles IT self-service requests Vanderlande
- How Target rolled out an AI chatbot to nearly 2,000 stores Target Corporation
- How CM.com staff search company policies with AI agent Norma CM.com
Cite this case study
Enterprise AI Case Studies. "Dutch Customs staff query rule handbooks with a RAG chatbot." Updated Nov 21, 2026. https://case-studies.ai/case-studies/risk-and-compliance/RC-038-customs-handbook-rag-assistant-douane/
@misc{csai-rc-038,
author = {{Enterprise AI Case Studies}},
title = {{Dutch Customs staff query rule handbooks with a RAG chatbot}},
year = {2026},
note = {Updated 2026-11-21},
url = {https://case-studies.ai/case-studies/risk-and-compliance/RC-038-customs-handbook-rag-assistant-douane/}
}Sources
The following reporting, and every passage quoted from it, belongs to its publisher, not to this site. Sources and ownership
- Source 1:
AI in de praktijk: Effecten op de productiviteit en kwaliteit van arbeid in vier organisaties
Supporting excerpts (63)
De Douane werkt aan een AI-toepassing voor het zoeken naar informatie in de Douanehandboeken.
Er werken ruim 6.000 mensen bij de Douane.
Ze houden toezicht op goederenstromen die de grenzen van de Europese Unie overgaan
De Douane is bezig met de ontwikkeling en implementatie van een generatieve AI-toepassing voor het ontsluiten van kennis uit handboeken die medewerkers gebruiken bij de uitvoering van hun werk.
Het gaat om vijf handboeken, waarin alle douanevoorschriften, wetgeving en procedures beschreven staan.
De handboeken worden in verschillende processen door het merendeel van de medewerkers gebruikt, zoals klantmanagers en medewerkers van de Douanetelefoon.
Om het zoeken in de handboeken en het vinden van de benodigde informatie te vereenvoudigen en te versnellen, maken ze gebruik van Retrieval Augmented Generation (RAG).
Dit houdt in dat de handboeken worden gekoppeld aan een bestaand Large Language Model (LLM), waardoor het mogelijk is om via een chatbot informatie op te vragen uit de handboeken.
Momenteel moeten medewerkers zelf in verschillende handboeken zoeken naar informatie over bijvoorbeeld invoerrechten en uitzonderingen.
De handboeken zijn vrij uitgebreid en complex, waardoor het zoeken een tijdrovend proces is.
De handboeken zijn zo complex en slecht doorzoekbaar dat medewerkers niet goed tot de juiste informatie komen
De toepassing biedt medewerkers de mogelijkheid om via een gebruiksvriendelijke interface snel en gericht vragen te stellen, waarna zij direct een antwoord ontvangen met verwijzing naar de betreffende bron.
Medewerkers op Schiphol kunnen bijvoorbeeld met behulp van de toepassing direct opvragen welke goederen en hoeveelheden zijn toegestaan, zonder handmatig de handboeken te doorzoeken.
Het project is aanvankelijk gestart om de mogelijkheden van AI binnen de organisatie te verkennen en om een showcase te ontwikkelen.
Een multidisciplinaire begeleidingsgroep, bestaande uit vertegenwoordigers van strategie, IT, directie en data science, onderzocht wat er nodig is voor de ontwikkeling en implementatie van AI-toepassingen binnen de Douane.
Om te kunnen experimenteren zonder gebruik van gevoelige data, werden de handboeken gekozen als eerste use case.
wat leidde tot klachten vanuit zowel medewerkers als het bedrijfsleven
Er is geregeld een ervaren collega nodig die daarbij kan helpen door bijvoorbeeld aan te geven waar je informatie kan vinden
In oktober 2024 en februari 2025 zijn twee kleinschalige testrondes geweest, waarin telkens vijf medewerkers de AI-toepassing een middag konden uitproberen en feedback konden geven op de werking en output.
In januari 2026 volgde een derde testronde in pilotvorm, waarin twintig medewerkers de toepassing gedurende zes weken konden testen tijdens hun dagelijkse werkzaamheden.
Gedurende deze testronde is op drie momenten met de medewerkers geëvalueerd.
De toepassing werd overwegend positief beoordeeld: de prestaties waren stabiel, de snelheid was vergelijkbaar met bestaande toepassingen en de kwaliteit van de antwoorden was goed.
Medewerkers gaven bovendien aan dat de toepassing veilig aanvoelde.
zoals de behoefte aan meer doorvraagmogelijkheden en het toevoegen van aanvullende bronnen buiten de handboeken
Ook werd de toepassing vergeleken met bijvoorbeeld ChatGPT en Copilot.
Gebruikers waardeerden de consistentie van de antwoorden, maar ervoeren de functionaliteit soms als
beperkter dan die van commerciële modellen.
Daar zie je ook dat die AI-literacy en de finesses in hoe je zoiets opbouwt moeilijk over de bühne te krijgen zijn voor de medewerkers
Een veelgenoemd voordeel was echter dat de toepassing altijd actuele informatie uit de handboeken gebruikt, in tegenstelling tot ChatGPT en Copilot, die niet over de meest recente informatie beschikken.
Na de eerste twee testrondes bleek dat er geen geschikte IT-infrastructuur beschikbaar was om de toepassing in de hele organisatie te implementeren.
door positieve gebruikerservaringen, de wens om de toepassing verder te ontwikkelen en de mogelijkheid om de tijdelijke omgeving te verlengen, ontstond alsnog perspectief op een passende infrastructuur.
zonder hiervoor terug te hoeven vallen op externe afhankelijkheden en/of consultants
De organisatie probeert te voorkomen dat er gelijktijdig meerdere AI-initiatieven ontstaan, omdat dit zorgt voor versnippering en als stoorzender kan werken
liever één keer het wiel goed uitvinden en daarna breder uitrollen, dan veel losse projecten naast elkaar
Een centrale aanpak voorkomt dubbel werk
bewust klein zijn begonnen en veilig konden experimenteren
Dit verlaagde de initiële angst rondom gebruik van AI en bood de ruimte om uit te proberen en te leren zonder grote consequenties.
Ontwikkelaars waren verrast door hoe snel een eerste werkende toepassing kon worden gerealiseerd.
Door een multidisciplinair projectteam kunnen integrale oplossingen worden ontwikkeld die aansluiten bij primaire processen.
De RAG is een relatief eenvoudige toepassing van bestaande AI-modellen.
Daarom kan veel aandacht worden besteed aan de inbedding in de organisatie
Toen generatieve AI opkwam, werd overheidsorganisaties aanvankelijk geadviseerd om het niet te gebruiken totdat er meer over bekend was.
Pas eind 2024 werd onder voorwaarden groen licht gegeven.
Deze terughoudendheid zorgde ervoor dat het
proces langzaam op gang kwam.
Regelgeving, zoals de AI Act, kan op verschillende manieren geïnterpreteerd worden.
Er is een neiging om bij twijfel voor een veiligere, strengere interpretatie te kiezen, wat kan resulteren in onnodig extra werk.
Er was nog weinig ervaring binnen de organisatie met de ontwikkeling en implementatie van generatieve AI-toepassingen.
De meest recente testronde laat zien dat de toepassing het zoeken naar informatie uit de handboeken aanzienlijk versnelt en vereenvoudigt.
Het stelt medewerkers in staat om externen sneller en gerichter te helpen.
Hoewel de exacte tijdsbesparing nog niet is vastgesteld, ligt het voor de hand dat de toepassing mogelijk effect heeft op circa 5.500 medewerkers uit de primaire processen die dagelijks de handboeken raadplegen.
Met name minder ervaren mensen zullen meer baat hebben bij de ondersteuning
Er verandert waarschijnlijk niet veel aan de variatie in taken, omdat een taak (handmatig zoeken) wordt vervangen door een vergelijkbare taak (vraag stellen aan de toepassing).
De traditionele manier van leren uit handboeken zal echter wel verleerd worden.
Bovendien hoeven de antwoorden die worden gegeven door de toepassing niet door de medewerkers te worden geverifieerd (zoals bijvoorbeeld bij ChatGPT), omdat de informatie letterlijk uit de handboeken komt.
Zij hoeven de antwoorden enkel te bekijken en die informatie eruit te halen die zij nodig hebben.
Ook kunnen medewerkers wellicht meer vragen gaan beantwoorden, waardoor intensivering van werk optreedt.
bij de Douane wordt de toepassing na een pilot nog doorontwikkeld
De casussen laten bovendien zien dat tijdwinsten niet direct leiden tot meer productiviteit of omzet.
Het traject bij de Douane dreigde bijvoorbeeld vast te lopen door het ontbreken van een
binnen de vier organisaties 17 interviews afgenomen in de periode van oktober 2025 tot en met februari 2026
Concepten van casebeschrijvingen zijn voorgelegd aan de organisaties.
ontstaan die wendbaar kan worden ingezet op wisselende AI-vragen
- Source 2:
Productiviteitswinst AI voor Douane blijft onbewezen
Supporting excerpts (9)
De Douane gebruikt AI om de eigen handboeken met voorschriften, procedures en wetgeving beter toegankelijk te maken.
de inhoud van de handboeken wordt gekoppeld aan een taalmodel, zodat medewerkers via een chatbot gerichte vragen kunnen stellen en direct antwoorden met bronverwijzing krijgen.
In de praktijk vervangt de toepassing vooral een bestaande handeling: het handmatig doorzoeken van de handboeken wordt vervangen door het formuleren van een vraag aan de chatbot.
Tijdens pilots in 2024 en 2026 testten kleine groepen medewerkers de tool in hun dagelijkse werk.
Medewerkers ervaren de toepassing bovendien als veilig, juist omdat duidelijk is dat de output rechtstreeks uit de officiële handboeken komt.
Echte productiviteitswinst wordt volgens TNO niet hard gemaakt.
In potentie heeft dit effect op zo’n 5.500 medewerkers die dagelijks de handboeken raadplegen
Maar zolang die tijdwinst niet wordt gemeten en niet duidelijk is hoe leidinggevenden en teams de vrijgekomen tijd inzetten, blijft het bij een plausibel scenario.
De kern van het werk verandert ook niet; alleen het zoeken naar de juiste regel wordt gemakkelijker.
- Source 3:
Supporting excerpts (2)
WetWijzer Bedrijven is een onderzoeksproject om een chatbot te ontwikkelen, die antwoorden geeft op vragen van bedrijven over wet- en regelgeving.
Een open source taalmodel (Mistral) genereert op basis van de opgehaalde documenten aangestuurd door een systeem prompt, een antwoord in natuurlijke taal.
- Source 4:
Supporting excerpts (2)
Chatbot JAI is een chatbot die getraind is op Nederlandse wetgeving. Hij ondersteunt medewerkers bij het beantwoorden en bevragen van juridische vraagstukken.
Leverancier Watermelon.ai
Comments
Start the conversation.
Invited members of the library comment here. Sign in to join the conversation.