---
title: "Show your customers which teams and agents drive usage"
url: https://getlago.com/blog/show-your-customers-which-teams-and-agents-drive-usage
description: "Give customers usage attribution by team, user and AI agent inside your product, with Lago handling the attribution backend."
authors: ["Anh-Tho Chuong"]
tags: ["Product"]
published: 2026-12-01
reading_time_minutes: 3
---

# Show your customers which teams and agents drive usage

AI feels like an open bar until the bill arrives. Was it a new team, an agent, or your API powering a new system or feature? Your customer's budget owner or CFO needs to understand the increase before approving more spend. Helping them feel in control of that spend can make them more comfortable using more of your product.

Lago Governance gives you built-in usage attribution to show customers what's driving their spend, inside your product. Define the teams, users, agents or systems you want to track and tag your existing usage events. Lago provides the breakdown and roll-ups in its dashboard and through the API, so your engineers can offer that visibility without building the attribution backend. [Governance overview](https://getlago.com/docs/guide/governance/overview)

### Help your customers make the case for more budget

Suppose you compare two matching 30-day periods for one billable metric. These figures are hypothetical:

![Illustrative data: total usage rises from 100,000 to 200,000 units. Research rises from 40,000 to 120,000, accounting for 80% of the increase. Support and unattributed usage each rise by 10,000.](https://getlago.com/blog/images/governance-usage-attribution.webp)

| Department | Previous period, units | Current period, units | Increase |
| --- | --- | --- | --- |
| Research | 40,000 | 120,000 | 80,000 |
| Support | 50,000 | 60,000 | 10,000 |
| No department | 10,000 | 20,000 | 10,000 |
| Total | 100,000 | 200,000 | 100,000 |

Research accounts for 80% of the increase. Your customer can investigate which teams and agents drove it, identify useful work and address waste. When they ask for more budget, they have something concrete to show their CFO.

A new team may need a larger allowance because it is getting useful work done. An agent may be repeating a task unnecessarily. An integration may have started processing a new category of requests.

Usage without a department tag stays visible, so missing labels don't hide part of the total. Here, the “No department” row keeps 20,000 units in view. Lago bills that usage as usual.

### Put the explanation inside your product

Bring the breakdown into your own usage page through Lago's API. Your customers can investigate an increase themselves, while your support team can inspect the same subscription in Lago. Lago handles attribution and aggregation; your engineers build the experience that fits your product. [Query attributed usage](https://getlago.com/docs/guide/governance/query)

A department → team → user hierarchy lets an admin follow usage through their organization. Flat dimensions, such as agents or API keys, provide another way to inspect the same activity. A shared agent can work for several teams; it doesn't have to belong permanently to one branch of the org chart.

Your team can expand Research in Lago, inspect Platform, and look at the agents used within that team. The API lets you retrieve the subscription's breakdown by entity and filter it by a parent, such as the teams within Research.

*[Watch the full Governance demo on YouTube](https://www.youtube.com/watch?v=82Lr5B56aVw)*

### Add attribution to your existing usage events

Configure the entities in Lago and specify which event properties identify them. For example, a token-usage event could carry these properties:

```json
{
  "tokens": 4200,
  "department_id": "research",
  "team_id": "platform",
  "user_id": "user_17",
  "agent_id": "code_review",
  "system_id": "internal_portal"
}
```

This is an illustrative properties fragment, with `tokens` as the metric's sum field and the other keys configured for attribution. The same event records consumption and the context needed to explain it.

Include the full department, team and user chain on each usage event, so the breakdown reflects who was responsible for that request, including when users or agents work across teams. Your application supplies those identifiers on every event; Lago doesn't infer a user's team from an earlier event. [Send attributed events](https://getlago.com/docs/guide/governance/sending-events)

**Implementation note:** Attribution starts with new events after Governance and the relevant keys are enabled; earlier events aren't backfilled. Duplicate events are billed once but can briefly appear twice in attribution while their copies merge. [Event behavior](https://getlago.com/docs/guide/governance/sending-events)

**Current coverage:** Governance supports non-recurring COUNT and SUM metrics, with queries covering up to 31 days. Standard charges can be shown as amounts; other charge models return units. Amounts exclude coupons, credits, minimums and taxes, so label them as usage charges rather than the final invoice. These are customer charges, distinct from your model-provider costs. Governance provides reporting; per-team or per-user request blocking remains an application responsibility. [Query scope](https://getlago.com/docs/guide/governance/query) · [Enforcement scope](https://getlago.com/docs/guide/governance/overview)

When the CFO asks where the extra budget will go, your customer has a breakdown they can use to explain it. The more in control your customers feel about their spend, the more comfortable they are using more of your product.

[Request access to Lago Governance](mailto:hello@getlago.com).
