Skip to main content

05 — Call start & built-ins

5.1 Call start​

Every script opens with two pinned steps, which exist even when you don't author them. Each guarantees an outcome for everything after it:

  • Place a call (goal_type: "callStart") — dialing, and whatever answers before a person does: voicemail, call screeners, IVR menus (§5.2). Calls that continue past it were answered by a human.
  • Call opening (goal_type: "identifyContact") — the conversational opening: the self-introduction, contact verification (built-in name: speaker verification), gatekeeper handling, and contact discovery. Calls that continue past it reached the contact (contact_verified).

The intro line comes from %call_intro%: a very brief self-introduction and nothing else ("Hi, this is {%agent_name%} from {%company_name%}.") — never a question ("do you have a couple of minutes?"), and never anything about the contact or the reason for the call. It is spoken before verification, so the agent doesn't yet know who answered — contact statements leak information to a stranger, and the verification question is appended right after, so "You recently filled out a form about a new bike" becomes "…about a new bike. Am I speaking with…?". The reason for the call belongs after verification: %responses_reason_for_call% or the first flow goal. Once the intro is spoken, the built-ins mark %intro_spoken% so it isn't repeated.

Verification asks %speaker_verification_question% (default shape "Hi, this is {%agent_name%}. Am I speaking to {contact_name} {contact_last_name}?") — leave it unset: the built-in default is right for 99% of scripts; override only when genuinely necessary, never to restate the intro or add a second question. The post-verification acknowledgement comes from %speaker_verification_acknowledge% (…_callback variant on callback calls). Its collected value (yes/no) is readable in conditions as speaker verification; a wrong-number answer ends the call with the wrong_number result.

Neither goal takes configuration of its own: the goal_type values are display conventions with no engine meaning, and the builder rewrites the goal names to "Place a call" / "Call opening" on load. Everything about the opening is configured through variables; the top-level initial_goal key is platform-managed — never author it. Removing verification in the builder's Call opening panel writes goals_update enabled: false for speaker verification and transfer to customer (gatekeeper handling can't run without verification) — author the same shape yourself when asked to skip verification; recipe in lookups/troubleshooting.md.

Verification, contact discovery, and gatekeeper handling exist only as built-ins. When a script needs any of them, configure the built-in; never rebuild the behavior anywhere in the flow. That rules out an ask or approval goal, a subagent brief, an instruction, a trigger phrase, or a transition that checks who answered, asks for the right person, or works past a gatekeeper, even when it would collect something the built-ins don't. You can change only what the Call opening panel changes:

  • the variables in §5.1–§5.2 (wording, who to look for and why, gatekeeper copy);
  • enabled on speaker verification and transfer to customer in goals_update, to switch them off or back on.

Never put messages, conditions, or any other field in a goals_update entry for speaker verification, transfer to customer, or contact discovery. When the user wants opening behavior these settings can't produce, tell them the script can't do it. Don't approximate it with custom goals or overrides.

A script with a configured call start — outbound and inbound — carries the two pinned goals unconfigured and does all the work in default_metadata:

{
"default_metadata": {
"%call_intro%": "Hi, this is {%agent_name%} from {%company_name%}.",
"%speaker_verification_acknowledge%": "Great, glad I caught you!",
"%inbound_welcome_message%": "{%call_intro%}",
"%inbound_ask_for_name%": "yes"
},
"goals": [
{ "name": "Place a call", "goal_type": "callStart" },
{ "name": "Call opening", "goal_type": "identifyContact" },
{ "name": "...the rest of the flow" }
]
}

The %inbound_*% knobs apply only when %call_type% is phone_inbound: %inbound_welcome_message% answers the call — the builder defaults it to the literal {%call_intro%} so both directions share one intro; set real text only for a genuinely different inbound greeting. %inbound_ask_for_name% (default yes) asks who's calling, %inbound_ask_for_last_name% (default no) also collects the last name proactively.

5.2 Reaching the right person​

All built-in; configure through variables (04 §4.2). The first three belong to Place a call, under Reaching a person (something other than a person answered), the last two to Call opening, under Reaching the contact (a person answered, but not the contact):

  • Voicemail: detected automatically (beep detection + language cues); the agent leaves %voicemail_message% and the call ends with the voicemail result. %voicemail_disabled%: "yes" suppresses it (never blank the message itself); %voicemail_count% tracks how many were left — on later attempts the agent hangs up without leaving another.
  • Call screeners: handled by default; %call_screener_message% fixes the first response, %call_screener_prompt% adds custom instructions — leave both unset for the default handling.
  • IVR menus: navigated automatically toward %IVR_TARGET% (defaults to the contact's full name — set it to a department, "Billing or Finance", when that's the real target).
  • Gatekeepers: a human who isn't the contact. The agent opens with %transfer_opening% ("Hey there! I'm trying to reach {contact_name} {contact_last_name}") and the built-in transfer to customer goal works to be handed over; %human_message% is dictated when the contact isn't available (unset = no message). %allow_speak_on_behalf% (default yes) lets a gatekeeper who offers to speak for the contact continue the call — set "no" when only the contact may.
  • Contact discovery — finding the right person by role when none is known: setting %contact_discovery_ownership% turns it on (completes "I'm looking for the person who manages …"); %contact_discovery_reason% answers "what is this regarding?"; %contact_discovery_for_named_contacts%: "yes" applies discovery even when a contact name exists. %contact_discovered% reports that a new contact was found.

