A ForLoop iterates over a list, or an array, of items. If you have to say “for each item, do xyz” you probably need a ForLoop!
We’ve designed ForLoops in Skyvern so that they contain blocks inside the Loop Block, which are run for each item in the list.Each item in the list is handled separately and passed one-by-one through the blocks within the loop.
Loop Value (or input list) → [Item 1, Item 2, Item 3, ..., Item N]
ForLoop Block:
Contains internal blocks
For Loop (+ loop value)
└── Navigation Block A
└── Navigation Block B
Execution Flow:
Item 1
→ Block A → Block BItem 2
→ Block A → Block BItem 3
→ Block A → Block BKey Behavior:
Let’s say I have a list of legal cases that I want to search and extract. Here’s the ForLoop I have built:
Let’s talk about the Loop Value we’re passing into the Loop Block: