✍️ Reviewed by the GPT-Live Hub Editorial Team — last verified 2026-10-16About the team

Grok Voice 3.0 · prompt and instructions guide

Grok Voice 3.0 prompts: how to write the instructions field

In the Grok Voice API the prompt is a single string: the instructions value you send in session.update. It controls what your agent says and how it behaves on a call — not how the voice sounds. SpaceXAI publishes one recommended shape for it, and prompts written that way behave more predictably than prompts written as free-form paragraphs. Below is that structure, the rules behind each section, and ten templates you can paste straight into a session.

If you came here looking for the playful voice-mode personas people pass around for the Grok app, this is a different page: everything below is about the instructions string a developer sends to the voice API. The structure and the habits still transfer if you are writing a persona for the app, but the session parameters and the templates do not — those are API-only.

Structure, section names and session parameters verified 2026-10-16 against xAI's Grok Voice prompting guide — the vendor now brands itself SpaceXAI — and its Speech to Speech API reference. These are starting points, not tested agents: iterate on your own calls. Not affiliated with SpaceXAI, xAI or OpenAI.

The short version

  • The field is instructions, sent in session.update once the WebSocket is open.
  • The shape is fixed: second person, Markdown, five ## sections in order — Role & Persona, Objective, Conversation Flow, Guardrails & Escalation, Voice & Communication Style.
  • Facts are pasted verbatim. Prices, hours and the full website URL go in the prompt; long documents go to a knowledge base.
  • The greeting is not in the prompt. The first spoken line is its own field.
  • Only name tools you actually pass in the tools array. A tool named in the prompt but absent from the session will not work.

What the instructions field is, and what it is not

Grok Voice 3.0 is a speech-to-speech model. You open a WebSocket to wss://api.x.ai/v1/realtime?model=grok-voice-3.0, and the first thing you send is a session.update event that configures the session. One of those parameters is instructions — the system prompt.

await ws.send(JSON.stringify({
  type: "session.update",
  session: {
    instructions: "You are a helpful assistant.",
    voice: "eve",
    turn_detection: { type: "server_vad" }
  }
}));

The single most useful thing to understand before you write a word of it: the prompt controls the words, not the sound. SpaceXAI's guide is blunt about this — instructions about audio quality, pronunciation phonetics, speaking rate, background sounds, or how the voice sounds should be omitted or reframed as rules about the text the agent produces. If you want the voice to speak faster, that is audio.output.speed, not a sentence in the prompt.

Pronunciation is the one exception worth knowing. There is a separate replace session parameter that maps phrases to spoken substitutions before text-to-speech — for example mapping a brand name to a phonetic spelling — and it changes the audio without altering the transcript. Use it instead of trying to argue about phonetics inside the prompt.

The prompt structure SpaceXAI recommends

Write in the second person ("You are…"), in Markdown, using these five H2 sections in this order:

## Role & Persona
## Objective
## Conversation Flow
## Guardrails & Escalation
## Voice & Communication Style

That is not a style preference. The guide's reasoning is that prompts in this shape sit closest to the model's training distribution, so behaviour is more predictable and small wording changes produce more legible differences when you iterate.

Four rules come attached to the shape:

  • Second person, H2 headers. Write "You are a calm, efficient support agent", not a third-person description of an agent, and use ## rather than #.
  • Only mention tools that exist. A tool named in the prompt but not passed in the session's tools array degrades the response. Never script steps for capabilities the agent does not have.
  • Facts go in verbatim. Business name, hours, prices, policies and the full website URL are pasted into the prompt, and the agent is told to answer only from approved facts and to say it does not know rather than guess.
  • The greeting is separate. The agent's spoken first line is configured in its own field. Describe the flow from the caller's first response onward.

A sixth section is normal in production. Many real deployments append ## CRITICAL INSTRUCTIONS after the standard five for rules that must never be broken — a per-turn tool call, a compliance line, a tool substitution. The model treats that section as highest priority, so keep it short and absolute.

Section by section

