GPT-5.4 Prompting Guide
GPT-5.4 Prompting Guide
GPT-5.4 is a major step up from GPT-5.2, with significantly improved agentic reliability, instruction adherence, and long-context reasoning. Most GPT-5.2 agents will work without modification, but GPT-5.4 rewards more structured prompting.
For the full reference, review the official guide:
OpenAI – GPT-5.4 Prompt Guidance
Below is a Synthflow-specific migration guide, focused on what matters when building or migrating voice agents and workflows on Synthflow.
Where GPT-5.4 Excels
GPT-5.4 performs strongest in areas directly relevant to Synthflow agents:
- Personality and tone consistency across long conversations
- Agentic workflow robustness with multi-step tool calling
- Instruction adherence, especially with structured prompts
- Long-context analysis for calls with extensive history or knowledge base context
If your agent relies on any of these, GPT-5.4 is a strong upgrade.
Output Contracts
GPT-5.4 responds well to explicit output constraints. For voice agents, this is critical for keeping responses short and natural.
This replaces the simpler “Be concise” instructions from earlier models. GPT-5.4 follows granular formatting rules more reliably than GPT-5.2.
Follow-Through Policy
GPT-5.4 introduces a clearer model for deciding when to act vs. when to ask. This is useful for agents that perform actions (transfers, bookings, lookups):
This reduces unnecessary confirmation loops that slow down calls.
Tool Persistence
GPT-5.4 is better at chaining tool calls, but can still stop early if not explicitly told to persist. This matters for agents using custom actions, API lookups, or multi-step workflows.
If your agent combines knowledge base lookups with booking or transfer actions, this block prevents it from skipping the lookup step.
Completeness Contract
For agents handling batched or multi-part requests (e.g., “Check my appointment and also update my phone number”):
GPT-5.2 would sometimes silently drop the second part of a multi-part request. GPT-5.4 handles this better with explicit completeness rules.
Verification Loop
Before finalizing a response or action, GPT-5.4 benefits from a lightweight self-check:
This is especially useful for agents that query APIs or knowledge bases before responding.
Persistence & Agent Completion
The persistence pattern from GPT-5.1 and 5.2 still applies, but GPT-5.4 is more reliable at following it:
GPT-5.4 is less likely than GPT-5.2 to stop early on “mostly done” tasks when this block is present.
Prompt Structure
GPT-5.4 is the most structure-sensitive model yet. We strongly recommend sectioned prompts using XML-style blocks:
- Role / Persona
- Primary Task
- Constraints & Tools
- Follow-Through Policy
- Output Format & Length
- Completeness & Verification
- Edge-Case Handling
Example skeleton:
Unstructured prompts that worked in GPT-5.1 or 5.2 may produce inconsistent results in GPT-5.4.
Personality Controls
GPT-5.4 supports a cleaner separation between persistent personality and per-response controls. This is particularly useful for Synthflow agents that need consistent tone across long calls:
Separating persona from output rules makes it easier to tune tone without accidentally affecting response length or format.
Reasoning Effort
GPT-5.4 supports tunable reasoning effort. For Synthflow voice agents, the right setting depends on the use case:
Before increasing reasoning effort, first implement output contracts, verification loops, and tool persistence rules. These often solve quality issues without adding latency.
Migration from GPT-5.2
When migrating an existing agent:
- Switch the model first without changing the prompt
- Pin reasoning effort to your current level
- Test with real conversations or your evaluation set
- Iterate based on results, one change at a time
Common adjustments after migration:
- Add an output contract block if responses are too verbose or too terse
- Add a follow-through policy if the agent asks for unnecessary confirmations
- Add a completeness contract if multi-part requests get partially handled
- Restructure into XML sections if behavior is inconsistent
Prompt Optimizer
The OpenAI prompt optimizer remains helpful for GPT-5.4:
Suggested usage:
When asked to optimize prompts, explain which specific phrases should be added or removed to elicit the desired behavior or prevent undesired behavior.
Prompt:
[PROMPT]Desired behavior:[DESIRED BEHAVIOR]Undesired behavior:[UNDESIRED BEHAVIOR]
Focus on minimal edits, not full rewrites.