State Machine
You might say
How do I make sure the AI follows our refund and approval steps instead of skipping ahead?
A workflow broken into fixed states, with rules for which state can move to whichA refund ticket in Pending review can reach Refunded only after the order is checked; jumping straight from Pending review to Refunded is rejected.
Also calledFinite State MachineState Graph
Further reading