# Human-in-the-Loop (HITL) Examples

> Patterns for integrating human decision-making into AI workflows. These examples show how to request human input, approval, and feedback during procedure execution.

Canonical: https://tactus.anth.us/examples/human-in-the-loop/

::band{columns="document-hero wide"}

[Examples](/examples/) / Human-in-the-Loop (HITL)

# Human-in-the-Loop (HITL)

Patterns for integrating human decision-making into AI workflows. These examples show how to request human input, approval, and feedback during procedure execution.

::band{tone="muted"}

## Examples in This Chapter

### [Basic Hitl](/examples/human-in-the-loop/basic-hitl/)

Introduction to HITL primitives with direct procedure calls. This example demonstrates the traditional approach where the procedure code explicitly calls HITL primitives with hardcoded messages:
- `Human.approve()` - Yes/no decisions
- `Human.input()` - Text input with optional dropdown options
- `Human.review()` - Content review and feedback

*Has Specs*

### [Agent Driven Approval](/examples/human-in-the-loop/agent-driven-approval/)

An AI agent that dynamically decides when to request human approval and constructs context-aware approval messages. This demonstrates **agent-driven HITL** where the agent has tools that wrap HITL primitives and uses them intelligently based on context.

*Has Specs · Requires API Keys*

::band{columns="neighbors"}

- [*← Previous Chapter* **Classification**](/examples/classification/)
- [*Next Chapter →* **Standard Library**](/examples/standard-library/)

::band{columns="cta"}

## Want to contribute?

The examples repository is open source. Add your own examples or improve existing ones.

::button{href="https://github.com/AnthusAI/Tactus-examples" label="View on GitHub" size="lg"}
