Skip to main content

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.

  1. 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 — a neutral outcome with a sensible answer means the name (or message) is off.
  2. 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.
  3. Negative question. "Are you sure you do not want…" confuses detection and contacts. Rephrase positively (02 §2.9).
  4. 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).
  5. Contact answered during the interruption. If the explicit question opens a longer message, mark it with explicit_part so an early answer counts (02 §2.6).

Wrong choice detected / false positives on choices​

  1. Escalate the goal to detection_model: "llm_function" and add a clarifying Field description (02 §2.6).
  2. 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.

  1. Reactive-only goal missing proactive: false — it also starts in document order.
  2. An event tool's trigger fired under conditions you didn't intend — check its conditions.
  3. A trigger phrase is too global. Scope it: "Active during: Only during ‹parent›" (trigger_scope), or add counterexamples.

Agent went off script​

  1. 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).
  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).
  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.

  1. If the detour goal exists only to answer a question, delete it and use a response instead (02 §2.8).
  2. 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 (with proactive: false) so the post-detour rescan finds the right continuation.

Agent repeats itself / stacks acknowledgements​

  1. Messages must never open with an acknowledgement — the engine prepends one. Move "Great!" into the previous goal's acknowledge (02 §2.3).
  2. 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.

  1. from_number set without the any-caller-id capability enabled — remove it or confirm the account has it.
  2. The transfer agent id doesn't resolve, or the two agents don't share a telephony account.
  3. 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.