Analytics & Coach
Get Agent Performance
Retrieve performance metrics for human or AI agents
GET
/
analytics
/
agents
/
{agent_id}
/
performance
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"
}
}
Coming Soon - Track and analyze the performance of your AI assistants and human agents. This endpoint will provide detailed metrics on call handling, customer satisfaction, and adherence to best practices.
Request
Agent identifier. Use
all for aggregate metrics across all agents.Start date for performance period (YYYY-MM-DD)
End date for performance period (YYYY-MM-DD)
Include comparison with previous period
Include sample call transcripts for quality review
Filter specific metrics:
all- All metrics (default)efficiency- Call handling efficiencyquality- Quality scoresoutcomes- Business outcomes
Response
Performance metrics
Show properties
Show properties
Total calls handled
Average call duration in seconds
Percentage resolved on first call (0-1)
Booking success rate (0-1)
Average CSAT score (1-5)
Script/process adherence (0-1)
Rate of transfers to human (0-1)
Average hold/wait time in seconds
Top performing areas
Areas needing improvement
Suggested training or configuration changes
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"
}
}
⌘I
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"
}
}