Agents
Agents are the core resource in Voicebip. Each agent is an AI persona that owns phone numbers and handles voice calls, SMS, and WhatsApp conversations.
Create an Agent
Parameters
List Agents
Update an Agent
Delete an Agent
Agent ID Format
agt_{WORKSPACE_PREFIX}_{nanoid(12)} — Example: agt_PAEZ_njcfm2kycpjs
Agent Playground
Test your agent’s prompt with text chat before making live calls:
The playground uses the agent’s configured system prompt, AI provider, and model. Pass previous turns in history to maintain conversation context.
Tool Calling (Function Calling)
Agents can invoke tools during voice calls. When the AI decides to call a tool, the voice pipeline executes it and feeds the result back to the AI before generating the spoken response.
Built-in Tools
Custom Tools
Custom tools are dispatched to your agent’s webhook URL as a POST request:
Return a JSON response with the tool result. The AI receives this and generates its spoken response.
Configuring Tools
Set tool_definitions when creating or updating an agent:
The format follows the OpenAI function calling schema. The hang_up tool is enabled by default in the dashboard.
Recording
Call recording requires two gates to be open: recording must be enabled at the workspace level, and then separately enabled on each agent.
Step 1 — Enable recording for your workspace
Recording availability and pricing depends on your billing tier:
Enable it workspace-wide:
Returns 400 RESOURCE_NOT_AVAILABLE_ON_TIER on Starter. Disabling is unconditional on all tiers.
Step 2 — Enable recording on the agent
Once workspace recording is on, flip the flag per agent:
Both flags must be true for a call to be recorded. Either flag being false suppresses recording.
Consent Prompt
By default (consent_required: true) Voicebip plays a consent prompt at the start of every recorded call:
“This call may be recorded for quality purposes. Press 1 to continue, or press 2 to opt out of recording.”
- DTMF
1— consent granted, recording starts - DTMF
2— caller opts out, call continues without recording - No input within 12 seconds — defaults to no recording
To disable the prompt and record immediately without asking:
Setting consent_required to false means you are recording callers without an in-call prompt. You must have an independent legal basis (e.g. prior written consent, a pre-call disclosure, or a regulatory exemption) under the Nigeria Data Protection Regulation (NDPR) before doing this. Every toggle is recorded in the audit log.
Accessing Recordings
When a call is recorded the call.completed webhook payload includes a recording_url field. Use it to download the WAV file:
Recordings are retained for 30 days and then automatically deleted. See Recording Playback for range-request and browser-playback details.