FullThrottleFu
01/04/2026, 4:32 AMAI Evy
01/04/2026, 4:32 AMAI Evy
01/04/2026, 4:32 AMgeneral_prompt) * – This is the main/overarching prompt that applies across the entire agent. [(1) ]()
2. *State Prompts (state_prompt) * – Each state has its own focused prompt with specific instructions for that conversation phase. [(2) ]() , [(1) ]()
How they relate:
- States help reduce prompt length and tool choices when the call can be broken into distinct stages.
- Each state includes a focused prompt specific to that conversation phase, along with state-specific functions and transition logic (edges) . [(2) ]()
- If states are not set, the agent only uses the general prompt and general tools (essentially one state) . [(1) ]()
Key behavior:
- State-specific prompts override the general prompt when active, but they work hand in hand. [(3) ]()
- General functions (like end_call) are best kept in the main prompt for reuse across states, while state functions are limited to that specific state. [(4) ]()
Example structure from the API:
json
"general_prompt": "You are ...",
"states": [
{
"name": "information_collection",
"state_prompt": "You will follow the steps below to collect information..."
}
]
[(1) ]()AI Evy
01/04/2026, 4:32 AMAI Evy
01/04/2026, 4:32 AMFullThrottleFu
01/04/2026, 4:33 AMFullThrottleFu
01/04/2026, 4:33 AMAI Evy
01/04/2026, 4:33 AMAI Evy
01/04/2026, 4:34 AMjson
"states": [
{
"name": "information_collection",
"state_prompt": "You will follow the steps below to collect information...",
"edges": [
{
"destination_state_name": "appointment_booking",
"description": "Transition to book an appointment."
}
]
},
{
"name": "appointment_booking",
"state_prompt": "You will follow the steps below to book an appointment...",
"tools": [
{
"type": "book_appointment_cal",
"name": "book_appointment",
"description": "Book an annual check up.",
"cal_api_key": "cal_live_xxxxxxxxxxxx",
"event_type_id": 60444,
"timezone": "America/Los_Angeles"
}
]
}
]AI Evy
01/04/2026, 4:34 AMdestination_state_name and a description for when to transition. [(7) ]()AI Evy
01/04/2026, 4:34 AMAI Evy
01/04/2026, 4:34 AM