{
"eventId": "evt_01234567890abcdef",
"eventType": "agent.created",
"payload": {
"id": "agent_1234567890abcdef",
"name": "Customer Support Agent",
"workspaceId": "ws_1234567890abcdef",
"userId": "user_1234567890abcdef",
"systemPrompt": "You are a helpful customer support assistant. Always be polite and professional when helping customers with their inquiries.",
"initiationMessage": "Hello! Welcome to our customer support. How can I assist you today?",
"initiationType": "AI Speaks First - Dynamic",
"endCallEnabled": true,
"endCallDescription": "Thank you for contacting us. Have a great day!",
"endCallInterruptionWordThreshold": 10,
"endCallWaitingDurationMs": 10000,
"scorecardEvaluationSamplingPercentage": 5,
"createdAt": "2023-01-01T12:00:00.000Z",
"updatedAt": "2023-01-01T12:00:00.000Z",
"isArchived": false
}
}API Reference
Agentcreated
Triggered when a new AI agent is created in the workspace
WEBHOOK
agent.created
{
"eventId": "evt_01234567890abcdef",
"eventType": "agent.created",
"payload": {
"id": "agent_1234567890abcdef",
"name": "Customer Support Agent",
"workspaceId": "ws_1234567890abcdef",
"userId": "user_1234567890abcdef",
"systemPrompt": "You are a helpful customer support assistant. Always be polite and professional when helping customers with their inquiries.",
"initiationMessage": "Hello! Welcome to our customer support. How can I assist you today?",
"initiationType": "AI Speaks First - Dynamic",
"endCallEnabled": true,
"endCallDescription": "Thank you for contacting us. Have a great day!",
"endCallInterruptionWordThreshold": 10,
"endCallWaitingDurationMs": 10000,
"scorecardEvaluationSamplingPercentage": 5,
"createdAt": "2023-01-01T12:00:00.000Z",
"updatedAt": "2023-01-01T12:00:00.000Z",
"isArchived": false
}
}Body
application/json
Pattern:
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Allowed value:
"agent.created"Show child attributes
Show child attributes
Response
200
Webhook received successfully
⌘I