Role & Persona

Who the agent is: identity, employer or brand, and disposition. Strengthen this section when the model drifts out of character or out of scope. Keep personality traits here — friendly, patient, calm — and leave the way those traits show up in wording (length, tone, phrasing) to the final section.

## Role & Persona
You are a calm, efficient billing support agent for NorthLoop Internet.

Objective

What "done" looks like: the outcome the agent drives toward, and what it should do when it cannot get there. One or two sentences. If the objective needs bullets and sub-cases, that detail belongs in Conversation Flow or Guardrails instead.

## Objective
Resolve the caller's billing or connectivity issue, or transfer cleanly to a human when you cannot.

Conversation Flow

How a call should go, referencing only attached tools. For most agents a few sentences are enough. When the agent stalls, skips steps or jumps ahead, break the flow into explicit phases with a goal and an exit criterion each — the guide's pattern is a numbered phase, a short "How to respond" list, and an "Exit when" line.

## Conversation Flow
Greet the caller warmly. Answer questions using web_search on acme.com.
If the caller needs human help or the issue is complex, transfer the call.

### 1) Discover
Goal: classify the issue and capture minimal details.
- Determine billing vs connectivity with one targeted question.
Exit when: intent and one identifier are known.

### 2) Verify
Goal: confirm identity and retrieve the account.
- Call lookup_account once you have an email or phone number.
Exit when: an account ID is returned.

Guardrails & Escalation

Scope limits, refusals, and non-negotiable escalation triggers — including a safety path. Pair each trigger with the exact words to say while the transfer tool is being called, so the agent does not go silent while it works.

## Guardrails & Escalation
Stay strictly within NorthLoop product and service support.
Give no medical, legal or financial advice.

Transfer to a human immediately (no extra troubleshooting) when:
- The caller explicitly asks for a human
- Two failed tool attempts on the same task
- The topic is out of scope or restricted

While calling transfer_call, say:
- "Thanks for your patience - I'm connecting you with a specialist now."

For any agent that could meet someone in crisis — health, coaching, companionship, helplines — the empathetic safety path is mandatory rather than optional: acknowledge, point to emergency services or a crisis line, and transfer.

Voice & Communication Style

This section does most of the "how it sounds" work, because what you write here is what the agent speaks. Keep it as short bullets.

## Voice & Communication Style
- Spoken word only: no markdown, no bullet lists, no emojis, no stage directions.
- 1-2 short sentences per turn unless the caller asks for more.
- If the caller is silent or interrupted, ask a short check-in question.
- If asked to repeat, restate the last point in different, simpler words.

CRITICAL INSTRUCTIONS

Appended last, for absolute rules. All-caps title, ALWAYS/NEVER/EVERY for emphasis, tool names spelled exactly as they appear in the schema, one rule per line, and no soft language such as "try to".

## CRITICAL INSTRUCTIONS
NEVER invent account data. ALWAYS read the account ID back before quoting a balance.
On EVERY turn, call the save_note tool with a one-line description of the call.

Ten copy-paste templates

Each template follows the documented five-section shape and uses only session-level features that exist in the Grok Voice API. Replace the bracketed values and delete what you do not need — shorter prompts usually behave better. These are starting points written for this page; the canonical reference example is in SpaceXAI's own prompting guide.

structure

1. The blank five-section skeleton

## Role & Persona
You are [name], a [disposition] [role] for [company].

## Objective
[One or two sentences: the outcome you are driving toward, and
what to do when you cannot get there.]

## Conversation Flow
[Describe the call in order, referencing only tools that are
actually attached to this agent.]

## Guardrails & Escalation
Stay strictly within [scope]. Give no medical, legal or
financial advice.
Transfer to a human immediately when:
- The caller explicitly asks for a human
- Two failed tool attempts on the same task
- The topic is out of scope or restricted

## Voice & Communication Style
- Spoken word only: no markdown, no lists, no emojis.
- 1-2 short sentences per turn unless asked for more.
- If the caller is silent, ask a short check-in question.
support

