Retrieve performance metrics for human or AI agents
curl -X GET "https://api.avoca.ai/v1/analytics/agents/asst_abc123/performance?start_date=2024-01-01&end_date=2024-01-31" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Workspace-ID: YOUR_WORKSPACE_ID"
{
"data": {
"agent": {
"id": "asst_abc123",
"name": "Emily (AI Assistant)",
"type": "ai",
"created_date": "2023-10-15"
},
"metrics": {
"calls_handled": 892,
"average_handle_time": 145,
"first_call_resolution": 0.87,
"booking_conversion": 0.48,
"customer_satisfaction": 4.6,
"adherence_score": 0.94,
"transfer_rate": 0.06,
"hold_time": 0
},
"evaluation_categories": [
{
"category": "Greeting & Introduction",
"score": 0.98,
"weight": 0.15,
"feedback": "Excellent, maintains consistent friendly tone"
},
{
"category": "Needs Assessment",
"score": 0.92,
"weight": 0.25,
"feedback": "Good probing questions, could gather more details on urgency"
},
{
"category": "Solution Offering",
"score": 0.90,
"weight": 0.20,
"feedback": "Clear explanations, occasionally misses upsell opportunities"
},
{
"category": "Scheduling & Booking",
"score": 0.89,
"weight": 0.25,
"feedback": "Efficient booking process, improve handling of complex schedules"
},
{
"category": "Closing & Confirmation",
"score": 0.95,
"weight": 0.15,
"feedback": "Strong closing, always confirms details"
}
],
"strengths": [
"Consistent friendly demeanor",
"High first-call resolution rate",
"Excellent adherence to scripts",
"Low transfer rate"
],
"improvement_areas": [
"Handling multi-service requests",
"Identifying emergency situations faster",
"Upselling complementary services"
],
"comparison": {
"calls_handled_change": 0.15,
"booking_conversion_change": 0.03,
"satisfaction_change": 0.1
},
"sample_interactions": [
{
"call_id": "call_sample_123",
"date": "2024-01-28",
"duration": 156,
"outcome": "appointment_scheduled",
"score": 0.95,
"highlights": [
"Quickly identified water heater issue",
"Offered same-day emergency service",
"Confirmed all details accurately"
]
}
],
"training_recommendations": [
"Add more emergency scenario training data",
"Implement dynamic pricing awareness for peak times",
"Enhance multi-service booking capabilities"
]
},
"meta": {
"request_id": "req_stu901",
"timestamp": "2024-02-01T10:00:00Z"
}
}
all for aggregate metrics across all agents.all - All metrics (default)efficiency - Call handling efficiencyquality - Quality scoresoutcomes - Business outcomesShow properties
curl -X GET "https://api.avoca.ai/v1/analytics/agents/asst_abc123/performance?start_date=2024-01-01&end_date=2024-01-31" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Workspace-ID: YOUR_WORKSPACE_ID"
{
"data": {
"agent": {
"id": "asst_abc123",
"name": "Emily (AI Assistant)",
"type": "ai",
"created_date": "2023-10-15"
},
"metrics": {
"calls_handled": 892,
"average_handle_time": 145,
"first_call_resolution": 0.87,
"booking_conversion": 0.48,
"customer_satisfaction": 4.6,
"adherence_score": 0.94,
"transfer_rate": 0.06,
"hold_time": 0
},
"evaluation_categories": [
{
"category": "Greeting & Introduction",
"score": 0.98,
"weight": 0.15,
"feedback": "Excellent, maintains consistent friendly tone"
},
{
"category": "Needs Assessment",
"score": 0.92,
"weight": 0.25,
"feedback": "Good probing questions, could gather more details on urgency"
},
{
"category": "Solution Offering",
"score": 0.90,
"weight": 0.20,
"feedback": "Clear explanations, occasionally misses upsell opportunities"
},
{
"category": "Scheduling & Booking",
"score": 0.89,
"weight": 0.25,
"feedback": "Efficient booking process, improve handling of complex schedules"
},
{
"category": "Closing & Confirmation",
"score": 0.95,
"weight": 0.15,
"feedback": "Strong closing, always confirms details"
}
],
"strengths": [
"Consistent friendly demeanor",
"High first-call resolution rate",
"Excellent adherence to scripts",
"Low transfer rate"
],
"improvement_areas": [
"Handling multi-service requests",
"Identifying emergency situations faster",
"Upselling complementary services"
],
"comparison": {
"calls_handled_change": 0.15,
"booking_conversion_change": 0.03,
"satisfaction_change": 0.1
},
"sample_interactions": [
{
"call_id": "call_sample_123",
"date": "2024-01-28",
"duration": 156,
"outcome": "appointment_scheduled",
"score": 0.95,
"highlights": [
"Quickly identified water heater issue",
"Offered same-day emergency service",
"Confirmed all details accurately"
]
}
],
"training_recommendations": [
"Add more emergency scenario training data",
"Implement dynamic pricing awareness for peak times",
"Enhance multi-service booking capabilities"
]
},
"meta": {
"request_id": "req_stu901",
"timestamp": "2024-02-01T10:00:00Z"
}
}
curl -X GET "https://api.avoca.ai/v1/analytics/agents/asst_abc123/performance?start_date=2024-01-01&end_date=2024-01-31" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Workspace-ID: YOUR_WORKSPACE_ID"
{
"data": {
"agent": {
"id": "asst_abc123",
"name": "Emily (AI Assistant)",
"type": "ai",
"created_date": "2023-10-15"
},
"metrics": {
"calls_handled": 892,
"average_handle_time": 145,
"first_call_resolution": 0.87,
"booking_conversion": 0.48,
"customer_satisfaction": 4.6,
"adherence_score": 0.94,
"transfer_rate": 0.06,
"hold_time": 0
},
"evaluation_categories": [
{
"category": "Greeting & Introduction",
"score": 0.98,
"weight": 0.15,
"feedback": "Excellent, maintains consistent friendly tone"
},
{
"category": "Needs Assessment",
"score": 0.92,
"weight": 0.25,
"feedback": "Good probing questions, could gather more details on urgency"
},
{
"category": "Solution Offering",
"score": 0.90,
"weight": 0.20,
"feedback": "Clear explanations, occasionally misses upsell opportunities"
},
{
"category": "Scheduling & Booking",
"score": 0.89,
"weight": 0.25,
"feedback": "Efficient booking process, improve handling of complex schedules"
},
{
"category": "Closing & Confirmation",
"score": 0.95,
"weight": 0.15,
"feedback": "Strong closing, always confirms details"
}
],
"strengths": [
"Consistent friendly demeanor",
"High first-call resolution rate",
"Excellent adherence to scripts",
"Low transfer rate"
],
"improvement_areas": [
"Handling multi-service requests",
"Identifying emergency situations faster",
"Upselling complementary services"
],
"comparison": {
"calls_handled_change": 0.15,
"booking_conversion_change": 0.03,
"satisfaction_change": 0.1
},
"sample_interactions": [
{
"call_id": "call_sample_123",
"date": "2024-01-28",
"duration": 156,
"outcome": "appointment_scheduled",
"score": 0.95,
"highlights": [
"Quickly identified water heater issue",
"Offered same-day emergency service",
"Confirmed all details accurately"
]
}
],
"training_recommendations": [
"Add more emergency scenario training data",
"Implement dynamic pricing awareness for peak times",
"Enhance multi-service booking capabilities"
]
},
"meta": {
"request_id": "req_stu901",
"timestamp": "2024-02-01T10:00:00Z"
}
}