Back to Appointed - Booking Kit for Next.js & Any Website

Prompt cookbook

Appointed - Booking Kit for Next.js & Any Website

Paste a prompt into your coding agent with the project open. Each one names the file it changes, so the agent doesn't have to search the codebase.

AI status: Rule-based receptionist. The receptionist parses requests in src/booking/lib/receptionist.ts and asks the availability engine for real open slots. No model, no API key.

Prompt 1

Set up your business

In src/booking/config.ts, replace Hale Studio with my business: name, address, timezone, staff with their weekly hours and breaks, and my services with durations, buffers, prices and deposit percentages. Then run npm test.

Prompt 2

Save bookings to a database

Replace seededAppointments in src/booking/lib/schedule.ts with a query against my bookings table, and make POST in src/booking/api/bookings.ts insert the booking in a transaction that re-runs isFree. Keep npm test passing.

Prompt 3

Connect a real model

In src/booking/lib/receptionist.ts, use my model to extract the service, staff, days and time window from the message, but keep findSlots so it can only offer real availability. Keep the ReceptionistReply shape so the chat UI does not change.