Guardrails with LangChain: A Complete Crash Course for Building Safe AI Agents

From the creator

Check out the detailed blog with code: https://krishcnaik.substack.com/p/guardrails-with-langchain-a-complete?r=6ah1nv&utm_campaign=post&utm_medium=web&triedRedirect=true In this crash course, we will cover everything you need to know about implementing guardrails in LangChain agents -- from simple keyword filters to production-grade layered middleware stacks. By the end, you will have built a fully guarded healthcare chatbot with PII detection, content filtering, human-in-the-loop approval, and output safety validation. Here is what we will cover: What are Guardrails and why do they matter? Two approaches: Deterministic vs Model-based Built-in: PII Detection Middleware Built-in: Human-in-the-Loop Middleware Custom: Before-Agent Guardrail (input filtering) Custom: After-Agent Guardrail (output safety) Layered / Combined Guardrails Real-World Use Case: Healthcare Chatbot Visit krishnaik.in for Live courses

Stop watching · start building
Matched to AI Agents

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

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.