looking for a name for UX pattern for "decision tree"

I am struggling to google a UI framework that would simplify building UI/UX for interactions like this: (on the example of choosing a car):

  • how many passengers you would expect to be driving: 1, 2, 4, 5-7 (choice is made, let's say 2)
  • do you prefer electric, petrol or diesel? (let's say I choose electric)
    • recommendation: VW e-Up

this is dummy example, but what I mean is .. I'll want to define a certain set of "rules", or "predicates" and I'd like some tool to build that UI for me based on those rules.

I was trying to google for "decision tree" or "expert system", but that brings a ton of some other stuff..

maybe there's proper UX term for such UIs?

thanks in advance and sorry for a noob question.. :)