Build a small business planning calculator with Claude Artifacts

Create a tour-capacity planning tool in Claude using a clear prompt, explicit formulas and test cases. Learn how to check a useful interactive artifact.

What you will build

An interactive capacity planner that shows whether a sample group fits and explains its calculation.

Beginner, no coding required to follow the example. Start with the supplied example, check the result, then adapt it to your work.

Download the starting files

A complete build prompt and five expected results. Uses fictional tour capacity and no customer records.

How it works

From a clear formula to a working planner

Build a capacity calculator, then check its answers before sharing it.

From a clear formula to a working planner. Build a capacity calculator, then check its answers before sharing it.
  1. You: Define the calculation. Specify capacity, confirmed guests and the request.
  2. Claude Artifacts: Generate the planner. Create an interactive tool from the supplied prompt.
  3. You: Do the tests pass?. Try full capacity, empty values and invalid numbers. Alternative route (No): Revise and test again. Describe one error to Claude, then repeat the same checks on the new version. Main route (Yes): continue to the next step.
  4. You: Review the controls. Check labels, keyboard use and sharing access.
  5. Claude Artifact: A planning tool. It calculates from entered numbers; it reserves no places.

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.

Copy this artifact build prompt
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 / requestedExpected result
12 / 7 / 45 available, 1 spare, fits
12 / 7 / 65 available, short by 1, does not fit
12 / 12 / 10 available, does not fit
12 / 13 / 1Over capacity, no fit result
Blank capacity or fractional requestVisible input error

Decide what is ready to share

Keep the sample private until the behavior is correct. When you use Claude’s sharing controls, check who the link is available to and what the artifact contains. Share only the fictional calculator from this example.

This prompt requests in-memory inputs. Reloading may reset them. If you later add storage, make the saved data and access rules explicit rather than assuming the same privacy and reset behavior still applies.

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