> ## Documentation Index
> Fetch the complete documentation index at: https://www.bolna.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Migrate to Bolna

> Move your voice AI agents, prompts, workflows, knowledge bases, tools, post-call extractions, and SIP trunks from ElevenLabs, Vapi, LiveKit, or Pipecat to Bolna.

Switching voice AI platforms usually means rebuilding prompts, re-uploading knowledge bases, re-wiring tools, and re-configuring telephony by hand. The **Bolna Migration Kit** automates that work so you can test your existing agents on Bolna in minutes — without touching your live production setup.

> [!NOTE]
>
> **Safe by default.** Every migration starts with a read-only **dry run** that shows what will be created and flags anything that needs manual attention. Nothing is created on Bolna until you explicitly apply, and every applied migration saves a manifest so you can roll back in one command.

## Pick your source platform

> [card] [ElevenLabs](https://www.bolna.ai/docs/migrate/elevenlabs.md)
>
> Import Conversational AI agents, workflows, multilingual presets, knowledge bases, tools, evaluations, and batch calls directly from your ElevenLabs API key.

> [card] [Vapi](https://www.bolna.ai/docs/migrate/vapi.md)
>
> Import assistants, squads, tools, knowledge bases, analysis plans, BYO SIP trunks, and campaigns from your Vapi Private API key.

> [card] [LiveKit](https://www.bolna.ai/docs/migrate/livekit.md)
>
> Scan your Python or TypeScript LiveKit Agents repo (plus optional LiveKit Cloud SIP trunks) and scaffold HTTP webhooks for local tool functions.

> [card] [Pipecat](https://www.bolna.ai/docs/migrate/pipecat.md)
>
> Scan your Pipecat Python pipelines, VAD settings, and Pipecat Flows (YAML or `NodeConfig`) into Bolna agents and graph agents.

***

## Three ways to run a migration

All three options use the same migration engine — pick whichever matches how you work:

> [tab] CLI (fastest for all 4 platforms)
>
> Run [`@bolna/migrate`](https://www.npmjs.com/package/@bolna/migrate) directly from your terminal with Node 18+. Your API keys stay on your machine and are never sent to a third-party server.
>
> ```bash theme={"system"}
> # Preview first — creates nothing on Bolna
> npx -y @bolna/migrate --from elevenlabs --dry-run
> ```
>
> Best for **ElevenLabs, Vapi, LiveKit, and Pipecat**, migrating multiple agents at once, or scanning a local LiveKit/Pipecat codebase.

> [tab] AI coding agent (best for LiveKit & Pipecat)
>
> If you use **Claude Code**, **Cursor**, or **Codex**, install the official [Bolna Skills collection](https://github.com/bolna-ai/skills):
>
> ```bash theme={"system"}
> npx skills add bolna-ai/skills
> ```
>
> Then ask your assistant: *"Migrate this ElevenLabs / Vapi / LiveKit / Pipecat project to Bolna."*
>
> The `migrate-to-bolna` skill runs the dry-run, walks you through any gaps, and can also **refactor local LiveKit/Pipecat Python/TypeScript tool functions into HTTP webhooks** and swap your frontend SDK to `@bolna/web-call`.

> [tab] Bolna MCP (zero install, from chat)
>
> Already connected to the [Bolna MCP server](https://www.bolna.ai/docs/mcp-server.md) ([`bolna-ai/mcp`](https://github.com/bolna-ai/mcp))? Ask your AI client to run:
>
> * `migrate_preview` — read-only preview + gap report
> * `migrate_apply` — creates resources once you confirm
>
> Best for **ElevenLabs, Vapi, and LiveKit SIP** directly from Claude Desktop, Cursor, or Windsurf.

***

## Before you start

You only need two things to run your first dry run:

1. **A Bolna account and API key** — Sign in at [platform.bolna.ai](https://platform.bolna.ai), go to **Developers -> API Keys**, and copy your key (`bn-...`). See [Generate an API key](https://www.bolna.ai/docs/api-reference/introduction.md).
2. **Your source platform credentials or codebase**:
   * **ElevenLabs**: API key from ElevenLabs -> **Profile -> API Keys**
   * **Vapi**: **Private** API key from Vapi Dashboard -> **Org Settings -> API Keys** *(not the Public key)*
   * **LiveKit / Pipecat**: Path to your local project folder (plus optional LiveKit Cloud SIP keys)

***

## How a migration works

**1. Start with one agent (dry run)**

Run a dry run first. The CLI reads your source setup, checks your Bolna account, and prints two things: what will be created on Bolna, and a **gap report** listing anything that mapped partially or needs a manual step (like re-pointing a phone number or entering a masked secret).

```bash theme={"system"}
export BOLNA_API_KEY="bn-xxxxxxxxxxxxxxxx"
export ELEVENLABS_API_KEY="sk_xxxxxxxxxxxxxxxx"

npx -y @bolna/migrate --from elevenlabs --dry-run
```

Want to test on a single agent before migrating your whole workspace? Add `--agent-id <source_agent_id>`.

**2. Apply the migration**

Once the preview looks right, run the **same command** with `--apply` instead of `--dry-run` (keep `--agent-id` if you filtered the preview to a single agent):

```bash theme={"system"}
# Whole workspace
npx -y @bolna/migrate --from elevenlabs --apply

# Or keep the same single-agent filter from your dry run
npx -y @bolna/migrate --from elevenlabs --agent-id <source_agent_id> --apply
```

The kit creates resources in dependency order: provider keys -> knowledge bases (waiting until indexed) -> agents and graph agents -> post-call dispositions -> SIP trunks -> batches. It saves a `manifest.json` file and cutover checklists in `./bolna-migration-out`.

> [!TIP]
>
> **Safe to re-run.** Pass `--manifest ./bolna-migration-out/manifest.json` if a run stops halfway — already-created resources are skipped so you never get duplicates.

**3. Test your migrated agent in Bolna**

Open [Agent Studio](https://platform.bolna.ai) to see your new agent:

* Check the **Prompt**, **Voice**, and **Tools** tabs for any items flagged in the gap report.
* Click **Test Call** in the dashboard (or place a test call via [API quickstart](https://www.bolna.ai/docs/quickstarts/api.md)) and run 5–10 realistic test conversations.

**4. Switch traffic (or roll back)**

When you are happy with call quality, follow the generated checklists in `./bolna-migration-out/` to point your phone numbers, SIP carrier, or webhooks to Bolna.

Need to undo a test migration cleanly? Delete every Bolna resource created in that run with one command:

```bash theme={"system"}
npx -y @bolna/migrate --rollback ./bolna-migration-out/manifest.json
```

***

## What migrates automatically vs. what needs your review

Every item in the gap report is tagged with one of four statuses so there are no surprises:

| Status | What it means | Common examples |
| - | - | - |
| **Migrated** | Created directly on Bolna with no changes needed | Prompts (`{{var}}` auto-converted to `{var}`), welcome messages, LLM/STT/TTS config, HTTP webhook tools, call transfer, DTMF, knowledge bases, dispositions, SIP trunks |
| **Partial** | Created on Bolna using the closest supported equivalent | Provider-specific voices (falls back to ElevenLabs so you can pick a voice in Agent Studio), `tls` SIP transport (mapped to TCP) |
| **Manual** | Cannot be exported by the source API — checklist generated | Hosted phone numbers owned by ElevenLabs/Vapi/LiveKit, masked API secrets, carrier DNS/IP cutover |
| **Unsupported** | Architectural difference — workaround provided | MCP tools, client-side browser tools, local in-process Python/TS tool logic (HTTP webhook wrapper scaffolded for you) |

***

## Common questions

> [accordion] Will migrating affect my live production calls on ElevenLabs or Vapi?
>
> No. The migration kit only **reads** from your source platform and **creates new resources** in Bolna. Your existing agents, phone numbers, and webhooks stay untouched until you explicitly point traffic to Bolna.

> [accordion] Where do my API keys go?
>
> When using the CLI, your keys stay in your local terminal and are sent directly from your machine to the source API and `https://api.bolna.ai`. When using Bolna MCP, keys are used only for that request and never stored.

> [accordion] What if I want to migrate into a separate workspace for testing?
>
> Pass `--sub-account "Migration Test"` to create a fresh Bolna sub-account and import everything into it, keeping your main workspace untouched.

> [accordion] Do I need to whitelist Bolna's webhook IPs?
>
> Yes — if your server uses an IP allowlist, allow Bolna's three webhook source IPs (`13.203.39.153`, `13.126.9.249`, `13.202.133.53`). See [Get results with webhooks](https://www.bolna.ai/docs/post-call/polling-call-status-webhooks).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.