Leeuwarden answers planning questions with OmgevingsChat
The Municipality of Leeuwarden is a launching partner of OmgevingsChat, an open-source chatbot that helps its contact center staff answer residents' questions on the Dutch environment and planning act.
Municipality of LeeuwardenNetherlandsLocal and regional governmentPilot since Jun 2025
- Scale
- Four launching partners
- Scenario
- Contact center agent knowledge assistant
- Business function
- Customer service
- Kind of solution
- Knowledge assistant
- Who built it
- Built by a partner (Stichting Digitale Overheid, IGNE, De Friese Aanpak, Ministry of the Interior and Kingdom Relations, and OpenAI)
- Where it runs
- Vendor-hosted service, In the EU or EEA
- Human oversight
- Assists people
- Organization
- Public sector
- AI types
- Generative AI, Conversational AI
- Sites
- vier
- Team size
- drie medewerkers
tl;drOmgevingsChat launched with four partners in June 2025 and won state funding to go national.See the results
The Municipality of Leeuwarden uses OmgevingsChat, an AI chatbot that helps its civil servants answer residents’ questions about the Omgevingswet, the Dutch environment and planning act6.
Stichting Digitale Overheid built the assistant with De Friese Aanpak, the partnership of Frisian governments2, 3. On June 24, 2025, Leeuwarden, Súdwest-Fryslân, Harlingen and the Province of Utrecht received it as the first four launching partners2. The chatbot answers from the official rules in the Digitaal Stelsel Omgevingswet (DSO) and links each answer to its source5.
After testing and improvement in Friesland, the Ministry of the Interior and Kingdom Relations granted 600,000 euros in February 2026 to develop OmgevingsChat further and scale it up nationally1.
Before the deployment
The Omgevingswet took effect on January 1, 2024. It brought the rules for building, housing, nature, water and the environment into one legal framework, drawn from 86 laws and orders in council1, 3, 9. Residents and businesses then asked about building permits, environmental requirements and the permit check, and most of these questions reached the contact centers (KCC) of the Frisian governments3.
- Broad knowledge: The questions demanded broad knowledge from KCC staff and second-line specialists3.
- Knowledge base articles: KCC staff worked from articles that content experts in their own organization wrote and maintained3.
- Escalation: Questions the KCC couldn’t answer went to specialists in spatial planning, permits, inspection and enforcement3.
- Rules, exceptions and definitions: The act raised many questions on which rules apply, their exceptions and their definitions1.
For Leeuwarden, the aim was to make legislation accessible and to speed up its own service processes, with the labor shortage in mind3. The idea began with a demo at the end of November 2023, and the goal was a chatbot for KCC colleagues7, 9.
What was built
The OmgevingsChat Vraag & Antwoord App answers knowledge questions on the Omgevingswet in plain language for staff at the KCC, the permit desk and other first points of contact5. It’s a tool for professionals, and residents, businesses and farmers can’t use it themselves4.
- Retrieval and language model: A retrieval-augmented generation (RAG) pipeline selects the rules for the chosen location, and GPT-4o writes the answer from them4, 5.
- Replication software: Copies the changes published in the DSO into the knowledge base every week3.
- KCC staff: Ask the question, refine the answer with further prompts and check it against the linked sources5. A KCC employee passes the advice to the resident through a second-line specialist3.
- Specialists: Interpret the content and take every decision, because the system takes none1, 3.
- Stichting Digitale Overheid: Develops, hosts and maintains the app, with IGNE as technical builder and De Friese Aanpak as client3, 7.
The design had to fit the Common Ground approach of Dutch municipalities and its standards, so that other governments can copy it2.
Alternatives considered
- Manual search: Searching knowledge bases by hand or working from static documents was judged less effective, with longer waits, more workload and less consistency3.
- A European model: The developers want to move to a European open-source model such as Mistral 7B or GPT-NL, but judged their quality too low for now3, 4.
Rollout
The phases took the chatbot from one demo to a program that Stichting Digitale Overheid now offers to municipalities, provinces, environmental services and water boards1, 7.
Technology and architecture
OmgevingsChat is a web application that runs in the European cloud and leaves the municipality’s existing infrastructure untouched4. The model is called through an API, and the architecture lets the developers swap it for another, European model3.
| Layer | What they used | Role | Source |
|---|---|---|---|
| Solution platform | OmgevingsChat Vraag & Antwoord App | Answers staff questions on the Omgevingswet with linked sources | 4, 5 |
| Language model | GPT-4o | Writes each answer from the retrieved rules | 3, 4 |
| Framework or library | LlamaIndex | Runs the retrieval-augmented generation pipeline in TypeScript | 3 |
| Chat interface | Next.js | Web application that staff use to ask questions | 3 |
| Cloud platform | DigitalOcean | Hosts the application | 3 |
| Knowledge content | Knowledge base | Holds vectorized DSO datasets and local plans and bylaws | 3, 4 |
| External data source | Digitaal Stelsel Omgevingswet (DSO) | Official source of laws and rules, replicated weekly | 3, 5 |
| Privacy controls | BSN detection | Flags citizen service numbers in prompts | 4 |
| Feedback capture | Feedback and logging | Stores conversations with feedback and reports unanswered questions | 4 |
| Offline evaluation | Evaluation question set | Expert questions with official answers, scored by a second language model | 3 |
Data inputs
- DSO rules: Vectorized datasets of laws and rules from the DSO, replicated every week3.
- Local documents: Local bylaws (APVs), zoning plans and environment plans, which each government supplies and versions itself3, 4.
- Question and location: The staff member’s question, and the chosen location that selects the legal context5.
- Evaluation set: Questions written by domain experts, each linked to an official answer3.
- Conversation feedback: Stored conversations that staff mark as positive or negative, used to improve the service4.
Integrations
- DSO open system for third parties: The Kadaster’s open system feeds the published laws and rules into the knowledge base3, 5.
- Government web portal: The app runs on the foundation’s server, and a government can embed it in its own website or portal with an embed code4.
How one question flows through the system
- A resident asks the KCC a knowledge question, such as the maximum height of an outbuilding5.
- The KCC employee signs in to OmgevingsChat, picks the location and types the question3, 5.
- BSN detection checks the prompt for a citizen service number4.
- The retrieval step selects the rules that apply at that location5.
- GPT-4o writes the answer, and the app shows a link to each source4, 5.
- The employee refines the answer with further prompts and checks the sources5.
- The employee passes the advice to the resident through a second-line specialist3.
- The conversation is logged, and its feedback shows the questions the chatbot couldn’t answer well4.
Results
Since June 2025, OmgevingsChat has run with its launching partners, and Leeuwarden uses it as a support tool for its civil servants2, 6.
- Rollout: In June 2025, four launching partners received the chatbot, and the open-source application is offered to all Dutch governments2.
- Testing in practice: In Friesland, De Friese Aanpak tested and improved the application in practice1.
- National scale-up: In February 2026, the ministry’s funding went to further development and a step-by-step rollout to more governments. A team of three staff in Heerlen works with an external IGNE development team1.
- Expected speed: The partners project that AI can make the work up to twice as fast in many cases3.
- Sector interest: In April 2026, a VNG session for municipalities and environmental services covered how OmgevingsChat is used in practice8.
Lessons learned
Grounding every answer in official sources with a link answers a point the ethics review raised. The Data-ethyk Kommisje Fryslân, which Leeuwarden asked for advice, named source references and reports as a way to understand how the chatbot works6, 5.
Over-reliance is the main documented risk. The committee warned that civil servants might treat generated answers as fact without their own critical check6. The impact assessment names the same risk for KCC staff once the answers usually prove right after verification3.
Version 1.0 answers explicit knowledge questions only. Splitting a compound question into its sub-questions was still in development5. The committee also noted that the chatbot ignores the personal context of the user, which can lead to rigid advice6.
The model is a compromise that the developers state openly. No bias analysis was run on the GPT-4 model or its answers, and they name the lack of transparency about its training data and fine-tuning3. The committee added that the municipality has limited influence on the completeness of external datasets6.
The developer’s documents differ on some points. The FAQ names GPT-4o, stores conversations for at most two years and lists Noardeast Fryslân as a launching partner4. The draft impact assessment of July 2025 names GPT-4 and keeps prompts only for the session, and the launch report lists Harlingen3, 2.
The design and safeguards are Stichting Digitale Overheid’s own account, from its website and impact assessment3, 4. Staff sign in to the app a second time, because it has no single sign-on, and the impact assessment notes that the KCC job might become less accessible to people with less IT affinity4, 3.
Case study scorecard
- Rules and standards: EU AI Act, GDPR
Sources by publication date
- Vendors and partners 5
- Press, academic, and regulators 4
Build this solution yourself
Analysis
What you need
- A current, machine-readable source of the rules: OmgevingsChat answers from DSO data that it replicates every week through the Kadaster’s open system. You need the same kind of feed for the rules your staff answer on3.
- Local documents in order: Each government supplies the bylaws and plans the DSO doesn’t carry and keeps their versions current. Gathering them is the part of onboarding that’s hardest to plan3, 4.
- A second line that verifies: The design relies on specialists who check advice before it reaches a resident, and on staff trained in AI literacy before they get access3.
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 (documented in this case study)
- Search index
- Knowledge content (documented in this case study)
- Content ingestion
- Embedding and ranking models
- Language model (documented in this case study)
- Answer ratings (documented in this case study)
- Business system
- Test set of sample questions (documented in this case study)
A check mark shows a building block that this case study's sources document.
Open the reference architectureOthers who built it
- European Commission: European Commission's DG INTPA gives staff an AI assistant. More than 2,000 DG INTPA staff have sent the AI assistant over 400,000 queries since March 2026.
- NSI Luxembourg: AskNSI answers 83% of employee queries at NSI Luxembourg. AskNSI automatically answers 83% of employee queries at NSI Luxembourg.
- West Midlands Police: West Midlands Police halts Copilot after AI hallucination. West Midlands Police switched Copilot off after it put a non-existent match in a police report.
- Vanderlande: Vanderlande's AI assistant handles IT self-service requests. Vanderlande's VIGO assistant now takes self-service IT requests that used to reach the help desk.
- Target Corporation: How Target rolled out an AI chatbot to nearly 2,000 stores. Target store staff used Store Companion more than 50,000 times after its chainwide rollout.
- CM.com: How CM.com staff search company policies with AI agent Norma. CM.com saw policy awareness rise as staff sent policy search prompts to its Norma agent.
Cite this case study
Enterprise AI Case Studies. "Leeuwarden answers planning questions with OmgevingsChat." Updated Nov 26, 2026. https://case-studies.ai/case-studies/customer-engagement/CE-106-omgevingswet-assistant-leeuwarden/
@misc{csai-ce-106,
author = {{Enterprise AI Case Studies}},
title = {{Leeuwarden answers planning questions with OmgevingsChat}},
year = {2026},
note = {Updated 2026-11-26},
url = {https://case-studies.ai/case-studies/customer-engagement/CE-106-omgevingswet-assistant-leeuwarden/}
}Sources
The following reporting, and every passage quoted from it, belongs to its publisher, not to this site. Sources and ownership
- Source 1:
BZK investeert in Limburgse AI-hulp Omgevingschat
Supporting excerpts (8)
Het ministerie van Binnenlandse Zaken en Koninkrijksrelaties stelt 600.000 euro beschikbaar voor de verdere ontwikkeling en landelijke opschaling van OmgevingsChat
vestigde zich begin februari op de Brightlands Smart Services Campus in Heerlen
Regels voor bouwen, wonen, natuur, water en milieu zijn samengebracht in één wettelijk kader.
In de uitvoering leidt dat bij gemeenten, provincies, omgevingsdiensten en waterschappen tot veel vragen over toepasselijke regels, uitzonderingen en definities.
Besluiten worden niet door het systeem genomen; de eindverantwoordelijkheid blijft bij medewerkers zelf.
In Friesland is de toepassing in de praktijk getest en verbeterd via De Friese Aanpak, een samenwerkingsverband van Friese overheden.
Het team in Heerlen bestaat uit drie medewerkers en een extern ontwikkelteam van het Utrechtse softwarebedrijf IGNE.
stapsgewijs beschikbaar maken voor meer overheden
- Source 2:
OmgevingsChat voor alle Nederlandse overheden
Supporting excerpts (4)
Op 24 juni werd de chatbot feestelijk aangeboden aan de eerste vier launching partners van de applicatie: de gemeenten Leeuwarden, Súdwest-Fryslân, Harlingen en de provincie Utrecht
De open source applicatie wordt als publieke innovatie beschikbaar gesteld aan alle Nederlandse overheden.
De chatbot is ontwikkeld door Stichting Digitale Overheid en De Friese Aanpak
Allereerst moest het passen binnen de Common Ground gedachte en de standaarden die hierbij gebruikt worden.
- Source 3:
AIIA 2.0 voor OmgevingsChat - 2025 Q1
Supporting excerpts (55)
Sinds de inwerkingtreding op 1 januari 2024, stellen burgers en ondernemers, allerlei vragen over bijvoorbeeld
bouwvergunningen, milieu-eisen of de vergunningencheck. Deze vragen komen veelal binnen bij de klantcontactcentra
Dit vereist een breed kennisgebied van de Friese KCC-medewerkers en tweedelijns
KCC-medewerkers en tweedelijns specialisten werken over het algemeen met een kennisbank met kennisbankartikelen
die worden gemaakt en bijgehouden door inhoudsdeskundigen uit de eigen organisatie.
Tweedelijns specialisten vanuit Ruimtelijke Ordening en Vergunningverlening, Toezicht en Handhaving
Vanuit het perspectief van de Gemeente Leeuwarden geldt dat wetgeving toegankelijk willen maken en de eigen
(dienstverlenings-)processen hiermee willen te versnellen.
termijn ook van invloed zijn op de arbeidsmarktkrapte.
OmgevingsChat is een AI-gestuurde chatbot gebaseerd op een Retrieval-Augmented Generation (RAG)-architectuur.
Techniek: Typescript (LlamaIndex) en Next.js, gehost op DigitalOcean.
Data: Gevectoriseerde datasets uit het DSO, decentrale regels en gemeentelijke bestemmings- omgevingsplannen.
Initieel wordt OpenAI GPT-4 gebruikt vanwege prestaties en
Europese open-source modellen (bijv. Mistral 7B,
Probleem is dat de kwaliteit van de modellen nu nog onvoldoende is.
Een belangrijk kenmerk van de architectuur is dat het taalmodel eenvoudig kan worden vervangen door een ander
Efficiëntie: Snelle verwerking van complexe, gelaagde wetgeving via retrieval van relevante bronnen.
Schaalbaarheid: Modulaire structuur maakt aanpassingen mogelijk zonder het hele systeem te herontwerpen.
Ontwikkelaar: Stichting Digitale Overheid en IGNE (technische uitvoering).
Opdrachtgever: De Friese Aanpak (samenwerkingsverband van alle Friese overheden).
systeem gebruikt, dan zal deze het advies altijd via de tweedelijns specialist aan de klant moeten doorzetten, zo blijft de
wijzigingen die worden gepubliceerd binnen DSO, automatisch binnenhaalt. Dit gebeurt wekelijks.
documenten separaat worden aangeleverd door de afnemer.
Voor lokale documenten zijn afnemende parijen zelf verantwoordelijk voor versiebeheer.
De data die wordt gebruikt door OmgevingsChat is afkomstig uit het Digitaal Stelsel Omgevingswet aangevuld met lokale
documenten zoals APV's, bestemmings- en omgevingsplannen.
Alleen getrainde medewerkers krijgen toegang tot het systeem.
Alternatieven, zoals handmatig zoeken in kennisbanken of
uitsluitend werken met statische documenten, zijn minder effectief en leiden tot langere wachttijden, hogere werkdruk
en grotere kans op inconsistentie.
Elke vraag is gekoppeld aan een officieel antwoord, waardoor de accuraatheid van de AI-respons
Bij elke wijziging in het systeem worden de evaluatievragen opnieuw gesteld en geanalyseerd.
De beoordeling van de antwoorden gebeurt automatisch door een ander taalmodel.
correctheid, volledigheid en consistentie
OmgevingsChat wordt momenteel getest binnen een gefaseerde en gecontroleerde oplevering.
gebeurt door middel van steekproefsgewijze controles en feedback van gebruikers.
Interne audits: Door het ontwikkelteam en launching customers tijdens sprints, met focus op accuraatheid en
Dan vallen we terug op de huidige werkwijze, die blijft overeind.
Als het AI-systeem uitvalt, blijft de kennisbank als basis overeind.
medewerkers (te veel) gaan vertrouwen op het AI-systeem, bijvoorbeeld wanneer het AI-systeem doorgaans (na
Daar waar we verwachten dat het werk met de inzet van AI in veel gevallen wel tot twee keer
uitgevoerd naar mogelijke bias in het model.
De gegenereerde antwoorden worden niet actief gecontroleerd op bias voordat ze aan de gebruiker worden
gebrek aan transparantie over de trainingsdata en de finetuning
OmgevingsChat begint met een compromis
Minimale lengte 12 tekens
Het systeem is enkel beschikbaar voor geautoriseerde gebruikers
Het model wordt aangeroepen via een API en derhalve niet door ons opgeslagen.
voornamelijk een verplichting is tot transparantie en AI-geletterdheid (artikel 4 en 50 AI Act).
De input(data), dat wil zeggen de prompts die gebruikers in het systeem zetten, worden op dit moment alleen
opgeslagen in de huidige sessie.
minder toegankelijk voor mensen met minder IT-affiniteit.
Aangezien AI een snel evoluerende technologie is, wordt niet verwacht dat gebruikers met één enkele training zonder
het systeem is uitsluitend bedoeld als intern hulpmiddel
Concept 1 juli 2025 AIIA 2.0 voor OmgevingsChat
- Source 4:
Supporting excerpts (27)
OmgevingsChat is gereedschap voor professionals en niet bedoeld en ook niet toegankelijk voor initiatiefnemers (burgers, bedrijven en boeren).
De launching partners van OmgevingsChat zijn gemeente Súdwest-Fryslân, gemeente Leeuwarden, gemeente Noardeast Fryslân en provincie Utrecht.
Voor elke applicatie van OmgevingsChat sluiten we maximaal vijf launching partners aan
OmgevingsChat is een webapplicatie die draait in de (Europese) cloud.
Het grijpt dus niet in op uw bestaande infrastructuur.
U kunt deze embedden op een eigen website of webportal via een embedcode.
De software draait dan op een server van de Stichting
Het systeem is vooralsnog dus niet gekoppeld aan een omgeving waarin een single sign on mogelijk is.
speciaal voor deze applicatie nog een keer
OmgevingsChat is volledig AVG-compliant. Eis een volledige DPIA uitgevoerd
De eDPIA is te downloaden via deze site.
De transparante logging zorgt ervoor dat alle interacties beschikbaar zijn voor audit.
Ja, de gesprekken worden conform AVG opgeslagen in de backend.
kan worden gefilterd op positieve/negatieve feedback. Deze data wordt maximaal twee jaar bewaard, en daarna permanent verwijderd.
De technische implementatie van een applicatie van OmgevingsChat neemt ongeveer een maand in beslag
De vertragende factor is in de meeste gevallen de scholing van medewerkers
U dient informatie aan te leveren die nodig is voor de kennisbank maar niet kan worden ontsloten via het Digitaal Stelsel Omgevingswet.
Alleen de tijdsinvestering van uw medewerkers(s) om de benodigde informatie te verzamelen voor de databank is van tevoren moeilijk vast te stellen.
Omdat OmgevingsChat open source wordt ontwikkeld, betaalt u geen licentiekosten (wel maandelijkse servicekosten).
Na afloop van de contractperiode bent u bovendien vrij om te stoppen en de applicatie zelf te hosten.
We hebben bewust voor deze werkwijze gekozen om overheden maximale zekerheid te bieden: de broncode is vrij beschikbaar in het publieke domein.
OmgevingsChat maakt gebruik van RAG-architectuur die zorgt voor zeer accurate antwoorden, gebaseerd op een kennisbank met alle relevante wetten en regels.
Wanneer er nieuwe regels in werking treden, repliceren we automatisch met het DSO om de kennisbank te updaten
De bot is zo ontworpen dat hij uitsluitend antwoorden geeft die verband houden met de betreffende dataset, oftewel de specifieke juridische context.
U kunt zien welke vragen vaak worden gesteld, welke onderwerpen populair zijn, en welke vragen OmgevingsChat niet goed kon beantwoorden.
Op dit moment gebruiken we GPT-4o, omdat dit het beste resultaat oplevert, maar in de toekomst willen we overstappen op een Europees taalmodel.
Huidige initiatieven zoals de BSN-detectie worden uitgebreid
- Source 5:
vraag & antwoord app | OmgevingsChat
Supporting excerpts (9)
De vraag-antwoordapplicatie is ontworpen voor iedereen die werkt in het klantcontactcentrum (KCC), bij het omgevingsloket of als eerste aanspreekpunt voor inwoners, ondernemers en initiatiefnemers.
In versie 1.0 richt OmgevingsChat zich daarom op kennisvragen
Wat is de maximale bouwhoogte voor een bijgebouw?
Het kunnen analyseren van samengestelde vragen tot onderliggende deelvragen is in ontwikkeling.
De antwoorden worden gegenereerd op basis van authentieke datasets uit het Digitaal Stelsel Omgevingswet (DSO) en de koppelingen met het open stelsel van derden (Kadaster).
Hierdoor werkt de app met de juiste juridische context, die automatisch wordt geselecteerd op basis van de gekozen locatie.
Elke bron is terug te vinden via een klik.
Elk antwoord is te herformuleren, aan te scherpen of te verrijken
De Vraag-Antwoord App geeft in begrijpelijke taal antwoord
- Source 6:
Reflectie 3 - 2025: OmgevingsChat
Supporting excerpts (11)
Gemeente Leeuwarden heeft op 22 november 2024 aan de Data-ethyk Kommisje Fryslân
De OmgevingsChat is een AI-ondersteunde tool die ambtenaren helpt bij vragen over de
Gemeente Leeuwarden, waarbij de ambtenaar vragen van de inwoner over de
Automation bias kan ertoe
leiden dat ambtenaren de gegenereerde antwoorden als feitelijk juist beschouwen, zonder
OmgevingsChat geeft juridisch correcte antwoorden, maar houdt geen rekening met de
persoonlijke context van de gebruiker, wat kan leiden tot rigide of niet-toepasbare adviezen.
een belangrijke rol, waardoor de gemeente slechts beperkt invloed heeft op de volledigheid
Inzicht in de werkwijze van de chatbot, bijvoorbeeld via bronverwijzingen en
Periodieke audits en evaluaties kunnen een manier zijn om technische en ethische
Vastgesteld in de DKF-vergadering van 27 februari 2025,
- Source 7:
Supporting excerpts (4)
Binnen een paar dagen lag er een eerste demo – eind november 2023.
Februari 2024 – De eerste demo had iets losgemaakt.
serieuze samenwerking tussen Stichting Digitale Overheid, de Friese Aanpak en een aantal launching partners zoals de gemeenten Leeuwarden, Harlingen, Súdwest-Fryslân en de provincie Utrecht
De Stichting Digitale Overheid draagt de verantwoordelijkheid voor de ontwikkeling, het beheer en de borging van OmgevingsChat.
- Source 8:
Terugkijken: VTH & Innovatie-sessie over de OmgevingsChat van de Friese Aanpak (2 april 2026)
Supporting excerpts (3)
Tijdens de VTH & Innovatie-netwerksessie van 2 april stond de OmgevingsChat van de Friese Aanpak centraal.
Tijdens de sessie werd ingegaan op de ontwikkeling van de OmgevingsChat, de manier waarop deze in de praktijk wordt toegepast
Ook kwamen aandachtspunten aan bod rondom betrouwbaarheid, transparantie en het verantwoord gebruik van AI binnen het publieke domein.
- Source 9:
Supporting excerpts (2)
Van 86 wetten en AMvB's
Doel: AI gestuurde chatbot voor KCC collega's
Comments
Start the conversation.
Invited members of the library comment here. Sign in to join the conversation.