How to Build Human-in-the-Loop for AI Agents (Practical Guide)

From the creator

Want to start freelancing? Let me help: https://go.datalumina.com/7DnHzBg Want to learn real AI Engineering? Go here: https://go.datalumina.com/bnyLApI 💼 Need help with a project? Work with me: https://go.datalumina.com/TMGbUvO 🔗 GitHub Repository https://github.com/daveebbelaar/ai-cookbook/tree/main/models/openai/10-human-in-the-loop ⏱️ Timestamps 00:00 Human-in-the-Loop in AI 02:17 Python-Based Approaches 04:13 Tool Calling vs. Routing 07:50 Implementing Approval Steps 10:15 Production Patterns Overview 12:33 SSE Streaming for Real-Time Apps 19:14 Async Process for Backend Workflows 22:59 Key Concepts Recap 📌 Description Learn how to implement human-in-the-loop for your AI agents with two Python approaches: LLM routing with structured output and tool call interception. I cover two production patterns; SSE streaming for real-time chat apps and async workflows with notifications, showing how to manage state, deferred execution, and stateless resume. Perfect for AI engineers building reliable agentic systems that require human approval before executing sensitive actions. 👋🏻 About Me Hi! I'm Dave, AI Engineer and founder of Datalumina®. On this channel, I share practical tutorials that teach developers how to build production-ready AI systems that actually work in the real world. Beyond these tutorials, I also help people start successful freelancing careers. Check out the links above to learn more!

Stop watching · start building
Matched to Python

Makers residency 4th edition

Your idea can be anything. At our last workshops, people built plant-based nutrition businesses, a way to measure planetary resilience, crochet headwear and a way to connect lonely people living in the same building. An asset manager went on to raise an additional £25M on their fund within nine months. The fourth workshop is a full day at KOKO with Nick Sarafa, learning to build with Claude Code. Bring the thing you keep meaning to start. We’ll bring the pizza.

◆ Fri 13 Nov 2026 ◆ KOKO, London
Makers residency 4th edition
Live event
Makers residency 4th edition
Fri 13 Nov 2026
Find a job · 1 live role

Jobs in AI.
Apply now.

Apply once › get screened › meet the company

See all roles

More like this

Running one yourself?

List your AI event,
wherever it is.

A meetup, a workshop, a hackathon, a conference. Any city, or online. Tell us about it and it lands in front of people already learning this stuff.