Purpose
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.How it works
When execution reaches a Human Task node, the workflow pauses durably while waiting for human input.Workflow reaches Human Task
Execution arrives at the Human Task node. The workflow prepares to pause.
Execution pauses
The workflow execution pauses. Temporal maintains the complete state durably, so no data is lost.
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
Human reviews and responds
The assigned user reviews the context, makes a decision, and submits their response through MagOneAI Hub.
Workflow resumes
The human’s response is captured and stored in the variable store. Workflow execution resumes from exactly where it paused.
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.
Configuration
Configure a Human Task node to present the right information and collect the right response.Task description
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”
- “Authorize payment of to ”
- “Review” (too vague)
- “Check this” (no context)
- “Agent output validation” (too technical)
Assignee
Specify who should receive the task:- Specific user
- Role
- Dynamic assignment
Assign to a specific user by email or user ID.Use when: You know exactly who should handle this task.
Context data
Provide the human with context from previous nodes. This is the information they need to make an informed decision. Example: Invoice approval contextApproval options
Define the response options available to the human.- Simple approve/reject
- Multiple options
- Custom input
Binary decision with optional comments.
Timeout
Configure what happens if the human doesn’t respond within a specified time. Timeout settings:- Duration — How long to wait (e.g., 24 hours, 3 days, 1 week)
- Action on timeout — What happens when time expires
- Take default action (approve or reject)
- Escalate to another user
- Fail the workflow
- Execute a fallback branch
Escalation
Define escalation paths for time-sensitive tasks. Escalation chain:Use cases
Human Task nodes enable sophisticated human-in-the-loop workflows.Financial approvals
Scenario: Approve invoices above a threshold before payment.Content review before publication
Scenario: Review AI-generated content before publishing to customers.Data validation
Scenario: Validate AI-extracted data before committing to database.Compliance escalation
Scenario: Escalate high-risk compliance findings to legal team.Best practices
Provide rich context
Provide rich context
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
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
Use clear action labels
Instead of generic “Yes/No”, use specific labels: “Approve Payment”, “Reject Invoice”, “Request Changes”.
Make it easy to approve
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
Require comments on rejection
When humans reject something, require them to explain why. This provides valuable feedback and audit trails.
Build escalation chains
Build escalation chains
Don’t let tasks sit indefinitely. Build escalation chains that ensure timely resolution.
Track approval metrics
Track approval metrics
Monitor approval times, approval rates, and who approves what. Use this data to optimize workflows and identify training needs.
Advanced patterns
Multi-stage approvals
Require multiple approvals in sequence:Parallel approvals
Require multiple approvals simultaneously:Conditional approval
Only require approval under certain conditions:Approval with agent augmentation
Agent assists human decision-making:Integration with MagOneAI Hub
Human Task nodes integrate seamlessly with MagOneAI Hub’s task management interface.Task queue
Tasks appear in the assignee’s queue with:- Priority indicators — Urgent, high, normal, low
- Age indicators — How long the task has been waiting
- Context preview — Quick view of key information
- Filters — Filter by priority, age, workflow type
Task detail view
When a user opens a task, they see:- Full context — All data provided by the workflow
- Attachments — Documents, images, links
- Timeline — What happened before this task
- Related tasks — Other tasks in the same workflow
- Response options — Clear action buttons
Notifications
Users receive notifications when:- A new task is assigned to them
- A task is approaching its timeout
- A task has been escalated to them
- Someone comments on their task
Mobile access
Human Task nodes work on mobile devices through MagOneAI Hub mobile app:- Push notifications for new tasks
- Full context display optimized for mobile
- Quick approve/reject actions
- Camera integration for document review
Responding programmatically (API & webhooks)
Human tasks don’t have to be answered from the Hub UI. A workflow started through the webhook/API trigger can pause on a Human Task and be resumed by an external system — so you can build approval steps into integrations where the approver lives in another application. The flow mirrors the in-app experience over signed (HMAC-authenticated) API calls:Trigger the workflow
Call the workflow’s webhook endpoint. The response includes a poll token and poll URL you use to follow execution.
Detect the pending task
When the workflow reaches a Human Task, its status becomes waiting for input and polling surfaces the pending human-task IDs.
Read the task
Fetch the task to get its questions, options, and current status — the same content a Hub user would see.
Submit the response
Post the answers back to the task. The platform validates them against the task’s questions, marks the task complete, and signals the workflow to resume. Submitting twice is safe — a task that’s already answered isn’t re-signalled.
A webhook caller may only read and answer tasks belonging to executions it started, within the same project and any allowed-use-case restrictions on its API key. Requests outside that scope return a not-found error so task existence is never leaked.
Next steps
Condition node
Route to human tasks based on conditions
Parallel node
Require multiple parallel approvals
Agent node
Use agents to prepare context for human review
Memory system
Access human task responses in subsequent nodes