Building realistic voice agents with Claude Code and ElevenLabs
Watch on YouTubeNate Herk teaches how to build and embed an ElevenLabs voice agent by describing the desired outcome to Cloud Code in natural language. He demonstrates planning the agent, connecting it to Cal.com, testing and debugging its tools, refining its voice and prompts, and adding safeguards against cost and abuse.
- A voice agent operates as a loop that transcribes the user’s speech, lets an LLM respond or call a tool, returns an answer, and repeats. - The four main components of a voice agent are its persona, voice, knowledge, and tools. - Cloud Code can research documentation, create and configure an ElevenLabs agent, connect external tools, and embed the resulting widget on a website. - Plan mode helps turn a high-level business outcome into an implementation plan by asking questions about setup, behavior, integrations, and required data. - A useful voice agent requires repeated testing and refinement of its voice, first message, prompts, data validation, time zones, availability, and tool calls. - Public voice widgets need grounding, domain restrictions, call limits, rate limits, and other safeguards because usage is charged to the connected ElevenLabs account.
Based on Nate Herk | AI Automation's public content. Not affiliated with or endorsed by Nate Herk | AI Automation.
Supports these rules
Manage agents without abdicating judgment
ConfirmedControl risk with permissions and oversight
ConfirmedAudit and prune the system
Quotes from this video
“we took the time and effort already to explain what we want and align on the plan before we started to let it actually go build anything.”
“And as humans, we're very good at knowing the end goal, but we don't always know the way to get there, right?”
“Now, there are four kind of main pieces inside of every voice agent.”
“So those are the four pieces.”
“It's not gonna be perfect on the first try.”
“You iterate by saying, hey, here's what I liked. Here's what I didn't like. Go figure it out for me.”
“every single time that you talk to this thing, you're probably gonna notice a few things that you need to improve on.”
“if something isn't working, be specific about what's not working and give it context,”
“And all I had to do is explain my experience, what I experienced that went wrong.”
“So there's basically three different pieces or three different areas where something could be going wrong and we need to figure out which one of those happened so we can fix it.”
“the main issue. The main issue was that the actual tool call was being conducted wrong.”
“That widget is synced with your 11 Labs account. So every time someone talks to it, you are going to be eating that cost.”
“So you could come into security and you could lock it down by domain.”
“You could also set up a rate limit.”