This endpoint creates conversations and initiates outbound calls via telephony provider (Plivo or Twilio) to specified phone numbers using your configured AI agent. You can initiate single calls or bulk calls by providing multiple phone numbers.
The ID of the AI agent to use for the call. The agent must be owned by the API key holder and properly configured with LLM, TTS, and STT providers.Example: 68ea2517dbb84c09bae1ba0a
Array of call parameter objects. Each object represents one outbound call to
initiate. Each item should have mobile_number (string, required) in E.164
format and optional metadata object.
Human-readable message describing the result: Outbound calls initiated successfully
The API initiates calls asynchronously. Use webhooks or poll the Get
Conversation endpoint with the
conversation ID to track call status and retrieve transcripts after
completion.
Use Metadata Effectively: Include relevant customer information in the metadata field. Your agent can access this data during the conversation for personalization.
Batch Processing: For bulk calls, process in batches of 50-100 numbers to
manage rate limits and monitor results effectively.
Error Handling: Always check individual status in the results array, as
some calls may succeed while others fail.
Track Conversation IDs: Store the returned conversation_id for each call
to later retrieve transcripts and analysis using the Get
Conversation endpoint.