AI in the loop