While Loop with Retry
Poll an external API or file until a success condition is met, with configurable max retries and delay — a production-ready retry pattern for resilient pipelines.
Graph Preview
Execution Flow
Initialize retry counter and max attempts
WhileLoop iterates until break or max reached
HTTP check or file check inside loop body
If success → BreakLoop to exit
Otherwise increment counter and continue
Fail path handles max-retry exceeded
Node Breakdown
Integrations
Tags
Source
workflows/while_loop_retry_example.json
General workflow demonstrating core patterns
Related Examples
Browse all →LLM Text Generation
beginnerSend a prompt to a Gemini LLM endpoint with configurable system instruction, temperature, and max tokens. Returns generated text, token count, and a success flag.
HTTP Request Node
beginnerAsync HTTP GET or POST with configurable URL, method, headers (JSON string), and body. Returns parsed response data, status code, raw text, and a success flag.
ForEach Iteration Pattern
beginnerCanonical ForEach usage: pass a list into ForEach, process each item through a sub-chain, collect results with Collect node, and output the aggregated list.