AI
Get AI agent analytics
GET
/
v1
/
ai
/
agents
/
{agentID}
/
analytics
Get AI agent analytics
curl --request GET \
--url https://api.wazapin.com/v1/ai/agents/{agentID}/analyticsconst options = {method: 'GET'};
fetch('https://api.wazapin.com/v1/ai/agents/{agentID}/analytics', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/ai/agents/{agentID}/analytics"
response = requests.get(url)
print(response.text){
"agent_id": "<string>",
"avgFirstResponseSeconds": 123,
"blockedRate": 123,
"conversationsResolved": 123,
"csatScore": 123,
"handoffRate": 123,
"knowledge_source_count": 123,
"latest_knowledge_gaps": [
{
"agent_id": "<string>",
"created_at": "<string>",
"id": "<string>",
"query": "<string>",
"reason": "<string>",
"status": "<string>",
"suggested_content": "<string>",
"suggested_title": "<string>"
}
],
"open_issue_count": 123,
"open_knowledge_gap_count": 123,
"pass_rate": 123,
"passed_test_run_count": 123,
"playbook_count": 123,
"summary": "<string>",
"test_run_count": 123,
"last_deployment_at": "<string>",
"latestInspections": [
{
"run_id": "<string>",
"chunk_count": 123,
"chunk_ids": [
"<string>"
],
"created_at": "<string>",
"route": "<string>",
"skill_key": "<string>",
"tools": [
"<string>"
],
"validate_ok": true,
"validate_reason": "<string>"
}
],
"resolutionOutcomes": {}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}Path Parameters
Response
OK
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I
Get AI agent analytics
curl --request GET \
--url https://api.wazapin.com/v1/ai/agents/{agentID}/analyticsconst options = {method: 'GET'};
fetch('https://api.wazapin.com/v1/ai/agents/{agentID}/analytics', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/ai/agents/{agentID}/analytics"
response = requests.get(url)
print(response.text){
"agent_id": "<string>",
"avgFirstResponseSeconds": 123,
"blockedRate": 123,
"conversationsResolved": 123,
"csatScore": 123,
"handoffRate": 123,
"knowledge_source_count": 123,
"latest_knowledge_gaps": [
{
"agent_id": "<string>",
"created_at": "<string>",
"id": "<string>",
"query": "<string>",
"reason": "<string>",
"status": "<string>",
"suggested_content": "<string>",
"suggested_title": "<string>"
}
],
"open_issue_count": 123,
"open_knowledge_gap_count": 123,
"pass_rate": 123,
"passed_test_run_count": 123,
"playbook_count": 123,
"summary": "<string>",
"test_run_count": 123,
"last_deployment_at": "<string>",
"latestInspections": [
{
"run_id": "<string>",
"chunk_count": 123,
"chunk_ids": [
"<string>"
],
"created_at": "<string>",
"route": "<string>",
"skill_key": "<string>",
"tools": [
"<string>"
],
"validate_ok": true,
"validate_reason": "<string>"
}
],
"resolutionOutcomes": {}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}