Subagent phases
Default to subagent phases for the body of the call. A subagent acts freely per a brief, relying on context (contact fields, identity, documents): it sounds natural, handles off-script questions and corrections ("actually, I am interested"), and is easy for the user to edit in plain language. Built-in goals still handle the sensitive mechanics (call opening, meeting scheduling, hot transfer, contact confirmation). Use structured ask / say goals only when the user states a requirement for them: exact wording, a branch that must be guaranteed (for compliance, say), or a structured script by name. A call's ordinary outcomes are not such a requirement, however short or simple the call: "interested → transfer, not interested → goodbye" is a subagent with two exits. Structured goals are precise but stiffer, and prone to looping or sounding unnatural.
Shape
A subagent goal holds one brief and exits only through its transitions:
{
"name": "discovery",
"goal_type": "say_generative",
"isSubagent": true,
"repeat": true,
"messages": [{ "message": "<the phase brief>", "generative": true }],
"transitions": [
{ "name": "finish_discovery", "prompt": "Call this when you're allowed to exit",
"target": "explain & next steps",
"properties": {
"business_type": { "type": "string", "description": "consultancy / agency / reseller / freelancer / other" },
"team": { "type": "string", "description": "size + structure: employees / subcontractors / solo" }
} }
]
}
isSubagent: trueis a display convention likecontainer— the behavior comes from the shape:repeat: true, a single generative message, exit transitions (02 §2.2, 01 §1.6).- The goal re-runs every turn and ends ONLY through a transition — it must always carry at least one, or it holds the call forever.
- The transition
propertiesare the phase's structured output: the agent fills them on exit and each lands as a state variable, readable downstream in conditions and{references}. Keep the SAMEpropertiesmap on every transition of the goal — what gets collected must not depend on which exit fires. - Each outcome of the phase is its own exit transition, targeting the goal that handles it: a hot transfer, a booking, or a terminal goodbye that hangs up and sets the call result. The agent takes an exit only when the brief's criteria for it are met (consent before a transfer, for instance), so the outcome is as certain as a choice branch.
- Goal
fulfillmentstill works —{ "timing": "triggered", "call_result": "qualified" }stamps the result when the phase starts.
Writing the brief
- One phase per subagent, with a clearly bounded job ("fill these slots", "explain and close") — split phases rather than writing one giant brief.
- Refer to the slots by the exit transition's property names; don't restate their descriptions — the agent already sees them on the tool.
- Always write explicit EXIT criteria — when the agent is allowed to call the transition: all slots filled at any precision, the caller pulls to another topic a second time (defer once lightly the first time), a question budget reached, or friction (short on time, reluctant). The transition
promptthen just says "call this when you're allowed to exit". Unfilled slots are legitimate output — never fabricate a value to complete the schema. - Pacing rules beat prose: one idea per turn, check in between ideas, and say explicitly that a positive check-in answer is not an exit signal.
- Never brief the phase to verify who it's speaking with, look for the right person, or get past a gatekeeper. The Call opening built-ins do that before the flow starts (05 §5.1).
- Pre-filled context (form fields, contact metadata, slots an earlier phase emitted): tell the agent to confirm and deepen, never re-ask — and to credit a caller who front-loads several answers instead of walking back through them.
How many phases
One phase leading to a booking or a transfer is often all a script needs. More phases make the call measurable stage by stage (each phase reached is a funnel step, each exit emits its values) at the cost of fluidity: the agent works within one phase's brief at a time. Use the fewest phases that give the user the tracking they asked for.
Chaining and hybrids
Chain phases by pointing each transition's target at the next subagent; the emitted slots are state, so a later brief can lean on them ("open with the stream that matches what discovery collected"). End the chain at a terminal goal (hang up, a transfer, a booking).
Most subagent scripts are hybrids: a structured opening (the pinned goals, a "has time to chat" ask whose negative choices are terminal) and structured terminal mechanics, with subagent phases as the body — see the skybridge-partners sample.
Additional instructions
A subagent script leans on the LLM for delivery, so give the agent whole-call conversational guidance in the identity's additionalInstructions (via set_identity) — the rare case where that field earns content. Baseline that works:
- Short turns. 1 to 3 sentences, then hand the conversation back. Never monologue. If something needs a longer explanation, break it up: one piece, a check-in ("Make sense so far?"), continue.
- NEVER repeat or paraphrase back what the person just said. No "So what I'm hearing is...". React and move forward: build on it, connect it to your objective, or ask the next question.
- One question at a time. Never stack questions.
- Vary your acknowledgements. Rotate naturally: "nice", "love that", "okay interesting" — or answer directly with no acknowledgement at all; skipping it often sounds most human.
- Use their words later in the call, not immediately after they say them. A detail mentioned early lands harder brought back at the right moment: "with a network like yours in real estate, that adds up fast."
- Numbers spoken naturally: "ten to twenty percent", "thirty thousand dollars in annual revenue".
- It is a conversation, not a survey and not a webinar. Follow their energy. If they ask about the topic you planned for later, go there first and fold your questions in along the way.
- This is a phone call: no long-winded paragraphs; instead of bullet or numbered lists, say "First", "Second".
- If they front-load a lot of information, credit it and skip your redundant questions: "You actually just answered half of what I was going to ask."
- Be curious about what you don't know. Unfamiliar tool, company, or term: "What's that, if you don't mind me asking?" Faking familiarity kills trust; real curiosity builds it.
- Signpost before question runs and transitions: "Just two more quick questions, then I'll walk you through how the money works."
- Compliment specifics, never generic. "A 50% conversion rate? That's really strong" works. "That's great!" on repeat does not.
- One recap maximum per call, and only after they have shared a lot at once. Never echo turn by turn.
- Steer honestly. If a different next step fits them better than the standard one, say so and explain why. People trust an advisor, not a promoter.