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

# GPT Live prompting guide

> Write GPT Live conversation instructions in Retell AI: a template for each model, what goes in the main prompt, handoff rules, and language and accent.

A [GPT Live](https://docs.retellai.com/build/gpt-live.md) agent runs two models. The voice model talks to the caller and follows your conversation instructions (`voice_prompt` in the API). When it needs an action or information, it hands the request to the backend: the backend text model that follows your main prompt (`general_prompt`) and runs your functions and knowledge base.

Use conversation instructions for the agent's role, speaking style, and when to hand a request to the backend. Put procedures, function rules, and business facts such as prices and hours in the main prompt.

Retell adds call control and the agent's settings to the voice model's instructions for you. You write the parts below.

## Recommended prompt structure

Start with the template for the model your agent runs. gpt-live-1 hands off on the `<|SpawnThinking|>` token, and gpt-live-1.1 on plain wording. Keep the labels exactly as written and customize the text under them.

```text gpt-live-1 theme={"dark"}
You are [name], a calm, friendly voice agent for [business].
Speak naturally and keep replies to one or two short sentences.
Ask one question at a time.

Delegation policy:
Backend tools:
- [Capability]: [what the backend can do]

Generate <|SpawnThinking|> when:
- The caller needs an action or information from one of the backend tools.
- A correction changes something you already asked the backend to do.

Do not generate <|SpawnThinking|> when:
- The caller greets you, asks who you are, or asks you to repeat something.
- You need a brief clarification to understand the request.

Generate <|SpawnThinking|> before giving an answer that depends on backend work.
```

```text gpt-live-1.1 theme={"dark"}
You are [name], a calm, friendly voice agent for [business].
Speak naturally and keep replies to one or two short sentences.
Ask one question at a time.

Delegation policy:
Backend tools:
- [Capability]: [what the backend can do]

Delegate to the backend when:
- The caller needs an action or information from one of the backend tools.
- A correction changes something you already asked the backend to do.

Do not delegate when:
- The caller greets you, asks who you are, or asks you to repeat something.
- You need a brief clarification to understand the request.

Delegate to the backend before giving an answer that depends on backend work.
```

List the capabilities the backend supports under `Backend tools:`, one per line. The voice model uses this list to decide which requests to hand off. It doesn't see your functions.

## Pair it with the main prompt

Write each rule in one place. The conversation instructions say when to hand off; the main prompt says how to do the work.

```text Conversation instructions theme={"dark"}
You are Maya, a warm front-desk agent for Bright Smile Dental.
Keep replies short and natural, and ask one question at a time.

Delegation policy:
Backend tools:
- Appointments: find open times and book, change, or cancel appointments.
- Office information: hours, location, insurance, and prices.
- Front desk: connect the caller to a person.

Delegate to the backend when:
- The caller wants to book, change, or cancel an appointment.
- The caller asks about hours, insurance, or prices.
- The caller picks a time you offered or corrects a detail.

Do not delegate when:
- The caller greets you, asks who you are, or asks you to repeat something.
- You need a brief clarification to understand the request.

Delegate to the backend before giving an answer that depends on backend work.
```

```text Main prompt theme={"dark"}
You are the backend for Bright Smile Dental's phone agent.
To book, get the caller's full name and date of birth, find open times with check_availability, and book the time the caller picks with book_appointment.
Office hours are Monday to Friday, 8 AM to 5 PM. A new-patient cleaning costs $120.
Transfer to the front desk only during office hours. After hours, offer to take a message.
```

The voice model doesn't receive the main prompt. It hands off, gets the price from the backend's answer, and leaves the after-hours decision to the backend.

## Delegation

Write handoff triggers as things the caller says or does, with concrete conditions: "The caller picks a time you offered," not a function name or an internal step.

Hand off before any answer that depends on the backend, such as availability, a booking, an account detail, a price, or office hours. A spoken line like "Let me check" doesn't start backend work; only a handoff does.

Answer directly only for conversation: greetings, who the agent is, repeating something already said on the call, and short clarifications.

## What Retell adds

Retell writes these rules into the voice model's instructions from the agent's functions and settings. To change one, change the setting.

* **End call:** hand off when the caller is done or says goodbye.
* **Transfer call:** hand off when the caller asks for a person or a transfer.
* **Press digit:** hand off to press keypad digits in a phone menu.
* **[Voicemail and IVR](https://docs.retellai.com/build/handle-voicemail.md), [do-not-call](https://docs.retellai.com/build/do-not-call.md), and callback detection,** when they're on.
* **Interruption sensitivity, responsiveness, backchannel, language, voice speed, pronunciation, boosted keywords, and [guardrails](https://docs.retellai.com/build/guardrails.md).**
* **Backend results:** say them in the agent's own words, keep names, numbers, and dates exact, and never mention the backend.

Leave out rules about when to hand off for ending the call, transferring, or pressing keypad digits. A second rule for the same action can contradict Retell's. Put conditions that decide whether an action is allowed, such as transferring only during office hours, in the main prompt, where the backend decides. If the agent needs a specific closing line, write the line; Retell's rule still hands off after it.

## Exact wording

Quote any line the agent must say word for word:

```text theme={"dark"}
If the caller asks whether they're talking to a person, say exactly: "I'm an AI agent for Bright Smile Dental."
```

The [Welcome Message](https://docs.retellai.com/build/single-multi-prompt/configure-basic-settings.md) sets the greeting. [Dynamic variables](https://docs.retellai.com/build/dynamic-variables.md) such as `{{first_name}}` are filled in once, when the call starts. Conversation instructions can be at most 15,000 tokens (as of November 2026).

## Language and accent

The voice sets most of the accent. Pick a GPT Live voice with the regional influence you want, such as British or Australian English, or Mexican or Argentine Spanish. See the [voice list](https://docs.retellai.com/build/gpt-live.md#choose-a-voice).

Retell adds "Speak \[language] unless the user asks to switch." from the agent's [language](https://docs.retellai.com/agent/language.md) setting. It names only the language, so name the variety yourself:

```text theme={"dark"}
Speak Mexican Spanish with a natural Mexico City accent, and keep it for the whole call.
```

For a [multilingual agent](https://docs.retellai.com/agent/multilingual.md), say what triggers a switch and whether the accent follows the caller:

```text theme={"dark"}
Answer in the language of the caller's latest clear sentence.
A single English word, a name, or a product name doesn't change the language.
When you speak Spanish, keep your Mexican Spanish accent even if the caller speaks another variety.
```

Spell out local formats where callers expect them:

```text theme={"dark"}
Read dates with the month name, like "the fifth of April."
```

Instructions steer the accent but don't guarantee every reply keeps it. Test each language, including a switch in both directions. OpenAI's guide to [prompting GPT Live for languages and accents](https://developers.openai.com/blog/prompting-multilingual-voice-agents) has more examples.

## Test your prompt

Make a [web call](https://docs.retellai.com/test/test-web.md) and try each rule from both sides: requests the agent should hand off and ones it should answer itself. For information requests, check the answer. For actions, such as a booking or a transfer, check the function result in the call's transcript. Say goodbye and check that the call ends.

For persona, pacing, interruption, and patience examples, see OpenAI's [GPT Live prompting guide](https://developers.openai.com/api/docs/guides/live-prompting).

## FAQ

> [accordion] My agent said it was transferring or ending the call, but nothing happened. Why?
>
> Open the call and check whether the transfer or end call function ran. If it didn't, either the voice model didn't hand off or the backend decided not to act. Check that your delegation policy covers the request with your model's labels, and check the conditions for that function in the main prompt. If the caller spoke after the agent's last line, Retell cancels the pending transfer or end call so the conversation can continue.

> [accordion] Can I keep \<|SpawnThinking|> in my instructions on gpt-live-1.1?
>
> Use the plain labels on gpt-live-1.1. When you move an agent between versions, update the labels. Retell writes its own lines in the wording for each model.

> [accordion] Where do function details and step-by-step procedures go?
>
> In the main prompt and the knowledge base. The backend follows them when the voice model hands off. Conversation instructions only need one line per capability under `Backend tools:`.


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