diff --git a/fern/agent-skills.mdx b/fern/agent-skills.mdx index ea6c5e5c7..569f7b0b1 100644 --- a/fern/agent-skills.mdx +++ b/fern/agent-skills.mdx @@ -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). diff --git a/fern/docs.yml b/fern/docs.yml index d7f0aa97c..19863c056 100644 --- a/fern/docs.yml +++ b/fern/docs.yml @@ -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 diff --git a/fern/model-migration/guide.mdx b/fern/model-migration/guide.mdx new file mode 100644 index 000000000..de0c12f24 --- /dev/null +++ b/fern/model-migration/guide.mdx @@ -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. + + +These simulations test only the model's behavior, not interruptions, endpointing, latency, or voice. + + +**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 to . +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= 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. +``` diff --git a/fern/model-migration/luna.mdx b/fern/model-migration/luna.mdx new file mode 100644 index 000000000..d7b9fc22f --- /dev/null +++ b/fern/model-migration/luna.mdx @@ -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 +--- + + +Last updated November 2026. This guidance will change as the models evolve, so check this page again before each migration. + + +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. diff --git a/fern/model-migration/overview.mdx b/fern/model-migration/overview.mdx new file mode 100644 index 000000000..973a2d261 --- /dev/null +++ b/fern/model-migration/overview.mdx @@ -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" + } +} +``` + + +This recommendation reflects benchmarks the Vapi team ran as of November 2026 and will change as new models become available. + + +## 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. + + + Move your assistant to Sapien with your coding agent, and test it on a copy before you switch. + + +## Prompt tips for Sapien + + + Recommended settings and the prompt changes that helped most when we moved assistants from GPT-4.1 to Sapien. + + +## 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 + + + + 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). + + + + 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. + + + + 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. + + + + The process works for any model change. Prompt tips currently exist only for moving from GPT-4.1 to Sapien, Terra, and Luna. + + + + Yes. For these assistants, the `migration-flow-map` skill reads only the prompt and configuration instead of production calls. + + + + 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. + + diff --git a/fern/model-migration/sapien.mdx b/fern/model-migration/sapien.mdx new file mode 100644 index 000000000..d52b2e73d --- /dev/null +++ b/fern/model-migration/sapien.mdx @@ -0,0 +1,83 @@ +--- +title: Migrate from GPT-4.1 to Sapien +subtitle: How Sapien behaves compared with GPT-4.1, the prompt habits that help it most, and the settings we recommend +description: Move a Vapi assistant from GPT-4.1 to Sapien with recommended model settings, behavior differences to plan for, and prompt changes that helped in testing. +slug: migrating-from-gpt-4-1/gpt-4-1-to-sapien +--- + + +Last updated November 2026. This guidance will change as the models evolve, so check this page again before each migration. + + +This page is a starting point. It covers the main patterns we saw when we tested Sapien 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 an overview of moving off GPT-4.1, 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": "vapi", + "model": "sapien" + } +} +``` + +Remove OpenAI-only fields such as `reasoningEffort`, and check that `fallbackModels` has no leftover GPT-4.1 entry. + +## Prompt habits + +We ran GPT-4.1 and Sapien 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. + +### Keep actions on the tool + +- **What we saw:** More often than GPT-4.1, Sapien can say what it's about to do, such as "Let me transfer you to a specialist", and end its turn without calling the tool. This happened most often when a step gave it a complete-sounding line to say before the action. On some assistants it also said a text was sent before the text tool ran, or promised a follow-up after a send failed. +- **For your prompt:** To help reduce this, you can say when to act on every path, such as "Once the callback is set, send the link.", and put the caller's line in the tool's start message. This seemed to help in our tests for texts. + +### When the prompt and tools disagree + +- **What we saw:** When the prompt and a tool's description disagreed about when to call the tool, Sapien went with the prompt, for example running a lookup after verification failed when only the tool's description said to wait. When the prompt included troubleshooting steps or a sample answer, it could read those out instead of looking up the right ones. +- **For your prompt:** Let the prompt say when to look things up, use placeholders like "(gives the first returned step)" in example dialogues, and have tools return an error when the next step can't run. This seemed to help in our tests. + +### Keep each rule in one place + +- **What we saw:** When rules in the prompt pulled in different directions, Sapien could follow the one closest to the current step or the one stated most absolutely, where GPT-4.1 smoothed them over. For example, one "transfer live in business hours" line next to several "offer a callback" lines led to callbacks during business hours. +- **For your prompt:** When one rule chooses between a live transfer and a callback, keep that choice in that rule, have other lines say only "offer a specialist", and delete lines that contradict it. This seemed to help in our tests. + +### Aim for good prompt coverage + +- **What we saw:** Sapien invents fewer answers than GPT-4.1. On some assistants, when the prompt didn't say what to do about a question it couldn't answer, it could answer anyway instead of saying it didn't know. +- **For your prompt:** Aim for good coverage of the workflows a call can go down, writing what to say or do, for example "If they ask about required receipts, say you're not sure and offer a callback." This seemed to help in our tests. + +### Listen for required steps + +- **What we saw:** Sapien keeps steps the prompt requires that GPT-4.1 sometimes skipped, such as a required notice. It also ends calls without extra words around the end-call tool. +- **For your prompt:** Listen for steps your callers rarely heard before, such as a required notice or a lookup before the first reply, and check that required lookups still run before it answers. + +### Check scripted lines against tool calls + +- **What we saw:** Sapien says scripted lines word for word at least as often as GPT-4.1. +- **For your prompt:** Scripted lines need no extra marking. A line said word for word doesn't mean the action ran, so check for the matching tool call in your tests. + +### Test the judgment calls + +- **What we saw:** Sapien read field names and keyword lists the same way GPT-4.1 did, for example judging whether a symptom a caller mentioned was an emergency instead of matching a keyword list, and reading a tool's verification result correctly when the prompt named a different field. +- **For your prompt:** Test the judgment calls that matter to you, such as what counts as an emergency, and name fields as your tools return them. + +### Check reply style and length + +- **What we saw:** Sapien keeps much of GPT-4.1's style, with replies about as long as GPT-4.1's or shorter and some of its exclamation marks and paragraph breaks. It rarely uses markdown or numbered lists, and usually asks one question per turn. +- **For your prompt:** Listen to a few test calls in your voice to check how the replies sound, and keep any length or formatting rules you already have. + +### Test for repeated apologies + +- **What we saw:** Sapien can add more acknowledgments and apologies of its own than GPT-4.1, such as "I'm sorry to hear that", and stock phrases that aren't in the prompt, even where a prompt said to acknowledge only once. +- **For your prompt:** If your prompt limits acknowledgments, test upset callers and failed lookups for repeated apologies and stock phrases. + +### Place wrap-up questions after the action + +- **What we saw:** Like GPT-4.1, Sapien ends a finished task with a question such as "Is there anything else I can help you with?", without being told to. Sometimes it asks too early: in the same reply where it says it will send a text, before the text has been sent. +- **For your prompt:** You don't need to add these questions to your prompt. To help reduce the early ones, place the question after the action's result, such as "Send the link. Once it's sent, ask whether there's anything else you can help with." diff --git a/fern/model-migration/terra.mdx b/fern/model-migration/terra.mdx new file mode 100644 index 000000000..200512727 --- /dev/null +++ b/fern/model-migration/terra.mdx @@ -0,0 +1,92 @@ +--- +title: Migrate from GPT-4.1 to 5.6 Terra or 6.1 Terra +subtitle: The prompt habits that help 5.6 and 6.1 Terra, and the settings we recommend +description: Move a Vapi assistant from GPT-4.1 to gpt-5.6-terra or gpt-6.1-terra 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-1-terra +--- + + +Last updated November 2026. This guidance will change as the models evolve, so check this page again before each migration. + + +This page is a starting point. It covers the main patterns we saw when we tested 5.6 and 6.1 Terra 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.1-terra", + "reasoningEffort": "low", + "serviceTier": "fast" + } +} +``` + +For 5.6 Terra, set `model` to `gpt-5.6-terra` and keep the other settings the same. + +## Prompt habits + +We ran GPT-4.1, 5.6 Terra, and 6.1 Terra 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. + +### Match names and triggers exactly + +- **What we saw:** Terra takes the prompt's names and trigger words more literally than GPT-4.1. When a rule switched languages only if the caller asked for Spanish, it could keep answering in English to a caller who simply spoke Spanish. +- **For your prompt:** Describe triggers by meaning, for example "if the caller's first message is in Spanish or asks for Spanish", and check that every name in the prompt matches your configuration. This seemed to help in our tests for language switches. + - **On 6.1 Terra:** This extends to tool-result fields. It treated verified callers as unverified when the prompt checked a `verified` field and the tool returned `"state": "VERIFIED"`, so name each field exactly as the tool returns it, where the decision is made. This seemed to help in our tests. + +### Say where each closing step applies + +- **What we saw:** Terra handles closing steps written in one place, such as a closing question, a survey, or a link to send, differently from GPT-4.1, and the two versions go opposite ways. On 5.6 Terra, it can close the call at the end of a branch and skip them, while on 6.1 Terra it can apply them in every branch, even where they don't fit, such as a survey after a transfer. +- **For your prompt:** Write each closing step once, say exactly where it applies and where it doesn't, and point the branches that use it there, for example "Then send the link and follow # Closing." + - **On 6.1 Terra:** Also tie the order to the end-call tool, for example "Call `end_call` only after the caller answers the survey question." This seemed to help in our tests. + - **On 5.6 Terra:** To help reduce this, you can replace each branch's "close the call", failures included, with a pointer like the one above. + +### 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, Terra falls back on something safe instead: it can say it isn't sure, or reach for a person or a callback sooner 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." This seemed to help on 5.6 Terra in our tests. + +### Write complete tool descriptions + +- **What we saw:** Terra gives tool and parameter descriptions more weight than GPT-4.1 did. +- **For your prompt:** Give every tool and parameter a complete description that agrees with the prompt, for example "The phone number from # Applicant on File, exactly as written there, including the leading +1." This seemed to help in our tests. + - **On 6.1 Terra:** It also weighs the text in tool results, and can read out a script a tool returns and then say the prompt's version too. Keep each script in one place, at a step every call passes, for example "Right after the name check, before any transfer, say the notice." This seemed to help in our tests. + +### Plan for tool failures + +- **What we saw:** Terra follows written steps strictly and in order, more than GPT-4.1, and keeps counted steps, such as "transfer on the third request", exactly. +- **For your prompt:** Write a fallback line and next step for each tool failure that matters, for example "No payment was made. Would you like me to text you a secure link?" This seemed to help in our tests. + +### Plan for warmth + +- **What we saw:** Terra sounds plainer than GPT-4.1, with shorter turns and little enthusiasm or filler. It also follows rules that limit acknowledgments, where GPT-4.1 often ignored them. +- **For your prompt:** Loosen or narrow rules that ban acknowledgments, and when the assistant can't do what was asked, have it explain why, offer one alternative, and say what happens next. + +### Attach only the tools you need + +- **What we saw:** Terra looks things up more than GPT-4.1, and can 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. This seemed to help in our tests. + - **On 6.1 Terra:** When you list questions that need no lookup, also name the ones that still do, for example "A PIN reset needs no lookup; card arrival still does." Without that, it can skip a lookup the caller needs. This seemed to help in our tests. + +### Mark lines that must be said exactly + +- **What we saw:** Terra says sample lines from the prompt word for word more often than GPT-4.1. +- **For your prompt:** Mark lines that must be said exactly with "Say exactly:", and make sure no other rule contradicts or rewrites them. This seemed to help in our tests. + - **On 6.1 Terra:** Also exempt marked lines from general rules like numbers-as-words, which it can apply to a required script. For a line that should vary, describe it, don't quote it. + +### Write the next step after each answer + +- **What we saw:** Terra answers what the caller asked and then waits unless a step in the prompt says what comes next, where GPT-4.1 often offered the next step on its own. +- **For your prompt:** 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 in our tests. + +### Pair each line with its tool call + +- **What we saw:** Terra can call a tool without saying anything first, which the caller hears as silence. We rarely saw it claim an action that no tool confirmed. +- **For your prompt:** 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." This seemed to help in our tests. + - **On 5.6 Terra:** Also script the line before a call's first lookup, where it went silent most often.