Documentation Index
Fetch the complete documentation index at: https://docs.vocobase.com/llms.txt
Use this file to discover all available pages before exploring further.
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 thesession.completed webhook all fire normally.
Default
New agents default tomax_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:| Time | What the bot does |
|---|---|
cap − 30s | Speaks a soft warning: “Just a heads up — we’re approaching the call time limit, so let’s wrap up shortly.” The conversation can continue. |
cap | Speaks the agent’s endCallMessage (or a default farewell when none is set), then ends the call through the normal end-of-call path — transcript, recording, billing and the session.completed webhook all flow as if it were a normal hangup. |
Setting the cap
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.
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 theffmpegdownmix 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
background_audio_id cleared).