Human in the Loop
Overview
How It Works


Trigger: Invoice received
→ Agent: Extract invoice details
→ Approval: Review payment
└─ Shows: Payment amount and vendor
→ Action: Create payment
→ Notification: Confirm payment processedTrigger: Cleanup request
→ HTTP Request: Fetch old records
→ Code: Filter records older than 90 days
→ Approval: Review deletion
└─ Shows: Record count and preview
→ Action: Delete records
→ Notification: Confirm deletion completeTrigger: Form submission
→ Agent: Generate response
→ Approval: Review message
└─ Shows: Email draft generated by agent
→ Action: Send email to customer
→ Notification: Email sent confirmationTrigger: Manual or scheduled
→ Agent: Review configuration changes
→ Approval: Review deployment
└─ Shows: Change summary
→ Action: Update production system
→ Notification: Deployment completeAgent: Calculate invoice amount
Condition: Amount > $5000?
├─ Yes → Approval: Review high-value payment
│ → Action: Create payment
└─ No → Action: Create payment (auto-approved)