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.

PartWhat it isWho uses it
Front deskToday's board, booking, client look-up, stock and callbacks. A React appFront-desk staff, each seeing their own clinic
Pet portalPets, visits, booking and invoices. A React appPet owners, each seeing their own
Clinic performanceMoney, visits and stock on three pages, built from widgets with no codePractice managers
HandbookHow the front desk books, checks in and bills, served as a siteThe front desk's group
IntegrationsTextLine for texts, VetSupply for stock orders, and PayFern's signed payment webhookScripts and flows
FlowsInvoice and thank-you after a visit, reorders with a manager's approval, weekly chasing of unpaid invoices, and a public registration formEvents, schedules, a webhook and a form
SchedulesReminder texts every hour, a stock check every half hourNobody: they start by themselves
Phone assistantAn AI agent over MCP, bound to six toolsCallers

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.

  1. The stock check runs It finds lines under their reorder level and starts reorders. Four are large enough to wait for a practice manager.
  2. TextLine has an outage A reminder run fails with the outage in its log. Then the service comes back and the reminders go out.
  3. The first visits arrive Patients are checked in, seen and finished, and each finished visit writes an invoice and texts the owner.
  4. 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.
  5. 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.
examples/fernhill/src/flows.tsdefineWebhook
/** 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.

PersonRoleOpens
Maya BrooksPractice ownerThe console, and Clinic performance
Rowan EllisPractice managerApprovals for stock orders
Devi ShahDeveloperThe sandbox workspace, and deploys from the CLI
Sam ReyesDoc writerThe sandbox's documentation, and nothing else
Jess, Omar and LenaFront desk, one clinic eachThe front desk app, with their own clinic's rows
George LewisPet ownerThe 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.

  • --reset starts it over from nothing.
  • Every account's sign-in is written to .platform/demo.json.
  • setup/agent.mjs lets you call the phone assistant's tools from a terminal.
terminalexamples/fernhill
$ 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"}'

Try it on something that looks like work.

Fernhill is in the repository, with everything it needs to run.