Skip to main content
The Chat Analytics API provides direct access to analyze chat usage patterns, user engagement metrics, and export analytics data. These endpoints allow you to build custom analytics dashboards or integrate chat metrics into your existing reporting systems.

Key Features

  • Flexible Filtering: Filter by date ranges, users, groups, components, and AI models
  • Comprehensive Metrics: Get detailed usage statistics and engagement data
  • Natural Language Summaries: AI-generated insights about usage patterns
  • CSV Export: Export raw data for external analysis
  • Component-Specific Analysis: Analyze individual chat components

Analyze Chat Analytics

Get comprehensive analytics and user statistics for chat usage.

Parameters

componentId
string
Component ID to analyze
endDate
datetime
End date for analysis (ISO 8601 format)
groupIds
array
Array of group IDs to filter by
modelKey
string
AI model to filter by (e.g., “gpt-4.1-2025-04-14”)
organizationId
string
Organization ID to filter by
startDate
datetime
Start date for analysis (ISO 8601 format)
userId
string
User ID to filter by

Response Structure

The response includes comprehensive analytics data with message grading metrics:
  • Message Grading Scores (1-4 scale):
    • Prompting Score: Measures how well users craft their prompts and questions
    • Responsibility Score: Measures how responsibly users interact with the AI
    • Score distributions show the count of messages at each score level

Export Analytics Data

Export chat analytics data as CSV for external analysis or reporting.

Get Component Analytics

Get analytics for a specific chat component.