The FASTEST Way To Build AI Voice Agents (Claude Code)

14 min: Claude Code builds and deploys a phone voice agent; his stack shown (LiveKit, Telnyx number, Gladia speech-to-text, ElevenLabs voice), function calls. Gladia is an affiliate link.

playbook
Last updated Nov 21, 2026

This article was originally posted on YouTube

This is one of the fastest ways to get a voice agent set up and deployed on a phone number. I use Claude Code to do all of the setup in plain English: build the agent, add function calls, deploy it.

If you still set up tool calls by hand or write your system prompts manually, this is worth learning. You still need the human touch to fine-tune the agent with feedback from real calls. But the first build goes so fast that you can spend your effort on getting it to production level.

Where I work

I use Claude Code inside Visual Studio Code, in my "AI operating system": a folder on my computer with all the context about me and my business.

The tech stack Claude built

  • Telnyx: hosts the phone number.

  • LiveKit: hosts the agent and combines all the providers.

  • Gladia: speech to text. My speech on the phone gets turned into text for the AI model. It's purpose-built for phone conversations and has good APIs.

  • Claude Haiku 4.5: the AI model. Claude picked a Claude model, of course. I would normally use GPT 4.1 or Gemini 2.5 Flash for voice agents, they're a bit more reliable.

  • ElevenLabs Flash v2.5: turns the AI's text response into human-like speech.

In the demo call, the agent answered as a receptionist, confirmed that we offer bookkeeping services, gave a price estimate (packages from $300 per month) and offered to book a free consultation.

Step 1: tell Claude what to build

I just describe the stack. My prompt, spoken out:

"Hey Claude, I need you to build a brand new voice agent. Set it up via a Telnyx SIP, so the phone number goes via Telnyx. You can use an existing one if we have it. I want the voice agent itself set up on LiveKit, so we have to connect Telnyx to LiveKit to host the agent. Use Gladia for speech to text, the Claude Haiku 4.5 model for the intelligence, and the ElevenLabs Flash v2.5 model for speech."

You also need to describe the use case, so Claude can write the system prompt. I told it to set the agent up for an accounting use case.

Step 2: give Claude the keys

This is the only manual work:

  • LiveKit: create an account. From the settings, give Claude the project ID, the project URL, the SIP URL and an API key. It then has full access to your LiveKit setup.

  • Telnyx: buy a phone number and verify your business. Depending on where you are, verification can take 1 to 2 days. Then hand the API keys to Claude.

  • Gladia: sign up and give Claude the API key.

If you build from scratch, Claude walks you through where to find each key.

Step 3: call the number

When Claude is done, it tells you to call the number. That's a fully working voice agent. You don't even need to open the LiveKit dashboard, though you can if you want to see how the agent performs.

To change something, just tell Claude. You can also ask it to show you the prompt.

Step 4: add a function call

My prompt: "Can you add a function call to our voice agent that retrieves the live price of gold on the call?"

Claude finds an API endpoint, connects it to the agent as a function call and updates the prompt so the function gets called when someone asks. On the next call, the agent gave me the live price, and it matched the endpoint.

If you've built voice agents before, you know this part is tedious: API endpoints, POST versus GET, the JSON body. Here I did nothing.

What else you can do

  • Appointment booking: normally you'd use n8n or Make.com. Here I can tell Claude to build the whole automation to Google Calendar and connect it to the agent. You'd host it somewhere like Railway.

  • Client work: with client info in the folder, Claude can read a client call and build to that spec. If a client emails that something is broken, Claude can read the email and make the update.

  • Other platforms: Retell and ElevenLabs also work fine with Claude Code. LiveKit has the most API coverage and documentation, and lets you self-host to cut latency, but that is a small improvement.

A note for agency owners

It may look scary that these agents are so easy to build. The moat is integrations. Many businesses I've talked to had difficult APIs, CRMs and systems to connect. Claude can't build a relationship with a provider. If you get access to those systems for one industry, you can build agents nobody else can.

Comments

Login to leave a comment