Process incoming voice calls with AI assistant
curl -X POST https://api.avoca.ai/v1/responder/webhook \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Workspace-ID: YOUR_WORKSPACE_ID" \
-H "Content-Type: application/json" \
-d '{
"message": {
"type": "end-of-call-report",
"call": {
"id": "call_abc123",
"customer": {
"number": "+13105551234",
"name": "John Smith"
},
"duration": 245,
"type": "inboundPhoneCall"
},
"transcript": "Agent: Thank you for calling ABC Plumbing, how can I help you? Customer: Hi, my water heater is not working...",
"summary": "Customer needs water heater repair. No hot water since yesterday.",
"recordingUrl": "https://recordings.avoca.ai/call_abc123.mp3",
"analysis": {
"callReason": "water_heater_repair",
"sentiment": "neutral",
"bookingIntent": true,
"urgency": "standard"
}
}
}'
{
"success": true,
"message": "Call data processed successfully",
"data": {
"callId": "avoca_call_xyz789",
"appointmentId": "appt_def456",
"ticketId": "12345678"
}
}
Show properties
end-of-call-reportcurl -X POST https://api.avoca.ai/v1/responder/webhook \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Workspace-ID: YOUR_WORKSPACE_ID" \
-H "Content-Type: application/json" \
-d '{
"message": {
"type": "end-of-call-report",
"call": {
"id": "call_abc123",
"customer": {
"number": "+13105551234",
"name": "John Smith"
},
"duration": 245,
"type": "inboundPhoneCall"
},
"transcript": "Agent: Thank you for calling ABC Plumbing, how can I help you? Customer: Hi, my water heater is not working...",
"summary": "Customer needs water heater repair. No hot water since yesterday.",
"recordingUrl": "https://recordings.avoca.ai/call_abc123.mp3",
"analysis": {
"callReason": "water_heater_repair",
"sentiment": "neutral",
"bookingIntent": true,
"urgency": "standard"
}
}
}'
{
"success": true,
"message": "Call data processed successfully",
"data": {
"callId": "avoca_call_xyz789",
"appointmentId": "appt_def456",
"ticketId": "12345678"
}
}
curl -X POST https://api.avoca.ai/v1/responder/webhook \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Workspace-ID: YOUR_WORKSPACE_ID" \
-H "Content-Type: application/json" \
-d '{
"message": {
"type": "end-of-call-report",
"call": {
"id": "call_abc123",
"customer": {
"number": "+13105551234",
"name": "John Smith"
},
"duration": 245,
"type": "inboundPhoneCall"
},
"transcript": "Agent: Thank you for calling ABC Plumbing, how can I help you? Customer: Hi, my water heater is not working...",
"summary": "Customer needs water heater repair. No hot water since yesterday.",
"recordingUrl": "https://recordings.avoca.ai/call_abc123.mp3",
"analysis": {
"callReason": "water_heater_repair",
"sentiment": "neutral",
"bookingIntent": true,
"urgency": "standard"
}
}
}'
{
"success": true,
"message": "Call data processed successfully",
"data": {
"callId": "avoca_call_xyz789",
"appointmentId": "appt_def456",
"ticketId": "12345678"
}
}