> ## Documentation Index
> Fetch the complete documentation index at: https://koreai.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Analytics

Monitor agent performance and usage across AI for Work.

## Overview

Analytics provides a history of all administrative tasks through two views: the **Dashboard view** and the **Data view**. Switch between them using the toggle at the top right of the Analytics page.

The views display key performance metrics, trends, and reports, enabling you to gauge real-time usage and performance.

![dashboard](https://mintcdn.com/koreai/ygUA6EjwTsWgUwE7/ai-for-work/analytics/images/dashboard.png?fit=max\&auto=format\&n=ygUA6EjwTsWgUwE7\&q=85\&s=87a43e8adaddfd7c117f821e6a95bae5)

The **Usage** section of the Admin Console also includes the [Spend](#spend) page, which tracks LLM spend in dollars, and [Rate Limits](#rate-limits), which control how much users can spend.

***

## Dashboard View

The Dashboard view provides graphical reports on usage, performance, and feedback. At the top, you can see the total queries, total tokens, and total active users for the day.

![dashboard top view](https://mintcdn.com/koreai/ygUA6EjwTsWgUwE7/ai-for-work/analytics/images/dashboard-top-view.png?fit=max\&auto=format\&n=ygUA6EjwTsWgUwE7\&q=85\&s=b0bb71aa8ae62c9de1d3dbe5bb06508c)

The following reports are available:

| Report | Description |
| - | - |
| **Tokens Used** | Token usage trends across models |
| **Tokens Per Agent** | Token consumption broken down by agent |
| **Queries Per Agent** | Query volume per agent by type |
| **Top Agents** | Agents ranked by query volume |
| **Top Users** | Top 10 users by query count |
| **Users** | Unique users by platform (web vs. native) |
| **Average Response Time** | Average response time of the service |
| **Errors** | Queries with errors over time |
| **Feedback** | End-user feedback on responses |

All graphical reports support **Day**, **Week**, and **Month** views with left-right navigation for detailed metrics at each time point. Time averaging: 30-minute average (daily), 6-hour average (weekly), daily average (monthly).

***

### Tokens Used

Displays token usage trends across models.

![token used](https://mintcdn.com/koreai/ygUA6EjwTsWgUwE7/ai-for-work/analytics/images/token-used.png?fit=max\&auto=format\&n=ygUA6EjwTsWgUwE7\&q=85\&s=295f731a1a5dcaccd8238958c4ebf12d)

| Metric | Description |
| - | - |
| Model Name | The LLM model used |
| Total Tokens Used | Combined context and generation tokens |
| Context Tokens | Tokens in the input/context |
| Generation Tokens | Tokens in the response |
| Timestamp | Date and time of usage |

![token used detail](https://mintcdn.com/koreai/ygUA6EjwTsWgUwE7/ai-for-work/analytics/images/token-used-2.png?fit=max\&auto=format\&n=ygUA6EjwTsWgUwE7\&q=85\&s=25740f0ab0467532ff4c701e1bdba97a)

***

### Tokens Per Agent

Displays token consumption broken down by agent.

![tokens per agent](https://mintcdn.com/koreai/ygUA6EjwTsWgUwE7/ai-for-work/analytics/images/token-per-agent.png?fit=max\&auto=format\&n=ygUA6EjwTsWgUwE7\&q=85\&s=df2d5427d252aec982298385ed571a8c)

| Metric | Description |
| - | - |
| Agent Name | Name of the agent |
| Model Name | LLM model used by the agent |
| Total Token Count | Combined context and generation tokens |
| Generation Token Count | Tokens in the response |
| Context Token Count | Tokens in the input/context |

![tokens per agent detail](https://mintcdn.com/koreai/ygUA6EjwTsWgUwE7/ai-for-work/analytics/images/token-per-agent2.png?fit=max\&auto=format\&n=ygUA6EjwTsWgUwE7\&q=85\&s=3ce5f819ad5f0eb4dcb4290385d14129)

***

### Queries Per Agent

Displays query volume by agent, categorized by agent type: AI for Service, GPT, Data, Search, and Workflow.

![queries per agent](https://mintcdn.com/koreai/ygUA6EjwTsWgUwE7/ai-for-work/analytics/images/queries-per-agent.png?fit=max\&auto=format\&n=ygUA6EjwTsWgUwE7\&q=85\&s=3baebcbb71147af14e12acad6a021838)

| Metric | Description |
| - | - |
| Agent Name | Name of the agent |
| No. of Queries | Total queries handled |
| Timestamp | Date and time |

![queries per agent detail](https://mintcdn.com/koreai/ygUA6EjwTsWgUwE7/ai-for-work/analytics/images/queries-per-agent-2.png?fit=max\&auto=format\&n=ygUA6EjwTsWgUwE7\&q=85\&s=1d4c38b21e4fe95102ff89126bcea1b1)

***

### Top Agents

Displays agents ranked by query volume in descending order.

![top agents](https://mintcdn.com/koreai/ygUA6EjwTsWgUwE7/ai-for-work/analytics/images/top-agent.png?fit=max\&auto=format\&n=ygUA6EjwTsWgUwE7\&q=85\&s=27f9436125006efee72db302e10a38c3)

***

### Top Users

Displays the top 10 users by query count.

![top users](https://mintcdn.com/koreai/ygUA6EjwTsWgUwE7/ai-for-work/analytics/images/top-users.png?fit=max\&auto=format\&n=ygUA6EjwTsWgUwE7\&q=85\&s=fe4b07866a063d7eef9df630a766adf6)

***

### Users

Displays unique users interacting with the system, comparing web vs. native platforms.

![users](https://mintcdn.com/koreai/ygUA6EjwTsWgUwE7/ai-for-work/analytics/images/users.png?fit=max\&auto=format\&n=ygUA6EjwTsWgUwE7\&q=85\&s=d74f88f55cc4ad67d5182925cc437dc5)

| Metric | Description |
| - | - |
| Total Users | Unique user count |
| Channel | Web or native platform |
| Timestamp | Date and time |

![users detail](https://mintcdn.com/koreai/ygUA6EjwTsWgUwE7/ai-for-work/analytics/images/users-2.png?fit=max\&auto=format\&n=ygUA6EjwTsWgUwE7\&q=85\&s=4524056ecb6491d26daea17ba55692a7)

***

### Average Response Time

Displays the average response time of the service over time.

![average response time](https://mintcdn.com/koreai/ygUA6EjwTsWgUwE7/ai-for-work/analytics/images/average-response-time.png?fit=max\&auto=format\&n=ygUA6EjwTsWgUwE7\&q=85\&s=76621fdfa7eb62ce5f1444b465ee6553)

| Metric | Description |
| - | - |
| Average Response Time | Mean response time per period |
| Timestamp | Date and time |

![average response time detail](https://mintcdn.com/koreai/ygUA6EjwTsWgUwE7/ai-for-work/analytics/images/average-response-time-2.png?fit=max\&auto=format\&n=ygUA6EjwTsWgUwE7\&q=85\&s=0cf5a4d9a5514c326b8e28f00f39d2d0)

***

### Errors

Displays the number of queries that resulted in errors over time.

![errors](https://mintcdn.com/koreai/ygUA6EjwTsWgUwE7/ai-for-work/analytics/images/errors.png?fit=max\&auto=format\&n=ygUA6EjwTsWgUwE7\&q=85\&s=53d7110d2d528185c67a51912cd7813a)

| Metric | Description |
| - | - |
| Total Errors | Count of error responses |
| Timestamp | Date and time |

![errors detail](https://mintcdn.com/koreai/ygUA6EjwTsWgUwE7/ai-for-work/analytics/images/errors-2.png?fit=max\&auto=format\&n=ygUA6EjwTsWgUwE7\&q=85\&s=be9123bc998ce904dad39f96ff5eb5fe)

***

### Feedback

Displays end-user feedback on responses.

![feedback](https://mintcdn.com/koreai/ygUA6EjwTsWgUwE7/ai-for-work/analytics/images/feedback.png?fit=max\&auto=format\&n=ygUA6EjwTsWgUwE7\&q=85\&s=45a6899163ffbc616bb9ca31ab834f7d)

| Metric | Description |
| - | - |
| Feedback | Feedback type (positive/negative) |
| Queries | Associated query count |
| Timestamp | Date and time |

***

## Trace Logs

Trace logs list individual query records. Each record corresponds to one user utterance and captures how the platform processed it from request to response.

A trace log shows you:

* **Who asked and where** — the user, the channel, the thread, and whether the query used prior context.
* **What was asked** — the user utterance and the key query points extracted from it.
* **How the platform responded** — the agent type, response status, and response time.
* **What it cost** — the LLM model used and the request, response, and total token counts.
* **How the user rated it** — the feedback type and any feedback comments.
* **Where it searched** — for search queries, including Enterprise Search queries, the source, the search type, and the knowledge bases in scope.
* **What happened at each step** — the prompt sent to the model and the model's response for every background step, through the Execution Analyzer.

![data view](https://mintcdn.com/koreai/ygUA6EjwTsWgUwE7/ai-for-work/analytics/images/log-view.png?fit=max\&auto=format\&n=ygUA6EjwTsWgUwE7\&q=85\&s=9783e513641a941ad1215966156082ed)

| Column | Description |
| - | - |
| Request ID | Unique identifier for the request |
| Users | User who submitted the query |
| Questions | The user utterance |
| Overall Tokens | Total tokens consumed |
| Response Time | Time taken to respond |
| Agent Type | Type of agent that handled the query |
| Status | Response status |
| Timestamp | Date and time of the request |

Click **More** on any record to open a detailed view. At the top of the detail panel, you can see the **Response Status**, **Response Time**, and **Feedback Type** for that record.

***

### Record Details

**Request Information**

| Field | Description |
| - | - |
| Request ID | Unique identifier |
| User Name and Email | Identity of the user |
| User ID | System user identifier |
| Channel | Mobile or Web |
| Previous Context | Whether prior context was used (Yes/No) |
| Thread ID | Conversation thread identifier |
| Feedback Comments | User-submitted feedback |
| Timestamp | Date and time |

**Query Details**

| Field | Description |
| - | - |
| Question | The user utterance |
| Query Points | Key points extracted from the query |

**Search Details**

Trace logs record search details for every retrieval and search event, including Enterprise Search queries. Use these fields to analyze search queries and monitor Enterprise Search usage.

| Field | Description |
| - | - |
| Source | Where the search ran: attachments, a project, an agent, Enterprise Search, or an AI model |
| Search Type | The search platform that ran the query |
| Knowledge Base IDs | IDs of the knowledge bases in scope for the query |
| Knowledge Base Name | Name of the search application, followed by the knowledge bases in scope for the query |

**LLM Usage**

| Field | Description |
| - | - |
| Model | LLM model used |
| Total Tokens | Combined token count |
| Request Tokens | Context/input tokens |
| Response Tokens | Generation tokens |

**Execution Analyzer**

![execution analyzer](https://mintcdn.com/koreai/ygUA6EjwTsWgUwE7/ai-for-work/analytics/images/execution-analyzer.png?fit=max\&auto=format\&n=ygUA6EjwTsWgUwE7\&q=85\&s=c494edbdc7b3747587817859c3d05295)

Expand the **Execution Analyzer** to examine each background step. For each step, you can:

* View the exact prompt sent to the model
* Review the model's response
* Debug individual steps to identify issues

### Trace Log API

You can also retrieve trace log records programmatically through the Trace Log API. Each record the API returns includes response time, token consumption, the models used at each LLM step, the identified intent, and user feedback. Use the API to pull trace log data into your own reporting tools, data warehouses, or dashboards.

For the endpoint, parameters, and response reference, see [Trace Log API](https://koreai.mintlify.site/ai-for-work/administration/apis.md#trace-log-api).

***

## Feedback Management

Feedback Management gives administrators visibility into user feedback submitted across the platform, with configurable email notifications and scoped access by role.

**Navigation**: Admin Console → Usage → Feedback

### Accessing the Feedback Page

Access to the Feedback page is role-based:

| Role | Scope |
| - | - |
| **Account-level admins** with Usage access | All feedback across the account |
| **Workspace Owners** | Feedback scoped to their workspace only. The **Workspace** column is not shown. |
| **Agent-level access** | Feedback scoped to that specific agent only. The **Agent Name** column is not shown. |

### Feedback Detail View

Click any feedback entry to open its detail view. The view displays the associated trace log and the submitted feedback — type, category, and any additional comments.

### Notify Feedback

Click **Notify Feedback** on the Feedback page to configure email notifications. Select which feedback types should trigger notifications and add recipients. Recipients can be any valid email address or distribution list and do not need to belong to the account.

Notification scope follows the level at which it is configured — account-level covers all workspaces and agents, workspace-level covers all agents in that workspace, and agent-level covers only that specific agent.

**Email notifications include:** user email, query, agent name, workspace, feedback type, feedback category, and additional comments (if provided).

***

## Spend

The Spend page shows how much your account spends on LLM usage, in US dollars, for a selected month.

**Navigation**: Admin Console → Usage → Spend

Use the month selector at the top of the page to choose a month. The page opens on the current month, and every widget reflects the month you select. For the current month, the widgets show month-to-date figures.

| Widget | Description |
| - | - |
| **Total Spend** | Total dollars spent across the account in the selected month. |
| **Usage Over Time** | Spend across the selected month. Switch between the daily view, which shows one bar per day, and the monthly view, which shows one bar per week. |
| **Top Users** | Users ranked by spend, from highest to lowest. Select a user to open that user's trace logs for the selected month. Select **View more** to list every user in the account. |
| **Profiles** | The pool limit of each rate limit profile. Select a profile to open it on the Rate Limits page. This widget appears only when you configure rate limits. |

**How the platform calculates spend**

The platform calculates spend for each trace from the LLM model that the trace used and the tokens it consumed. It prices input and output tokens separately when the model prices them differently, and applies the current per-token rate for that model. Every dollar figure on the Spend and Rate Limits pages comes from this calculation.

> [!NOTE]
>
> Spend does not include Amazon Bedrock usage, embedding model usage, or container creation.

***

## Rate Limits

Rate Limits control LLM usage by dollar amount. Set a budget for the account, group users into profiles that share a pool, and limit how much each user can spend in a day, week, or month.

**Navigation**: Admin Console → Usage → Rate Limits

### Turn On Rate Limits

Use the toggle at the top of the Rate Limits page to turn rate limits on or off for the account.

| State | Effect |
| - | - |
| **On** | The platform enforces every profile pool limit and per-user limit. |
| **Off** | No limits apply, and the platform does not block any user. The platform keeps the consumption data for reporting. |

The top of the page also shows the total budget across all profiles, converted to a monthly amount. The total updates whenever you change a profile pool limit or its time window.

### Profiles

A profile groups users who share a pool limit.

* Every account includes an **All users** profile that you cannot delete. New users join **All users** unless you assign them to another profile.
* Create a custom profile with **New Profile**. Enter a name, set its pool limit and per-user limit, and add users.
* A user belongs to one profile at a time. Adding a user to a profile removes the user from the previous profile.

**Add users to a custom profile**

1. Open the profile and select the option to add users.
2. Search for users and select them, or import a file that lists the users. The popup shows the current profile of each user.
3. Select **Add**.

To remove a user from a custom profile, hover over the user and select the remove option. The user moves to **All users** and starts with zero usage for the current time window. The custom profile keeps a record of the user's earlier usage until the profile resets.

### Pool and Per-User Limits

| Limit | Behavior |
| - | - |
| **Profile Pool limit** | The total dollar amount that all users in the profile can spend per day, week, or month. When the pool runs out, the platform blocks every user in the profile. Current consumption appears below the setting. |
| **Per user limit** | Optional. Turn it on to set the dollar amount that each user can spend per day, week, or month. The platform blocks a user who reaches this limit or when the pool runs out, whichever comes first. When this limit is off, only the pool limit applies. |

Each profile sets its own time windows for the pool limit and the per-user limit. The platform measures consumption within calendar windows, not rolling windows:

| Window | Period |
| - | - |
| **Day** | 00:00 to 23:59 |
| **Week** | Sunday 00:00 to Saturday 23:59 |
| **Month** | First day to last day of the month |

The platform counts all consumption in the current window, even when you set a limit partway through it. When you change the time window, the platform converts the amount: a daily amount multiplies by 7 for a week and by 30 for a month, and the reverse applies when you shorten the window. You cannot set a limit to zero.

**Confirmations and warnings**

The platform asks you to confirm changes that affect users immediately, including when you:

* Change a daily limit to a weekly or monthly limit, which increases the effective budget.
* Set a limit below the amount that users already spent in the current window.
* Set per-user limits that together exceed the pool, or a per-user limit larger than the whole pool.
* Use different time windows for the pool and the per-user limit.
* Turn off the per-user limit or turn off rate limits for the account.
* Delete a profile that has users. The users return to **All users**, and their limits change immediately.

### Monitor Usage

The **Usage** panel of a profile lists its users and their consumption for the current window. When the pool limit and the per-user limit use different time windows, the panel shows a consumption column for each window.

Select **View all user usage** to open the **Manage users usage** popup. The popup has a tab for each profile and an **All users** tab. The **All users** tab lists every user in the account with a **Profile** column. Select a user in any tab to open that user's trace logs for the applicable time window.

### Add Extra Budget

When a user reaches the per-user limit, you can add extra budget from that user's row.

* The extra amount applies to the current time window only. At the next window boundary, the limit returns to the configured amount.
* You can add extra budget more than once in the same window. The amounts add up.
* The user can send requests again immediately, as long as the profile pool has budget left. If the pool is also exhausted, the platform tells you that the extra budget does not unblock the user.

### End-User Experience

**Usage alerts**: When users cross 50%, 75%, 90%, and 95% of their limit, an alert appears below the compose bar. Users can dismiss the alert, and it reappears after a page refresh or in a new session.

**Usage screen**: Users can view their own usage at any time. The screen shows:

* Personal consumption for the configured time window and when it resets. Users see their consumption even when no per-user limit applies.
* The profile pool total, the pool consumption, and when the pool resets.
* A bar graph of consumption, with a daily view for the last 30 days and a weekly view for the current month.
* Spend by agent for the month, with the top 10 agents and a **View all** option.

**When a limit blocks a user**: The message states which limit the user reached, the shared profile pool or the personal per-user limit, the time window, and when access resets. Blocked users cannot send new requests but can still open their existing conversations and their usage screen.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.