Troubleshooting — the agent misbehaved on a call
Read this when: a call went wrong and you're diagnosing which config change fixes it.
Recipes indexed by symptom; each links to the owning mechanics section.
Answer not detected (contact answered, goal not collected)
Detection contract: 02-dialogue §2.6.
- Goal name doesn't match the question. The name must be what a yes/no or value answer means.
"confirm registration status"doesn't match "Are you still expected to attend?" — rename to"attending". Look for the detection line in the call log:NLI Validation for goal "budget for senior care": … => neutral— aneutraloutcome with a sensible answer means the name (or message) is off. - A message variant doesn't match the name. Every variant must ask for the named value; a broader name than the question (or vice versa) turns valid answers neutral.
- Negative question. "Are you sure you do not want…" confuses detection and contacts. Rephrase positively (02 §2.9).
- Implied answers. Add Pick this choice when statements (choice
validation_prompt) for replies that imply an answer without stating it — one statement per line, never "A or B" in one (02 §2.5). - Contact answered during the interruption. If the explicit question opens a longer message, mark it with
explicit_partso an early answer counts (02 §2.6).
Wrong choice detected / false positives on choices
- Escalate the goal to
detection_model: "llm_function"and add a clarifying Field description (02 §2.6). - Give each choice a Pick this choice when statement that says precisely what it means (02 §2.5).
Goal started unexpectedly
Start rules: 01-flow §1.2–01 §1.4.
- Reactive-only goal missing
proactive: false— it also starts in document order. - An event tool's
triggerfired under conditions you didn't intend — check itsconditions. - A trigger phrase is too global. Scope it: "Active during: Only during ‹parent›" (
trigger_scope), or add counterexamples.
Agent went off script
- Nothing left to do — the script completed. Add a final persisting instructions goal (
repeat: true) that stays with the contact answering questions until hang-up (02 §2.2). - Every goal blocked by conditions — verify condition fields reference existing goal/variable names and that some goal is eligible on every path (01 §1.3).
- Server-side error — look for an error in the turn's behavior data before blaming the config.
Agent didn't resume the script after a detour
Detours: 01-flow §1.7.
- If the detour goal exists only to answer a question, delete it and use a response instead (02 §2.8).
- If the detour must stay a goal, either give it "return to where the call left off" (
repeat_mode: "passive", 01 §1.6) or move it to the top of the script (withproactive: false) so the post-detour rescan finds the right continuation.
Agent repeats itself / stacks acknowledgements
- Messages must never open with an acknowledgement — the engine prepends one. Move "Great!" into the previous goal's
acknowledge(02 §2.3). - On exits, set "disable lead-ins" (
exclusive_message) so nothing is glued on (02 §2.1).
Transfer failed / no child call
Contract: flows/hot-transfer.md.
from_numberset without the any-caller-id capability enabled — remove it or confirm the account has it.- The transfer
agentid doesn't resolve, or the two agents don't share a telephony account. - The transfer goal isn't
uninterruptible— an interruption killed the external process.
Call opened wrong (skipped intro, wrong verification)
See 05-call-start-and-built-ins §5.1. To skip speaker verification deliberately, disable the built-in via goals_update (and usually the gatekeeper-transfer built-in with it):
"goals_update": {
"speaker verification": { "enabled": false },
"transfer to customer": { "enabled": false }
}
The builder's Call opening panel writes the same pair when verification is removed, and additionally clears the related knobs (%speaker_verification_*%, %transfer_opening%, %human_message%, %allow_speak_on_behalf%) and sets %inbound_ask_for_name%: "no" — the clears are hygiene, only the goals_update pair changes engine behavior. This enabled switch is the only goals_update the opening built-ins take (05 §5.1).
Specific words keep being mis-transcribed
Add them to custom_vocabulary — see lookups/transcription.md.