Creating and Managing Flows
Learn how to create, configure, save, activate, version, duplicate, and delete flows using the DAICISION visual flow builder.
Flows are the core automation primitive in DAICISION. Each flow is a directed graph of nodes connected by edges, executed by a BullMQ-backed engine with full tenant isolation. This guide walks you through every stage of a flow's lifecycle -- from first canvas click to production activation.
Opening the Flow Builder
Navigate to Flows
Open Flows in the left sidebar and click New Flow. You will be prompted to enter a name and an optional description.
Start in Draft mode
Every flow is created in DRAFT status and is not active until you explicitly activate it.
Use the canvas
The flow builder opens a full-screen canvas powered by React Flow. Arrange trigger nodes, logic nodes, connector nodes, transform nodes, AI nodes, and utility nodes into an automation pipeline.
Canvas Navigation
The canvas supports standard pan-and-zoom interactions:
- Pan -- Click and drag on empty canvas space, or hold the middle mouse button.
- Zoom -- Scroll wheel to zoom in and out. Use the zoom controls in the bottom-left corner for precise adjustments.
- Fit to view -- Click the "Fit" button to auto-center all nodes in the viewport.
- Minimap -- A minimap in the bottom-right corner gives you an overview of large flows.
Adding Nodes
Open the Node Palette by clicking the + button or pressing N. The palette organises nodes in two views:
- By Category -- Technical grouping: Triggers, Connectors, Transforms, Parsers, Logic, AI, and Utility.
- By Outcome -- User-friendly grouping: Start your flow, Get data, Send data, Transform data, Make decisions, AI actions, and Utilities.
Drag a node from the palette onto the canvas, or click to add it at the default position.
Connecting Nodes
Click on a node's output handle and drag to another node's input handle to create an edge. Edges define execution order. The flow engine traverses edges top-to-bottom, left-to-right by default.
Edge filters
You can add edge filters to conditionally route execution. Click an edge to open its configuration panel, where you can set conditions using the same operators available in logic nodes.
Configuring Nodes
Select any node on the canvas to open its configuration panel on the right side. Every node type has its own set of fields, but the common elements are:
| Field | Description | | ------------- | ---------------------------------------------------------- | | Label | Display name shown on the canvas | | Notes | Free-text annotations for documentation | | Input mapping | Expressions referencing upstream node outputs | | Error handling | Per-node override: stop, continue, or retry |
Input mappings use a JSON-path expression syntax. For example, {{nodes.trigger-1.output.email}} references the email field from the trigger node's output. See Tool Nodes for detailed mapping examples.
Saving Flows
DAICISION auto-saves your canvas as you edit. Every manual save or auto-save writes the current canvas JSON to the database. The canvas payload is validated on both the frontend and backend -- the validateCanvas function checks structural integrity before persisting.
Pinned data limits
If you pin large test payloads to nodes during debugging, the platform will reject saves that exceed the size threshold with a PayloadTooLargeException.
Activating and Deactivating
A flow has two independent properties:
- Status
DRAFT,ACTIVE,PAUSED, orARCHIVED- isActive
Boolean toggle that enables or disables execution
To activate a flow, click Activate in the toolbar. This sets isActive: true and status to ACTIVE. The flow will now respond to its configured trigger (schedule, webhook, event, etc.).
To pause a flow without losing its configuration, click Deactivate. This sets isActive: false and status to PAUSED. Scheduled and event-based triggers will stop firing, but the flow remains editable.
System flows
Flows marked isSystem: true cannot be edited or deleted. They are managed by the platform.
Versioning
Every time you save a flow, DAICISION creates a version snapshot in the FlowVersion table. Version history tracks:
- Version number (auto-incremented)
- Full canvas snapshot
- Settings at time of save
- Changelog entry (e.g., "Updated by user abc123")
- Timestamp and author
Viewing Version History
Navigate to the flow's Versions tab or call the API endpoint:
GET /api/v1/flows/:flowId/versions
Rolling Back
To restore a previous version, click Rollback next to the desired version, or call:
POST /api/v1/flows/:flowId/versions/:version/rollback
Safe rollbacks
Rollback creates a new version with the restored canvas rather than overwriting history. You can always see what changed and undo a rollback if needed.
Duplicating Flows
Duplication creates an independent copy of a flow with fresh node IDs. Click Duplicate in the flow's action menu and provide:
- New name -- Must be unique within the tenant
- Description -- Optional, defaults to the original's description
- Credential mappings -- Remap credential references to different credentials
- Connector mappings -- Remap connector references to different connectors
- Preserve version history -- Optionally copy the full version history
The duplication engine remaps all internal canvas references (node IDs, credential IDs, connector IDs) so the copy is fully independent.
Deleting Flows
Deletion requirements
To delete a flow, it must not be active (isActive: false) and not be a system flow (isSystem: false). Deletion is permanent -- all version history and execution records are cascade-deleted.
If you want to preserve the flow for reference without it running, consider archiving (set status to ARCHIVED) instead.
Flow Settings
Each flow can have optional settings that control execution behaviour:
{
"errorHandling": "stop | continue | retry",
"retryPolicy": {
"maxRetries": 3,
"backoffMs": 1000
},
"timeout": 30000,
"concurrency": 1
}
| Setting | Description | | ----------------- | ------------------------------------------------------------ | | errorHandling | What happens when a node fails: stop the flow, continue to the next node, or retry the failed node | | retryPolicy | Max retry count and exponential backoff interval | | timeout | Maximum execution time in milliseconds | | concurrency | How many executions can run in parallel for this flow |