# Building Realistic Voice Agents Has Never Been Easier
<!--
ref: @content/youtube/nate-herk/2026-05-04-voice-agents-claude-code-elevenlabs
version: 3
updated_at: 2026-10-31T20:22:46.508Z
-->

Nate Herk (2026-05-04): Nate Herk's position is that the manual part of voice agents — writing system prompts in a dashboard, wiring knowledge bases, hand-configuring tool endpoints — is now unnecessary.

*Synthesized from Nate Herk on Nate Herk AI Automation, 2026-05-04.*

Nate Herk builds AI automation systems and demonstrates configuring an ElevenLabs voice agent entirely through Claude Code — no dashboard clicking, no API docs — then debugging its tool calls live.

## Core Thesis

Nate Herk's position is that the manual part of voice agents — writing system prompts in a dashboard, wiring knowledge bases, hand-configuring tool endpoints — is now unnecessary. Claude Code reads the ElevenLabs documentation, decides the architecture, provisions the agent, configures the tools, and embeds the widget from a natural-language brief. His summary: code beats clicks. What remains genuinely hard is iteration and debugging the tool layer, which is where most of the real work lands.

## Key Insights

- His proof-of-concept: a voice agent trained on transcripts from all 400 of his YouTube videos, embedded on his site, built in about 15 minutes. He described the idea and Claude Code pulled transcripts, connected ElevenLabs, prompted the agent, built the tools, and placed it on the page.
- Every voice agent has four pieces: **persona** (the system prompt), **voice** (his uses a professional clone trained on roughly 4 hours of his own audio), **knowledge** (documents, or tool calls into a vector store, or a live lookup), and **tools** (MCP servers, direct API calls, or existing scripts and workflows).
- Three deployment surfaces from the same agent: test in the ElevenLabs dashboard, embed as a website widget, or pair with a Twilio number so the agent places and receives calls. The widget is literally one HTML snippet you hand to Claude Code to place.
- The live build wired ElevenLabs directly to cal.com rather than routing through an intermediate workflow tool — fewer moving pieces. Two tools were configured: check availability and book the call.
- Plan mode did the requirements interview. It asked the current state of the ElevenLabs and cal.com setups, how bookings should be created, how the widget should appear, what voice persona to use, and which fields beyond name and email to capture — he added company name, the problem being solved, and team size and role.
- When Claude assigned all six dashboard steps to him, he pushed back — "I want you to do everything, figure it out" — and it reallocated most of the work to itself, needing only two API keys.
- API keys went into a `.env` file Claude created with placeholders. Note on the ElevenLabs key: creating one with no permissions selected produces a key that cannot do anything; you either scope permissions or disable restrictions, and you can set a monthly spend limit on the key.
- The real bug worth studying: the availability tool returned only one slot when the calendar showed many. Three candidate causes — cal.com returning wrong data, the agent calling the tool wrong, or the agent misreading the output. Claude read the conversation transcript, found turn 16, and identified that the agent had constructed the query window in UTC instead of Central time.
- A second, non-obvious constraint surfaced from the same test: cal.com's 2-hour minimum notice setting was why nothing before 6:30pm appeared. Default availability is also 9am-5pm weekdays until you edit it.
- ElevenLabs stores every conversation with timestamps, audio, and transcript — that record is what makes debugging tractable.
- Prompt fixes that came out of testing: speak only in Central time, be more concise, spell back the name and email for confirmation before booking, drop NATO phonetics (too slow), and a lowered temperature for output consistency.
- **You pay for the widget.** It bills your ElevenLabs account, and anyone who copies the HTML snippet onto their own site is spending your credits. Mitigations: lock the widget to allowed hostnames in security settings, cap max call duration, rate-limit if the page is public, and require authentication for higher-value flows.
- Latency is a trade-off you control: a premium voice paired with a stronger LLM is slower. He also notes localhost testing shows worse latency than a live deployed widget.
- Ground the agent in real documents or it will invent answers.
- He ran session handoffs — a skill that summarizes state so he can clear context — between the build phase, the feedback phase, and the debugging phase rather than stacking everything in one window.
- The whole demo took roughly 45 minutes across four or five iteration rounds. His framing: a focused five-hour session of testing and natural-language iteration produces a solid production agent.

## Actionable Takeaways

1. Open in plan mode and describe the whole goal — the agent's job, the booking tool, the site it lives on — then answer its questions rather than specifying implementation yourself.
2. When Claude assigns you manual dashboard work, push back and ask what it actually needs from you; most of it it can do.
3. Have Claude create the `.env` with placeholders and paste keys in yourself. Scope the ElevenLabs key's permissions explicitly and set a monthly spend limit.
4. Test by talking to it and reporting your experience in plain language — "the first message never played", "the voice sounds too AI" — rather than digging through documentation yourself.
5. When a tool call misbehaves, name the three possible failure points (upstream API, malformed call, misread output) and let Claude read the stored conversation transcript to isolate which one.
6. Check calendar-side settings before blaming the agent: minimum notice period and configured availability windows both silently constrain what the tool can return.
7. Instruct the agent to confirm spelling of names and emails back to the caller — bad email formatting breaks the booking.
8. Before going live, lock the widget to your domain, set a max call duration, and add rate limiting on public pages.
9. Reuse the same configured agent behind a phone number via Twilio once the widget version works — same engine, different entry point.
10. Do a session handoff and clear context between building, iterating, and debugging.

## Notable Quotes

> "Code beats clicks." — Nate Herk

> "As humans, we're very good at knowing the end goal, but we don't always know the way to get there." — Nate Herk

> "Because Claude Code has the ability to reason and do research, if something isn't working, be specific about what's not working." — Nate Herk

> "Feed the agent real docs, otherwise it's just going to make up things." — Nate Herk

> "It's the same engine behind the scenes. It's just a different door." — Nate Herk

---

*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*

*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*