Skip to main content

Workflow Nodes

Workflow nodes represent individual execution operations within a BindAI workflow. A node can perform an operation, evaluate information, control execution flow, or coordinate another component of the application. BindAI V1 supports nodes for sequential execution, agents, tools, conditions, loops, parallel execution, joins, and human tasks. The term node describes the role an operation plays in a workflow. It should not be interpreted as a specific public WorkflowNode class unless that class is exposed by the current BindAI implementation.

What Is a Workflow Node?

A workflow node represents one operation within a larger execution process. Conceptually:
A complete workflow combines multiple operations:
The workflow controls how execution moves between those operations.

Workflow Graph

A workflow can be represented as a graph of connected operations. A simple process is:
A conditional process can branch:
A parallel process can execute independent operations:
The workflow execution layer determines how these operations are coordinated.

Supported V1 Node Types

BindAI V1 supports these workflow node types: These nodes can be combined to create executable workflow graphs.

Start Node

The Start node represents the beginning of a workflow.
It does not perform an application operation itself. It provides the entry point for workflow execution.

End Node

The End node represents the completion of a workflow path.
A workflow can contain different paths that eventually reach an End node.

Agent Node

The Agent node executes a configured BindAI agent.
An Agent node can consume workflow input and store its output in a workflow variable. For example:
The resulting value can then be passed to another node.

Agent Input Mapping

Agent nodes can use workflow variables as input. For example:
Multiple workflow values can also be mapped into the agent input. This allows a workflow to explicitly control which values are provided to an agent.

Tool Node

The Tool node executes a registered BindAI tool.
Tools perform executable application operations. A tool result contains information about whether the operation succeeded and its resulting value or error. Conceptually:

Tool Parameter Mapping

Tool nodes can map workflow variables into tool parameters. For example:
This allows the output of one workflow operation to become the input of another.

Agent and Tool Nodes Together

Agent and Tool nodes can be combined:
For example, an agent can determine a value and a tool can perform a deterministic operation using that value. This separates reasoning from application execution.

Condition Node

The Condition node controls which workflow path executes next.
A condition evaluates an expression using workflow state. For example:
Conditions are useful for:
  • Validation
  • Routing
  • Approval decisions
  • Result-based branching
  • Workflow control

Condition Expressions

A condition is configured with an expression that determines the selected path. Conceptually:
The expression should be based on values available during workflow execution. The exact expression syntax should follow the configured BindAI workflow implementation.

Loop Node

The Loop node allows workflow execution to repeat based on a condition. Conceptually:
Loops are useful for:
  • Processing collections
  • Repeated operations
  • Iterative workflows
  • Processing items until a condition is satisfied
A loop should always have a clear termination condition.

Parallel Node

The Parallel node starts independent workflow branches.
Parallel execution is useful when branches do not depend on one another. Examples include:
  • Independent agent execution
  • Independent tool operations
  • Separate analysis tasks
  • Independent workflow branches

Join Node

The Join node provides the synchronization point after parallel branches.
The Join node allows the workflow to continue after the parallel branches have completed. Parallel and Join nodes are therefore normally used together:

Human Task Node

The Human Task node pauses workflow execution until a human action is provided.
A Human Task can represent an approval or rejection decision. For example:
Human Tasks are useful for:
  • Approval workflows
  • Content review
  • Sensitive actions
  • Manual verification
  • Human-in-the-loop decisions

Human Task Persistence

When a Human Task is waiting, the workflow instance can remain persisted. Conceptually:
This allows the workflow to pause and later continue without requiring the original execution request to remain active.

Node Execution State

Workflow execution maintains state while moving between nodes. Conceptually:
State can contain:
  • Input values
  • Agent outputs
  • Tool results
  • Intermediate application data
  • Execution information
  • Human-task information

Passing Results Between Nodes

Results produced by one node can be consumed by later nodes. For example:
This creates an explicit data flow through the workflow. Workflow variables provide the mechanism for carrying these values between operations.

Node Context

Workflow operations execute within workflow execution state. Conceptually:
The exact context API depends on the BindAI workflow implementation. Documentation should not invent a specific node context API unless it is part of the verified public API.

Connection-Backed Tool Nodes

Connections can participate in workflows through connection-backed tools. The architecture is:
In BindAI V1, the implemented Studio connection provider is Webhook. For example:
This provides a real workflow execution path to an external HTTP endpoint.

Memory and Nodes

Agents executed through workflow nodes can use configured Memory. For example:
Memory provides retained information for agent interactions. Memory is separate from workflow state:
  • Workflow state supports workflow execution.
  • Memory provides retained agent or application information.

Knowledge and Nodes

