Rules drive a lot of what OneTrust does, from automations to data policies to workflows. Every product team had built its own rule builder. I audited them, designed one standard, tested two interaction models against each other in Maze, and prototyped the result with Figma Make.
Sr. Principal UX Design Lead, and the only designer on the project.
Depending on the product, a rule builder used dropdowns, checkboxes, free-text fields, or a modal. There was an "MS-Rules UI" component in the design system, but few teams used it consistently. Someone moving between Privacy, Integrations, Data Discovery, and AI Governance had to learn a new way to build a rule in each one.
I catalogued every rule builder on the platform. For each one I noted how it handled picking a property, choosing an operator, entering a value, grouping logic, and showing errors, and then compared them side by side. The worst surprise was that the inconsistency wasn't only between products. Some products used two different rule builders on the same page, depending on which view you opened.
Before designing anything, I wrote a short spec for what a flexible rule builder has to support, so every later decision had something to be measured against. It also became the doc I used to align stakeholders and plan the Maze study.
Each condition is a property, an operator, and a value. Operators change with the data type, so text gets "contains" and numbers get "greater than." Value inputs match the type too: text, number ranges, or a date picker. Conditions can be grouped and nested. Each clause sits on its own row with add, remove, and drag-to-reorder controls. There's a live preview with validation, a set of templates, and a free-text mode for people who'd rather type the expression.
I used Claude Cowork to help survey design systems (Carbon, Lightning, Atlassian, Material, Polaris) and products with mature condition builders (Zapier, Segment, Braze, Amplitude). None of the design systems ships a rule builder. They give you selects and inputs and leave the assembly to product teams. That meant there was room for OneTrust to have a governed one that nobody would have to rebuild.
The products were more useful. Almost all of them build each condition from a property, an operator, and a value. They put AND/OR on the group, not between individual rows. They use explicit "Add condition" and "Add group" buttons, and the better ones show the rule as a plain sentence, like "If Country is US and Purchase Amount is greater than 100."
What none of them did was let you just describe the rule. That became the idea to chase.
I wanted something people could actually use in a test, not a static mockup, so I built working prototypes with Figma Make running on Claude Opus 4.6. The trick was treating the Figma file like a prompt. I named every layer for what it does, like condition-row, operator-dropdown, add-condition-btn, and logic-group-header, and wrote prompts about behavior and state changes instead of appearance. The first pass came out much closer than I expected.
The prototype went through six rounds. Feedback from testing and stakeholder reviews went straight into the next version, with no separate dev handoff in between. Before each round I reviewed it with Claude Cowork for design system consistency, nested AND/OR edge cases, and whether the flow held together. That caught problems faster than I would have on my own.
The hardest part to wire up was the AI module. You type something like "notify me when a high-risk data subject submits a request from the EU," and it drafts the matching conditions. It sits on top of the manual builder, not in place of it. Every drafted condition can be edited or deleted, and you can switch between typing and building at any point without losing your work.
The big open question was how people should add conditions and groups. I designed two versions and ran them against each other in an unmoderated Maze study.
On the core tasks the two came out close. People clearly preferred the common pattern, though, especially when the logic got nested and for less experienced users. When you're writing a rule that runs part of the business, you want to see exactly what you're building. Saving space at the cost of clarity wasn't worth it.
A collapsed rule is a single row with badges for its status, how many conditions it has, and how many actions. It looks the same in every product. Expanded, it has an edit view and a locked preview that reads the rule back as a sentence. The Conditions and Actions panels both support nested AND/OR, and the Actions panel can also open a custom form when an action needs one. Schedules and custom properties are optional, so teams can turn them off.
There are two presets. The complete view has everything turned on. Bare-bones has only what's needed to make a valid rule. I also documented three ways to place it in a product: basic, in a tab or drawer, or as a step in a workflow. That way each team picks the right fit instead of improvising a new one.
Finding five rule builders didn't surprise me much. Finding two in one feature did. That isn't a missing standard. It means nobody was enforcing the standard at the moment those two views split. Making a good component is half the job, and getting teams to actually use it is the other half. That's why the usage guidance matters as much as the component.
I'm glad I ran the Maze study before committing. The two models were close enough that either could have been defended. For something that will appear in nearly every product on the platform, I needed better evidence than "I like this one."