Build an AI Booking Agent in Go: Members Crash Course
A members crash course: build an AI appointment booking agent for a salon in Go, with Gin, MongoDB and the official Anthropic Go SDK. It checks free slots, books, reschedules and cancels, asks the
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 Go.
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 Go SDK, Gin and the MongoDB Go driver: 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, a Go module, MongoDB in Docker, an LLM client and the agent loop with one tool.
- Practical 2 (Premium): booking tools as Go structs with a Validate method and a hand-written JSON Schema, and validation 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): a multi-stage Dockerfile, 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. They are the same scripted answers as the TypeScript version of this course. The agent code around them is real Go 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 available in TypeScript.
What you'll learn
Course curriculum
- Course Trailer
- Practical 1: Setup, Your First LLM Call and the Agent Loop
- Practical 2: Booking Tools with Structs and JSON Schema
- 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 Go basics (structs, errors, packages) and REST APIs. MongoDB basics help; the salon's business code is provided and walked through. You need Go 1.25 or newer, 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 Go.
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 Go SDK, Gin and the MongoDB Go driver: 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 in Go: tool use in, tool result back, until a final answer
- Define booking tools as Go structs with validation and a JSON Schema the model reads
- 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 Go: Members Crash Course about?
A members crash course: build an AI appointment booking agent for a salon in Go, with Gin, MongoDB and the official Anthropic Go SDK. It checks free slots, books, reschedules and cancels, asks the
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 Structs and JSON Schema; 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, MongoDB, Artificial Intelligence.