Build
Now that you’ve created your first flow, learn how to structure your code, integrate flows in applications, and manage your flows.
Writing Flows
Section titled “Writing Flows” Organize flow code Structure your flows and tasks for maintainability and reusability
Retrying steps Configure retry policies for different step reliability requirements
Delaying steps Schedule steps to run after specified delays for multi-day flows
Create reusable tasks Build composable task functions that can be shared across flows
Process arrays in parallel Process arrays of data in parallel using map steps
Starting Flows
Section titled “Starting Flows” Choose your approach Overview and comparison - choose the right approach for your use case
TypeScript Client Full client library with real-time streaming and event subscriptions
Supabase RPC Simple RPC calls for fire-and-forget flow triggering
pg_cron Run flows on a recurring schedule with cron expressions
Database Triggers Automatically start flows when database records change
Flow Management
Section titled “Flow Management” Version flows Create new flow versions when making structural changes
Delete flows Clean up test flows during development (never use in production)