Paste one prompt into Lovable, Bolt, v0, Replit or Cursor and it adds real booking with OpenBooking: availability, holds, no double bookings and customer consent, without writing booking logic. Use the hosted service if your builder can’t run a server, or scaffold your own backend with one command.
For Lovable, Bolt, v0, Replit and Cursor. It gives the builder two paths and the rules that keep bookings safe.
Add online booking to this project with OpenBooking (open source: https://openbooking.sh). Do not write your own booking logic. OpenBooking already handles availability, holds that expire, no double bookings, and the customer's explicit consent.
Pick the path that fits where this project runs.
PATH A, hosted. Use this if the project cannot run a Node.js server (for example a front-end-only site).
1. Ask me to create the business at https://app.openbooking.sh/signup and to tell you its business id, which is the last part of its booking page address (https://app.openbooking.sh/b/{id}). Never invent an id.
2. Add this line once to the site, before the closing </body> tag (or in the root layout):
<script src="https://app.openbooking.sh/b/{id}/embed.js" async></script>
It adds a Book button and a booking popup. Use no other booking code.
3. Point any "Book now" link at https://app.openbooking.sh/b/{id}
PATH B, self-hosted. Use this if the project can run Node.js 22 or newer.
1. In a new folder next to this project, run:
npx create-openbooking@latest booking --name "<the business name>"
It creates the project and installs its dependencies.
2. Run: cd booking && npm run dev
Booking page: http://localhost:3000/book
Studio (owner dashboard): http://localhost:3000/studio
MCP endpoint for AI assistants: http://localhost:3000/mcp
3. Edit booking/business.ts so the staff, services, prices and opening hours match this business. Prices are in minor units (65000 means 650.00). Opening hours use weekday numbers, 0 = Sunday. A missing day means closed.
4. Add this line once to the site, before the closing </body> tag:
<script src="http://localhost:3000/book/embed.js" async></script>
When the backend is deployed, replace http://localhost:3000 with its public address and set BASE_URL to that address.
5. To deploy the backend: npx vercel, then set STUDIO_TOKEN (required, Studio shows customer details) and optionally DATABASE_URL (Postgres, to keep bookings across restarts).
RULES
- Never confirm a booking without the customer's explicit yes to the time, price and cancellation terms (user_confirmed: true).
- Every hold and confirm call needs a fresh idempotency_key of at least 8 characters. Reuse a key only to retry the same request.
- Do not put customer names, emails or phone numbers in logs or analytics.
DOCS
- Recipes: https://github.com/openbooking-sh/openbooking/blob/main/docs/RECIPES.md
- Docs for AI tools, short: https://raw.githubusercontent.com/openbooking-sh/openbooking/main/llms.txt
- Docs for AI tools, everything in one file: https://raw.githubusercontent.com/openbooking-sh/openbooking/main/llms-full.txt
- Source: https://github.com/openbooking-sh/openbooking
When done, tell me which path you used and what to open to try a booking.
Not yet tested inside the builders themselves. Every command and address in the prompt was run for real (see below), but we haven’t put the whole prompt through Lovable, Bolt, v0 or Replit. If the builder goes wrong, tell it which path to use.
For Cursor, Claude Code, Codex and other agents that already work in your repo and can run commands.
Add booking to this project with OpenBooking. Do not reimplement booking logic. Run: npx create-openbooking@latest booking --name "<business name>", then cd booking && npm run dev (booking page /book, owner dashboard /studio, MCP /mcp on http://localhost:3000). Edit booking/business.ts: prices are minor units (65000 = 650.00), weekdays 0 = Sunday. Add <script src="<BASE_URL>/book/embed.js" async></script> to the site. Never confirm without the customer's explicit yes (user_confirmed: true); use a fresh idempotency_key (8+ chars) on every hold and confirm; set STUDIO_TOKEN when deployed. Docs: https://raw.githubusercontent.com/openbooking-sh/openbooking/main/llms-full.txt Recipes: https://github.com/openbooking-sh/openbooking/blob/main/docs/RECIPES.md
Path B on a clean machine, step by step. Path A is a sign-up and one script tag.
npx create-openbooking@latest booking --name "My Salon"
creates the project and installs it.
npm run dev serves the booking page at
/book, Studio at /studio and MCP at
/mcp on port 3000.
business.ts.
<script src=".../book/embed.js" async> line
adds a Book button and popup, and registers booking tools for AI
browsers.
The same backend speaks MCP, so Claude, ChatGPT and Cursor can book it. Connect an assistant in one minute.
The prompt is plain text, so you can paste it anywhere. We have verified the commands in it by running them ourselves: the npx create-openbooking scaffold, a booking through the page and API, and an MCP handshake. We have not yet tested the prompt inside Lovable, Bolt, v0 or Replit, so expect to nudge your builder if it gets something wrong, and tell us what it did.
Path A (hosted) needs no backend: you sign up, then the builder adds one script tag. Path B (self-hosted) gives you your own code and database and needs somewhere to run Node.js 22 or newer. Builders that only produce a front end, such as most Lovable and v0 projects, should use Path A.
A small TypeScript project with a booking page at /book, the owner dashboard Studio at /studio, an MCP endpoint at /mcp, a one-line website snippet at /book/embed.js, and an AGENTS.md that tells AI coding tools the rules. You describe the business in business.ts.
No. Confirming a booking needs user_confirmed: true, and the rules in the prompt tell the builder never to set it without the customer’s explicit yes to the time, price and cancellation terms. The booking engine rejects confirmations without it.
The software is open source (Apache-2.0) and free to run yourself. Hosted is free for the first 20 founding businesses.