Install a loop till a result is certain value

Hi,

I´m builiding a scenario where multiple ChatGPT modules are writing a blog article. Later in the scenario I use another GTP to check the blog article and give feedback. If the check is negative, blog article + feedback should go back some modules to being rewritten (considering the feedback).

To prevent infinite loops I thought about adding up a variable for each round and if this number reaches a certain value, an email will be send to me to take care of it.

Is there a possibility to make this possible?

1 Like

That’s a great idea, you can first set the variable counter to reflect 0:

and have it increased by +1 with each run and have a filter stop at a certain number.

You can also use the increment function which is Make’s built in feature of the above solution:

A filter is still required to be set with this option.

Thanks. This is a good idea.

But I´m still struggeling with how to jump back in the sequence if the Counter didn´t reach a certain number? Do you have any idea?