Overview
The Workflow Builder enables:- Visual drag-and-drop workflow creation
- AI-powered automation steps
- Conditional branching and parallel execution
- Human approval gates for sensitive operations
- Real-time validation and testing
Accessing Workflows
Workflow Builder Interface
Master-Detail Layout
The Workflows page uses a two-panel layout:- Left Panel: Workflow list with search and filters
- Right Panel: Visual workflow editor or creator
Workflow List
Each workflow shows:- Name: Workflow title
- Status: Active or inactive toggle
- Validation: Error indicators if issues exist
- Last Execution: When the workflow last ran
Creating a New Workflow
Node Types
Drag nodes from the palette onto your workflow canvas:Tool Call
Purpose: Execute an external tool or API call| Property | Description |
|---|---|
| Icon | Wrench (blue) |
| Use Case | External integrations, API calls |
| Configuration | Tool selection, input parameters |
Agent Call
Purpose: Call an AI agent with a prompt| Property | Description |
|---|---|
| Icon | Bot (purple) |
| Use Case | AI analysis, content generation |
| Configuration | Agent selection, prompt template |
Transform
Purpose: Transform data with JavaScript| Property | Description |
|---|---|
| Icon | Code (green) |
| Use Case | Data manipulation, formatting |
| Configuration | JavaScript function |
Conditional
Purpose: Branch workflow based on a condition| Property | Description |
|---|---|
| Icon | GitBranch (orange) |
| Use Case | Decision points, error handling |
| Configuration | Condition function, error behavior |
- True branch: When condition returns true
- False branch: When condition returns false
Parallel
Purpose: Execute multiple paths concurrently| Property | Description |
|---|---|
| Icon | Layers (pink) |
| Use Case | Concurrent operations, performance |
| Configuration | Branch count (2-10), merge strategy |
| Strategy | Behavior |
|---|---|
| All | Wait for all branches to complete |
| Any | Continue when first branch succeeds |
| Race | Continue when first branch finishes |
| All Settled | Wait for all, continue regardless of failures |
Suspend
Purpose: Pause workflow for human approval| Property | Description |
|---|---|
| Icon | Clock (purple) |
| Use Case | Approval gates, manual review |
| Configuration | Message, approvers, timeout |
Building a Workflow
Adding Nodes
- From Palette: Click a node type to add it, or drag and drop
- Positioning: Drag nodes to arrange them on the canvas
- Connecting: Drag from output handle to input handle to connect
Configuring Nodes
- Click a node to select it
- Configuration panel opens on the right
- Fill in required settings
- Changes save automatically
Connecting Nodes
- Drag from a node’s output (bottom) to another node’s input (top)
- Connections show data flow direction
- Conditional and parallel nodes have multiple outputs
Workflow Validation
Kasava validates workflows in real-time:Validation Checks
- All nodes have required configuration
- Connections are complete
- No orphaned nodes
- Conditional branches are connected
- Parallel branches match configured count
Validation Indicators
- Green check: Workflow is valid and can be activated
- Yellow warning: Minor issues that won’t block execution
- Red error: Must be fixed before activation
Common Validation Errors
| Error | Solution |
|---|---|
| Missing tool selection | Configure the tool in node settings |
| Disconnected nodes | Connect all nodes to the workflow |
| Missing branch connection | Connect all conditional/parallel outputs |
| Empty condition | Add condition logic to conditional nodes |
Approval Workflows
Suspend Nodes for Approvals
Add human approval gates to your workflows:Approval Settings
| Setting | Description |
|---|---|
| Approval Message | Context shown to approvers |
| Required Approvers | Email addresses (optional) |
| Timeout Days | Auto-reject after this period |
| Auto-Reject on Timeout | Whether to fail workflow on timeout |
Managing Approvals
Access pending approvals at/workflows/approvals:
- View all pending approval requests
- See workflow context and message
- Add review notes
- Approve or reject
Running Workflows
Activating Workflows
- Ensure workflow validation passes
- Toggle the “Active” switch in the workflow list
- Active workflows can be triggered
Manual Execution
- Select a workflow
- Click “Execute” or navigate to the execution page
- Provide input data if required
- View real-time execution status
Execution History
Track workflow runs:- Status: Pending, running, success, failed, suspended
- Duration: How long the workflow took
- Input/Output: Data passed through the workflow
- Errors: Any failures with details
Best Practices
Workflow Design
- Keep It Simple: Start with few nodes, add complexity gradually
- Use Descriptive Names: Help others understand workflow purpose
- Add Approval Gates: For sensitive or destructive operations
- Test Thoroughly: Use manual execution before activating
Node Configuration
- Validate Inputs: Use transform nodes to validate data
- Handle Errors: Add conditional branches for error cases
- Set Timeouts: Prevent workflows from hanging indefinitely
Performance
- Use Parallel Nodes: For independent operations
- Limit Branches: More than 5 parallel branches may impact performance
- Keep Transforms Simple: Complex logic should be in dedicated tools
Troubleshooting
Workflow won't activate
Workflow won't activate
Check validation errors in the editor. All errors must be resolved before a workflow can be activated. Look for missing configurations or disconnected nodes.
Workflow stuck in running state
Workflow stuck in running state
Check if the workflow is waiting at a suspend node. View the workflow’s execution history for details. A timeout may be needed if external services are unresponsive.
Approval not appearing
Approval not appearing
Verify the workflow reached the suspend node by checking execution status. Ensure the approval dashboard shows current requests. Check if the workflow was already approved or rejected.
Execution failed
Execution failed
Review the error message in execution history. Check input data format matches expected schema. Verify external tools and services are accessible.
Example Workflows
Auto-Label Issues
A workflow that analyzes new GitHub issues and applies labels:- Trigger: GitHub issue created
- Agent Call: Analyze issue content
- Transform: Extract suggested labels
- Tool Call: Apply labels via GitHub API
Deployment Approval
A workflow requiring approval before deployment:- Trigger: Manual or CI/CD webhook
- Transform: Prepare deployment summary
- Suspend: Wait for approval with context
- Tool Call: Execute deployment
Parallel Processing
A workflow that processes data in parallel:- Trigger: New data available
- Parallel: Split into three branches
- Branch 1: Update database
- Branch 2: Send notifications
- Branch 3: Generate report
- Transform: Merge results