It's called a "Rules Wizard"
and it is a function built into Outlook.