# Building Realistic Voice Agents Has Never Been Easier <!-- ref: @content/youtube/nate-herk/2026-05-04-building-realistic-voice-agents-claude-code-elevenlabs version: 3 updated_at: 2026-10-31T20:21:29.073Z --> Claude Code (Nate Herk | AI Automation, 2026-05-04): Nate's argument is that voice agents are no longer a configuration project. *Synthesized from Nate Herk on Nate Herk | AI Automation, 2026-05-04.* Nate Herk builds and teaches AI automation, and in this episode drives Claude Code end-to-end to configure an ElevenLabs voice agent rather than clicking through the dashboard. ## Core Thesis Nate's argument is that voice agents are no longer a configuration project. The four moving parts — persona, voice, knowledge, tools — are all things a coding agent can research and wire up from a natural-language brief, so the work shifts from reading API docs and clicking through a vendor UI to describing intent, reviewing a plan, and iterating on transcripts. He demonstrates this twice: a 15-minute agent trained on all 400 of his YouTube transcripts, and a live 45-minute build of a website sales agent that books real meetings through cal.com. ## Key Insights - **A voice agent is a loop, not magic:** the visitor speaks, the audio is transcribed, the LLM reads it and either replies, reads a data source, or fires a tool call, then the loop repeats. - **Four components define every agent.** Persona is the system prompt (tone, role, constraints). Voice is the selected or cloned voice — Nate used his own professional clone trained on roughly **4 hours** of audio. Knowledge is what the agent can look up, whether a dropped-in document, a vector store like Supabase or Pinecone, or a tool that queries live data such as order status. Tools are the actions — an MCP server, a direct API call, an n8n workflow, a Python script, or a Zapier automation. - **Three delivery surfaces, one engine:** test in the ElevenLabs dashboard, embed as a website widget, or attach a phone number through Twilio for inbound and outbound calls. The website widget is literally one HTML snippet you hand to Claude Code to place. - **Start in plan mode.** Nate's opening brief named the site, the business, the agent's job (push prospects toward a discovery call), the platform (ElevenLabs), and the booking system (cal.com), then explicitly invited clarifying questions. Claude came back asking about his existing ElevenLabs and cal.com state, whether booking should go direct or through an intermediate workflow, widget appearance, voice persona, and which fields to capture. - **He chose the direct path — ElevenLabs calling cal.com — over routing through n8n**, on the grounds that the extra hop is one more piece to break. - **Beyond name and email (required to book), he had the agent capture company name, the problem being solved, and team size/role** — turning the booking flow into qualification. - **The agent pushed dashboard work back onto him and he pushed back.** When Claude claimed steps 1–6 were manual, Nate replied that it should figure out how to do them itself — and it then did most of the work, needing only the cal.com and ElevenLabs API keys pasted into a generated `.env`. - **API key hygiene:** an ElevenLabs key created with no permissions selected can do nothing; you either grant scopes explicitly or disable restrictions, and you can set a monthly spend limit on the key. - **Iteration is transcript-driven.** First test failures were a voice that read as too enthusiastic and AI-like, and a first message that never played. Nate's fix loop is to state what he liked and disliked in plain language and let Claude research the vendor docs — he explicitly refuses to dig through documentation himself. - **Prompt corrections that mattered:** pin the agent to a single time zone (Central), tell it to spell names and emails back for confirmation before booking, drop NATO phonetic spelling because it wasted call time, cut verbosity, and lower temperature for more consistent output. - **The real bug was a time-zone bug in a tool call.** At turn 16 of the conversation transcript, the agent built the check-availability query in **UTC instead of Central**, so the search window was wrong and only one slot came back. Nate framed the debug for Claude as three candidate failure points — cal.com returning too little, the agent querying wrong, or the agent misreading a correct response — and Claude located the second. - **ElevenLabs stores every conversation with audio and transcript**, which is what makes this class of bug findable at all. - **Two cal.com settings shaped the demo:** default availability was 9am–5pm weekdays (he widened it to 9am–9pm), and a **2-hour minimum notice** setting explained why slots earlier than 6:30pm were absent — not a bug. - **Who pays is a real design question.** An embedded widget bills *your* ElevenLabs account for every conversation, so an unprotected public widget is an open credit tap. - **Security and cost guardrails he names:** lock the widget to an allowed hostname/domain so a copied snippet cannot run on someone else's site, ground the agent in real documents so it does not invent answers, cap maximum call duration, rate-limit a public page, and require authentication if the use case allows. - **Latency is a trade-off you choose:** a premium voice plus a smarter LLM costs response time, and localhost testing reads slower than the deployed widget. - **The widget itself is configurable** — color, image, live transcript display, send-text-while-on-call — none of which requires code. - **Shipping is GitHub plus Vercel**, and the finished agent can be pointed at a phone number without rebuilding anything. ## Actionable Takeaways 1. Open in plan mode and brief the agent with the site, business, the agent's job, the voice platform, and the booking tool — then ask it to interrogate the gaps before any code is written. 2. Go direct from ElevenLabs to your booking API rather than adding a workflow tool in between; fewer hops, fewer failure points. 3. Have Claude generate a `.env` with placeholders and paste the ElevenLabs and cal.com keys yourself. 4. When creating an ElevenLabs API key, grant scopes explicitly (a key with no permissions is inert) and set a monthly spend limit. 5. Ask the agent to collect qualifying fields — company, problem, team size, role — alongside the name and email the booking requires. 6. Pin the agent's time zone in the prompt and verify the tool call constructs its query in that zone; a UTC/local mismatch silently narrows availability. 7. Have the agent spell names and emails back for confirmation before booking, but forbid NATO phonetic alphabet readbacks — they burn call time. 8. Lower temperature and ask for concision when replies feel padded or inconsistent. 9. Debug by describing the symptom and enumerating candidate failure points (source data, tool invocation, response parsing) rather than by reading API docs yourself. 10. Check the booking platform's own constraints — availability windows and minimum notice — before assuming the agent is broken. 11. Lock the widget to your domain in ElevenLabs security settings so a lifted HTML snippet cannot bill your account elsewhere. 12. Add a per-call maximum duration and a rate limit on any publicly reachable widget. 13. Ground the agent in real documents rather than relying on the system prompt for facts. 14. Expect roughly four to five iteration cycles before an agent feels usable; clear context between debugging rounds so long transcripts do not degrade reasoning. 15. Once the agent is right, reuse the same configuration behind a phone number — same engine, different door. ## Notable Quotes > "Code beats clicks." — Nate Herk > "It is a loop, it's not magic." — Nate Herk > "It's the same engine behind the scenes. It's just a different door." — Nate Herk > "Feed the agent real docs, otherwise it's just going to make up things." — 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).*