Skip to main content
Human-in-the-Loop solves three problems that appear when agents move from answering questions to taking actions:
  1. Irreversible operations. Sending an email, deleting a record, or posting to a channel cannot be undone. A human checkpoint prevents mistakes that require cleanup or apologies.
  2. Missing context. The agent knows what action to take but lacks a critical detail. A deployment needs a target environment. A booking needs a budget. Rather than guessing, the agent pauses and asks.
  3. Audit trail. Sensitive operations need accountability. Slack threads already contain the discussion that led to the action. Rendering the approval in the same thread keeps the decision and its context together.

Agent pausing for approval before creating a calendar event and sending an email

Quick start

The Slack interface renders HITL pauses as interactive cards in the thread. Users approve, reject, or provide input without leaving Slack.
agent.py
HITL requires a database to persist paused runs.

Pause types

See the HITL overview for details on each pause type.

Next steps

HITL Overview

All pause types and how to use them

Reference

All parameters and endpoints