← All lessons
Day 5 of 90

Human-in-the-Loop Patterns

8 min read

Key Concepts

  • 1Human-in-the-loop: The agent proposes, but the human decides. Agent never acts autonomously.
  • 2Use HITL when: stakes are high (money, data), agent confidence is low (<60%), or the decision is irreversible. Example: proposing a $500 laptop purchase — let the user confirm.
  • 3Friction trade-off: HITL adds a click/confirmation step. For low-stakes decisions (product color), this kills conversion. For high-stakes (checkout), it builds trust.
  • 4Confidence-aware HITL: The agent includes its confidence score. Example: 'I'm 95% sure this fits your needs' vs. 'I'm 40% sure.' Use agent confidence to decide whether to auto-approve low-stakes or require confirmation.
  • 5Escalation patterns: If agent is stuck (ambiguous user input), escalate to a human support agent (live chat, email). Don't let the agent make a bad guess.
  • 6Feedback loops: When a user approves/rejects an agent recommendation, use that feedback to improve. Example: user rejects laptop A but buys laptop B → agent learns 'this user prefers brand X over brand Y.'
  • 7Transparent logging: HITL systems must log *why* the agent made its recommendation. If the user later disputes the decision ('Why did you recommend this?'), you have the reasoning.

Why It Matters for PMs

Trust & liability: If an agent makes a bad recommendation and the user loses money, who's liable? With HITL, you can say 'the user approved it,' reducing your legal risk. This matters for financial or medical products.
Conversion optimization: HITL adds friction, but it's intentional friction. A user who actively confirms a purchase (vs. accidentally clicking 'buy') has higher satisfaction and lower return rates.
Feedback & improvement: HITL creates a feedback loop. Every rejection teaches the agent. Over time, your agent gets smarter on *your* specific customer base, not just the general population.

Test Your Understanding

Question 1 (Multiple Choice)

When should you use human-in-the-loop (agent proposes, human confirms)?

Question 2 (Multiple Choice)

What's a downside of HITL for low-stakes decisions (e.g., choosing a product color)?

Question 3 (Multiple Choice)

If an agent is 90% confident in a recommendation, should you require user confirmation?

Question 4 (Short Answer)

Design a HITL workflow for a financial product recommendation (e.g., suggesting a mortgage).

Think about your answer before revealing the explanation.

Question 5 (Short Answer)

How could user rejections of agent recommendations be used to improve the agent over time?

Think about your answer before revealing the explanation.