SUNRISESUNSETSUNRISESUNSET

How the tap truck runs itself

We want to buy one tap truck and hire it out across Perth. We have no staff. Somebody still has to answer the texts, take the money, chase the balance, and work out what each owner gets.

So software does the desk work, and owners do the driving. This page shows how. Every number and every text on it comes from running the demo's own code against its simulated year of trading.

This is the booking page, live, with made-up data. Pick a date and go through to checkout. The card 4242 4242 4242 4242 pays.

sunrisesunsettapco.cpd.dev/book

How it's wired

Tap a card to read it. Drag them around if you like.

Tap a card to see what it does. Press a button under the diagram to watch a booking, a hand-over or a payday move through it. In order:

  1. A customer texts, emails, calls or uses the web form. One booking agent answers all of them.
  2. It checks the calendar, holds the date and sends a link. The customer pays a $250 deposit.
  3. Scheduled jobs charge the balance 14 days out and hold a $300 bond 2 days out.
  4. Every dollar goes in the ledger. Customer money stays a liability until the hire happens.
  5. Anything odd goes to the owners' inbox. Owners answer in the admin, or by text to the owner agent.
  6. Each quarter the system proposes a payout. 2 directors approve it.

The rest is one part at a time.

Booking

Tap a card to read it. Drag them around if you like.

There are two ways in: the website, and a text. Both use the same calendar and the same checkout. Both need the hire terms accepted before money moves.

The rules are short. One hire a day. At least Inside the notice period, the agent asks an owner instead of saying no. online, up to 6 months ahead. Taps close by 11 pm. Delivery is measured from the Perth CBD, and anything more than 60 minutes away adds $150. Try a suburb:

Start times for 8 hours: 6:00, 8:00, 10:00, 12:00, 14:00. Taps close by 11 pm.

Hire
$1,000
Travel, 25 min from the CBD
$0
Total
$1,000
Deposit, at booking
$250
Balance, 14 days before
$750
Bond hold, 2 days before
$300

This is a booking by text, run through the agent's rules engine. The handwriting in blue says what the agent did as well as reply.

SamHi, is the second Saturday in December free?
AgentSat 12 Dec 2026 is free! Which suburb is the event in? Half day (4h) is $600, full day (8h) is $1,000, delivered.
Sam8 hours in Fremantle, from 2pm
AgentPerfect: Sat 12 Dec 2026, 8 hours in Fremantle, $1,000 all in. What name should I put the booking under?
SamSam Taylor
AgentSat 12 Dec 2026, 8 hours from 2pm in Fremantle: $1,000 incl. delivery and glassware. A $250 deposit holds it. Want the link?
SamYes please
AgentDone, I've held it for 30 minutes. SST-1065: Sat 12 Dec 2026, 8h from 2pm in Fremantle. Pay the $250 deposit here: https://sunrisesunsettapco.cpd.dev/checkout/bk_b6fb3b0b-2a7a-4cfd-b549-48a6cea19524?t=5c20b60465254c478216217ae1015ceb The balance comes off the same card 14 days before.held the date for 30 min and sent a deposit link

A hold lasts 30 minutes. If nobody pays, the date is free again the minute the hold lapses. The deposit link carries a private token, so only the person who got the text can open that booking. One number holds one unpaid date at a time: ask for a second and you get the first link again. An owner's own-use day gives way only when a deposit is paid, not when someone asks. Then the booking runs itself. Drag the slider to walk Sam's SST-1065 from the day of the text to the day after the hire. Switch the card to see what happens when it declines.

Thu 22 Oct58 days before the hireConfirmed
  • $250Sam has paid
  • $250Held for Sam, a liability
  • $0Revenue, ours to keep

Sam texts, the agent holds Sat 19 Dec, Sam pays the deposit.

Ledger lines for SST-1065 so far (2)
DateAccountMemoAmount
22 OctCustomer payments heldSST-1065 deposit received$250
22 OctStripe feesStripe fee SST-1065-$4.55

On 5 Dec, 14 days out, a job charges the saved card. If the card declines, it tries once a day for 3 days, then flags an owner. If the balance is still unpaid 7 days out, the date goes back on the calendar and the deposit is kept.

Cancellations follow one rule. More than 30 days out, a full refund. 30 days or less, the deposit is kept and the rest comes back. A refund over $250 waits for an owner, whether the customer asks by text or on their booking page. Until an owner approves, nothing is cancelled.

The agent

Tap a card to read it. Drag them around if you like.

The agent runs on the server. A text arrives at /api/inbound/sms signed the way Twilio signs it, and an unsigned or forged one is refused. The server loads the business's own data, so nothing the sender claims about the calendar or the customer is trusted. The agent runs its tools and returns a reply plus a list of actions. Then a short, separate write applies the actions and checks the data again, so two texts can't take the same date. The model never runs inside that write.

The agent can quote, hold, take a deposit and cancel within the refund limit.

