Skip to main content

Call Duration & Background Audio

Two per-agent settings that shape the call’s outer envelope: a maximum call duration (graceful auto-end with farewell) and an ambient background audio track (mixed under the bot’s TTS for the duration of the call). Both are independent of each other and independent of the core agent prompt / voice / KB configuration.

Call duration cap

A hard cap on how long any single call can run. When the limit is reached, the bot speaks a farewell and ends the session through the standard end-of-call path so transcript, recording, billing and the session.completed webhook all fire normally.

Default

New agents default to max_call_duration_secs = 600 (10 minutes). You can override this between 60 and 3600 seconds (1 minute to 1 hour) per agent, or set it to null to disable the cap entirely. Existing agents created before this default landed may still hold null; opt them in by writing 600 via the agent update endpoint.

Behavior at the cap

The cap fires in two stages so the wind-down sounds natural:

Setting the cap

Set to null to disable:

Background audio

Ambient audio mixed under the bot’s TTS for the duration of the call (office chatter, café noise, white noise, etc.). Looped continuously, volume tunable per agent. Vocobase handles playback and format normalization automatically.

Asset model

Two visibility tiers:
  • Platform-curated (is_platform: true) — visible to every partner.
  • Partner uploads (owner_user_id: <yours>) — visible only to your account.
List both in one call:
Response:

Uploading your own asset

Two-step upload — bytes go directly to the presigned upload URL, then Vocobase validates the WAV header and marks the asset ready. Constraints (enforced server-side):
  • Format: WAV (RIFF/WAVE container, PCM or IEEE float).
  • Channels: must be mono (channels === 1). Stereo is rejected with an explicit error including the ffmpeg downmix command.
  • Size: ≤ 5 MB.
  • Duration: ≤ 5 minutes (loops anyway).

Attaching to an agent

background_audio_volume is 0.0-1.0. When null, the bot applies a default of 0.3.

Removing background audio from an agent

Deleting an asset you uploaded

Soft-deletes the asset. Any agents currently referencing it are automatically detached (background_audio_id cleared).