Rules engine
Travelpolicy engine
500+ policies; the most specific rule wins, so results are predictable.
Client names, colleagues and screens are left out, and figures are rounded down. The problems and decisions are described as they happened.
At a glance
Travel policies in production
Levels of precedence
Ways to handle an out-of-policy option
Want to talk about this work?
Start a conversation →Figures as of October 2026, rounded down.
The problem
Before the tool, the travel agent checked each trip against the corporate’s travel policy by hand. That is slow with one policy. It is unworkable when a company has a default policy, policies for groups, policies for individual travellers, and different rules for different trip reasons.
Listing the rules was the smaller problem. The larger one was deciding which rule wins when several apply, and making that answer predictable for the travel manager who sets it up and the traveller who lives with it.
What I did
I designed the rules and the order in which they apply.
The rules it carries:
- Cabin class by trip duration
- Dynamic budget caps, set as a percentage above the lowest or median fare
- Domestic and international splits
- Hotel policies
- Booking windows
- Refundable or changeable fares only
- Carbon emission limits
- Ancillary budgets, total or per item
- Country-wise and route-wise caps
- Layover rules
- Fare family and baggage inclusion
Each rule can be a hard or a soft violation.
Out-of-policy options can be sent for approval, blocked, or hidden from results.
Decisions
The most specific policy wins
Chosen: a fixed order of precedence when rules overlap.
- The user policy for this trip reason
- The user policy
- The group policy for this trip reason
- The group policy
- The company default
Instead of: resolving overlaps without an order a travel manager can predict.
Why: a travel manager has to be able to predict the result without testing it. “Most specific wins” is a rule a person can keep in their head.
Trip reason as its own level
Chosen: user and group policies can each carry rules for a specific trip reason, ranked above the general policy.
Instead of: one policy per traveller or group, whatever the reason for the trip.
Why: the same traveller travels for different reasons. The policy needs to tell a conference from a client meeting.
Hard or soft, rule by rule
Chosen: each rule can be a hard or a soft violation.
Instead of: one strictness setting for the whole policy.
Why: a single setting forces a choice between blocking too much and allowing too much. Rule by rule, a corporate can be strict on cabin class and relaxed on booking windows, or the other way round.
Hide, as a third way to enforce
Chosen: out-of-policy options can be hidden from results, alongside sending for approval and blocking. Hide comes with a fallback action for other violations.
Instead of: send for approval and block only.
Why: an option the traveller cannot book is noise in the results. Hiding it keeps the search clean, and the fallback decides what happens to violations that hiding does not cover.
Budget caps that move with the fare
Chosen: dynamic caps, set as a percentage above the lowest or median fare, alongside static ones.
Instead of: static caps only.
Why: fares move. A fixed amount can be too tight on one route and too loose on another. A cap tied to the fares in front of the traveller moves with them.
Outcome
The engine shipped as one of the platform’s core modules. Travel managers set the rules, and the ladder above decides which ones apply to each trip. The demo below runs that ladder: set up a traveller and see which policy wins.
Together with multi-level approvals and an approval bypass, the engine cut bookings that needed approval by 55% in one month, from 403 to 179, while live policies grew 4x to 500+.
The engine is part of a platform with 11 clients live, in Saudi Arabia, the UAE, Qatar, Bahrain, Oman and South Africa.
Try it
Which policy wins?
One traveller can be covered by several policies at once. The engine applies the most specific one and ignores the rest. Set up a traveller and see which policy wins.
Order of precedence, most specific first
- User policy for Conference: Not set up
- User policy: Applies
- Group policy for Conference: Outranked
- Group policy: Outranked
- Company default: Outranked
The user policy applies. Everything below it is ignored for this trip.
How it's calculated
The most specific policy that is switched on wins. A trip-reason rule counts only when its parent policy is on.
Next case study
All work →