With an API key, the agent is Claude. Without one, a Deterministic intent matching. The tests run against it, so it can't drift from Claude without a test failing. runs the same tools. Its prompt is the 8 knowledge pages that owners edit in the admin, with prices filled in from settings on every message. Customer text reaches the model marked as untrusted, and code, not the model, decides what each tool may do.

It hands a conversation to an owner when it should not decide alone:

  • the customer asks for a person;
  • a discount, a multi-day hire or a sponsor;
  • a date inside the 7-day notice period;
  • a refund over $250;
  • a suburb it doesn't know, or a date it can't pin down after two tries.

Two of those, run through the rules engine:

CustomerCan we get a discount for a 3 day festival?
AgentThat one's up to the owners, so I've passed your message on and an owner has been notified.flagged the conversation for an owner
CustomerCan I book it for next Wednesday?
AgentWed 28 Oct 2026 is less than 7 days away, so I've asked the owners if they can make it work. The next free weekend days are Sun 8 Nov, Sun 29 Nov, Sat 12 Dec.flagged the conversation for an owner

Yes has to mean yes. Before it cancels or holds, the agent quotes exactly what will happen, and only a clear yes to that quote does it. “No”, “wait” or a change of subject drops it, and the next yes needs a fresh quote. A cancel also needs the 4-digit code from the quote. It goes only to the customer's real phone, so someone faking their number can't cancel. Ella cancelling SST-1044:

EllaI need to cancel SST-1044
AgentSST-1044 on Sun 1 Nov is 10 days away, inside the 30-day window, so the $250 deposit is kept. Reply YES 4928 to cancel.
EllaNo, don't cancel it
AgentAll good, your booking stays as is.
EllaActually yes, cancel it
AgentSST-1044 on Sun 1 Nov is 10 days away, inside the 30-day window, so the $250 deposit is kept. Reply YES 4487 to cancel.
Ellayes
AgentTo go ahead with SST-1044, reply YES 4487. The code shows it's really you.
EllaYES 4487
AgentDone, SST-1044 is cancelled.cancelled the booking

It only talks about bookings on the number or email that is texting. The same reference from another phone gets one line and no details:

CustomerWhat time is SST-1044?
AgentI can't find SST-1044 for this number. Check the reference, or text from the number you booked with.

After a hand-over it keeps answering questions, but it will not book or cancel. It never promises what it can't do: it says the owners have the message, not when or how they will reply, and a refund is “requested”, not on its way. An owner still has to reply, and the inbox keeps that thread at the top until one does.

CustomerCan I book the 12th of December?
AgentAn owner has this conversation now. I can still answer questions about the truck, kegs or prices.
CustomerDo you supply the beer?
AgentWe are a dry hire. You supply the drinks, we supply the truck. You buy kegs from any brewery, distributor or bottle shop that sells kegs, at wholesale prices. We can recommend suppliers.

The owners' inbox

Tap a card to read it. Drag them around if you like.

The inbox is a queue. Every conversation, on every channel, sits in one of four groups, worst first: Needs you, Owners handling, Agent handled and Owner line.

A hand-over arrives with a reason and, where the agent can write one, a draft reply. An owner can send the draft as it is, edit it, or write their own. A reply goes back the way the customer came in: a text to a phone number, an email to an email address.

An owner can't hand back to the agent while the customer is still waiting on the reply they were promised. The admin button and the owner agent use the same guard.

sunrisesunsettapco.cpd.dev/admin/inbox

The admin needs a sign-in. Pick an owner and the sign-in link is emailed. In the demo the email is simulated, so open the outbox, open the link and press Sign in. The link works once. Then choose Inbox.

Owners by text

Tap a card to read it. Drag them around if you like.

An owner who texts the business line from their own phone gets the owner agent. It can do what the admin does, sorted by what is at stake:

Questions run at once: what's on, who has which run, what is owed. Nothing changes.

Colinwhat's on this week
AgentYour runs: Sun 1 Nov Bayswater (delivery); Sun 15 Nov Nedlands (collection). Unclaimed: SST-1046 Sat 14 Nov Victoria Park (delivery and collection). Needs a person: Harbour Collective (events). Q3 2026 (Jul–Sep) payout $840: 0 of 2 approvals, yours is needed. $180 runner fees owed to you. Cash $19,553.

Why two codes? A spoofed text arrives from the owner's number, but the reply with the code goes to the owner's real phone.. The 4-digit code goes only to the real phone, and the 6-digit code is only in the owner's signed-in admin. Codes are never stored: the saved thread shows “YES ••••”. Three wrong codes close a change. Five in a day stop changes by text from that number until midnight, and the owners are told.

The admin-only list is there for a reason. Over text, one owner could otherwise change a price, or lower the approvals a payout needs and then approve and pay it alone. In the admin, only a director changes the refund limit, the SMS expense limit or the approvals a payout needs. Lowering the approvals needs a second director too.

Money

Tap a card to read it. Drag them around if you like.

