start action.
Why Modular Workflows?
As automations grow, a single monolithic task becomes hard to maintain. Modular workflows let you:- Reuse common sub-flows (login, cookie consent, pagination) across many tasks.
- Debug individual components in isolation without re-running the entire workflow.
- Organize large automation suites into readable, focused building blocks.
- Share components with your team as standalone, documented tasks.
The start Action
The start action triggers another task by its ID, running it as a sub-task within the current execution context.
- The child task runs to completion before the parent continues.
- Variables from the parent task are passed down to the child task automatically.
- The child task’s
block.output(extraction result) is available back in the parent asblock.outputafter thestartaction. - If the child task fails, the parent task’s error handling applies.
How to Chain Tasks
Step 1: Create the Child Task
Build a standalone task that handles a specific sub-flow. For example, a “Handle Cookie Banner” task:GET /api/tasks.
Step 2: Add start to Your Main Task
In your main task, add a start action block where you want the child task to run:
Step 3: Pass Variables to Child Tasks
Variables defined in the parent task are automatically available in the child task using the same{$varName} syntax. There is no special configuration needed.
Common Modular Patterns
Pattern 1: Shared Login Task
Create a single “Login” task and call it at the start of all tasks that require authentication:Pattern 2: Paginated Scraping
Break pagination into a loop calling a “Scrape One Page” sub-task:Pattern 3: Error Recovery
Useon_error to trigger a recovery sub-task when something goes wrong:
Accessing Child Task Output
After astart action, the child task’s extraction result is available in block.output:
Recursive Flows
It is technically possible to create recursive chains (Task A starts Task B, which starts Task A). This can be useful for retry loops or indefinite monitoring tasks. Always include a termination condition to prevent infinite loops:Finding Task IDs
You can find a task’s ID in several ways:- Dashboard URL: When you open a task, the URL contains the task ID (e.g.,
/editor/task_abc123). - REST API:
GET /api/tasksreturns a list of all tasks with their IDs. - Export: The exported JSON file includes the task ID at the top level.