Brevo Data Quality
A data-quality and automation platform for Technorama's CRM: roughly 170,000 contacts, 31,000 companies and 3,600 deals, kept clean by a Cloudflare Worker that normalises every change as it happens.
- Role
- Concept, architecture and implementation
- Year
- 2026

A museum CRM accumulates damage quietly. Addresses arrive half-typed, the same visitor signs up four times over ten years, a bulk import from a legacy system multiplies company records overnight. None of it breaks anything on the day it happens — it breaks the mailing three years later.
What the audit found
The starting point was measured, not guessed: 94 % of contacts had no country, 98 % carried a malformed timezone, a fifth of phone numbers lacked a country prefix, and an unnoticed bulk import had grown the company table from 483 to over 34,000 records, most of them empty duplicates.
How it works now
A Cloudflare Worker sits on the CRM's webhooks. Every contact change runs through a versioned rule set — detect country, clean names and titles, format phone numbers, check postcode against town using postal data, derive salutation, resolve the company from the email domain against the Swiss commercial register. Scheduled jobs poll bookings and form submissions, enrich companies, backfill coordinates, and re-run the whole base on a rolling cycle so every rule improvement reaches old records too.
The two rules that matter
- Flag, never overwrite — where the data contradicts itself, the system marks the conflict and leaves the value alone for a human
- Idempotent throughout — every contact carries a hash of its input fields, so unchanged records are skipped and repeated runs are harmless
- Dry run → CSV review → backup → apply, for every one-off cleanup
- Failures land in a dead-letter queue and surface in a weekly report; thresholds trigger an alert mail
- No personal data in logs, separate write key for anything that mutates
Roughly 1,850 tests. TypeScript throughout, Cloudflare Workers, KV and queues, plus a Node CLI for the bulk work.
Built at Swiss Science Center Technorama. The code is theirs; what is described here is the work, not the system.