Core Concepts
Understand the fundamental building blocks of workflows including nodes, triggers, connections, and execution.
Introduction
Welcome to Workflows fundamentals. This guide covers everything you need to understand how workflows work - from individual nodes to execution patterns, versioning, and testing strategies.
What is a Node?
A node is the fundamental building block of a workflow. Think of it like a step in a recipe - each node does one thing, and you chain them together to create your complete automation.
Nodes can do all sorts of things:
- Execute AI agents to analyze or generate content
- Make HTTP requests to external APIs
- Transform data with custom code
- Route execution based on conditions
- Send notifications to team members
You connect nodes together to create a complete workflow that automates your process from start to finish.
Understanding Node Structure
Every node has a few common elements that make them easy to work with:
The Node Header
Shows you the node type and name. Click the play button here to test the node individually - super helpful for debugging!
Input and Output Tabs
After a node runs, you can click on it to see:
- Input tab: What data the node received
- Output tab: What data the node produced
This data flows to the next nodes in your workflow.
Configuration Panel
Click any node to open its settings in the side panel. This is where you configure what the node does, select AI models, set up connections to external services, and more.
Working with Variables
The Basics
Use double curly braces to reference variables:
{{form1.output.email}}
{{analyze_data.output.structured.summary}}
{{api_response.data.items[0].title}}Configuring Fields with Variables
Every node has fields that need configuration. You can use variables in most text fields, or choose from three field modes:
- Auto Mode: Let the workflow automatically determine the best value
- Manual Mode: Enter exact values or use variables like
{{form1.output.email}} - AI Prompt Mode: Give instructions for AI to generate dynamic content
- Learn About Field Modes β Understand Auto, Manual, and AI Prompt modes and when to use each one
π‘ Pro tip: When you focus on any field, a data panel appears showing all connected upstream nodes. You'll see the node names immediately, but actual output data and structure only appear after you've run those nodes at least once.
π Working with files: In Agent node prompts, you'll also see a Files tab that lists files from previous nodes (like uploaded documents or generated images). Click a file to insert a reference - it appears as a colored pill in your prompt showing the file type and source node.
How Workflows Execute
Sequential Execution
By default, your workflow runs nodes one after another, following the connections you've drawn. Each node waits for the previous one to complete before starting. Simple and predictable!
Parallel Execution
When you connect multiple nodes to a single source node, they can run at the same time. This speeds up your workflow when nodes don't depend on each other.
For example:
β Send Email β
Trigger β β Create Ticket β β Continue
β Update Database βAll three nodes after the trigger can run in parallel since they're independent.
Error Handling
You control what happens when something goes wrong. For each node, you can choose:
- Stop workflow: Stop everything and mark the run as failed (good for critical steps)
- Continue (using error output): Keep going and pass the error as the node's output (good for non-critical actions)
- Add error callback: Route to different nodes on error using the red error handle (good for fallback logic)
You can configure error handling for each node individually using the node settings.
Workflow Versions
Draft Version (v0)
This is your sandbox. Make changes, test things out, and experiment without affecting anything in production. The draft version is always labeled v0.
Published Versions
When you're happy with your changes, publish them to create a new version (v1.0.0, v1.1.0, etc.). Published versions are:
- Immutable: They can't be changed, which keeps production stable
- Activated for triggers: Only active published versions respond to real triggers
- Documented: Each includes a description of what changed
- Rollback-ready: You can reactivate an older version if needed
When publishing, you choose the bump type:
- Patch (1.0.0 β 1.0.1): Bug fixes and small tweaks
- Minor (1.0.0 β 1.1.0): New features or nodes
- Major (1.0.0 β 2.0.0): Breaking changes
Workflow Templates
Workflow templates are reusable starting points saved as a single draft. They are not published as versions and cannot be activated, run in production, or respond to real triggers. Changes to a template are saved automatically and update only the template.
To use a template's automation in production, create a regular workflow from the template, configure the copy, publish a version, and turn it on. The copied workflow then uses the normal draft, published, and status lifecycle.
Testing Your Workflow
Testing Individual Nodes
Click the play button on any node to test just that piece. This is great for:
- Verifying an agent's output before building the rest of the workflow
- Checking if an API call returns the expected data
- Debugging issues in specific nodes
Testing Complete Workflows
Use the "Test run" button on the trigger node to execute the entire workflow with sample data. This runs through all nodes but doesn't mark events as processed, so you can test safely.
Replaying Previous Events
Replay events lets you test a workflow with data from an earlier form submission, webhook request, or integration event instead of entering sample data manually. Open the Test Run panel and choose Replay events.
Viewing Results
After any test run, click on nodes to see:
- Input: What data the node received
- Output: What it produced
- Messages: For agent nodes, the full AI conversation
- Logs: For code nodes, any console output
- Usage: How many AI credits were consumed
Connections Between Nodes
Connection Handles
Nodes have connection points (handles) on their sides:
- Left side (input): Where execution flows in
- Right side (output): Where execution flows out
- Multiple outputs: Condition nodes have one output per condition
- Red handle: Special error output (appears when error handling is enabled)
Drawing Connections
Click and drag from an output handle to an input handle. The line shows the execution flow. Workflows execute in the order defined by these connections.
Workflow Status
The following three statuses apply only to workflows, not workflow templates:
Still being built - no automatic triggers fire. Safe for making changes and testing.
Published and responding to triggers automatically. This is production mode.
Exists but temporarily disabled. Good for maintenance or debugging without deleting the workflow.
Human Oversight
For sensitive actions like financial transactions or data deletions, you can require manual approval before proceeding:
- Human in the Loop β Add manual approval steps for important actions requiring human oversight
Best Practices
- Give nodes clear names: "Analyze feedback" not "Agent 1"
- Keep workflows focused: One workflow, one purpose
- Test early and often: Test each node as you build
- Add comments: Click the three dots menu on any node and select "Add Comment" to document complex logic
Next Steps
Now that you understand the fundamentals, dive deeper into specific topics:
- Field Modes β Configure node fields with Auto, Manual, and AI Prompt modes
- Human in the Loop β Add manual approval for sensitive actions
- Getting Started β Build your first workflow step-by-step
- Node Types β Explore all available triggers and nodes