# Voice for agents you ship on Vercel

- **URL:** https://agentline.cloud/build/vercel
- **Runtime:** Vercel
- **Keywords:** Vercel AI phone number, v0 phone number, Vercel AI SDK voice, phone number for AI agents, AI voice API

v0, the AI SDK, and Vercel agents already ship to the edge. AgentLine is the number, the dial tone, and the transcript so those agents can talk on a real phone line.

## One skill file

Add the AgentLine skill to your Vercel agent or AI SDK project, set AGENTLINE_API_KEY, and ask it to buy a number. Webhooks land on your Vercel route.

```
Get yourself a phone number and call me. Follow https://agentline.cloud/skill.md
```

## Why Vercel needs its own number

### Webhooks that already fit your deploy

Inbound transcripts POST to a Vercel route you already host. No extra telecom worker.

### AI SDK stays on text

Your generateText / streamText loop never sees PCM. AgentLine transcribes, your agent replies, we speak it.

### One number per deployed agent

Preview, staging, and production can each own a number. Same skill, different keys.

## Python

```python
from agentline import AgentLine

client = AgentLine(api_key="al_live_...")

agent = client.agents.create(
    name="Voice Agent",
    system_prompt="You are a helpful voice agent. Keep spoken turns under 15 words.",
    initial_greeting="Hey, this is your agent. How can I help?",
    voice_id="female-1",
)

number = client.numbers.buy(agent_id=agent.id, country="US", area_code="415")
call = client.calls.create(agent_id=agent.id, to="+14155557890")
print("Number:", number)
print("Call:", call)
```

## Node.js

```ts
import AgentLine from "agentline";

const client = new AgentLine({ apiKey: "al_live_..." });

const agent = await client.agents.create({
  name: "Voice Agent",
  systemPrompt: "You are a helpful voice agent. Keep spoken turns under 15 words.",
  initialGreeting: "Hey, this is your agent. How can I help?",
  voiceId: "female-1",
});

const number = await client.numbers.buy({
  agentId: agent.id,
  country: "US",
  areaCode: "415",
});
const call = await client.calls.create({
  agentId: agent.id,
  to: "+14155557890",
});
console.log("Number:", number);
console.log("Call:", call);
```

## FAQ

**Does AgentLine work with the Vercel AI SDK?**

Yes. Install the skill or call the REST API from a Vercel route. Your agent reads transcripts and writes the next sentence.

**Can I use v0 with AgentLine?**

Yes. Paste the install prompt into v0, set AGENTLINE_API_KEY, and ask it to create an agent and buy a number.

**Where do webhooks go?**

Point them at a public Vercel function. AgentLine signs every payload. A webhook URL is the fallback if you cannot run the local relay.