Customer money is not ours until the hire happens. A deposit or a balance goes into Payments held, a liability. On the hire day it moves to revenue. If a customer cancels inside 30 days, the deposit moves to revenue then.

Here is Sam's $1,000 hire in the ledger, from the slider above:

DateAccountMemoAmount
22 OctCustomer payments heldSST-1065 deposit received$250
22 OctStripe feesStripe fee SST-1065-$4.55
5 DecCustomer payments heldSST-1065 balance received$750
5 DecStripe feesStripe fee SST-1065-$13.05
19 DecCustomer payments heldSST-1065 hire completed-$1,000
19 DecBooking revenueSST-1065 hire completed$1,000
19 DecFuelSST-1065 fuel (2 return trips)-$17
19 DecCO2SST-1065 CO2 refill-$35
19 DecLine cleaningSST-1065 line clean-$8
19 DecGlass breakageSST-1065 glass breakage allowance-$15
19 DecRunner feesSST-1065 run · Rhys-$60
19 DecRunner fees owedSST-1065 run owed · Rhys$60
19 DecRunner feesSST-1065 run · Aaron-$60
19 DecRunner fees owedSST-1065 run owed · Aaron$60

Card fees come off at each charge. Fuel, CO2, line cleaning and a glass allowance are posted when the hire closes. Each delivery and each collection earns the owner who ran it $60. That is an expense now, and money owed to that owner until the next payout.

The truck loses value too. It is Straight line over 8 years, the ATO effective life for a light truck. A non-cash cost, so it lowers profit but not the bank balance., so profit is honest about what the truck costs.

The quarterly payout

At the end of each quarter the system proposes a payout. It runs two tests and pays the smaller. Profit: what is left after a 25% tax provision. Cash: what is in the bank after customer money, runner fees owed, the reserve and the tax are kept back. Pick a quarter from the simulated year:

Profit test

Profit for the quarter$4,833
Less tax provision−$1,208
After tax$3,625

Cash test

Cash in the bank at quarter end$10,878
Less customer money for future hires−$2,100
Less runner fees owed−$1,440
Less reserve−$1,546
Less tax provision−$1,208
Room to pay$4,584

The payout is the smaller test: $3,625. Split equally and rounded down to $10, that is $400 each ($3,600 in all), plus $1,440 of runner fees to whoever ran. 2 directors approved it and it was paid.

The cash test runs again at the moment the payout is paid, not only when it is proposed. If customer money has come in since, the payout waits. Only current directors can approve and pay. Each runner fee is paid once, to the cent.

The reserve is 3 months of fixed costs, plus 12¢ for every km driven in the last year, plus $500. Each owner's share rounds down to $10. Runner fees go in the same bank transfer.

GST. The company does not register until turnover nears $75,000 a year. Prices exclude GST. The Money page in the admin watches the last 12 months and the next 12, and warns at 80% of the threshold.

The truck

Tap a card to read it. Drag them around if you like.

The physical work is owners' work, and it is paid. Any owner claims a delivery or a collection in the admin, or by text: “I'll take the Fremantle delivery.” Owners supply the CO2 and couplers and clean the lines after each hire.

The bond hold stays on the customer's card after the hire. The owner who brings the truck home checks it and taps Returned clean. Nothing else releases a bond.

The calendar has three kinds of day. A paid booking. An owner's own use, which is free but pays its own fuel and damage, and which a paid booking bumps. A blocked day, for a service or a holiday.

The truck log keeps the odometer, gas and issues. A reading lower than the last one is refused, and so is a jump too big to be one trip.

What's real and what's simulated

The rules, the ledger, the agents and the jobs are real code with tests. Everything they talk to is simulated:

In the demoIn production
Postgres in the server (PGlite), one document per businessNeon Postgres, same schema
Sign-in links in the outboxEmailed links, owners only
Simulated checkoutStripe Checkout, card saved for the balance and bond
Mock bank transferA business account with a payments API
SMS panel, signed on the serverA Twilio number, SMS and voice, same signature check
Inbox email, signed on the serverResend, inbound and outbound
Messages wait in the outboxTwilio and Resend send what the outbox holds

The real parts already run as they would in production. The data lives on the server and the browser only reads it and sends commands. Every record carries its business's id, and every read and write filters on it, so a second business could share the system. The jobs run once a day from Vercel Cron. A deploy migrates its own database before the new code goes live, and a failed migration stops the deploy. A preview deploy never touches the live database.

Next: the business plan, with what it costs and what we expect to make.


How this was made

  • Code: Next.js 15, React 19, Drizzle on Postgres (PGlite locally), zustand, chrono-node, cpdis/sunrise-sunset-tap-co
  • Agents: Claude through the Anthropic SDK, with a rules engine for no-key demos
  • Diagrams: hand-drawn SVG, written for this page (no diagram library). Labels in Shantell Sans
  • Look: Golden Hour inks on white
  • The making of: the tools, models, decisions and timeline are on How this was made
  • Numbers: the demo's seeded base-case year as of 22 October 2026. Illustrative only