Skip to main content

Agents

An agent bundles a system prompt, greeting, voice, and call-handling behavior. Every number and call belongs to an agent.

Create an agent

Leaving voicemail

On outbound calls the pipeline detects a mailbox and leaves voicemail_message:
  • Greeting“You’ve reached…”, “12418174 is not available”, “leave a message after the beep”. The agent does not press keys. It waits for the beep, speaks the message, and hangs up.
  • Record-key menu“To disconnect, press 1. To record your message, press 2.” The agent presses 2, waits for the beep, then leaves the same message. If voicemail_message is unset it presses disconnect instead.
Include who you are, why you’re calling, and a callback number. Do not add “stay silent on automated messages” or “hang up if you hear press 1” to the system prompt — that fights the built-in handler.

Manage agents

Per-call overrides: when making a call you can pass system_prompt, initial_greeting, and voice_id to override the agent defaults for that single call.
See the Create Agent endpoint in the API Reference.