
Greeting
The agent’s opening line. This is the first utterance the caller hears. You can include function calls and variant attributes in the greeting to make it dynamic — for example, to greet callers by location or time of day. If you need to override the greeting at runtime based on caller data (e.g. personalized “Welcome back, [name]” messages), return anutterance from your start function instead.
Personality
Sets the tone and communication style across every response. Common options include friendly, professional, empathetic, and casual. Define a custom personality string to match your brand voice. The personality informs how the LLM phrases responses — it does not override specific instructions in Rules or Knowledge.Role
Specifies the agent’s stated function — for example, customer service agent, booking agent, or technical support specialist. The role appears in the system prompt and shapes how the LLM frames its responses. Use Rules to define more specific behavioral constraints: terminology, compliance guardrails, and edge-case handling.Behavior prompt structure
A well-structured behavior prompt ensures consistent, helpful interactions. Organize it into these sections:Task and context
Establish the agent’s identity and functional scope, including tool usage instructions:Conversational style
Special case handling
- Out of scope queries: Acknowledge limitations and offer to transfer
- ASR mistranscriptions: Use a graduated approach — ask the user to repeat 2-3 times before transferring to a human
- Jailbreak attempts: Redirect firmly but professionally to the agent’s intended purpose
Smalltalk
Define concise responses for common social interactions:Silence handling
Agent Studio has a default silence prompt that handles repetitions automatically. You may not need silence handling in your behavior prompt, but you should handle silence-triggered hangups.
Call transfer and deflection
- Start of call: Attempt to deflect — the user may not know the agent’s capabilities
- Later in call: Transfer immediately — the user likely has a specific need
Goodbye handling
Use theend_call function to control goodbye behavior and optionally transition to a CSAT flow:
Backout behavior
Allow users to exit flows they didn’t intend to start. If the user indicates they want to stop, immediately call the backout function to exit the flow.Dynamic information
Use$variable syntax to insert information that changes per conversation. Place variable information at the end of the prompt for efficient caching.
Related pages
Rules
Set global behavioral constraints for tone, compliance, and terminology.
Model
Choose the LLM backbone that powers your agent’s responses.
Start function
Override the greeting dynamically based on caller data.

