Skip to main content

Human-in-the-Loop (HITL)

Human-in-the-Loop enables workflows to pause and wait for human decisions, approvals, or input before continuing. Not everything should be fully automated -- HITL gives you the guardrails to keep humans in control of what matters.

Why Human-in-the-Loop?​

  • High-stakes decisions -- Approve large purchases or sensitive operations
  • Quality control -- Review AI-generated content before publishing
  • Compliance -- Ensure human oversight for regulated processes
  • Exception handling -- Escalate edge cases that humans handle better

How HITL Works​

When a workflow reaches a Human Approval step, execution pauses and the request goes to the designated approvers. The assignee receives a notification, reviews the context, and responds. Once the human responds, the workflow continues with their input.

The workflow pauses at the approval step, approvers are notified, a person approves or rejects, and the workflow continuesThe workflow pauses at the approval step, approvers are notified, a person approves or rejects, and the workflow continues

Outcomes​

StatusDescription
PendingWaiting for a response
ApprovedA person approved the request
RejectedA person rejected the request

Timeouts​

In the Visual Builder, an approval that reaches its timeout is approved automatically. Use a timeout for low-risk, routine decisions that should not hold up the work. Leave it empty for decisions that must have a human answer.

Configuring Human Nodes​

In Workflows​

Add a Human Approval node in the Visual Builder and configure:

SettingDescription
Approval MessageWhat the reviewer is asked to decide
AssigneeTeam Lead, Manager, or a Specific User
Timeout (hours)After this delay the step approves automatically. Leave it empty to wait without limit
On RejectStop Flow, Retry Previous Step, or Route to Alternative Agent

Context for the reviewer​

Write the approval message so the reviewer can decide without hunting for information: state what is being approved, the amount or scope, and why. The reviewer sees it together with the work the previous steps produced.

Multi-Level Approvals​

Create approval chains by adding multiple Human nodes in sequence. Combine them with Condition nodes for threshold-based escalation:

  1. Team lead approves all requests
  2. Manager approves only if amount exceeds a threshold
  3. Finance approves only if amount exceeds a higher threshold

This keeps routine approvals fast while adding oversight for larger decisions.

Responding​

  1. Open Work › My Tasks. Workflow steps waiting on you are listed in the inbox.
  2. Open the request to see the prompt and the context the workflow passed along.
  3. Fill in the requested fields.
  4. Click Approve or Reject. The workflow continues immediately.

Approvals that agents request for their own actions (outside workflows) are handled in Work › Approvals. See Approvals.

Best Practices​

Write Clear Prompts

"Approve expense report #1234 for $2,500 (Travel - Q4 Conference)" is actionable. "Please review" is not.

Provide Context

Include all relevant data from the workflow so reviewers can decide without hunting for information.

Use Reasonable Timeouts

Because a timeout approves automatically, keep it for routine steps (for example 24 hours) and leave compliance or financial approvals without one.

Decide What a Rejection Means

Choose On Reject deliberately: stop the flow, retry the previous step, or route the work to another agent.


Next: Learn about Agent-to-Agent Communication for building collaborative agent systems.