Override guidance: the defaults carry most scripts. Set %voicemail_message% when the campaign should leave voicemails, %IVR_TARGET% only for department-targeted calls, %contact_discovery_ownership% only for role-targeted calling, and the gatekeeper/screener copy knobs only when a call log shows the default phrasing failing.

5.3 Built-in goals​

Ship with every agent — never re-implement them; trigger them, tune them via variables, or override via goals_update. The opening built-ins (speaker verification, transfer to customer, contact discovery) are stricter: variables and the enabled switch only (§5.1). Three are copied into the flow, only by the goals that own them.

Built-inHandles
speaker verificationcontact verification during the call opening (§5.1)
hold"give me a second" — waits politely
leave a messagedictating %human_message% to a gatekeeper
transfer to customergatekeeper hand-over (§5.2)
contact discoveryfinding the right person (§5.2)
I have a questionthe contact wants to ask something
speak slower / speak faster / speak normally / volume up / volume down / can you hear mespeech-rate, volume, audibility requests
hang upgraceful hang-up — trigger it to end a call
hang up - not interestedrejection; after %max_not_interested% (default 2) "not interested" reactions, hangs up with call_result: "do_not_call"
voicemail / voicemail partial / voicemail IVR / voicemail blockedanswering machines (§5.2)
IVRmenu navigation toward %IVR_TARGET% (§5.2)
schedule-callbackbusy contact / callback request (§5.5)
confirm-email / confirm-phoneemail read-back / best-number check — reached via the contact_confirmation goal (§5.7)
scheduling-via-voice / scheduling-via-linkthe booking conversation — reached via the meeting_schedule goal (§5.4) / the texted-link variant; never enabled directly
  • Triggering: jump with a trigger action or reference them as transition targets, by exact name.
  • Overriding (goals_update, top-level map of goal name → partial goal): deep-merges fields into the named goal wherever it sits — the way to change built-ins' copy, conditions, or enabled. Dotted paths ("parent.child") reach nested goals; a leading dot (".name") matches root-level only. A goals_update may also sit inside a goal to patch its descendants.
  • Copying (copy_from): only inside the two blocks that own it, the meeting_schedule goal (§5.4) and a contact_confirmation goal's clones (§5.7). Never put copy_from on any other goal; the standalone-copy rule flags it.

Flow digest catalog​

5.4 Digest: meeting scheduling​

Book a meeting on the call. Add one meeting_schedule goal with copy_from: "scheduling-via-voice", exact skeleton, placed after qualification. Never author provider config (provider, meeting_link, …): the calendar_setup card saves it. Never add messages/value_type/fulfillment to it. → flows/meeting-scheduling.md

5.5 Digest: callbacks​

schedule-callback fires automatically when the contact is busy; trigger it explicitly on a "bad time" answer. Block with %callback_blocked%: "yes" during scheduling/after conversion. Callbacks respect transfer working hours. → flows/callbacks.md

5.6 Digest: hot transfer & forward​

Merge (new_call, child call + idle messages) vs. forward (forward_call, fire-and-forget). Precede the transfer with an explicit consent ask (in a subagent brief before its transfer exit, or an "agrees to transfer" approval goal in a structured script) unless the use case explicitly doesn't need one. The transfer goal must be uninterruptible and nests exactly one child goal — the generative "Hold while connecting" goal from the skeleton. Reuse an existing new_call.agent id or omit the field — never invent one. Omit phone_number too, and never invent a variable for it: the transfer_setup card saves the number it dials and the hot transfer agent that places it. from_number is required — set "{%agent_phone_number%}"; "{phone}" needs the any-caller-id capability. → flows/hot-transfer.md

5.7 Digest: email & phone confirmation​

Confirm the phone number and/or email. Add one contact_confirmation goal holding the exact { "name": "confirmed phone", "copy_from": "confirm-phone" } and/or { "name": "confirmed email", "copy_from": "confirm-email" } children, in that order. Never rename, extend, or add to the children. Results land in {confirmed phone} and {email}. Confirm the email only once per call, counting meeting scheduling. Plain value_type: "email" is enough only when nothing is ever sent to the address. → flows/email-phone-confirmation.md