Workflows
Creating a Workflow
Step-by-step guide to building your first workflow with the visual workflow builder.
February 6, 2024
8 min read
This guide walks you through creating a workflow using the visual workflow builder.
Prerequisites
Before creating a workflow, you should have:
- At least one AI agent configured
- A clear understanding of the process you want to automate
Step 1: Create a New Workflow
- Navigate to Workflows in the sidebar
- Click "Create Workflow" button
- Enter a name for your workflow (e.g., "Content Review Pipeline")
- Add an optional description
- Select the workflow type:
- Sequential - Tasks run in a fixed order
- Orchestrator - Manager agent delegates dynamically
- Click "Create"
Step 2: Add a Trigger
Every workflow needs at least one trigger to start execution.
- In the workflow builder, click "Add Trigger" or the + button
- Select a trigger type:
- Manual - Start via UI button or API call
- Webhook - Receive data from external systems
- Schedule - Run on a recurring schedule
- Form - Collect user input first
- Configure the trigger settings
- Click "Save Trigger"
[!TIP] Start with a Manual trigger for testing. You can add automated triggers later.
Step 3: Add Tasks (Sequential Workflow)
For sequential workflows, add tasks that will execute in order:
- Click "Add Task" or the + button after the trigger
- Configure the task:
Task Configuration Options
| Setting | Description |
|---|---|
| Task Name | Descriptive name (e.g., "Research Topic") |
| Agent | Select which AI agent handles this task |
| Instructions | Additional context for this specific task |
| Context Control | How much prior context the agent receives |
| Tool Approval | Auto-approve or require manual approval for tool use |
Context Control Options
- Full Context: Agent sees all previous conversation history
- Isolated: Agent starts fresh, only receiving the task input
- Summary: Agent receives a summary of prior context
- Connect tasks by dragging from one node's output to the next node's input
- Add additional tasks as needed
Step 3: Configure Orchestrator (Orchestrator Workflow)
For orchestrator workflows, configure the manager agent:
- Click the Orchestrator Node in the builder
- Configure the manager settings:
Manager Configuration
| Setting | Description |
|---|---|
| Manager Prompt | Instructions for how the manager should delegate |
| Model | LLM model for the manager (e.g., GPT-4, Claude) |
| Max Iterations | Maximum number of agent delegations |
| Available Agents | Which agents the manager can delegate to |
Worker Agent Setup
- Click "Add Worker Agent" to add agents the manager can use
- For each worker, configure:
- Agent: Select the AI agent
- Description: Help the manager understand when to use this agent
- Instructions: Task-specific instructions
[!NOTE] The manager will automatically decide which worker agents to use based on the input and their descriptions.
Step 4: Connect the Nodes
Sequential Workflows
- Drag connections from the right handle of one node to the left handle of the next
- Nodes execute in the order they're connected
- Each node's output becomes the next node's input
Orchestrator Workflows
- Worker agents connect to the orchestrator node
- The manager coordinates all connected workers
- No manual sequencing needed—the manager decides
Step 5: Test Your Workflow
Before activating, test your workflow:
- Click the "Test" button in the toolbar
- Enter test input data
- Watch the execution flow through each node
- Review the outputs at each step
- Adjust configuration as needed
Step 6: Activate the Workflow
Once testing is complete:
- Toggle the "Active" switch in the workflow header
- Your workflow is now live and will respond to triggers
- Monitor executions in the Runs panel
Visual Builder Features
Toolbar Actions
| Button | Action |
|---|---|
| Undo (Ctrl+Z) | Undo last action |
| Redo (Ctrl+Y) | Redo undone action |
| Auto-Layout | Automatically arrange nodes |
| Zoom In/Out | Adjust canvas zoom |
| Fit View | Fit all nodes in view |
Node Operations
- Select: Click a node to configure it
- Move: Drag nodes to reposition
- Delete: Select and press Delete, or use the trash icon
- Duplicate: Right-click → Duplicate
Canvas Navigation
- Pan: Click and drag on empty canvas
- Zoom: Mouse wheel or pinch gesture
- Snap to Grid: Nodes automatically align to grid
Example: Content Review Workflow
Here's a complete example of a sequential content review workflow:
[Form Trigger: Collect Article]
↓
[Task 1: Research Agent]
- Verifies facts and sources
- Context: Full
↓
[Task 2: Editor Agent]
- Improves clarity and flow
- Context: Full
↓
[Task 3: SEO Agent]
- Optimizes for search
- Context: Isolated
↓
[Output: Reviewed Article]
Configuration:
- Form trigger collects the article text
- Research agent fact-checks with full context
- Editor improves writing with access to research notes
- SEO agent works isolated (only needs final text)
Best Practices
- Start Simple: Begin with 2-3 tasks and expand
- Test Frequently: Test after each major change
- Use Descriptive Names: Clear names make debugging easier
- Consider Context: Not every task needs full history
- Add Guardrails: Validate outputs for critical workflows
Troubleshooting
Workflow won't start
- Check that the workflow is activated
- Verify the trigger is properly configured
- Ensure all required connections exist
Tasks not receiving input
- Verify connections between nodes
- Check context control settings
- Review the previous task's output
Unexpected outputs
- Add guardrails to validate results
- Review agent instructions
- Test each task individually
Next Steps
- Workflow Triggers - Deep dive into trigger types
- Adding Guardrails - Validate agent outputs
- Introduction to Workflows - Workflow concepts overview