Understanding Flow Structure
Every workflow in Activepieces consists of:- Trigger: The event that starts your workflow (webhook, schedule, app event)
- Actions: The steps that execute when the trigger fires
- Flow Version: Each flow has versions you can publish or keep as drafts
Flows can have two states:
ENABLED (running in production) or DISABLED (paused).Creating Your First Flow
Start a New Flow
Navigate to your project and click the New Flow button. You’ll be taken to the visual flow builder with an empty trigger.
Configure the Trigger
Click on the trigger node to select how your workflow will start:
- Webhook Trigger
- Schedule Trigger
- App Trigger
Create an HTTP endpoint that receives data from external services.
Add Actions
Click the + button below your trigger to add actions. Actions are executed sequentially.
Action Types
Piece Action
Use pre-built integrations with popular apps and services.
Code Action
Write custom TypeScript/JavaScript code for complex logic.
Loop Action
Iterate over arrays and process items one by one.
Router Action
Add conditional branches to your workflow.
Adding a Piece Action
Adding a Code Action
Connect Steps
Steps are automatically connected in sequence. You can:
- Drag and drop steps to reorder them
- Insert steps between existing actions
- Delete steps by clicking the delete icon
Each step can access data from previous steps using variable expressions.
Flow Builder Interface
The visual flow builder provides:Canvas Navigation
- Zoom: Use mouse wheel or zoom controls
- Pan: Click and drag the canvas
- Fit to view: Auto-zoom to see all steps
Step Configuration
Click any step to open the configuration panel:- Display Name: Friendly name shown on canvas
- Step Name: Unique identifier (e.g.,
step_1,send_email) - Settings: Action-specific configuration
- Error Handling: Configure retry and failure behavior
Step Validation
- ✅ Green: Step is valid and ready
- ⚠️ Yellow: Step needs configuration
- ❌ Red: Step has errors
Advanced Features
Skip Conditions
You can skip a step based on conditions:Error Handling
Configure how each step handles failures:Custom Logos
Customize step appearance:Best Practices
Use Descriptive Names
Use Descriptive Names
Give your flows and steps meaningful names that describe what they do.
Test Before Publishing
Test Before Publishing
Always test your workflow with real data before enabling it in production.
Start Simple
Start Simple
Build workflows incrementally. Test each step before adding the next one.
Use Error Handling
Use Error Handling
Configure error handling for critical steps to make your flows resilient.
Next Steps
Passing Data
Learn how to pass data between steps
Loops & Branches
Add control flow to your workflows
Publishing
Publish and enable your workflows
Error Handling
Handle errors gracefully