Appointment booking with calendar invites, built by Claude Code on Elements
Meeting types, weekly hours and date overrides, booking pages shown in each guest's own time zone, and emailed calendar invites with reminders, reschedule and cancel.
How it's built
Slotnook needed open slots computed from weekly hours and overrides, booking pages that update while a guest is looking, emailed calendar invites, and reminders on a schedule. Each of those is a part of Elements, so the agent spent its 21 minutes on the scheduling itself.
- Booking pages that update live. A channel tells every open booking page when a host's calendar changes, so a time another guest just took drops out of the picker on the spot.
- Booking as a function call. The booking page calls
@rpcfunctions to read open times, book, reschedule and cancel, with types checked from the page to the database. Booking locks the host inside a transaction, so each time goes to exactly one guest. - Open times from SQL. A migration defines meeting types, weekly hours, date overrides and bookings, plus a SQL function that turns them into open start times with buffers. A second migration seeds two consultants in Los Angeles and Berlin with five meeting types and bookings from guests in their own time zones.
- Invites by email. Each confirmation, reschedule and cancellation is a background job that sends an email with a calendar file attached, so the guest's calendar follows every change.
- Reminders on a schedule. One cron line runs a job every five minutes that sends a reminder for each booking starting within a day.
- Sessions. Hosts sign in to manage their meeting types, hours and bookings, and every host action checks that the booking belongs to the signed-in user.
Why Elements
Elements is an integrated full-stack app framework and a project server. The project server checks the agent's work as it builds: it type-checks the server and browser code, analyzes the program, applies migrations and runs the tests, then reports the results to the agent. A security mistake, such as calling a server-only function from the browser, is a compile error. The agent reads the report and fixes its own mistakes before it tells you a feature is done. The same checks run on every feature you ask for next.
Run it yourself
- 1 Sign up
Already have an account? Sign in
- 2 Install and run the demo One prompt to paste into your agent.
The prompt
What Claude was given to build this app.
Build an appointment scheduling app named slotnook, for consultants to share a booking page. HOST (accounts) - Meeting types: name, length, description, buffer between meetings. - Weekly availability, date overrides, and a time zone. - A public booking page per meeting type. - Upcoming and past bookings. Cancel or reschedule, which emails the guest. GUEST (no account) - Pick a day and an open time, shown in their own time zone. - Enter name, email and a note, and book. - Get a confirmation email with a calendar invite (.ics) and links to reschedule or cancel. - A reminder email 24 hours before. Seed two hosts in different time zones with meeting types, availability and upcoming bookings. Show the seeded logins on the sign-in page. Booked slots disappear from open booking pages in real time.