Example tenant · examples/fernhill
Fernhill Veterinary Group: three clinics on one instance.
A hypothetical customer, built to test Volvel against something that looks like real work. Three clinics in Portland, with staff, pet owners, managers and an AI phone assistant, all on the same tables under different rules.
How the tenant fits together
What's in it.
Three clinics, Northside, Riverside and Hilltop, all on Pacific time, with Hilltop closed on Saturdays. Money is kept in cents and shown in dollars. One repository holds all of it.
| Part | What it is | Who uses it |
|---|---|---|
| Front desk | Today's board, booking, client look-up, stock and callbacks. A React app | Front-desk staff, each seeing their own clinic |
| Pet portal | Pets, visits, booking and invoices. A React app | Pet owners, each seeing their own |
| Clinic performance | Money, visits and stock on three pages, built from widgets with no code | Practice managers |
| Handbook | How the front desk books, checks in and bills, served as a site | The front desk's group |
| Integrations | TextLine for texts, VetSupply for stock orders, and PayFern's signed payment webhook | Scripts and flows |
| Flows | Invoice and thank-you after a visit, reorders with a manager's approval, weekly chasing of unpaid invoices, and a public registration form | Events, schedules, a webhook and a form |
| Schedules | Reminder texts every hour, a stock check every half hour | Nobody: they start by themselves |
| Phone assistant | An AI agent over MCP, bound to six tools | Callers |
A morning, played out.
The setup script doesn't just create things. It seeds six weeks of history, about 2,900 visits and 2,100 invoices, then plays out a morning, so every screen has something real on it.
- The stock check runs It finds lines under their reorder level and starts reorders. Four are large enough to wait for a practice manager.
- TextLine has an outage A reminder run fails with the outage in its log. Then the service comes back and the reminders go out.
- The first visits arrive Patients are checked in, seen and finished, and each finished visit writes an invoice and texts the owner.
- PayFern sends payments Two good ones, one for the wrong amount, which the script refuses, and one with a bad signature, which never starts anything.
- Unpaid invoices are chased Owners with an invoice over two weeks old get a text.
Money in, checked twice.
PayFern signs each payment notice. The webhook checks the signature before anything starts; the script checks the amount against the invoice before marking it paid.
- A bad signature is answered 401, and the refusal is kept for a week so someone can see why.
- The signing secret is stored per workspace, and the deploy is refused until it's set.
- A payment for the wrong amount fails its run with a reason, and the invoice stays unpaid.
/** PayFern signs each notification with the shared secret.
* An unsigned one is refused. */
export const paymentNotice = defineWebhook({
path: "payments/payfern",
script: recordPayment,
verify: {
scheme: "hmac-sha256",
header: "x-payfern-signature",
secret: "PAYFERN_SIGNING_SECRET",
prefix: "sha256=",
},
}); Who signs in, and what they see.
The same tables serve every one of them. What changes is who's asking.
| Person | Role | Opens |
|---|---|---|
| Maya Brooks | Practice owner | The console, and Clinic performance |
| Rowan Ellis | Practice manager | Approvals for stock orders |
| Devi Shah | Developer | The sandbox workspace, and deploys from the CLI |
| Sam Reyes | Doc writer | The sandbox's documentation, and nothing else |
| Jess, Omar and Lena | Front desk, one clinic each | The front desk app, with their own clinic's rows |
| George Lewis | Pet owner | The pet portal, with his own pets and invoices |
What building it found.
Fernhill exists to find problems before a real customer does. Using it as its people and its agent turned up a list, and the repository keeps the list.
- An agent could decide approvals reserved for others over MCP. Fixed: it now checks a step's approvers, as the console does.
- A loop stopped at its first failed item. Fixed: it can carry on and mark the failure.
- An agent retrying a call could do the work twice. Fixed: run and flow tools take an idempotency key.
- Pet owners couldn't see free times without seeing other people's visits. Fixed with a script that lists times and nothing else.
- Values had no formats. Fixed: fields, figures and charts take currency, with cents shown as dollars.
Run it yourself.
You need an instance and its first operator's sign-in. Stand-ins play TextLine and VetSupply on your machine, with a page that shows every text and order the platform sent.
--resetstarts it over from nothing.- Every account's sign-in is written to
.platform/demo.json. setup/agent.mjslets you call the phone assistant's tools from a terminal.
$ pnpm install && pnpm build
$ node examples/fernhill/stand-ins/server.mjs &
$ cd examples/fernhill
$ VOLVEL_URL=http://localhost:8080 node setup/setup.mjs
$ node setup/agent.mjs call run_agent__find_client '{"query":"Biscuit"}' Related
Try it on something that looks like work.
Fernhill is in the repository, with everything it needs to run.