human-in-the-loop
Human integration for approvals, reviews, and judgment
npm install human-in-the-loopFirst-class human participation in AI workflows.
import { approve, review, ask } from 'human-in-the-loop'
const approved = await approve`
Expense: ${expense.description}
Amount: $${expense.amount}
`({ assignTo: { role: 'manager' } })
if (approved) {
await processExpense(expense)
}Features
- Slack, email, and web notifications
- Role-based assignment
- Timeout and escalation policies
- Audit logging
- Custom approval UIs
Related
- Human Primitive — Full documentation
- ai-workflows — Workflow integration
- Human Functions — ask, approve, review
Was this page helpful?