Primitives.org.ai

human-in-the-loop

Human integration for approvals, reviews, and judgment

npm install human-in-the-loop

First-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
Was this page helpful?

On this page