Agents executed through workflow nodes can also use configured Knowledge. For example:
Knowledge provides searchable information that can be used during agent execution.

Node Connections

Connections determine where execution proceeds. A sequential graph is:
A branching graph is:
A parallel graph is:
The workflow runtime interprets these relationships during execution.

Node Independence

Well-designed workflow nodes should remain focused. A good node generally:
  • Has one clear responsibility
  • Reads only the information it needs
  • Produces a clear result
  • Updates state predictably
  • Avoids unnecessary coupling
Small, focused operations are easier to test and maintain.

Node Failure

Individual nodes can fail during workflow execution. For example:
The resulting workflow behavior depends on the node and workflow configuration. For V1, failure handling should be implemented explicitly through the available workflow structure rather than assuming advanced retry or timeout policies.

Conditional Failure Handling

A workflow can use conditions to route based on available execution values. For example:
This allows applications to define explicit failure paths using the workflow primitives available in V1.

Custom Workflow Operations

Applications may need domain-specific behavior. That behavior should generally be implemented as an appropriate BindAI component, such as an agent or tool, and then composed into the workflow. For example:
Developers should not assume that BindAI exposes a public base class named:
unless that class exists in the installed version. Concrete workflow APIs should always be documented from the actual implementation.

Node Connections and Data Flow

Workflow structure and data flow are related but distinct. The graph determines execution order:
Workflow variables determine what data moves between those operations:
Together, graph structure and workflow state define the executable process.

Visual Node Construction

BindAI Studio provides a visual editor for constructing workflow nodes and their connections. The editor supports:
  • Adding workflow nodes
  • Positioning nodes
  • Connecting nodes
  • Configuring node properties
  • Saving workflow definitions
  • Loading saved workflow definitions
The resulting workflow definition can be loaded by the runtime. This means the visual graph represents an executable workflow rather than only a design diagram.

Testing Workflow Nodes

Node behavior should be tested both individually where appropriate and as part of complete workflows. Important V1 cases include:
  • Agent execution
  • Tool execution
  • Condition true path
  • Condition false path
  • Loop termination
  • Parallel execution
  • Join synchronization
  • Human-task approval
  • Human-task rejection
  • Connection-backed tool execution
  • Workflow persistence
  • Node failure handling
Testing should verify actual runtime behavior rather than only the visual representation of the graph.

API Accuracy

This documentation intentionally does not assume public classes such as:
Likewise, methods such as:
should not be treated as BindAI APIs unless they are verified in the current implementation. When a concrete node API is exposed, documentation should provide:
  1. The actual import path.
  2. The actual constructor or factory.
  3. The actual parameters.
  4. The actual execution behavior.
  5. Tests demonstrating the behavior.
This keeps workflow documentation synchronized with the implementation.

Best Practices

When designing workflow nodes:
  • Give each node one clear responsibility.
  • Keep reasoning and deterministic execution separate.
  • Pass data through explicit workflow variables.
  • Keep conditions simple and readable.
  • Give loops clear termination conditions.
  • Use parallel execution only for independent work.
  • Use Join nodes to synchronize parallel branches.
  • Use Human Tasks for explicit human decisions.
  • Keep external operations behind tools or connection-backed tools.
  • Avoid unnecessary coupling between nodes.
  • Define important failure paths explicitly.
  • Test successful and failure paths.
  • Document concrete APIs only after implementation verification.

Current BindAI V1 Scope

The current BindAI workflow node foundation supports:
  • Start nodes
  • End nodes
  • Agent nodes
  • Tool nodes
  • Condition nodes
  • Loop nodes
  • Parallel nodes
  • Join nodes
  • Human Task nodes
  • Workflow variables
  • Workflow state
  • Persistent workflow execution state in Studio
  • Connection-backed tools
  • Webhook connections
  • Agent Memory
  • Agent Knowledge
  • Visual workflow construction
  • Studio API execution
These capabilities form the executable workflow foundation of BindAI V1.

Deferred Workflow Features

The following workflow features are outside the current V1 scope:
  • Advanced retry policies
  • Advanced timeout policies
  • Workflow scheduling
  • Automation triggers
  • Distributed workflow execution
  • Advanced workflow monitoring
  • Additional external connection providers
  • Advanced Memory administration
  • Advanced Knowledge administration
  • MCP management
These should only be documented as implemented capabilities after they are actually available and verified.

Summary

Workflow nodes represent the individual operations that make up a BindAI workflow. BindAI V1 provides nodes for:
Nodes can coordinate agents, tools, workflow state, Memory, Knowledge, human decisions, and configured Connections. The key principle is:
A workflow coordinates operations; each node should remain focused on its own responsibility.
Specific node classes and builder methods should only be documented when they are part of the verified public BindAI API.