LlamaCalls: AI agents that join your calls. Try it now

Guides · How-to

How to add an AI agent to a video call

An agent on a call has to hear, think, speak and sometimes show a face, all in about a second. Here are the three ways teams build that, and the shortest one end to end.

Updated

A person on a video call does four things at once: listens, works out what to say, says it, and notices when someone cuts in. An AI agent has to do the same within about a second, or the call starts to feel like a voicemail exchange. Getting there means joining a media transport, streaming speech-to-text, a language model, streaming text-to-speech and turn-taking logic, plus an avatar renderer if the agent has a face.

There are three ways to put that together, and they differ mostly in who runs which part.

Option 1: build the pipeline on a WebRTC platform

Frameworks like LiveKit Agents and Pipecat give you the skeleton: a worker joins a WebRTC room, receives the caller's audio, and passes it through STT, LLM and TTS plugins you choose. You write the agent in Python (or Node, for LiveKit), deploy the workers, and hold accounts with each model vendor.

This is the right path when the agent is your product, when you need phone calls over SIP, or when you want to swap every model yourself. Expect to own latency tuning, interruption handling, scaling the workers and, for a face, integrating an avatar provider. Our guide to the WebRTC voice agent architecture walks through those parts.

Option 2: send a bot into an existing meeting

If the call already happens in Google Meet, Zoom or Teams, the agent can join it as a participant. Meeting-bot APIs such as Recall.ai handle joining the meeting and give you its audio; you still bring the agent. LlamaCalls agents join Google Meet from the dashboard (see the meeting assistant use case); Zoom and Teams are not supported yet.

Option 3: a hosted agent API

A hosted API runs the whole pipeline and hands you a call to embed. You describe the agent in a request and get back something to put in front of your user. LlamaCalls works this way, and so does Tavus for video agents (we compare them in Tavus alternatives). You give up control over which STT and TTS vendors run underneath. In return there are no workers to deploy and one price per minute.

End to end with LlamaCalls

1. Get an API key

Create one under API keys in the dashboard and keep it on your server.

2. Start a call and describe the agent in the same request

There is nothing to create first. Every setting the dashboard has can go in the agent object, for this call only, so an app with thousands of users can give each one their own agent without storing any.

// On your server. The key spends your credit, so it never reaches the browser.
const res = await fetch('https://llamacalls.com/api/calls', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.LLAMACALLS_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    agent: {
      name: 'Sam',
      instructions: 'You are Sam, onboarding coach for Acme. Help the user set up their first project. Keep answers short.',
      greeting: 'Hi, I am Sam. What are you trying to set up today?',
      capabilities: { language: 'en', recording: 'transcript' },
    },
    metadata: { userId: user.id },
  }),
});
if (!res.ok) throw new Error((await res.json()).error);
const { room, joinUrl } = await res.json();

Add "avatarId" to capabilities to give the agent a video face, and "vision": true to let it see the caller's camera. The API reference lists every field. A misspelt one comes back as a 400 that names it.

3. Embed the call

<iframe
  src="{joinUrl}"
  allow="microphone; camera; autoplay"
  style="width: 100%; height: 640px; border: 0"
></iframe>

The allow attribute is required, or the browser blocks the microphone inside the frame. The credentials in joinUrl sit after the #, so they never reach a server log, and the URL opens this one call only. On iOS, the Swift package joins the same call natively with the room, url and token from the response.

4. Steer it while it runs (optional)

Your server can slip the agent a note for its next reply. The agent never reads the note aloud and it never appears in the transcript. With speakNow it replies straight away if nobody is talking.

curl https://llamacalls.com/api/calls/$ROOM/notes \
  -H "Authorization: Bearer $LLAMACALLS_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "text": "The user just finished step 2. Congratulate them and move on.", "speakNow": true }'

5. Read what happened

curl https://llamacalls.com/api/calls/$ROOM/transcript \
  -H "Authorization: Bearer $LLAMACALLS_KEY"

The transcript comes back as one JSON line per utterance. With video recording on you can also fetch the MP4, and post-call analysis scores communication skills if you asked for it.

What it costs

A voice call is $0.05 a minute and a call with a video face is $0.08 a minute, billed by the second from prepaid credit, with speech recognition, the model and the voice included. There is no monthly plan. See pricing for recording and premium models.

Which option to pick

You needBest fit
Phone calls, or full control of every modelLiveKit Agents or Pipecat
An agent inside meetings people already holdA meeting bot (LlamaCalls for Google Meet)
An agent inside your own web or iOS app, quicklyA hosted agent API such as LlamaCalls

For a worked example of a specific agent, see how to build an AI tutor on a video call.

FAQ

Questions, answered

What do I need to put an AI agent on a video call?

Five parts: a media transport (usually WebRTC), streaming speech-to-text, a language model, streaming text-to-speech, and turn-taking logic that knows when the caller has finished. A video face adds a lip-synced avatar renderer. A hosted agent API such as LlamaCalls runs all of them for you behind one request.

Can I embed the call in my own web app?

Yes. POST /api/calls returns a joinUrl. Put it in an iframe with allow="microphone; camera; autoplay" and your user talks to the agent inside your page. On iOS there is a Swift package that joins the same call natively.

How much does it cost to run an AI agent on a call?

On LlamaCalls a voice call is $0.05 a minute and a call with a video face is $0.08 a minute, billed by the second from prepaid credit, with speech, model and voice included.

Can the agent join Zoom or Google Meet instead?

LlamaCalls agents can join Google Meet, sent from the dashboard. Zoom and Teams are not supported yet. Through the API, calls run in a LlamaCalls room that you embed in your own product.

More guides

Make your first call today

Sign up, describe your agent and ring it.

Browser and Google MeetA lifelike face or just a voiceYour tools, your accounts