CodeWithJay
Home/Courses/Build an AI Booking Agent in TypeScript: Members Crash Course
course

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

6 lessons
Build an AI Booking Agent in TypeScript: Members Crash Course course thumbnail

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

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

Course curriculum

6 lessonsUnlocks with the course
  • 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

@codewithjay
Subscribe on YouTube

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.
$19.99$49.99
Save 60%

6

Lessons

Full course accessOne payment

One payment unlocks all 6 lessons, and they stay in your library for good.

  • Certificate when you complete it
Or get it with MembershipThis course and every other premium course

One payment, no subscription · lifetime access · Refund policy

Related courses

View all

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.