--- name: migrate-to-accelerate description: Migrate a voice or text agent from LiveKit, Retell, Vapi, Pipecat, Decagon, Sierra AI, GPT Live, or Deepgram Agents to a Stream accelerate agent. Use when the user asks to migrate, port, convert, or rewrite an agent from one of those platforms, or hands over a competitor agent's code, dashboard export, or API object. --- # Migrate to accelerate An accelerate agent is a folder, not a vendor object: ``` / agent.yaml # name, description, mode, stt/tts/sts/llm/voice, greeting, channels instructions.md # the system prompt guardrail.md # optional: what the agent will and will not answer knowledge/ # documents and urls.yaml the agent looks things up in skills/.md # work handed to a slower, smarter model (frontmatter: description, deadline) simulations/ # optional: test conversations .py # Agent(config="", llm=stream.Accelerated(config="", ...)) ``` `agent.yaml` refuses unknown keys. Only send keys from the mapping tables here and in the reference for the source platform; never carry a competitor field name across hoping it works. The folder name, the directory, and `name:` in `agent.yaml` are the same name, and it must be unique in the app: syncing a second agent under an existing name overwrites that config. ## First: read the right reference Read exactly one of these before mapping anything, plus this file: - LiveKit: [references/livekit.md](references/livekit.md) - Retell: [references/retell.md](references/retell.md) - Vapi: [references/vapi.md](references/vapi.md) - Pipecat: [references/pipecat.md](references/pipecat.md) - Decagon: [references/decagon.md](references/decagon.md) - Sierra AI: [references/sierra.md](references/sierra.md) - GPT Live: [references/gpt-live.md](references/gpt-live.md) - Deepgram Agents: [references/deepgram-agents.md](references/deepgram-agents.md) Then set up with the CLI skill at https://getstream.io/SKILL-agents.md (`getstream init`, `getstream agents init --template voice|text`, `getstream docs` for anything not covered here). For Stream Chat, Video, or Moderation work the migration touches, use the Stream skills at https://www.skills.sh/getstream/agent-skills/stream. ## Workflow 1. **Inventory the source.** Get the whole agent, not the screenshot: code repo, dashboard export, or API object; every tool definition; knowledge sources; phone/SIP setup; webhooks; dynamic variables; guardrails and eval suites. Ask for what is missing. Vendor ids, secrets, and webhook signing keys are never copied into the output. 2. **Map config** with the shared table below and the platform reference. Write the folder: `getstream agents init --template voice` (or `text`) creates `agents//` (with editor schemas alongside in `agents/`), then replace its files. Sync and test accept a path to that folder; if you move it, drop the `$schema` comment line from `agent.yaml`. 3. **Map tools** (rules below), **knowledge** (documents into `knowledge/`, URL sources into `knowledge/urls.yaml`), and **integrations** (catalog and custom connectors under `connectors:` in `agent.yaml`; phone numbers and messaging lines under `channels:`). 4. **Sync and test.** `getstream agents sync ` then `echo "Where is order NW-1001?" | getstream agents test ` (stdin lines in a non-interactive terminal). Fix what the sync refuses; do not silence it by dropping fields silently. A session that refuses to start with `unknown target` means a model field names something unserved: go back to `ListRoutes`, do not retry spellings. `agents test` runs the stored config only: Python `register_function` tools in the entry point do not execute there. Validate tools by running the Python agent joined to a router (`STREAM_ACCELERATION_URL`), or report them as untested code. A tool that must work without Python running needs a connector (catalog or custom) instead. 5. **Report.** End with three lists: migrated, approximated (and how it differs), and no equivalent. A silent drop is a failed migration. ## Shared mapping | Source concept | Accelerate target | | --- | --- | | Agent name, description | `agent.yaml` `name`, `description` | | System prompt / instructions / general prompt | `instructions.md` | | Who speaks first, first message | `greeting: {text: ..., mode: exact}` in `agent.yaml`; model-varied greeting is `mode: variation` | | Cascaded pipeline: STT model | `stt: /` in `agent.yaml`, or `Accelerated(stt=...)` | | Cascaded pipeline: LLM | `llm: /` or a capability shortcut such as `llm-fast`; or `Accelerated(model=...)` | | Cascaded pipeline: TTS model + voice | `tts: /`, `voice: ` | | Speech-to-speech / realtime model | `sts: /` (empty `sts: ""` takes the backend default); no separate STT/TTS | | Function tool that runs your code | `@agent.llm.register_function(description=...)` in the Python entry point; the backend calls it back mid-conversation | | Hosted/built-in tool (end call, transfer) | No tool needed for end/hangup; transfers and other platform actions go in `instructions.md` or a skill. See the platform reference | | Procedure / workflow / AOP / state machine | A `skills/.md` (description + instructions for the subagent), referenced from `instructions.md` | | Tool that is an HTTPS call to a third-party system | A catalog connector (`connectors:` in `agent.yaml`, app or per-user connection); a plain webhook-style tool becomes a Python function that makes the call | | MCP server given by URL (inline in the source config) | A custom connector plus a binding, never `mcp_servers:` or `plugins:` (the SDKs refuse both). See "MCP servers by URL" below | | Knowledge base documents | Files in `knowledge/` | | Knowledge base from URLs | `knowledge/urls.yaml` entries `{url, title?, description?, refresh_hours?}` | | Retrieval tuning (top_k, chunk size) | No equivalent knob. Drop it and say so in the report | | Knowledge in the prompt (inline docs) | Stays in `instructions.md` only if short; long text moves to `knowledge/` | | Guardrails / content policy | `guardrail.md` | | Phone number, SIP trunk | The router's phone setup (`acceleration/cmd/phone`; Twilio, Telnyx and other vendors in `acceleration/internal/phone`), not `agent.yaml` | | WhatsApp / SMS / iMessage line | `channels: {whatsapp: {number: "+1..."}, identity: phone|link}` in `agent.yaml` | | Memory / dynamic variables / user data | Session memory is keyed by user; per-user values arrive as session tags, not prompt variables. Map `{{var}}` prompt slots to instructions that ask or to tool results | | Post-call analysis, summaries, webhooks on call end | Transcripts and episode cards on the router; a custom post-call webhook has no direct equivalent. Report it | | Evals / simulations | `simulations/*.yaml`, run with `getstream agents simulate ` | | Multilingual language setting | `Accelerated(language=...)`; keyterms lists map to `keyterms:` in `agent.yaml` | | Sandbox / code execution | `sandbox: daytona` plus `sandbox_options:`; skills run code there | ### MCP servers by URL A source's inline MCP server (LiveKit `MCPServerHTTP`, Vapi `mcp`, a GPT Live backend MCP tool) is a custom connector. The app's backend creates it once, with `POST /v1/agents/connectors`: `id` starts with `custom_`, `endpoint` is the server's public `https` URL, `schemes` says how a connection signs in. The folder gets a binding in `agent.yaml`: `{name, connector: custom_, connection: