Build an AI Booking Agent in TypeScript: Members Crash Course
A members crash course: build an AI appointment booking agent for a salon in TypeScript and NestJS. It checks free slots, books, reschedules and cancels, asks the customer before it cancels, books
About this course
Every clinic and salon loses bookings to missed calls and messages that arrive after closing time. An AI booking assistant fixes that, and it is one of the most common AI agents companies ask developers to build. This members crash course builds one, step by step, in TypeScript and NestJS.
The business is Willow Salon, with two stylists and a weekend of one-hour slots in MongoDB. You build its booking agent with the official Anthropic SDK: it checks free slots, books, reschedules and cancels, and it asks the customer to confirm before it cancels anything.
What each video covers:
- Trailer: the finished agent booking, moving and cancelling an appointment, with the confirm step.
- Practical 1 (Early Bird): every prerequisite on camera, MongoDB in Docker, an LLM service and the agent loop with one tool.
- Practical 2 (Premium): booking tools with Zod schemas, and Zod errors the model reads and fixes.
- Practical 3 (Premium): conversations stored in MongoDB, so the agent remembers, and a step limit.
- Practical 4 (Premium): confirm before cancel, idempotent booking and a 409 for a taken slot.
- Practical 5 (Premium): Docker Compose with healthchecks and the whole flow against the containers.
An honest note: there was no paid API credit while this course was recorded, so every AI answer on screen is a scripted offline fixture, written by hand in the exact shape of the Messages API and labelled "scripted" in every response. The agent code around it is real and really runs. With your own key, live mode sends the same requests to Claude.
The full course is on codewithjay.com. This crash course is also coming in Go.
What you'll learn
Course curriculum
- Course Trailer
- Practical 1: Setup, Your First LLM Call and the Agent Loop
- Practical 2: Booking Tools with Zod
- Practical 3: Multi-Step Conversations and State
- Practical 4: Confirm Before Cancel and Idempotent Booking
- Practical 5: Docker and the Whole Flow
Your instructor

Jay Gogoi
Software Architect
Jay is a well-known Best Tutor on YouTube
Prerequisites
- Comfortable with TypeScript and REST APIs. NestJS and MongoDB basics help; the salon's business code is provided and walked through. You need Node.js 26 (via nvm), npm, the Nest CLI, Docker Desktop, VS Code with the REST Client extension and jq, all checked on camera in Practical 1. An Anthropic API key is optional: offline mode runs the whole course for free.
Related courses


Fastify & Node.js Masterclass: E-commerce Full Stack from Scratch

🚀 Mastering Go Microservices: Advanced Techniques for Developers

Mastering E-Commerce Architecture: A Step-by-Step System Design Guide
Every clinic and salon loses bookings to missed calls and messages that arrive after closing time. An AI booking assistant fixes that, and it is one of the most common AI agents companies ask developers to build. This members crash course builds one, step by step, in TypeScript and NestJS.
The business is Willow Salon, with two stylists and a weekend of one-hour slots in MongoDB. You build its booking agent with the official Anthropic SDK: it checks free slots, books, reschedules and cancels, and it asks the customer to confirm before it cancels anything.
What each video covers:
* Trailer: the finished agent booking, moving and cancelling an appointment, with the confirm step.
What you'll learn
- Write the agent loop yourself: tool use in, tool result back, until a final answer
- Define booking tools with Zod schemas the model reads and must obey
- Store conversations in MongoDB so the agent remembers every turn
- Make the agent ask the customer to confirm before it cancels anything
- Book exactly once with idempotency keys and a unique slot index
- Run the whole agent with Docker Compose and healthchecks
Frequently asked questions
What is Build an AI Booking Agent in TypeScript: Members Crash Course about?
A members crash course: build an AI appointment booking agent for a salon in TypeScript and NestJS. It checks free slots, books, reschedules and cancels, asks the customer before it cancels, books
What does this course cover?
6 lessons, including: Course Trailer; Practical 1: Setup, Your First LLM Call and the Agent Loop; Practical 2: Booking Tools with Zod; Practical 3: Multi-Step Conversations and State; Practical 4: Confirm Before Cancel and Idempotent Booking; Practical 5: Docker and the Whole Flow.
Which topics does this course relate to?
Generative AI & LLMs, Docker, TypeScript, NestJS, MongoDB, Artificial Intelligence.