I Built Ledgerly With Claude Code, and Its Support Desk, in One Afternoon

Ledgerly is a fictional app from our seeded demo data. Everything below is a real workflow against a real Helmdesk account; the product it supports is made up so that nobody's actual customers appear in screenshots.
I wanted to test a claim we keep making: that if you build an app with an agent, you should be able to give it a support desk in the same conversation, before it has a single customer. So on a Saturday afternoon I built one and kept the transcript.
Ledgerly is invoicing and payment links for freelancers. Next.js, Postgres, Stripe. Nothing exotic. The interesting part is not the app; it is the ninety minutes at the end.
1:00 PM: the app
The first two hours were the part everyone has done by now. I described the product to Claude Code, it scaffolded the project, we argued about the data model, it wrote the Stripe webhook handler, I fixed the one place it guessed wrong about invoice numbering. By three o'clock Ledgerly could create an invoice, send a payment link and record the payment. It was deployed.
At that point, in the old sequence, I would have moved on and let support sort itself out around month four, when the first "my client says the link doesn't work" email hit the address on the landing page. Instead I connected the same agent to Helmdesk.
3:05 PM: connecting the agent
One command. I used a key from my Helmdesk account that reaches every project, because the agent was about to create a project and needs that scope:
claude mcp add \
--env HELMDESK_API_KEY=sk_live_… \
--env HELMDESK_ENVIRONMENT=sandbox \
--transport stdio helmdesk -- npx -y @helmdesk/mcp
Two things worth noticing. The key is live but the environment is pinned to sandbox, so for the rest of the afternoon anything the agent did that could email someone would render into a log instead of an inbox. And the agent now had 73 tools and a set of server instructions explaining which of them reach a customer. I did not have to explain any of that; it read it at connect time.
3:08 PM: the one sentence
Here is the prompt, verbatim:
Set up Helmdesk for this app. It's called Ledgerly: invoicing and payment
links for freelancers. Create the project, mint a key limited to that
project with only the scopes the app itself needs, write it into
.env.local, publish three help articles from the README (getting started,
payment links, refunds), and show me the widget snippet for the root
layout. Don't email anyone.
And here is what happened, from the transcript, tool call by tool call:
▸ create_project { name: "Ledgerly", slug: "ledgerly" }
▸ create_api_key { name: "ledgerly-app", projects: ["ledgerly"],
scopes: ["tickets:write","customers:write",
"emails:send","logs:write"] }
▸ [edit] .env.local + HELMDESK_API_KEY=sk_live_…
+ HELMDESK_PROJECT=ledgerly
▸ create_article { title: "Getting started with Ledgerly", … }
▸ create_article { title: "Sending a payment link", … }
▸ create_article { title: "Refunds and partial payments", … }
▸ get_project { project: "ledgerly" }
▸ [edit] app/layout.tsx + <script src="https://helmdesk.dev/widget.js"
data-project="ledgerly"></script>
Seven tool calls, two file edits, about forty seconds. Nothing was emailed, because nothing in that list can email anyone; the agent said so unprompted, which is the server instructions doing their job.
The part I would not have done by hand is the key. The credential the agent holds reaches every project I own. The credential that now lives in Ledgerly's .env.local reaches one project and holds four scopes. Doing that manually is four clicks and a copy-paste, and the broad key is already in the clipboard, so almost nobody bothers. The agent does not find the correct thing more tedious than the convenient one.

3:15 PM: wiring the app itself
The widget covers visitors. For signed-in users I wanted tickets to carry the customer's identity and errors to land somewhere. Two more prompts.
Install @helmdesk/sdk. Add a lib/helmdesk.ts client using the env vars.
In the Stripe webhook handler, after a subscription changes, set the
customer's plan tag in Helmdesk with the namespace form so it converges.
Wrap the top-level error handler so unhandled errors ship to Helmdesk logs
with scope and the invoice id in metadata.
That produced roughly this, which I kept:
// lib/helmdesk.ts
import { Helmdesk } from '@helmdesk/sdk'
export const helmdesk = new Helmdesk({ apiKey: process.env.HELMDESK_API_KEY! })
// in the Stripe webhook, on customer.subscription.*
const c = await helmdesk.customers.getByEmail(email).catch(() => null)
const id = c?.id ?? (await helmdesk.customers.create({ email, externalId: userId })).id
await helmdesk.customers.setTags(id, [plan], { namespace: 'plan' })
// in the error boundary / instrumentation
await helmdesk.logs.write([{ level: 'error', scope, message, metadata: { invoiceId } }])
The setTags with a namespace is the detail that matters for later: plan:starter becomes plan:pro atomically on the next webhook, and nothing in Ledgerly ever has to look up what the previous plan was. When a ticket comes in from a plan:pro customer, the queue can show that before anyone opens it.
3:40 PM: rehearsing it
Everything so far was still pinned to sandbox, so I could break things.
In sandbox: create a customer maya@northwindstudio.co, open a ticket from
her saying the payment link shows "expired" the moment she opens it, then
show me what the Auto-Responder drafts for it.
The ticket appeared in the project queue with a bug label and high priority it had not been given (the classifier runs on arrival). A minute later the Auto-Responder had drafted a reply citing the "Sending a payment link" article, and the draft was sitting in Agents Activity with Send, Edit and Discard.

I read the draft. It was right about the cause (links expire after the due date by default) and wrong about the fix (it suggested a setting that did not exist yet). I edited two sentences and clicked Send. In sandbox, "send" meant a row in the email log with the rendered HTML and nothing delivered, which is exactly what I wanted to see.
Then I asked for the morning check I would be running for real from Monday:
Give me today's picture for Ledgerly: what needs a reply, what has gone
stale, any open error groups, and email delivery for the week.
One call, read-only, and the answer was a paragraph. That prompt runs fine on a key with no write scopes at all, which is how I would hand it to anyone nervous about pointing an agent at production: spend a week asking questions before anything writes.
4:20 PM: flipping to live
Switching from rehearsal to real was one line: remove HELMDESK_ENVIRONMENT=sandbox from the MCP config. The project, the key, the articles and the widget were already live content; only the test customer and her ticket were sandbox rows, and a reset_sandbox cleared them.
Ledgerly had a public help page at /p/ledgerly/articles, a support form at /p/ledgerly/support with "ask a question first" wired to the three articles, a widget on every page, a customer directory that would fill itself from the first ticket, a plan tag that would stay in sync with Stripe, and an error log with a watchdog on it. It had no customers yet. That was the point.

The one thing I would do differently
I would have scaffolded support first, before the app, not after. Not for any deep reason: the project slug ends up in the widget snippet, the env vars, and the MCP config, and having it exist from the first commit means the agent never has to go back and thread it through. The whole support layer was seven tool calls. Putting them at the start of the conversation instead of the end costs nothing.
The scaffold recipe, with the exact prompt and what each tool does, is in the docs at /docs/mcp/scaffold. The prompt cookbook has the morning check and forty other things I now type instead of clicking.
Building Ledgerly took two hours. Giving it a support desk took ninety minutes, most of which was me reading transcripts to write this. The next one will take seven tool calls.
Scaffold support in the same conversation
Connect your coding agent to Helmdesk and give a new app its helpdesk, help page, email, customers and error alerts in one prompt.