# Building Realistic Voice Agents Has Never Been Easier
<!--
ref: @content/youtube/nate-herk/2026-05-04-building-realistic-voice-agents-has-never-been-eas
tags: [voice-agents, claude-code, elevenlabs, cal-com-booking, plan-mode, agent-debugging, widget-security, ai-sales-agents]
version: 2
updated_at: 2026-11-21T20:56:54.656Z
-->

**[Watch on YouTube](https://www.youtube.com/watch?v=-cdexJWN8YA)**


*Synthesized from Nate Herk, 2026-05-04.*

Nate presents a solo screen-share tutorial on building a voice agent with Claude Code and ElevenLabs, with no separate host or guest.

## Core Thesis
Nate argues that a voice agent no longer has to be assembled by clicking through a dashboard. If you describe the goal to Claude Code in plan mode, it researches the ElevenLabs and cal.com docs, builds the agent, wires the tools and embeds the widget. The human's job becomes aligning on the plan, supplying API keys, and iterating on what sounds wrong.

## Key Insights
- **Opening demo:** Nate built a voice agent trained on all of his YouTube transcripts (exactly 400 videos) in about 15 minutes. It answers questions such as which scraping tools he covers (Firecrawl) and speaks in his own professional voice clone, which was trained on about 4 hours of his voice.
- **A voice agent is a loop:** the visitor speaks, the microphone audio is transcribed, the LLM reads it and either replies, reads a database or calls a tool, and then the loop runs again.
- **Four pieces in every voice agent:** persona (the system prompt), voice (picked from the ElevenLabs voice library or a clone), knowledge (documents, a vector store such as Supabase or Pinecone, NotebookLM, or live lookups like order status), and tools (an MCP server, a direct API call, an existing n8n workflow, a Python script or a Zapier automation).
- **Three ways to deploy:** test in the ElevenLabs dashboard, embed a website widget (a single snippet you hand to Claude Code to place on the site), or connect a Twilio phone number so the agent can place or answer calls. He calls it the same engine behind a different door.
- **Build setup:** he uses VS Code with the Claude Code extension rather than the desktop app. A paid Claude subscription is required. He starts in plan mode, speaks the prompt by dictation, and uses the free Claude Code Superpowers skill for brainstorming.
- **The live build:** the project is a landing page for a fictional AI consultancy called Neural. The agent acts as a B2B sales agent whose job is to push visitors toward a discovery call and book it directly through cal.com (the same idea as Calendly). Claude Code asked clarifying questions: ElevenLabs and cal.com setup state, whether to go direct from ElevenLabs to cal.com (he chose direct, to avoid an extra workflow layer), a default floating bubble widget, a warm professional B2B tone, and data fields to capture beyond name and email (company name, the problem to solve, team size and role).
- **The plan Claude produced:** cal.com prep (API key and the event type ID for a 30-minute slot), authentication between ElevenLabs and cal.com, building the agent (voice, LLM, first message, system prompt), two tools (check availability and book), then wiring the widget into the site. Claude first listed manual dashboard steps for Nate, and he pushed back until it created a .env file for the two keys (a cal.com key and an ElevenLabs key, each named "demo").
- **First test problems:** the Adam voice sounded too enthusiastic and too AI, and the first message never played. He fixed these by describing what he liked and disliked and letting Claude research the fix. Nate also runs a session-handoff skill to clear context and avoid context rot.
- **Second test problems:** the agent got the current time wrong, did not confirm the spelling of names and emails, and was too wordy. The fixes were Central Time, more concise speech, lower temperature for consistency, and spelling back names and emails, dropping the slower NATO phonetic spelling.
- **The availability bug:** the check-availability tool returned only a 6:30 p.m. slot although the calendar was open from 4:00 p.m. to 9:00 p.m. Nate described the three possible causes (cal.com returning bad data, the agent querying too narrow a window, or the agent misreading the output) and asked Claude Code to inspect the conversation transcript. It found at turn 16 that the agent built the search window in UTC instead of Central Time, and fixed the parameter.
- **Final result:** after the fix, the agent offered 6:30, 7:00, 7:30, 8:00 and 8:30 p.m., booked 7:00 p.m., and a confirmation email arrived. The earliest slot was 6:30 because cal.com has a 2-hour minimum notice. He also widened cal.com availability from 9 a.m.-5 p.m. weekdays to 9 a.m.-9 p.m. for the demo.
- **Observability:** the ElevenLabs dashboard shows each conversation with its time, audio and transcript, which is what makes debugging and optimizing possible. The widget can also be restyled (color, image, text input during a call, live transcript).
- **Who pays:** a public widget spends your ElevenLabs credits every time someone talks to it, so a malicious visitor could talk for 24 hours a day and drain them.

## Actionable Takeaways
1. Open Claude Code in plan mode, describe the end goal (agent role, platform, booking tool, desired outcome), and let it ask questions before it builds anything.
2. Give it a .env file with the cal.com API key and the ElevenLabs API key (the ElevenLabs key can be unrestricted for a demo, and a monthly spend limit can be set), plus the cal.com event type ID.
3. Configure two tools on the agent, check availability and book, going straight from ElevenLabs to cal.com.
4. Iterate in short loops: test the widget on localhost, say specifically what is wrong, and let Claude Code research the documentation to fix it. Clear context between rounds with a handoff note.
5. When a tool misbehaves, read the conversation transcript in the ElevenLabs dashboard and ask Claude Code to locate the failure among the three candidate causes.
6. Check booking-side limits such as availability windows and minimum notice before blaming the agent.
7. Before publishing the site (GitHub repo synced to Vercel), lock the widget to an allowlist of domains, ground the agent in real documents so it does not invent answers, cap call duration per call, rate-limit public pages, and weigh premium voices and smarter LLMs against added latency.
8. Reuse the finished agent on a phone by connecting a Twilio number.

## Notable Quotes
> "It is a loop, it's not magic." — Nate
> "Code beats clicks." — Nate
> "It's the same engine behind the scenes. It's just a different door." — Nate

---

*Related: `@content/web/github/2026-11-27-resume-command-osc-7577-issue-112408` · `@content/web/github/2026-11-26-opus-context-fills-faster-issue-112194` · `@content/web/github/2026-11-26-interactive-session-misclassified-background-issue-112133` · `@content/web/github/2026-11-26-autodream-silently-ignored-issue-112310` · `@content/web/github/2026-11-25-followups-scope-issue-112120`*

---

*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).*