I’m trying to build a loop in Make where a Google Gemini module keeps retrying until it returns a valid output.
Right now, Gemini sometimes returns a null, incomplete, or incorrect response. I’m checking the output using a text parser and a few conditions. If those conditions fail, it means Gemini didn’t generate the required output. Also, please note Gemini module doesn’t throw error in such cases.
What I want is: If the output is invalid → retry Gemini again, and keep retrying until the output is correct.
I tried using the Repeater module, but it always repeats a fixed number of times and I couldn’t find a way to break the loop once the output becomes valid. I’ve been stuck on this for a week.
Is there a way to build a retry loop with a conditional break in Make?
Or is there another pattern/module I should be using to achieve this behavior?
If the previous threads above does not answer your question, please edit your question and provide additional details to demonstrate the difference between your question and the duplicate discussions.