Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions fern/agent-skills.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,15 @@ Use the [setup-webhook agent skill (ZIP)](https://github.com/VapiAI/skills/relea
### simulations

Use the [simulations agent skill (ZIP)](https://github.com/VapiAI/skills/releases/latest/download/simulations.zip) to design, run, and maintain conversation tests for assistants and Squads. See [Simulations overview](/observability/simulations-overview).

### migration-flow-map

Use the [migration-flow-map agent skill](https://github.com/VapiAI/skills/tree/main/migration-flow-map) to map how an assistant or Squad is used in production before a model change, with a flow tree, a tool catalog, baselines for your team's metrics, and a list of scenarios to test. See the [model migration guide](/migrating-from-gpt-4-1/migration-guide).

### migration-simulations

Use the [migration-simulations agent skill](https://github.com/VapiAI/skills/tree/main/migration-simulations) to build and run Simulations that compare an assistant or Squad on its current model with a copy on a new model, with every tool mocked. See the [model migration guide](/migrating-from-gpt-4-1/migration-guide).

### model-migration

Use the [model-migration agent skill](https://github.com/VapiAI/skills/tree/main/model-migration) to move an assistant or Squad to a new model on copies, apply the prompt changes from the target model's card, compare the copies, and plan the rollout. See [Migrating from GPT-4.1](/migrating-from-gpt-4-1).
14 changes: 14 additions & 0 deletions fern/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -926,6 +926,20 @@ navigation:
- page: FAQ
path: faq.mdx
icon: fa-light fa-question
- section: Migrating from GPT-4.1
icon: fa-light fa-arrow-right-arrow-left
collapsed: true
contents:
- page: Overview
path: model-migration/overview.mdx
- page: Migration guide
path: model-migration/guide.mdx
- page: GPT-4.1 to Sapien
path: model-migration/sapien.mdx
- page: GPT-4.1 to Terra
path: model-migration/terra.mdx
- page: GPT-4.1 to Luna
path: model-migration/luna.mdx
- section: Billing
icon: fa-light fa-credit-card
collapsed: true
Expand Down
92 changes: 92 additions & 0 deletions fern/model-migration/guide.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
---
title: Vapi model migration guide
subtitle: How to test and switch your assistant's model safely with your coding agent, for any model change
description: "Test and switch a Vapi assistant's model with a coding agent and Vapi's migration agent skills: map calls, run simulations, compare copies, and roll out."
slug: migrating-from-gpt-4-1/migration-guide
---

## The migration guide

A safe migration starts with a good evaluation set: tests you run on your current model and the new one, so regressions show up before callers hear them. If you don't have one, we recommend building it as simulations from your real calls. The process below does that with your coding agent (such as Claude Code or Codex) and Vapi's three migration skills from the [VapiAI/skills repository](https://github.com/VapiAI/skills), then tests the new model on copies of your assistant. Your live assistant is never edited. It works for any model change.

<Note>
These simulations test only the model's behavior, not interruptions, endpointing, latency, or voice.
</Note>

**Before you start:** Set your organization's private API key from the [API keys page in the dashboard](https://dashboard.vapi.ai/org/api-keys) as `VAPI_API_KEY` in your agent's terminal, never in its chat. Have your assistant or Squad ID (or a transient assistant's configuration JSON), your metrics, and your target model ready, then [install the skills](/agent-skills):

```bash
npx skills add VapiAI/skills --skill migration-flow-map \
--skill migration-simulations --skill model-migration
```

### 1. Map how your calls go

First, use the **`migration-flow-map`** skill to map how your assistant is used today. It asks for your team's metrics, reads your system prompt and about 300 production calls (only the prompt and config for transient assistants or zero data retention), and outputs a flow tree, a tool catalog, a baseline for each metric, and a list of scenarios to test. This step can take a while.

### 2. Build the simulation suite and run the baseline

Next, use the **`migration-simulations`** skill to turn that list into a suite at one of two levels:

- **Critical:** core workflows, every ending, and must-never-break rules (10 to 25 scenarios). Cheaper.
- **All:** comprehensive coverage of every path and variation, so it costs more.

The scenarios run in chat mode with every tool mocked, as many times per scenario as you choose. The skill asks before starting, then runs them on a copy on your current model as your baseline.

### 3. Create the new-model version

Then use the **`model-migration`** skill. It loads the model card for your target model: how that model behaves differently from your current one, the prompt changes that helped, and its recommended settings. Cards exist today for moving from GPT-4.1 to [Sapien](/migrating-from-gpt-4-1/gpt-4-1-to-sapien), [5.6 Terra and 6.1 Terra](/migrating-from-gpt-4-1/gpt-4-1-to-gpt-5-6-and-gpt-6-1-terra), and [5.6 Luna and 6 Luna](/migrating-from-gpt-4-1/gpt-4-1-to-gpt-5-6-and-gpt-6-luna). The skill checks your prompt and tools and makes a copy on the new model with the card's settings. While it builds that copy, it applies the card's prompt changes that fit your prompt and lists each one for you. Then it runs the same suite.

The skill and the model cards get you started with the main changes we found. Your assistant may still need a few rounds of testing and prompt changes, and the next step is built for exactly that.

### 4. Compare, fix, and roll out

The skill compares the copies on your metrics and must-never-break rules, fixes what still differs with wording changes from the model card, and reruns until your metrics hold. Then check 5 to 20 core scenarios in voice and roll out to a small share of traffic first.

## Migration starter prompt

The fastest way to do this migration is with a coding agent such as Claude Code or Codex. Paste the prompt below into it. **The agent stops at checkpoints and won't go on until you say so:** to set up your API key and share your assistant details, to approve the scenario list, before each simulation run, and at the end, when it hands you the rollout plan to ship yourself.

```text
Migrate my Vapi assistant from <current model> to <target model>.
Work only on copies, never on my live assistant.

1. Install the skills from github.com/VapiAI/skills (run this again
to get the latest model cards):
npx skills add VapiAI/skills --skill migration-flow-map \
--skill migration-simulations --skill model-migration
If that fails, clone the repo and read each skill's SKILL.md.
2. Use my Vapi API key from the VAPI_API_KEY environment variable.
If it isn't set, tell me to copy the private key for the org that
owns the assistant from dashboard.vapi.ai/org/api-keys, run
export VAPI_API_KEY=<key> in my terminal, and restart you from that
terminal. Never ask me to paste the key and never print it.
3. Ask me for the assistant or squad ID (or the full config JSON for a
transient assistant) and the metrics my team tracks. Check the key
can read the assistant.
4. Run migration-flow-map. Show me the scenario list and wait for my
approval.
5. Run migration-simulations at the level I pick (Critical or All)
and run the baseline on my current model.
6. Run model-migration: load the model card for my target model
and tell me which one you used, review the prompt and tools,
apply the card's prompt changes that fit my prompt while you
create the new-model copy and list them for me, run the same
suite, compare the copies and fix what still differs until my
metrics hold.
7. Report each metric on both models, every must-never-break rule that
failed, the fixes you made and a rollout plan: a voice check of 5 to
20 core scenarios, then a small share of traffic first.

Rules:
- Never edit my live assistant, squad or tools.
- Ask me before every simulation run and say how many conversations
it will start.
- Mock every tool. Copies must never call my servers, transfer to real
numbers or post to production webhooks.
- Keep prompt fixes to wording. Don't add steps or workflows my prompt
doesn't define.
- Never print or store API keys, credentials or caller data.
- Leave the live model change to me. Give me the plan and the exact
config to ship.
```
93 changes: 93 additions & 0 deletions fern/model-migration/luna.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
---
title: Migrate from GPT-4.1 to 5.6 Luna or 6 Luna
subtitle: The prompt habits that help 5.6 and 6 Luna, and the settings we recommend
description: Move a Vapi assistant from GPT-4.1 to gpt-5.6-luna or gpt-6-luna with recommended settings, behavior differences, and prompt changes that helped.
slug: migrating-from-gpt-4-1/gpt-4-1-to-gpt-5-6-and-gpt-6-luna
---

<Note>
Last updated November 2026. This guidance will change as the models evolve, so check this page again before each migration.
</Note>

This page is a starting point. It covers the main patterns we saw when we tested 5.6 and 6 Luna against GPT-4.1 on several real assistants. Your assistant may behave differently in ways our tests didn't show, so test your own key scenarios before you switch.

For our recommendation, see [Migrating from GPT-4.1](/migrating-from-gpt-4-1).

## Recommended settings

Set these fields inside your assistant's existing `model` object, and keep its other fields, such as `messages` and `tools`, as they are.

```json
{
"model": {
"provider": "openai",
"model": "gpt-6-luna",
"reasoningEffort": "low",
"serviceTier": "fast"
}
}
```

For 5.6 Luna, set `model` to `gpt-5.6-luna` and keep the other settings the same.

## Prompt habits

We ran GPT-4.1, 5.6 Luna, and 6 Luna on the same simulated calls across several real assistants. These are tendencies, not things that happen on every call, ordered by how much they're likely to affect your calls. Each habit applies to both versions. Where one version needs something extra, it's noted under the advice.

### Point each branch to your closing steps

- **What we saw:** Luna follows the instruction for the step it's on, so a step that ends with its own last line, such as "confirm and close the call", can close the call there and skip closing steps written elsewhere, such as a closing question or a link to send. GPT-4.1 kept those general rules in mind for the whole call. If this matters for your calls, Sapien may suit them better.
- **For your prompt:** To help reduce this, you can write the closing steps once and replace each branch's "close the call" with a pointer that names the next step, such as "Then send the link and follow # Closing."
- **On 6 Luna:** Also write the closing steps before the end tool. On some assistants it ended the call while the caller still had an open request.

### Write complete tool descriptions

- **What we saw:** Luna gives tool and parameter descriptions more weight than GPT-4.1 did, and a description that disagrees with the prompt can win. It can call a finish tool whose description invites it, even when the prompt says never to call it.
- **For your prompt:** Give every tool and parameter a complete description that agrees with the prompt, for example "Payment type. Always ARBITRARY: the amount is whatever the caller chose." This seemed to help in our tests.
- **On 6 Luna:** It also gives the text in tool results more weight, so keep each script in one place, not repeated in a tool result.

### Write exactly what you mean

- **What we saw:** Luna reads the prompt's words and conditions more literally than GPT-4.1.
- **For your prompt:** To help reduce this, you can check that every status and label the prompt checks matches what your tools actually return, for example name every status that can take a payment ("OPEN or LATE"), not just one.
- **On 5.6 Luna:** It may skip an optional "you can offer", so write each step the way you want it read, for example "offer the link" rather than "you can offer the link" when it's required.

### Aim for good prompt coverage

- **What we saw:** Neither version invents answers the way GPT-4.1 sometimes did. When the prompt doesn't cover a situation, Luna can take the broadest option your setup gives it, which can mean more transfers, callbacks, or escalations than the call needed.
- **For your prompt:** Aim for good coverage of the workflows a call can go down, writing what to say or do, for example "Asking to speed up a refund doesn't qualify: give the expected date."
- **On 6 Luna:** It sometimes escalated routine requests, such as sending a caller booking a visit for a few weeks of knee pain to its emergency route. Also write when not to escalate, for example "Address changes aren't a reason to transfer: repeat the email." This seemed to help in our tests.
- **On 5.6 Luna:** Test that nearby requests still reach a person. If this matters for your calls, 5.6 Terra may suit them better.

### Pair each line with its tool call

- **What we saw:** Luna can call a tool, such as a lookup or a transfer, without saying anything first, which the caller hears as silence. If this matters for your calls, Terra may suit them better.
- **For your prompt:** To help reduce this, you can make sure each tool call has its line said before the tool runs. The way to do it differs by version.
- **On 6 Luna:** Put the line in a lookup's start message, for example "One second here, while I pull up your account.", and test that the transfer line and any safety sentence come before the transfer connects.
- **On 5.6 Luna:** It can also say it's connecting the caller without calling the tool, so tie the line and the tool call together in one instruction, for example "Say 'Let me transfer you to billing.' and call `transfer_call` in the same response.", and keep transfer wording in refusal lines.

### Attach only the tools you need

- **What we saw:** Luna runs the lookups and verification steps the prompt requires, which GPT-4.1 often skipped. It can also call attached tools the prompt never mentions.
- **For your prompt:** Attach only the tools the assistant actually needs, for example detach a `finish` tool your prompt says never to call.

### Write in the warmth you want

- **What we saw:** Luna sounds plainer than GPT-4.1, with shorter turns and less enthusiasm, and leans on the warmth the prompt writes in rather than adding its own.
- **For your prompt:** Write acknowledgments into the prompt for the moments that matter, such as bad news, and when the assistant can't do what was asked, have it explain why, offer one alternative, and say what happens next.
- **On 5.6 Luna:** Also loosen or narrow rules that ban acknowledgments. On one assistant it followed a rule like that, which GPT-4.1 often ignored.

### Mark lines that must be said exactly

- **What we saw:** Luna can say sample lines word for word, but trim or reword a longer required script to fit other rules in the prompt.
- **For your prompt:** To help reduce this, you can mark lines that must be said exactly with "Say exactly:" and exempt them from rules that would cut or rewrite them. This seemed to help on 6 Luna in our tests.

### Plan for tool failures

- **What we saw:** Luna keeps to the steps and checks the prompt writes more closely than GPT-4.1.
- **For your prompt:** Write a fallback line for each tool failure that matters, ending with the next step as a question, for example "No payment was made. Would you like me to text you a secure link?" This seemed to help in our tests.

### Write the next step after each answer

- **What we saw:** Luna answers what the caller asked and then waits, and rarely asks "anything else?" unless the current step tells it to, where GPT-4.1 often offered the next step on its own.
- **For your prompt:** To help reduce this, you can write the next step after each kind of answer and each tool result, for example "After a successful payment, ask whether there's anything else you can help with." This seemed to help on 6 Luna in our tests.
73 changes: 73 additions & 0 deletions fern/model-migration/overview.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
---
title: Migrating from GPT-4.1
subtitle: Move your assistant to Sapien, Vapi's low-latency model, and test it on copies before you switch
description: Move a Vapi assistant from GPT-4.1 to Sapien, Vapi's own low-latency model, with prompt tips and a migration guide that tests the change on copies first.
slug: migrating-from-gpt-4-1
---

If your assistant runs on GPT-4.1, we recommend moving it to Sapien. The [migration guide](/migrating-from-gpt-4-1/migration-guide) helps you make the move with your coding agent and test it on a copy before any caller hears it.

## Our recommendation

**Sapien is our recommended model.** It's Vapi's own model, with much lower latency than GPT-4.1 (about 200 ms median time to first token), and it keeps the reasoning most assistants need at a lower cost.

To use it, set these fields in your assistant's `model` object:

```json
{
"model": {
"provider": "vapi",
"model": "sapien"
}
}
```

<Note>
This recommendation reflects benchmarks the Vapi team ran as of November 2026 and will change as new models become available.
</Note>

## How to migrate to Sapien

The [migration guide](/migrating-from-gpt-4-1/migration-guide) is the easiest way to move. You paste one [starter prompt](/migrating-from-gpt-4-1/migration-guide#migration-starter-prompt) into your coding agent, such as Claude Code or Codex, and it does the work with Vapi's migration skills: it builds tests from your real calls, makes a copy of your assistant on Sapien with the prompt tips applied, and shows you how the copy compares with your live assistant. Your live assistant isn't changed until you switch it yourself.

<Card title="Migration guide" icon="route" href="/migrating-from-gpt-4-1/migration-guide">
Move your assistant to Sapien with your coding agent, and test it on a copy before you switch.
</Card>

## Prompt tips for Sapien

<Card title="Prompt tips for Sapien" icon="pen-to-square" href="/migrating-from-gpt-4-1/gpt-4-1-to-sapien">
Recommended settings and the prompt changes that helped most when we moved assistants from GPT-4.1 to Sapien.
</Card>

## Other models

If Sapien doesn't fit your assistant, there are prompt tips for [5.6 Terra and 6.1 Terra](/migrating-from-gpt-4-1/gpt-4-1-to-gpt-5-6-and-gpt-6-1-terra) and [5.6 Luna and 6 Luna](/migrating-from-gpt-4-1/gpt-4-1-to-gpt-5-6-and-gpt-6-luna) too. The migration guide works the same way for each.

## FAQs

<AccordionGroup>
<Accordion title="Will the migration change my live assistant?">
No. You test the new model on copies of your assistant, and you make the live model change yourself when you're ready. For more information, see the [migration guide](/migrating-from-gpt-4-1/migration-guide).
</Accordion>

<Accordion title="Which model should I start with?">
Start with Sapien, our recommended model. It responds with low latency and keeps the reasoning most assistants need, at a lower cost than GPT-4.1.
</Accordion>

<Accordion title="What do the migration simulations not test?">
The simulations test only the model's behavior, not interruptions, endpointing, latency, or voice. Check 5 to 20 core scenarios in voice before you roll out.
</Accordion>

<Accordion title="Does the migration guide only work for GPT-4.1?">
The process works for any model change. Prompt tips currently exist only for moving from GPT-4.1 to Sapien, Terra, and Luna.
</Accordion>

<Accordion title="Can I migrate a transient assistant or one with zero data retention?">
Yes. For these assistants, the `migration-flow-map` skill reads only the prompt and configuration instead of production calls.
</Accordion>

<Accordion title="Are the model card's prompt changes enough on their own?">
Not always. The model cards cover the main changes found in testing, and your assistant may still need a few rounds of testing and prompt changes.
</Accordion>
</AccordionGroup>
Loading
Loading