How to Re-run a Task Until It Meets a Condition in CrewAI?

Hi everyone! :waving_hand:

I’m working on a feedback loop in CrewAI where an agent completes a task, and another agent reviews it with a score. If the score is below a certain threshold, I want the first agent to redo the task until it meets the required standard.
How can I make an agent redo a task in CrewAI if another agent gives it a low score?

How can I set up this kind of feedback loop in CrewAI?
Is there a way to make the task go back automatically without manually reassigning it?

Brandon recently posted a video explaining how to do this.
CrewAI Flows: AI Feedback Loop - YouTube