Generate a call script for one contact
POST /voice/call-scripts/generate
SPENDS CREDITS. A persona-driven script, retrieving from the agent’s knowledge and its memory of the contact. Nothing is called or sent.
Authorizations
Parameters
Header Parameters
Request Body required
Voice CallScriptGenerateRequest, without org_id / agent_settings.
object
The agent whose persona and knowledge shape the script.
Professional, casual, cold_call, follow_up, demo or closing.
The contact the call is for; drives memory retrieval.
What the call is about.
Openai: gpt-4o or gpt-4o-mini. anthropic: claude-sonnet-4-6, claude-haiku-4-5-20251001 or claude-opus-4-6. Voice rejects any other pairing with a 422.
LLM provider.
Responses
200
Successful Response
object
One voice object - a collection, an agent, a route, a chat.
Open-shaped: voice adds fields to these bodies on its own release cadence and a dropped-or-added key must not be a 500 in this service.
object
object
Whether there are more pages
Items per page
Current page number (1-indexed)
Total number of items
422
Validation Error