Start conversations using agents or direct call configuration.
Parameter | Description | Type | Example |
---|---|---|---|
templateContext | Variables for template substitution | Object | { customerName: "John" } |
initialMessages | Conversation history to start from | Array | Previous chat context |
metadata | Key-value pairs for tracking | Object | { source: "website" } |
medium | Communication protocol | Object | { twilio: {} } . |
joinTimeout | Time limit for user to join | String | "60s" |
maxDuration | Maximum call length | String | "1800s" |
recordingEnabled . | Whether to record audio | Boolean | true / false |
initialOutputMedium | Start with voice or text | String | "voice" / "text" |
firstSpeakerSettings | Initial conversation behavior | Object | { agent: { text: "..." } } |
experimentalSettings | Experimental settings for the call | Object | Varies |
priorCallId
, the new call inherits all properties from the prior call unless explicitly overridden. The prior call’s message history becomes the new call’s initialMessages
.