Skip to main content
POST
Create agent

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

senderId
string
required

Body

application/json
name
string
required
Maximum string length: 100
provider
enum<string>
required

LLM provider for the AI agent.

Available options:
openai,
anthropic,
google,
mistral,
zavu
model
string
required
systemPrompt
string
required
Maximum string length: 10000
apiKey
string

API key for the LLM provider. Required unless provider is 'zavu'.

contextWindowMessages
integer
default:10
Required range: 1 <= x <= 50
includeContactMetadata
boolean
default:true
maxTokens
integer
Required range: 1 <= x <= 4096
temperature
number
Required range: 0 <= x <= 2
triggerOnChannels
string[]
triggerOnMessageTypes
string[]
voice
object

Voice Agent configuration. Enable this to let the agent answer and place phone calls with Zavu's managed voice pipeline. Requires the Voice Agents feature to be enabled for your team.

Response

Agent created.

agent
object
required

AI Agent configuration for a sender.