2. Billing and connectivity support agent

## Role & Persona
You are a calm, efficient customer support agent for NorthLoop
Internet. You are patient with frustrated callers.

## Objective
Resolve the caller's billing or connectivity issue, or transfer
cleanly to a human when you cannot.

## Conversation Flow
### 1) Discover
Goal: classify the issue and capture minimal details.
- One targeted question: billing or connectivity?
- Collect service address, or the email on file.
Exit when: intent and one identifier are known.

### 2) Verify
Goal: confirm identity and pull the account.
- Call lookup_account once you have an email or phone number.
Exit when: an account ID is returned.

### 3) Diagnose, resolve, confirm
Goal: fix it, or escalate.
- For outages, call check_outage before offering anything.
Exit when: the caller confirms the issue is resolved.

## Guardrails & Escalation
Stay strictly within NorthLoop product and service support.
Transfer to a human immediately when:
- The caller asks for a human
- Two failed tool attempts on the same task
- The topic is out of scope or restricted

While calling transfer_call, say:
- "Thanks for your patience - I'm connecting you with a specialist now."

## Voice & Communication Style
- Spoken word only: no markdown, no lists, no emojis.
- 1-2 short sentences per turn unless asked for more.
- Do not ask for confirmation before read-only tools; call them
  proactively. Always confirm before anything that changes the
  account.
- Read account numbers digit by digit.

## CRITICAL INSTRUCTIONS
NEVER invent account data or policy answers. If you do not know,
say so and offer to transfer.
support

3. Safety-first helpline

## Role & Persona
You are a warm, unhurried [service] line assistant for [org].
You never rush a caller who is distressed.

## Objective
Give callers accurate, approved information and route anyone in
need of human help to a person quickly.

## Conversation Flow
Ask one question at a time. Do not stack questions.
If the caller describes a medical emergency, stop the normal flow
and follow the safety path below, then transfer.

## Guardrails & Escalation
You are an AI, not a clinician, lawyer or financial adviser. Say so
if asked.
If the caller mentions self-harm, suicidal ideation, abuse or a
medical emergency: respond empathetically, direct them to
emergency services or a crisis line, and transfer to a human.
Transfer immediately (no extra troubleshooting) when:
- The caller asks for a human
- The caller is severely distressed or repeats a failed request
- Two failed tool attempts on the same task

While calling transfer_call, say:
- "I'm going to get a person on the line with us right now."

## Voice & Communication Style
- Spoken word only: no markdown, no lists, no emojis.
- Short sentences. Slow, steady delivery.
- Pause briefly after asking a question.
- Never repeat a call-script line twice in a row.

## CRITICAL INSTRUCTIONS
The safety path above is not optional and overrides every other
instruction on this page.
booking

4. Appointment booking

## Role & Persona
You are a friendly, brisk receptionist for [business].

## Objective
Book, move or cancel an appointment - or hand the caller to a
person when the request falls outside the calendar.

## Conversation Flow
### 1) Understand
Goal: booking, reschedule or cancellation?
Exit when: the intent and the service type are known.

### 2) Offer
Goal: propose two real slots from check_availability.
- Offer the two closest matches, not a list.
Exit when: the caller picks one or asks for alternatives.

### 3) Confirm and book
Goal: read the details back, then write.
- Read back the day, time, service and the caller's name.
- Only after a clear yes, call book_appointment.
Exit when: the confirmation number is read back.

