Create an agent
Creates a new voice AI agent. The voice_id must be a voice ID from the voice catalog (see GET /agent/voices). Agent names must be unique per partner.
Authorizations
API key in format: rg_live_xxxx. Pass as a Bearer token in the Authorization header.
Body
Unique agent name.
50"Sales Assistant"
System prompt defining the agent's personality and behavior.
120000Voice ID from the catalog returned by GET /agent/voices. The language and gender are taken from the selected voice.
"b49e0d0f-2219-4425-a765-1efd32beb509"
Whether the agent handles inbound or outbound calls.
inbound, outbound Optional greeting spoken when a call connects.
500Per-agent toggle for carrier-side voicemail detection on supported outbound providers. Account-level provider support must also be enabled.
Per-agent toggle for phone screener handling on outbound calls. Requires voicemail_detection_enabled to be true and platform screener handling to be enabled.
Optional message used after a supported carrier detects voicemail. Pass null or an empty string to clear.
500Assign the agent to a specific project. Defaults to the default project if omitted.
Whether to record calls made with this agent.
Knowledge base search relevance threshold.
low, medium, high, null Include document summaries in KB search results.
Custom format template for KB search results.
2000Enable LLM post-processing of KB search results.
System prompt for LLM KB processing.
120000Master toggle for the end-call tool. When false, the agent cannot end calls on its own regardless of end_call_instructions.
Farewell line spoken before the bot hangs up. When null/empty, a platform default is used.
500Free-text natural-language instructions spliced into the system prompt under "When to end the call." Write your own conditions in plain English, e.g. "End the call when the caller says goodbye, has not spoken for an extended period, or asks to be removed from the list." When null/empty, the section is skipped entirely. Replaces the prior end_call_triggers enum array.
2000Master toggle for cold-transfer-to-human. transfer_number is required when true. When the agent transfers a call, Vocobase connects the caller to transfer_number. The session.completed webhook includes transfer metadata — see data.call.transferred.
E.164 number to transfer the call to. Required when transfer_enabled is true.
Announcement spoken before the transfer. When null/empty, a platform default is used.
500Free-text natural-language instructions spliced into the system prompt under "When to transfer." Write your own conditions in plain English. When null/empty, the section is skipped. Replaces the prior transfer_triggers enum array.
2000Controls whether the agent responds to caller silence using platform-managed idle settings. Defaults to true. When false, the bot will not ask if the caller is still there and will not end the call because of idle silence. Timeout and retry values are not configurable through V2.
Per-agent spoken acknowledgement while a tool call (e.g. search_knowledge_base) runs. New agents default to enabled with mode set to dynamic when this field is omitted. Pass null to opt the new agent out, or an object to customize.
Master switch for automatic post-call extraction. Defaults to true. When false, extraction is skipped after calls even if an extraction_config is later set (the config is preserved). The extraction schema itself is set via PUT /agent/{id} (extraction_config).
Hard cap on call duration in seconds. New agents default to 600 (10 minutes); pass null to disable the cap. Range 60-3600. At (cap - 30s) the bot speaks a soft "wrapping up" warning; at the cap it speaks the agent's farewell and gracefully ends the session through the standard end-of-call path.
60 <= x <= 3600Reference to a BackgroundAudio asset (see GET /agent/background-audio) the bot will mix under its TTS for the duration of the call.
Mixing volume for background_audio_id. Range 0.0-1.0. When null, the bot applies a default of 0.3.
0 <= x <= 1