# Human-in-the-Loop with Haystack Agents

> Source: <https://haystack.deepset.ai/tutorials/47_human_in_the_loop_agent/>
> Published: 2026-07-20 00:00:00+00:00

`Agent`

`OpenAIChatGenerator`

This tutorial introduces how to use **confirmation strategies** to create **human-in-the-loop interactions** in Haystack’s `Agent`

component.

**Why is this useful?** Imagine an AI agent that can access your bank account, send emails, or make purchases. You probably want human approval before it executes sensitive operations. Confirmation strategies let you define exactly when the agent should ask for permission.