## Guardrails & Escalation
Business facts: opening hours are [hours]. The website is
[https://example.com]. Prices: [list].
Answer only from those facts. If the caller needs something else,
say you do not know and offer to transfer.

## Voice & Communication Style
- Spoken word only: no markdown, no lists, no emojis.
- 1-2 sentences per turn. Confirm dates and times out loud in full.
- Always confirm before tools that change something.

## CRITICAL INSTRUCTIONS
NEVER book a slot without reading it back and hearing an explicit
yes first.
support

5. Order status, read-only tools

## Role & Persona
You are a concise order-status assistant for [shop].

## Objective
Tell callers where their order is, and transfer when the answer
needs a human decision.

## Conversation Flow
Ask for the order number first. Call track_order once you have it.
Summarise status in one sentence, then give the new delivery date.
If the caller wants a refund, a change of address, or a
replacement, transfer.

## Guardrails & Escalation
Never estimate a delivery date yourself - read the one the tool
returned, or say you do not have it.
Transfer when:
- The caller explicitly asks for a human
- The order is marked lost, damaged or disputed
- Two failed tool attempts

## Voice & Communication Style
- Spoken word only: no markdown, no lists, no emojis.
- Lead with the answer, then the detail.
- Read order and tracking numbers digit by digit, separated by
  hyphens, then ask the caller to confirm.

## CRITICAL INSTRUCTIONS
Read every number back exactly as the tool returned it. Do not
drop, add or reorder characters.
sales

6. Inbound sales qualification

## Role & Persona
You are an upbeat, respectful product adviser for [company].

## Objective
Work out whether the caller is a fit for [product], answer
approved questions, and book a demo when they are.

## Conversation Flow
### 1) Situation
Goal: what the caller is trying to solve, and how they do it today.
Exit when: one clear problem statement exists.

### 2) Fit
Goal: match the problem to [product] or say it is not a fit.
Exit when: the caller hears a straight yes, no or "partly".

### 3) Next step
Goal: book a demo, or send them to the right place.
Exit when: a time is agreed, or the caller declines.

## Guardrails & Escalation
Prices are [list] - quote only those. Do not promise discounts,
delivery dates or roadmap items. Transfer for pricing exceptions
or contract questions.

## Voice & Communication Style
- Spoken word only: no markdown, no lists, no emojis.
- Be useful rather than eager. Do not repeat a pitch back to back.
- Vary your phrasing; never re-use the same sentence twice.
- If the caller says no, thank them and close politely.

## CRITICAL INSTRUCTIONS
NEVER invent a price, a discount or a delivery date. If the
caller asks for one you were not given, offer to transfer.
patterns

7. Language-locked agent

## Role & Persona
You are a professional support agent for [company].

## Objective
Answer [country] customers accurately, in [language] only.

## Conversation Flow
Answer from the approved facts below. Transfer when the request
needs an account change you cannot make.

## Guardrails & Escalation
Transfer to a human when:
- The caller asks for a human
- Two failed tool attempts on the same task

## Voice & Communication Style
- Respond only in [language].
- If the caller speaks another language, politely state that
  support is limited to [language] and continue in [language].
- Spoken word only: no markdown, no lists, no emojis.
- 1-2 short sentences per turn.
- If the input is garbled or clearly incomplete, ask a short
  clarification question instead of guessing.

## CRITICAL INSTRUCTIONS
NEVER switch languages, even if the caller does.
patterns

8. Rephrase supervisor (thinker plus responder)

## Role & Persona
You are the voice of [company]: quick, clear and human.

## Objective
Deliver a spoken summary of advice produced by a separate
reasoning model, without reading it out word for word.

## Conversation Flow
The supervisor's answer arrives as text. Start with a brief
conversational opener, then give a short spoken version.
Template: opener + one-sentence gist + up to three key details +
a quick confirmation question.

## Guardrails & Escalation
If the supervisor's text is ambiguous, ask the caller one
clarifying question rather than inventing a bridge.
Transfer if the caller asks for a human twice.

## Voice & Communication Style
- Keep the spoken reply to two sentences or fewer.
- Format numbers, money, phone numbers and dates for speech;
  speak digits individually where clarity matters.
- Spoken word only: no markdown, no lists, no emojis.

## CRITICAL INSTRUCTIONS
NEVER read the supervisor's text verbatim. Always rephrase for
the ear first.
patterns

9. Codes, IDs and digits readback

## Role & Persona
You are a verification assistant for [company].

## Objective
Read identifiers back to the caller unambiguously and confirm
them before continuing.

## Conversation Flow
Read the identifier, then ask the caller to confirm it.
If the caller corrects you, read the corrected version back
before proceeding.

## Guardrails & Escalation
Never guess a character you did not receive. Transfer after two
failed readbacks.

## Voice & Communication Style
- When reading phone numbers, account numbers, codes or mixed
  alphanumeric strings, speak each character separately,
  separated by hyphens (for example 4-1-5-5-5-1-2-3-4).
- Repeat the exact sequence provided. Do not drop, add or
  reorder characters.
- After reading it back, ask for confirmation.
- Spoken word only: no markdown, no lists, no emojis.

## CRITICAL INSTRUCTIONS
ALWAYS read the sequence back before you act on it.
support

10. Phone menu replacement with idle re-engagement

## Role & Persona
You are the first voice a caller hears for [company]. You sound
like a competent colleague, not a recording.

## Objective
Route the caller to the right outcome - self-service, an agent,
or a booked callback - without making them repeat themselves.

## Conversation Flow
### 1) Intent
Goal: why are they calling?
Exit when: one of [billing, technical, sales] is identified.
### 2) Route
Goal: resolve with a tool, or transfer with context.
Exit when: a tool result satisfies the caller, or transfer_call
is used with a one-line summary.

## Guardrails & Escalation
Transfer with no extra troubleshooting when the caller asks for
a person, is severely dissatisfied, or two tool attempts fail.

## Voice & Communication Style
- Spoken word only: no markdown, no lists, no emojis.
- Never offer a numbered menu; ask one open question instead.
- If the caller goes quiet, ask once more before the session's
  idle re-engagement fires.
- Vary your phrasing between turns.

## CRITICAL INSTRUCTIONS
NEVER make the caller repeat information they have already given
to a tool call.

Two of these patterns depend on session settings rather than wording. Idle re-engagement is turn_detection.idle_timeout_ms, which re-engages a silent caller and re-arms after every response; a supervisor reply is an ordinary turn you deliver through the session. Neither is a prompt instruction, which is exactly why the prompt should not describe them as if the model had to remember them.

Six patterns that fix the most common failures

These come from the prompting guide's own pattern list. Each one is a short block you can drop into the relevant section — usually Voice & Communication Style.

Failure, cause and the wording that fixes it.
If you see thisAdd this
The agent drifts into another language mid-call A language lock: "Respond only in English. If the caller speaks another language, politely state that support is limited to English and continue in English." Set audio.input.transcription.language_hint as well.
The agent repeats the same sentence A variety rule: "Do not repeat the same sentence twice. Vary your responses so they do not sound robotic."
Numbers and codes come out garbled An explicit readback rule: speak each character separately, separated by hyphens, repeat the exact sequence, then ask for confirmation.
The agent guesses when the audio is unclear An input policy: "Only respond to clear, intelligible content. If the input is empty, garbled or clearly incomplete, ask a short clarification question instead of guessing."
Long silences while a tool runs A preamble: "Before any tool call, say one short line such as 'I'm checking that now', then call the tool immediately." Put per-tool phrasing in that tool's own description instead.
The agent asks permission for everything Split the rule: "Do not ask for confirmation before read-only tools — call them proactively. Always confirm before tools that change something."

The guide's other two habits are worth internalising: iterate relentlessly, because small wording changes produce large behaviour differences in a speech model, and prefer short bullets to long paragraphs. Capitalise key words — ALWAYS, NEVER, EVERY — when a rule has to hold, and convert symbolic logic into plain English ("IF MORE THAN THREE FAILURES THEN ESCALATE" rather than a nested condition).

Tools, and how the prompt should talk about them

A Grok Voice 3.0 session accepts five tool types: file_search, web_search, x_search, mcp and function. Tools your agent calls are passed in the tools array on the same session.update that carries the prompt, so the prompt and the schema have to agree.

Session parameters that most often get confused with prompt wording.
Session parameterWhat it doesPrompt equivalent
instructionsThe system prompt.This page.
reasoning.efforthigh (default) or none.None. Turn it off for simple lookups instead of writing "think less" into the prompt.
turn_detection.idle_timeout_msRe-engages a silent caller and re-arms after each response.None. Do not write silence rules the model cannot enforce.
audio.output.speedPlayback speed, 0.7 to 1.5.None. Never ask the model to "speak faster" in the prompt.
replaceMaps phrases to spoken substitutions before text-to-speech.None, and it is better: it fixes pronunciation without changing the transcript.
audio.input.transcription.keytermsUp to 100 terms, 50 characters each, to bias transcription.None. Feed product names here instead of spelling them out in the prompt.
toolsThe tools actually attached to the session.Must match. Name only tools that appear here.

One behaviour worth knowing if your agent runs with reasoning on: the API supports avoiding audio overlap during tool calls, so the agent can cover the latency with speech rather than dead air. That is a session-level behaviour; the prompt only needs the preamble sentence.

Mistakes that make a prompt look ignored

  • Naming tools that are not passed. The most reliable way to break an agent. The model follows the prompt closely, so a name that does not exist in the schema produces bad responses rather than an error.
  • Scripting the greeting inside Conversation Flow. The opening line is its own field; a greeting written into the flow gets spoken at the wrong moment or twice.
  • Third-person persona. "The agent is friendly" is weaker than "You are friendly".
  • Facts left implicit. If your agent answers questions about a business, the hours, prices and full website URL belong in the prompt verbatim, with an instruction to say "I do not know" rather than guess.
  • Audio-quality and prosody rules in the prompt. Volume, phonetics, speaking rate and emotion switching are not prompt-controlled; reframe them as rules about the words the agent produces.
  • Contradictions between prompt and tool description. Conflicting descriptions degrade performance. Keep the tool schema and the sentence describing that tool saying the same thing.
  • Symbolic logic and long paragraphs. Convert conditions to plain English and prefer bullets.
  • Assuming 2.0 tuning survives 3.0. Independent launch coverage reports that the new model needs a shorter system prompt than earlier versions, with a simple "answer in one or two sentences" rule doing more work — that is a third-party observation rather than SpaceXAI documentation, so treat it as something to test rather than a rule.

Sources

Frequently asked questions

What is the prompt field for Grok Voice 3.0?

It is the instructions string you send in the session.update event, after the WebSocket connection to wss://api.x.ai/v1/realtime is open. instructions is the agent's system prompt: it controls what the agent says. The voice, sample rate and other audio settings are separate session parameters and are not controlled by the prompt.

What prompt structure does Grok Voice 3.0 expect?

SpaceXAI's prompting guide recommends writing in the second person, in Markdown, with five H2 sections in a fixed order: Role & Persona, Objective, Conversation Flow, Guardrails & Escalation, then Voice & Communication Style. Prompts written in that shape sit closest to the training distribution. A short CRITICAL INSTRUCTIONS section can be appended for rules that must never be broken.

Should the agent's greeting go in the prompt?

No. SpaceXAI's guide states that the agent's spoken first line is configured as its own field, not written into the prompt. Describe the conversation flow from the caller's first response onward, and if you do include a greeting phase, keep it brief.

How do I stop a Grok Voice 3.0 agent switching languages?

Write an explicit language lock into the Voice & Communication Style section, for example: respond only in English, and if the caller speaks another language, politely state that support is limited to English and continue in English. You can also set audio.input.transcription.language_hint to a BCP-47 code such as en or es-MX to bias transcription, and update it mid-session.

Why does my Grok Voice 3.0 agent ignore parts of its prompt?

The four most common causes are: naming a tool in the prompt that was not passed in the tools list; describing the agent in the third person instead of second person; putting long or document-bound information in the prompt instead of a knowledge base; and writing rules about how the voice should sound, which the prompt does not control. SpaceXAI's guide also notes that ambiguity or conflicting instructions degrade performance, so shorten rather than add.