The Human Task node pauses the workflow and waits for a human to provide input or approval before continuing. Essential for human-in-the-loop patterns, Human Task nodes ensure that critical decisions have human oversight.Human Task nodes bridge the gap between AI automation and human judgment. They enable workflows that leverage AI speed and consistency while retaining human oversight for high-stakes decisions.
When execution reaches a Human Task node, the workflow pauses durably while waiting for human input.
1
Workflow reaches Human Task
Execution arrives at the Human Task node. The workflow prepares to pause.
2
Execution pauses
The workflow execution pauses. Temporal maintains the complete state durably, so no data is lost.
3
Task appears in MagOneAI Hub
The task appears in MagOneAI Hub’s task queue for the assigned user or role. The user sees:
Task description
Context data from previous nodes
Available response options
Attachments or related documents
4
Human reviews and responds
The assigned user reviews the context, makes a decision, and submits their response through MagOneAI Hub.
5
Workflow resumes
The human’s response is captured and stored in the variable store. Workflow execution resumes from exactly where it paused.
6
Workflow continues
Subsequent nodes can access the human’s response and continue processing based on the decision.
Human Task nodes leverage Temporal’s durable execution. The workflow can wait for hours, days, or even weeks for human input without losing state or consuming compute resources. When the human responds, execution resumes instantly.
Write a clear description of what the human needs to review or decide. The description appears as the task title in MagOneAI Hub.Good task descriptions:
“Review extracted invoice data for accuracy”
“Approve high-value purchase request: AED ”
“Validate compliance findings before finalizing report”
Scenario: Validate AI-extracted data before committing to database.
Copy
Workflow: 1. Extract data from document (Agent with vision) 2. Validate format and completeness (Agent) 3. Condition: confidence < 0.9 ├─ True: Human Task: "Validate extracted data" └─ False: Auto-approve 4. Save to database (Tool) 5. Send confirmation (Tool)
Give humans all the information they need to make an informed decision. Include:
Summary of what happened before
Key data points
AI analysis results
Links to original documents
Relevant history
Set realistic timeouts
Consider business hours, time zones, and realistic response times. Don’t set a 1-hour timeout if the person might be asleep.Good timeout examples:
Urgent approval: 4 hours with escalation
Standard approval: 24 hours
Non-urgent review: 3 days
Use clear action labels
Instead of generic “Yes/No”, use specific labels: “Approve Payment”, “Reject Invoice”, “Request Changes”.
Make it easy to approve
For low-risk tasks, make approval the default and easiest action. For high-risk tasks, require explicit affirmation.
Require comments on rejection
When humans reject something, require them to explain why. This provides valuable feedback and audit trails.
Build escalation chains
Don’t let tasks sit indefinitely. Build escalation chains that ensure timely resolution.
Track approval metrics
Monitor approval times, approval rates, and who approves what. Use this data to optimize workflows and identify training needs.
Use Human Task nodes strategically. Not every decision needs human approval. Reserve human oversight for high-stakes decisions, low-confidence AI outputs, and situations where human judgment is genuinely needed.
Workflow: 1. Analyze request (Agent) 2. Research relevant precedents (Agent with RAG) 3. Generate recommendation (Agent) 4. Human Task: "Final decision" (with AI recommendation) 5. Process based on human decision