Picking the niche
We considered aesthetic clinics, small hotels and guesthouses, and sports schools. Clinics won on ticket size and repetitive intake. Before selling to anyone, we built the agent for my partner's own coaching business, so the first user was someone who'd tell us the truth.
What I built
Webhook in, agent out
WhatsApp Cloud API → n8n webhook → agent node on a Claude model, with memory keyed by phone number.
Knowledge base the client edits
A Google Doc read at the start of each run. The owner edits the doc; the agent answers with the new version, no deploy.
Tools with narrow scopes
Check free slots and create an event on a dedicated calendar, so the agent never sees personal appointments.
Handoff and logging
A "call a human" tool sends a summary and marks the contact paused; every run checks the pause flag first. Every conversation is logged for review.
One template with a per-client config layer, instead of custom builds. That's a packaging decision as much as an engineering one: it's what makes the price work.
Testing like an engineer
Before connecting a real number, I write 15–20 scripted conversations and run them all: the ideal customer, price-only questions, out-of-area requests, an injury question, a minor asking to book, a discount request, an audio message, a rude user. Each bad answer becomes a prompt or knowledge-base change, and the whole script reruns.
For the law-firm pilot I cut discovery to eight questions: case filters, required intake fields, the most common inquiries (with exported real conversations), pricing, forbidden behaviors, handoff triggers, where lead data goes, and tone.
Where observability comes in
Running an agent in production is mostly debugging: why did it hand off here, why did it invent a slot, which run failed. Today I read n8n execution logs and a conversation sheet. It works for two pilots and won't for twenty. The next step is proper LLM tracing (inputs, outputs, tool calls, latency and cost per conversation) tied to the outcome: booked, handed off, or abandoned.