Sometimes you don’t know how many steps a workflow needs until it runs. You might need to fetch data for each item in a list, process rows from a query, or fan out across a set of IDs from an API response. OpenWorkflow handles this automatically. When multiple steps share the same name, they’re disambiguated in order (Documentation Index
Fetch the complete documentation index at: https://openworkflow.dev/llms.txt
Use this file to discover all available pages before exploring further.
fetch-data, fetch-data:1,
fetch-data:2, …). You don’t need to generate unique names yourself.
Basic Pattern
Map over your data and create a step per item usingPromise.all:
:1, :2, etc.
automatically. Each step is individually memoized, so if the workflow restarts,
completed steps return their cached results and only the remaining steps
re-execute.