> For the complete documentation index, see [llms.txt](https://docs.maiagent.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.maiagent.ai/maiagent-user-guide/en/others/credits/credit-quota-scenarios.md).

# How the Three Quotas Work: Scenarios and FAQ

How member quotas, role quotas, and conversation platform quotas are calculated and told apart, walked through step by step with real numbers from a "Sales Department," plus answers to the most freque

The "Quota Allocation" tab has three types of quotas: <mark style="color:blue;">**Member Quotas**</mark>, <mark style="color:blue;">**Role Quotas**</mark>, and <mark style="color:blue;">**Conversation Platform Quotas**</mark>. This page uses a real example to explain how each is calculated, what the numbers on screen mean, and the difference people most often confuse: "Role Quotas" versus "Distribute from Role in Bulk."

{% hint style="info" %}
**The short version**

* **The three quotas are tracked separately and apply at the same time**: a single charge is recorded in every applicable ledger, and as soon as any one of them is used up, the next AI request is blocked.
* **Credits are deducted only once**: no matter how many ledgers record the charge, the actual Credits are deducted from the organization wallet only once. A quota is a "spending cap," not a separate wallet.
* **A role quota is one pool "shared" by the whole role**; **Distribute from Role in Bulk gives "each person" in the role their own personal quota**. They are different features.
  {% endhint %}

## Overview of the Three Quota Types <a href="#quota-types-overview" id="quota-types-overview"></a>

Go to <mark style="color:blue;">**Organization Settings**</mark> → <mark style="color:blue;">**Credits**</mark> → <mark style="color:blue;">**Quota Allocation**</mark>. The three subtabs at the top are the three quota types:

<figure><img src="https://1360999650-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6v6TNkkOQVfRYfcNirHL%2Fuploads%2Fgit-blob-b5776797d962c17a76fd1d2ff896a5e3f4367973%2Fquota-01-credits-quota-entry.png?alt=media" alt="The three subtabs of the Quota Allocation tab"><figcaption><p>Quota Allocation tab: three subtabs for Member Quotas, Role Quotas, and Conversation Platform Quotas</p></figcaption></figure>

|                                     | Member Quotas                                                                               | Role Quotas                                             | Conversation Platform Quotas                                     |
| ----------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------- | ---------------------------------------------------------------- |
| **One row represents**              | One member                                                                                  | One MaiAgent role                                       | One conversation platform (Web Chat, LINE, etc.)                 |
| **How the quota is used**           | Each person has **their own** share                                                         | All members in the role **share** one quota             | All visitor conversations on the platform **share** one quota    |
| **Number in the "Usage" column**    | How much this member has used                                                               | How much **all members in the role combined** have used | How much this conversation platform has used in total            |
| **Who is blocked when it runs out** | Only this member                                                                            | **All** members in the role                             | AI replies on this conversation platform                         |
| **How it is created**               | Distribute one by one, or <mark style="color:blue;">**Distribute from Role in Bulk**</mark> | Distribute one by one in the Role Quotas subtab         | Distribute one by one in the Conversation Platform Quotas subtab |

## The Most Commonly Confused Pair: "Role Quotas" vs. "Distribute from Role in Bulk" <a href="#role-quota-vs-batch-by-role" id="role-quota-vs-batch-by-role"></a>

Both names include "role," but they do completely different things:

|                                    | Distribute from Role in Bulk                                                                                                                                   | Role Quotas                                                                                                                                      |
| ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Location**                       | The <mark style="color:blue;">**Distribute from Role in Bulk**</mark> button at the top right of the <mark style="color:blue;">**Member Quotas**</mark> subtab | The <mark style="color:blue;">**Distribute Quota**</mark> button at the top right of the <mark style="color:blue;">**Role Quotas**</mark> subtab |
| **What it creates**                | **Personal quotas**: the system uses the role as a roster and creates **one member quota of the same amount for each member** in the role                      | **A role quota**: the whole role gets **just one quota**, shared by everyone                                                                     |
| **What entering 2,000 means**      | Each person gets 2,000                                                                                                                                         | The whole role gets 2,000 combined                                                                                                               |
| **Where the result appears**       | The <mark style="color:blue;">**Member Quotas**</mark> subtab, one row per member, each with its own numerator/denominator                                     | The <mark style="color:blue;">**Role Quotas**</mark> subtab, one row for the role                                                                |
| **Member statistics cards**        | Members who receive a quota move from "Unassigned" to <mark style="color:blue;">**Quota Assigned**</mark>                                                      | No effect on the statistics cards in the Member Quotas subtab                                                                                    |
| **Does it affect the other side?** | Does not create or modify role quotas                                                                                                                          | Does not create or modify member quotas                                                                                                          |

The personal quotas created by "Distribute from Role in Bulk" are **exactly the same** as those created by clicking <mark style="color:blue;">**Distribute Quota**</mark> one by one. They work the same way, and the Member Quotas list does not indicate which method was used to create them.

<figure><img src="https://1360999650-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6v6TNkkOQVfRYfcNirHL%2Fuploads%2Fgit-blob-29dca249cd77bc6035b363a2a016cd31241a0cc1%2Fcredit-quota-guide-batch-by-role.png?alt=media" alt="Distribute Quota from Role in Bulk dialog, indicating quotas will be distributed to 5 members of the Sales Department"><figcaption><p>Member Quotas → Distribute from Role in Bulk: the dialog says "Quotas will be distributed to 5 members in 'Sales Department'," meaning 5 personal quotas will be created</p></figcaption></figure>

<figure><img src="https://1360999650-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6v6TNkkOQVfRYfcNirHL%2Fuploads%2Fgit-blob-2d11408acca99e0df523d567bfe863ea20c1caec%2Fcredit-quota-guide-role-assign.png?alt=media" alt="Distribute Role Quota dialog"><figcaption><p>Role Quotas → Distribute Quota: creates just one quota for "Sales Department," shared by everyone</p></figcaption></figure>

## Scenario Example: A Sales Department of 5 People Using Both Quotas Together <a href="#sales-team-scenario" id="sales-team-scenario"></a>

A technology manufacturing company has a Sales Department with 5 members who regularly use MaiGPT to draft quotation emails and organize customer specification requirements. The administrator wants to achieve two things:

1. **Each person can use at most 2,000 Credits**, so that no single colleague uses too much
2. **The entire Sales Department can use at most 5,000 Credits combined**, to keep the department budget under control

So the administrator made two settings:

{% stepper %}
{% step %}

### Give each person a personal quota <a href="#scenario-step-member-quota" id="scenario-step-member-quota"></a>

In the <mark style="color:blue;">**Member Quotas**</mark> subtab, click <mark style="color:blue;">**Distribute from Role in Bulk**</mark>, select "Sales Department," enter 2,000 as the quota cap, and click <mark style="color:blue;">**Save**</mark>. The screen shows "Bulk distribution complete: 5 succeeded, 0 skipped, 0 failed," meaning each of the 5 members received a personal quota of 2,000.
{% endstep %}

{% step %}

### Set a department budget for the Sales Department <a href="#scenario-step-role-quota" id="scenario-step-role-quota"></a>

Switch to the <mark style="color:blue;">**Role Quotas**</mark> subtab, click <mark style="color:blue;">**Distribute Quota**</mark>, select the role "Sales Department," enter 5,000 as the quota cap, and click <mark style="color:blue;">**Save**</mark>.
{% endstep %}
{% endstepper %}

Next, one member of the Sales Department uses MaiGPT to draft a quotation email, which consumes 570.65 Credits.

### Numbers You See in the Role Quotas Subtab <a href="#scenario-role-tab" id="scenario-role-tab"></a>

In the <mark style="color:blue;">**Role Quotas**</mark> subtab, the usage on the "Sales Department" row is **570.65 / 5,000.00**: the numerator is the usage **summed across all members** of the Sales Department, and the denominator is the cap shared by the whole department.

<figure><img src="https://1360999650-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6v6TNkkOQVfRYfcNirHL%2Fuploads%2Fgit-blob-3775617867db1bf891817c6f6e861105cd3cbf98%2Fcredit-quota-guide-role-tab-usage.png?alt=media" alt="Role Quotas subtab: Sales Department usage 570.65 / 5,000.00"><figcaption><p>Role Quotas: the Sales Department row, where usage is the sum across all members (570.65 / 5,000.00)</p></figcaption></figure>

### Numbers You See in the Member Quotas Subtab <a href="#scenario-member-tab" id="scenario-member-tab"></a>

In the <mark style="color:blue;">**Member Quotas**</mark> subtab, every member of the Sales Department has their own row with their own denominator of 2,000: the member who actually used Credits shows **570.65 / 2,000.00**, while everyone else remains at **0.00 / 2,000.00**.

<figure><img src="https://1360999650-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6v6TNkkOQVfRYfcNirHL%2Fuploads%2Fgit-blob-e7dd921752ef35978bda6a493a6a74f1365e0a29%2Fcredit-quota-guide-member-tab-usage.png?alt=media" alt="Member Quotas subtab: each member&#x27;s own 2,000 quota"><figcaption><p>Member Quotas: one row per person, each calculated separately; the 570.65 charge appears only on the row of the member who actually used it</p></figcaption></figure>

### How Many Times This 570.65 Was Recorded and Deducted <a href="#scenario-how-recorded" id="scenario-how-recorded"></a>

| Ledger                            | Recorded result                    | Remaining |
| --------------------------------- | ---------------------------------- | --------- |
| This member's personal quota      | 570.65 / 2,000                     | 1,429.35  |
| The Sales Department's role quota | 570.65 / 5,000                     | 4,429.35  |
| Organization wallet               | **Actually deducted 570.65, once** | —         |

The same charge is **recorded in two ledgers**, but the money is **deducted only once**. This is also why the usage across ledgers can add up to more than what the organization actually consumed.

### Two Things That Can Happen Next <a href="#scenario-what-next" id="scenario-what-next"></a>

* **One colleague uses up their own 2,000**: only that person is blocked (their personal quota is used up). Other colleagues are unaffected, and the Sales Department budget still has room.
* **The Sales Department collectively uses up 5,000**: even if some colleagues still have plenty of personal quota left (for example, only 300 / 2,000 used), **all members of the Sales Department are blocked**, because the department's shared ledger is used up (externally facing conversation platforms such as embedded Web Chat and LINE are not affected).

In other words: **every use requires both the "personal ledger" and the "department ledger" to have balance remaining before it is allowed.**

### Members Can See Both Quotas Themselves <a href="#scenario-member-view" id="scenario-member-view"></a>

Members click their account avatar at the top right → <mark style="color:blue;">**Personal Settings**</mark> → <mark style="color:blue;">**Credit Quota**</mark>. <mark style="color:blue;">**My Credit Quota**</mark> at the top is their own personal quota, and <mark style="color:blue;">**My Role Quotas**</mark> below lists the roles they belong to that have a quota set, along with the combined usage of everyone in that role.

<figure><img src="https://1360999650-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6v6TNkkOQVfRYfcNirHL%2Fuploads%2Fgit-blob-769b8cfc5d458cf2979e19ad7d4554ed13785072%2Fcredit-quota-guide-profile-both.png?alt=media" alt="Credit Quota page in Personal Settings: My Credit Quota and My Role Quotas"><figcaption><p>Member view: the personal quota is at the top (570.65 / 2,000.00), and the Sales Department role quota is below (570.65 / 5,000.00)</p></figcaption></figure>

## Where the Three Quota Types Take Effect <a href="#where-quotas-apply" id="where-quotas-apply"></a>

For every AI request, the system checks each applicable layer in the table below, depending on the entry point used (it also checks the organization wallet balance first). **If any layer has nothing left, the request is blocked.**

| Entry point                                            | Member Quotas                       | Role Quotas                          | Conversation Platform Quotas                     |
| ------------------------------------------------------ | ----------------------------------- | ------------------------------------ | ------------------------------------------------ |
| MaiGPT                                                 | ✅                                   | ✅                                    | —                                                |
| Chatting with an AI assistant in the admin console     | ✅                                   | ✅                                    | ✅ (if the conversation platform has a quota set) |
| Calling via API Key                                    | ✅ (the member who owns the API Key) | ✅ (the roles that member belongs to) | ✅ (if the conversation platform has a quota set) |
| Knowledge base upload and document processing          | ✅                                   | ✅                                    | —                                                |
| Web Chat embedded in a web page (public visitors)      | —                                   | —                                    | ✅                                                |
| External messaging conversation platforms such as LINE | —                                   | —                                    | ✅                                                |

{% hint style="info" %}
Visitors on embedded Web Chat and on conversation platforms such as LINE are not organization members, so their usage is not counted against member quotas or role quotas. To control the cost of these conversation platforms, use [Conversation Platform Quotas](https://docs.maiagent.ai/maiagent-user-guide/en/others/credits/inbox-credit-quota.md).
{% endhint %}

## After a Quota Expires or Is Disabled <a href="#after-expiry" id="after-expiry"></a>

When a quota is distributed, the system automatically turns on the <mark style="color:blue;">**Quota Required**</mark> switch for that member or role. After the quota expires or is disabled, **the switch stays on**, so:

| Situation                                                   | Result                                                                                                                      |
| ----------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
| A personal quota expires while "Quota Required" is still on | This member cannot use AI services until the quota is redistributed or the switch is turned off                             |
| A role quota expires while "Quota Required" is still on     | **All members of the role** cannot use AI services until the quota is redistributed to the role or the switch is turned off |
| "Quota Required" is turned off                              | This layer is no longer checked, and charges go directly to the organization wallet (other layers still apply)              |

{% hint style="warning" %}
When an event or project ends and a role no longer needs its department budget, remember to go to the <mark style="color:blue;">**Role Quotas**</mark> subtab and turn off <mark style="color:blue;">**Quota Required**</mark> for that role (the confirmation dialog is titled "Remove Quota Limit"). Otherwise, once the role quota expires, all members of that role will be suspended from using the service.
{% endhint %}

## Combinations for Different Industries <a href="#industry-examples" id="industry-examples"></a>

| Industry                               | Need                                                                                                                                   | Suggested combination                                                                                                                           |
| -------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| Technology / electronics manufacturing | Sales drafts quotations and engineering looks up specifications; budgets are separate per department, and each person also needs a cap | Set a **role quota** for each department as the department budget, then use **Distribute from Role in Bulk** to give each person a personal cap |
| Finance / banking                      | Each wealth manager has a fixed monthly allowance that refills automatically every month                                               | Use **Distribute from Role in Bulk** to give each person in the wealth manager role a personal quota, with the reset cycle set to "Monthly"     |
| Educational institutions               | Each department is allocated an annual budget shared by its teachers                                                                   | Setting a **role quota** for each department is enough; there is no need to also distribute personal quotas                                     |
| Healthcare / wellness                  | Control the website's patient-education Web Chat separately from internal staff usage                                                  | Set a **conversation platform quota** for the website Web Chat; use **member quotas** for internal staff                                        |
| Service / retail / hospitality         | Open access to store staff during an anniversary sale and stop automatically when it ends                                              | Use **Distribute from Role in Bulk** for the store staff role, with the expiration date set to the last day of the event                        |

## FAQ <a href="#faq" id="faq"></a>

#### Q: If I set a role quota of 100,000, does everyone in the role get 100,000? <a href="#faq-role-quota-per-member" id="faq-role-quota-per-member"></a>

No. A role quota is a 100,000 **shared by the whole role**. When the combined usage of all members in the role reaches 100,000, everyone in the role is blocked. If you want each person to have 100,000, use <mark style="color:blue;">**Distribute from Role in Bulk**</mark> in the <mark style="color:blue;">**Member Quotas**</mark> subtab instead; see the [comparison above](#role-quota-vs-batch-by-role).

#### Q: What does "35,000.00 / 100,000.00" on a role quota row mean? <a href="#faq-role-usage-meaning" id="faq-role-usage-meaning"></a>

The numerator, 35,000.00, is the **combined usage of all members in this role since the quota took effect**, and the denominator, 100,000.00, is the cap shared by this role; the "Remaining" figure below is the amount still available. This is not the usage of any single member; for individual usage, check the <mark style="color:blue;">**Member Quotas**</mark> subtab. See the [role quota screen in the scenario example](#scenario-role-tab).

#### Q: After I used "Distribute from Role in Bulk," why do members appear under "Quota Assigned," each with their own numerator/denominator? <a href="#faq-batch-shows-assigned" id="faq-batch-shows-assigned"></a>

This is normal. Distributing from a role in bulk creates one **personal quota** for each member, so these members move from "Unassigned" to <mark style="color:blue;">**Quota Assigned**</mark>, and the usage column shows **their own usage / their own cap**, accumulated separately for each person. This is a separate matter from role quotas; see the [member quota screen in the scenario example](#scenario-member-tab).

#### Q: How can I tell whether a quota is a "role quota" or a "personal quota"? <a href="#faq-tell-role-from-member" id="faq-tell-role-from-member"></a>

Look at which subtab it is in:

* In the <mark style="color:blue;">**Role Quotas**</mark> subtab, with one row per role → role quota (shared by everyone)
* In the <mark style="color:blue;">**Member Quotas**</mark> subtab, with one row per person → personal quota (separate for each person)

A personal quota works exactly the same whether it was created by distributing one by one or by "Distribute from Role in Bulk," and the list does not indicate how it was created. Members can see both types at <mark style="color:blue;">**Personal Settings**</mark> → <mark style="color:blue;">**Credit Quota**</mark>; see the [member view](#scenario-member-view).

#### Q: Are member quotas, role quotas, and conversation platform quotas calculated separately? <a href="#faq-calculated-separately" id="faq-calculated-separately"></a>

Yes. Each is tracked separately and has its own cap, but they **apply at the same time**:

* A single charge is recorded in every applicable ledger (for example, MaiGPT usage is recorded in both the personal quota and the role quota)
* As soon as any one ledger is used up, the next request is blocked
* Actual Credits are deducted from the organization wallet only once

For which entry points check which layers, see [Where the Three Quota Types Take Effect](#where-quotas-apply).

#### Q: A member's usage clearly exceeds the quota cap. Why can they still keep using it? <a href="#faq-over-limit-still-works" id="faq-over-limit-still-works"></a>

The most common reason is that **different numbers are being compared**:

* **The "Credit Consumption Summary" on the right side of the conversation details is the cumulative total from when the conversation was created until now**, including usage before the quota was set; a quota counts only usage after it took effect, so the two numbers are naturally different.
* For a personal quota, look at that member's own row in the <mark style="color:blue;">**Member Quotas**</mark> subtab; do not compare it against the role quota's cap.
* If the quota has a reset cycle, the used amount returns to zero at the start of each new cycle.

<figure><img src="https://1360999650-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6v6TNkkOQVfRYfcNirHL%2Fuploads%2Fgit-blob-2999bef3d412bbfc5f5a9c1009e841a5534dec6a%2Fcredit-quota-guide-conversation-total.png?alt=media" alt="Credit Consumption Summary on the right side of conversation details"><figcaption><p>"Credit Consumption Summary" on the right side of conversation details: the cumulative total of all turns in this conversation, not the used amount of a quota</p></figcaption></figure>

In addition, as long as there is quota remaining at the moment of use, the request is allowed and the charge is recorded after it completes. The last use may therefore push the used amount slightly over the cap, and it is the **next** request that is blocked (see [Member Credits Quota Management](https://docs.maiagent.ai/maiagent-user-guide/en/others/credits/member-credit-quota.md#fail-open) for details).

#### Q: A member belongs to two roles that both have role quotas. How is this calculated? <a href="#faq-multiple-roles" id="faq-multiple-roles"></a>

Each of their charges is **recorded in both roles at the same time**, and if either role's quota is used up, they are blocked. As a result, the usage across roles can add up to more than what the organization actually consumed, while the actual deduction still happens only once.

#### Q: I want to limit each person's usage and also control the department's total budget. How should I set this up? <a href="#faq-both-limits" id="faq-both-limits"></a>

Use both together, as in the [Sales Department scenario](#sales-team-scenario):

1. In the <mark style="color:blue;">**Member Quotas**</mark> subtab, use <mark style="color:blue;">**Distribute from Role in Bulk**</mark> to give each person a personal cap
2. In the <mark style="color:blue;">**Role Quotas**</mark> subtab, set a total department cap for the same role

If you only want one of the two, set only that one.

## Related Pages <a href="#related-pages" id="related-pages"></a>

* [Member Credits Quota Management](https://docs.maiagent.ai/maiagent-user-guide/en/others/credits/member-credit-quota.md): Distribute, edit, and disable personal quotas; default quotas for new members and reminder settings
* [Conversation Platform Credits Quota Management](https://docs.maiagent.ai/maiagent-user-guide/en/others/credits/inbox-credit-quota.md): Set quotas for conversation platforms such as Web Chat and LINE
* [Credits Billing System](https://docs.maiagent.ai/maiagent-user-guide/en/others/credits.md): Organization wallet, rates, and consumption records


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.maiagent.ai/maiagent-user-guide/en/others/credits/credit-quota-scenarios.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
