> For the complete documentation index, see [llms.txt](https://help.metaforms.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.metaforms.ai/survey-programming-decipher/legacy-flow/build-page-walkthrough/quota-sheet.md).

# Quota Sheet

Metaforms allows you to create precise, flexible **quota structures** for your surveys - controlling who can complete them and in what proportions. This is especially useful when targeting specific demographics like gender, age groups, or region splits.

Metaforms makes it seamless to define quotas using AI - no need to write complex logic or count values manually.

## **Setting Up Quota Sheet:**

* Press `cmd + K` or `ctrl + K` (or click the AI button at the top) to open the **AI Command Menu**.
* The AI will generate a **Quota Sheet** in tabular format.

<figure><img src="/files/6vBMudx6UAvT6vzMJLZM" alt=""><figcaption></figcaption></figure>

## Enforcing Quotas:

The AI-generated quota sheet acts as a reference, but to enforce quotas during runtime:

* Switch to the **XML Editor**.
* Use `cmd + K` / `ctrl + K`or click **“Generate/Edit with AI”**, and prompt:

  > “Add quota tags based on the Quota Sheet.”
* The AI will insert `<quota>` tags into your XML automatically.


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.metaforms.ai/survey-programming-decipher/legacy-flow/build-page-walkthrough/quota-sheet.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
