Use this file to discover all available pages before exploring further.
Human-in-the-Loop (HITL) workflows combine automation efficiency with human judgment. Use HITL when automation can handle routine tasks but humans should review edge cases, make final decisions, or handle exceptions.
Description: Context and instructions for reviewer
Please review this invoice for accuracy:- Vendor: ((vendor_name))- Amount: $((amount))- Invoice Number: ((invoice_number))Verify against purchase order and approve if correct.
Actions: Buttons for user to click
- Approve- Reject- Request More Information
Inputs to Display: Show relevant data to the reviewer
- Invoice PDF (file)- Invoice details (JSON object)- Purchase order (text)- Vendor history (text)
Assigned To: User or group who should review
- Specific user: [email protected]- Group: Finance Team- Role: Approvers
Human in the Loop: Title: "Approve Budget Allocation" Assigned To: Department Head Actions: [Approve, Reject, Delegate] Outputs: action, comment, delegate_to ↓Switch: ((action)) ├─ Approve → Process allocation ├─ Reject → Cancel request └─ Delegate ↓ Human in the Loop: Title: "Budget Allocation (Delegated)" Assigned To: ((delegate_to)) Actions: [Approve, Reject] Outputs: delegated_action ↓ Process based on delegated_action
Title: "Review This"Description: "Check if this is okay"
Good:
Title: "Approve Customer Refund Request"Description: "Customer ((customer_name)) purchased ((product_name)) on ((purchase_date)).They are requesting a refund for the following reason:\"((refund_reason))\"Customer history:- Total purchases: $((lifetime_value))- Previous refunds: ((previous_refunds))- Account age: ((account_age)) daysPlease approve or deny this refund request."
Human in the Loop Node (approval_pending) ↓Send Email: To: ((assigned_approver_email)) Subject: "Action Required: Approve ((request_type))" Body: "You have a pending approval request: Type: ((request_type)) Requester: ((requester_name)) Amount/Value: $((amount)) Please review and approve at: ((approval_link)) This request will auto-expire in ((timeout_hours)) hours."
Human in the Loop: Assigned To: Primary Approver Timeout: 4 hours ↓Conditional: timeout occurred └─ True → Escalate ↓ Human in the Loop: Title: "ESCALATED: ((original_title))" Assigned To: Backup Approver Description: "Primary approver ((primary)) didn't respond within 4 hours" Timeout: 4 hours ↓ Conditional: second timeout └─ True → Final escalation ↓ Human in the Loop: Assigned To: Department Head Description: "URGENT: Double escalation"
Human in the Loop: Actions: [Approve, Deny] Input Fields: approval_amount (number) Outputs: action, approval_amount ↓Conditional: approval_amount <= 0 OR approval_amount > max_amount └─ True → Invalid amount ↓ Human in the Loop: Title: "Invalid Amount Entered" Description: "Amount must be between $0 and $((max_amount)). Please re-enter." Input Fields: approval_amount
On Workflow Start: Check: pending_approvals table ↓ Conditional: approval record exists for this workflow └─ True → Resume from approval ↓ Read: stored approval state Continue workflow from HITL node
Use Sparingly: Only add human steps where truly neededProvide Context: Give reviewers all info needed to decideClear Actions: Use descriptive button labelsSet Timeouts: Don’t let approvals languish foreverEscalation Paths: Define what happens if primary approver unavailableTrack Metrics: Monitor approval times and bottlenecksAudit Trail: Log all approval decisions for complianceTest Thoroughly: Simulate approvals in developmentNotification Strategy: Ensure approvers are notified promptlyMobile-Friendly: Approval interfaces should work on mobileFeedback Loop: Show approvers the outcome of their decisionsTraining: Provide guidelines for consistent decision-makingHuman-in-the-Loop workflows combine the best of automation and human judgment, enabling scalable systems that handle edge cases gracefully.
Error Handling
Error escalation and recovery patterns
Conditionals
Branch workflow logic based on conditions
Triggers
Trigger workflows for approval requests
Integrations
Send notifications via email, Slack, etc.
⌘I
Assistant
Responses are generated using AI and may contain mistakes.