Start with a decision and a formula
An operator is considering a group request. The useful question is whether the requested places fit after the already confirmed guests are counted. A small calculator can make that visible without becoming a full booking system.
Claude Artifacts can turn a description into an interactive tool. Start a conversation and ask for an artifact, or start from the Artifacts area if it is available in your interface. Code execution and file creation must be enabled under the relevant account or organization capabilities.
For this example, use no connected apps, real guest details or stored records. The artifact only calculates from numbers entered into it. Feature availability and sharing controls depend on your Claude account.
Give Claude the rules before the style
Paste the complete prompt below. It names the inputs, the allowed values and what the tool is allowed to claim. That gives you a much better starting point than “make a dashboard for tours.”
The numbers are fictional. The capacity formula is deliberately simple and does not include overlapping departures, guide availability, vehicle allocation or bookings arriving through other channels.
Create an interactive artifact for planning tour capacity.
Use fictional numbers only. This is a planning calculator, not a booking system.
Inputs:
- Capacity: whole number from 1 to 1000. Default 12.
- Confirmed guests: whole number from 0 to 1000. Default 7.
- Requested guests: whole number from 1 to 1000. Default 4.
Rules:
- Available places = max(0, capacity - confirmed guests).
- Request fits only if confirmed guests <= capacity
and requested guests <= available places.
- If confirmed guests exceed capacity, show OVER CAPACITY and block a fit result.
- Reject blank, negative, fractional and non-numeric inputs visibly.
- Do not silently round or replace a blank with zero.
Show available places, requested places, spare places after the request,
and a clearly labelled planning result. Use a simple capacity bar.
Use labelled inputs and keyboard-accessible controls.
Keep everything in memory. No API calls, AI calls, accounts or persistent storage.
Never say a reservation has been made. Nothing is saved or booked.
Include a Reset sample button and show the formula below the result.
First build the tool. Then list how to test these cases:
12 / 7 / 4 => available 5, spare 1, fits.
12 / 7 / 6 => available 5, short by 1, does not fit.
12 / 12 / 1 => available 0, does not fit.
12 / 13 / 1 => over capacity, no fit result.
Blank capacity or 2.5 requested guests => input error.Check the first version on screen
Open the artifact and change one field at a time. With 12 places and 7 confirmed guests, it should show 5 available. A request for 4 leaves 1 spare place. A request for 6 is short by 1.
Look at the labels as carefully as the chart. “Booking confirmed” would be wrong because this tool has not checked a live system or reserved anything. The result should say that the request fits the entered planning numbers.
Ask Claude to revise one problem at a time. For example: “The empty capacity field is being treated as zero. Show an input error and hide the planning result until it is valid.”
Use the same tests after each revision
A visual change can accidentally change the calculation. Re-run these cases after changing the layout or adding a field. Try the keyboard too: every input and reset control should be reachable, and each field should have a visible label.
| Capacity / confirmed / requested | Expected result |
|---|---|
| 12 / 7 / 4 | 5 available, 1 spare, fits |
| 12 / 7 / 6 | 5 available, short by 1, does not fit |
| 12 / 12 / 1 | 0 available, does not fit |
| 12 / 13 / 1 | Over capacity, no fit result |
| Blank capacity or fractional request | Visible input error |
Know when the prototype needs a real backend
The planner becomes a different project when it must read actual availability, hold places or confirm a payment. Those actions need a trusted booking source, access controls and handling for simultaneous requests. A number typed into a calculator cannot reserve inventory.
Use the artifact to agree the inputs, labels and decision rules first. It can make a development brief much clearer. Then connect the reviewed interface to the business system, with tests for the booking behavior that the standalone calculator never attempted.
Take this into your own business.
For a connected setup, see custom software and platforms. I can adapt the workflow to your tools and the people using it.
If you want to build it yourself, bring your questions to a one-hour consultation or work through it over several coaching sessions.
Ask about your version