Human Tasks
Human Tasks allow a workflow to pause automated execution and wait for a human decision before continuing. BindAI V1 supports Human Tasks as a real workflow control-flow mechanism. A workflow can reach a Human Task, persist its execution state, remain in a waiting state, and later resume after an approval or rejection is submitted. This makes Human Tasks useful for approval, review, validation, and other human-in-the-loop workflows.What Is a Human Task?
A Human Task is a workflow node that pauses execution until a human action is provided. A typical flow is:Why Use Human Tasks?
Human Tasks are useful when automated processing should pause for human review or approval. Common examples include:- Reviewing AI-generated content
- Approving a proposed action
- Reviewing a classification
- Validating a workflow result
- Approving a publishing action
- Handling exceptions
- Requiring confirmation before continuing
Human Task Execution
A Human Task participates directly in the workflow graph. For example:- A Human Task is created.
- The workflow context records the task.
- The workflow enters a waiting state.
- Downstream nodes do not execute.
- An external caller submits a decision.
- The workflow resumes.
- The selected outcome determines the next workflow path.
Waiting State
The runtime exposes the waiting state through the workflow execution result. Conceptually:Human Task Data
The runtime task contains information identifying the task and its workflow node. The verified task state includes:- Task identifier
- Node identifier
- Assignee
- Role
- Completion status
- Result
- Creation timestamp
Human Task Outcomes
BindAI V1 supports decision outcomes that can be represented by workflow edges. The verified Studio workflow path uses:Approval Workflow
A typical approval workflow can be structured as:approved is submitted, execution follows the approved path.
When rejected is submitted, execution follows the rejected path.
Human Tasks and Conditions
Human Tasks and Conditions provide different forms of decision-making.
They can also be combined.
Human Tasks and Agents
Human Tasks work naturally with Agent nodes. For example:Human Tasks and Tools
A Tool can execute before or after a Human Task. For example:Human Tasks and Connections
Human Tasks can be combined with connection-backed tools. For example:Human Tasks and Memory
Human Tasks can appear in workflows that also use Memory-enabled agents. For example:- Memory preserves supported agent conversation context.
- Human Tasks pause workflow execution for human input.
Human Tasks and Knowledge
Human review can also follow an Agent that uses Knowledge. For example:Persistence
Human Tasks require workflow state to survive the waiting period. BindAI V1 persists workflow instances through the workflow store used by the runtime. The Studio runtime usesFileWorkflowStore for persistent workflow execution state.
The persisted state includes information required to identify and restore the workflow instance, including:
- Workflow identity
- Workflow version
- Execution context
- Workflow variables
- Human Task state
- Waiting state
- Execution result information
Resume After Approval
A Human Task can be completed through the Studio API. The workflow execution first returns a waiting response. For example:Studio API
The verified Studio API for Human Tasks is:Human Task Lifecycle
The verified V1 lifecycle is:Workflow Restart and Persistence
Human Tasks are particularly important for long-running workflows because the workflow does not need to remain inside the original request while waiting. The persisted workflow instance can be loaded later and resumed after the Human Task is completed. A useful lifecycle is:Example: Approval Before an External Action
A practical workflow can combine Agents, Human Tasks, and connections:Human Tasks and Parallel Workflows
Human Tasks can participate in workflows that also use Parallel and Join nodes. For example:- Parallel executes independent branches.
- Join synchronizes those branches.
- Human Task waits for external human input.
Human Tasks Inside Loops
A Human Task can also participate in repeated workflow logic. Conceptually:Human Tasks and Errors
A Human Task is different from an execution error. For example:- Waiting
- Successful completion
- Rejected workflow path
- Execution failure
Approval and Rejection Are Workflow Outcomes
An approval or rejection should be treated as workflow control flow. For example:Human Task Assignment
The current V1 Human Task model contains task-level assignment information such as:assigneerole
- User directories
- Teams
- Department management
- Permission administration
- Task inboxes
- Automatic reassignment
- Escalation policies
User Interfaces
The workflow runtime does not require a particular Human Task user interface. An application can present a pending task using its own UI. Conceptually:Long-Running Human Tasks
A Human Task can remain pending longer than a normal automated operation. For example:Expiration and Escalation
BindAI V1 does not currently provide a verified built-in Human Task expiration or escalation system. Therefore, applications should not assume that a pending task will automatically:- Expire
- Escalate
- Reassign
- Send reminders
- Notify a manager
- Cancel itself after a deadline
Auditability
Human Task state is persisted as part of the workflow instance. The verified state includes information such as:- Task identifier
- Workflow instance
- Node identifier
- Assignee
- Role
- Completion state
- Result
- Creation time
Security
Human Task completion should be protected by the application’s authorization model. The Studio API requires API authentication. Applications should additionally determine which authenticated users are allowed to submit decisions for a particular task or workflow. BindAI’s Human Task mechanism should not be interpreted as automatically providing:- Identity management
- Role administration
- Organization membership
- Permission policies
- User authentication
Duplicate Completion
Human Task completion should be treated as a state transition. Once a task has been completed, applications should not assume that submitting the same decision repeatedly is equivalent to creating a new decision. Application interfaces should therefore avoid presenting completed tasks as still actionable. For externally integrated approval systems, duplicate-submission protection should be handled explicitly.Human Tasks and Retries
Human Tasks and retries solve different problems.
A Human Task should not be treated as a retry mechanism.
Similarly, retrying task creation or completion is an application-level concern and should account for duplicate state transitions.
Human Tasks and Timeouts
Human Task waiting time is different from the execution time of a normal automated node. A workflow can legitimately remain waiting for a human decision. Therefore, applications should not assume that a pending Human Task represents a stalled workflow. The verified V1 Human Task behavior is based on an explicit waiting state and later resume. Advanced Human Task deadlines and timeout policies are not part of the verified V1 feature set.Testing Human Tasks
Human Task workflows should test both sides of the waiting lifecycle. Important cases include:- Task creation
- Waiting state
- Approval
- Rejection
- Workflow resume
- Persisted workflow state
- Correct instance identification
- Downstream execution after approval
- Alternative path after rejection
Testing Rejection
Rejection should be tested separately from approval. For example:Testing Persistence
A Human Task should also be tested across persistence boundaries. A useful V1 test pattern is:Testing API Execution
The Studio API can be tested end to end. Example flow:Current BindAI V1 Scope
BindAI V1 supports Human Tasks with:- Human Task workflow nodes
- Task creation during execution
- Waiting workflow state
- Approved outcomes
- Rejected outcomes
- Workflow resume
- Persistent workflow instances
- Studio API execution
- Studio API Human Task completion
- Human Task state persisted with workflow execution
- Integration with Agents
- Integration with Tools
- Integration with Conditions
- Integration with Loops
- Integration with Parallel and Join
- Integration with Memory-enabled workflows
- Integration with Knowledge-enabled workflows
- Integration with Webhook connection-backed tools
Deferred Features
The following Human Task capabilities are outside the verified V1 scope:- Task expiration
- Automatic escalation
- Automatic reassignment
- Notification management
- Organization-wide task inboxes
- Advanced task assignment
- Advanced audit administration
- Human Task deadlines
- Distributed task management
- Advanced cancellation APIs
API Accuracy
The verified Studio API is:Summary
Human Tasks allow BindAI workflows to pause automated execution and wait for a human decision. The verified V1 lifecycle is:Human Tasks provide a persistent pause point in workflow execution where an external human decision determines how the workflow continues.
