Hi all,
I’m currently working on a workflow where I need to implement something like a conditional loop, similar to a while
loop in traditional programming.
Use Case:
I have a list of entities, and for each entity, I need to make an HTTP call repeatedly until a favorable response is returned (e.g., a status or flag in the response indicates success). Once a favorable result is received, the loop should break out of the loop, and the workflow should move to the next node.
Question:
I’m aware that this kind of pattern can be implemented using AI Agents orchestrated through LLMs, but I’m curious—
Is there a way to do this using standard n8n nodes/triggers, without relying on an AI Agent Node?
Has anyone implemented a loop with conditional exit like this using native logic in n8n (e.g., Function, IF, Set, or Wait nodes)?
Any examples or pointers would be very helpful.
Thanks in advance for your insights!