Skip to Content

Conversation behavior

The greeting, what happens when a caller goes quiet, call limits, and picking up where a dropped call left off.

These settings shape the call rather than the agent's words: how it opens, how long it waits, and when it gives up.

They all live in the behavior object. Send it whole — it replaces the stored one, so resend the blocks you want to keep.

{
  "behavior": {
    "opening": {
      "greeting": {
        "mode": "fixed",
        "text": "Hello. How can I help today?"
      }
    },
    "inactivity": {
      "messages": [
        {
          "silence_seconds": 15,
          "message": {
            "mode": "fixed",
            "text": "Are you still there?"
          }
        }
      ]
    }
  }
}

Over the API: PATCH /v1/agents/{id}/draft.

Fixed greetings and inactivity lines are literal: template delimiters are rejected. For a personalized greeting, use generate mode.

The greeting

SettingDefaultWhat it does
opening.first_speakeragentcaller keeps the agent quiet until the caller speaks
opening.greeting.modegeneratefixed speaks your line word for word
opening.greeting.text—The fixed line. Spoken verbatim, so no variables
opening.greeting.instructions—What to say when generating. Variables allowed
opening.greeting.allow_interruptionstrueWhether the caller can cut in over the greeting
opening.greeting.delay_seconds0A pause before speaking

To greet someone by name, use generate mode with instructions — a fixed greeting is literal text.

When the caller goes quiet

inactivity.messages is a script that runs when the caller stops talking. Each step waits out its own silence, optionally says something, and optionally ends the call.

{
  "inactivity": {
    "messages": [
      {
        "silence_seconds": 15,
        "message": {
          "mode": "fixed",
          "text": "Are you still there?"
        }
      },
      {
        "silence_seconds": 15,
        "message": {
          "mode": "fixed",
          "text": "I will let you go. Call back any time."
        },
        "action": "soft_hangup"
      }
    ]
  }
}

action is none, soft_hangup (the caller speaking up cancels it), or hard_hangup. Up to 100 steps.

If the caller asks for a moment, use a wait instead — waited time doesn't count toward these steps.

Call limits

Two numbers end a call without saying anything:

SettingDefaultWhat it does
silence_timeout_secondsWorkspace default (usually 300)Ends the call if the agent has said nothing this long — a guard against a stuck call. 0 turns it off
max_call_duration_secondsWorkspace cap, otherwise 600Hangs up this long after the call was answered. 0 removes the limit

Caller silence is handled by inactivity messages above, not by these.

Remembering callers

If the caller matches a contact, the agent can pick up from what you already know about them.

SettingDefaultWhat it does
memory.inject_enabledfalseGive the agent the contact's saved memory at the start of the call
memory.write_enabledfalseSave what this call learned back to the contact

Picking up a dropped call

Turn it on with a window:

{
  "resume": {
    "enabled": true,
    "window_minutes": 30
  }
}

If the same number calls back within the window, the agent continues the previous conversation instead of starting over: it loads the earlier transcript as context and carries on, overriding the greeting for that call. Up to three prior calls can be chained, each within the configured window of 1–120 minutes.

Browser and test calls, calls without a caller number, and purged transcripts don't resume.

Other settings

  • temperature — 0 to 2, or leave it unset for the model's default.
  • connection.wait_for_participant_timeout_seconds — how long to wait for the other party to appear. Defaults to 60; 0 waits indefinitely.
  • recording.enabled — override the recording policy for this agent.
  • gender_detection.enabled — off by default and available only on the speech-model pipeline. This infers a sensitive attribute from the caller's voice; leave it off unless you have a reviewed reason to use it.

See also

Speech & turn-taking · Transfers & call actions · Instructions & variables

On this page