> ## 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 from Pipecat

> Step-by-step guide to moving your Pipecat Python pipelines, Pipecat Flows, VAD settings, and telephony configs to Bolna.

Move your self-hosted Pipecat Python pipelines and **Pipecat Flows** to Bolna's managed voice infrastructure without rewriting your prompts, provider configs, or conversation graphs by hand.

> [!TIP]
>
> **Using Claude Code, Cursor, or Codex?** Install the `migrate-to-bolna` skill (`npx skills add bolna-ai/skills`) — your coding agent can run the migration **and** rewrite local `FunctionSchema` Python handlers into deployable HTTP webhooks for you.

## What you'll need

* **Bolna API key** — from [platform.bolna.ai](https://platform.bolna.ai) -> **Developers -> API Keys** (`bn-...`)
* **Your local Pipecat project folder** (Python pipeline files, optional `pcc-deploy.toml`, `.env`, and any Pipecat Flows YAML or `NodeConfig` files)
* **Node.js 18+** (for the CLI)

***

## Step-by-step migration

**1. Set your Bolna API key**

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

**2. Scan your Pipecat repo (dry run)**

Point `--path` at your local Pipecat project folder to preview what will be created on Bolna — nothing is created yet:

```bash theme={"system"}
npx -y @bolna/migrate --from pipecat --path ./my-pipecat-bot --dry-run
```

The scanner inspects your Python files, `.env`, `pcc-deploy.toml`, and Pipecat Flows definitions to extract your LLM/STT/TTS services, system prompts, VAD timings, telephony serializer, and function schemas.

**3. Apply the migration**

```bash theme={"system"}
npx -y @bolna/migrate --from pipecat --path ./my-pipecat-bot --apply
```

Your Bolna agent (or **Graph Agent** if Pipecat Flows were detected) is created automatically, and cutover artifacts are saved to `./bolna-migration-out/`:

* `tool-webhook-scaffold.ts` — starter HTTPS server for your local `FunctionSchema` handlers
* `sdk-cutover.md` — drop-in replacement for Daily / SmallWebRTC / RTVI clients using `@bolna/web-call`

**4. Review and test in Bolna**

Open [platform.bolna.ai](https://platform.bolna.ai) and select your new agent:

1. **Tools**: If you had local Python tool handlers, deploy them behind HTTPS and paste the URLs on the **Tools** tab.
2. **Voice & Transcription**: Double-check your voice ID and language settings (for example, if your Pipecat script referenced a voice name without an ElevenLabs `voice_id`, confirm the exact voice on the **Voice** tab).
3. **Test call**: Click **Test Call** in Agent Studio to verify latency, turn-taking, and flow transitions.

To undo a test migration cleanly:

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

***

## Where everything lands in Bolna

| What you had in Pipecat | Where it lands in Bolna | Notes |
| - | - | - |
| `LLMContext` system prompt & greeting | **Agent tab** (`system_prompt`, `agent_welcome_message`) | Extracted automatically from your Python pipeline |
| `OpenAILLMService`, `AnthropicLLMService`, `DeepgramSTTService`, `ElevenLabsTTSService`, `CartesiaTTSService`, `SarvamTTSService` | **LLM, Transcription & Voice tabs** | Mapped directly to Bolna's native providers |
| `SileroVADAnalyzer` timings (`stop_secs`) | **Endpointing / turn settings** | Converted to milliseconds (`endpointing`) |
| Pipecat Flows (YAML or Python `NodeConfig`) | **Graph Agent** (`graph_agent`) | Nodes, prompts, and transitions mapped automatically |
| `FunctionSchema` tools | **Tools tab** + `tool-webhook-scaffold.ts` | Schemas imported; move Python handler logic to an HTTPS webhook |
| Twilio / Plivo / Exotel / Telnyx serializers | **Telephony provider** | Matched to Bolna's built-in telephony providers |
| `.env` provider keys | **Providers** (`/providers`) | Detected locally without committing secrets |

## Things to handle manually

* **Custom `FrameProcessor` classes**: Flagged in the gap report — move external business logic into [custom HTTP tools](https://www.bolna.ai/docs/tool-calling/custom-function-calls) or [post-call webhooks](https://www.bolna.ai/docs/post-call/polling-call-status-webhooks).
* **Daily / SmallWebRTC / RTVI web clients**: Replace with `@bolna/web-call` (snippet saved in `./bolna-migration-out/sdk-cutover.md`).
* **Realtime speech-to-speech & video avatars**: Flagged in the gap report; Bolna uses a low-latency modular STT -> LLM -> TTS pipeline.


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