Skip to main content

System insights performance

Overview​

The get_system_insights_performance function provides system-level performance insights and metrics. This endpoint aggregates key performance indicators across your AI agents and conversations. Use this endpoint to:

  • Monitor overall system health and performance
  • Track key performance indicators (KPIs) at scale
  • Generate executive-level performance dashboards

Quick start​

query SystemInsightsPerformance(
$accountId: uuid!
$deskIds: _uuid
$brainIds: _uuid
$startDate: timestamp
$endDate: timestamp
) {
rows: get_system_insights_performance(
args: {
account_id: $accountId
desk_ids: $deskIds
brain_parent_ids: $brainIds
start_time: $startDate
end_time: $endDate
}
) {
avg_csat_brain
csat_brain_count
goal_achieved_percentage
goal_achieved_count
goal_total_count
}
}

Variables:

{
"accountId": "991c12a1-cc58-4377-8e37-f72259e9dac1",
"startDate": "2024-01-01",
"endDate": "2024-01-31"
}

Parameters​

ParameterTypeDescription
accountIduuid!Account identifier (required)
deskIds_uuidFilter by desk IDs
brainIds_uuidFilter by AI agent IDs
startDatetimestampStart date (format: yyyy-mm-dd)
endDatetimestampEnd date (format: yyyy-mm-dd)

Response fields​

FieldTypeDescription
avg_csat_brainFloatAverage AI agent CSAT score
csat_brain_countIntNumber of sessions with an AI agent CSAT score
goal_achieved_percentageFloatPercentage of evaluated sessions that achieved the goal
goal_achieved_countIntNumber of sessions that achieved the goal
goal_total_countIntNumber of sessions with a goal evaluation

Common use cases​

Try it​

Loading GraphQL Playground...

Get monthly system performance:

{
"accountId": "991c12a1-cc58-4377-8e37-f72259e9dac1",
"startDate": "2024-01-01",
"endDate": "2024-01-31"
}

Example response​

{
"data": {
"rows": [
{
"avg_csat_brain": 4.2,
"csat_brain_count": 1250,
"goal_achieved_percentage": 78.5,
"goal_achieved_count": 9812,
"goal_total_count": 12500
}
]
}
}