> 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-to-unified-transition/quota-programming.md).

# Quota programming

## Simplified single-prompt quota creation

In the **Legacy Workflow**, creating a quota was a two-step process:

1. Create the quota in the quota sheet using "Create with AI."
2. Switch back to the XML tab, place the cursor at the right position, use "Generate with AI," and provide instructions to add the quota tag.

In the **Unified Workflow**, you don't need to do these two steps separately. A single prompt like **"Create quota for gender"** is enough—Metaforms will add the quota in the quota sheet **and** insert the corresponding quota tag in the XML automatically.

**⚠️ Note:** Edit history for quotas is currently under development. Until further updates are provided, users should avoid using the edit history feature in the quota tab.

**Step 1:** If your questionnaire includes quota instructions, the AI Assistant creates quotas and relevant XML tags automatically while programming questions.

<figure><img src="/files/xrkq3DY0GaSVfDMeOTQ9" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/fmw4X1uBBjBBrKgJ0iBf" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/JvMLqktgvYAf4P9DPxMI" alt=""><figcaption></figcaption></figure>

**Step 2:** Request additional or missed quotas via chat. For example: "Create quota for Q1 male and female." The AI will create and place quotas, asking for clarification if needed.

<figure><img src="/files/2r0urZY1rzOsUknt393e" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/1khLvecKOFbvAMLvR7TB" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/Ilf2XHJpE5FGGp5fhPPX" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/WvMFYWUUGtQzwhiIZ3va" alt=""><figcaption></figcaption></figure>

**Step 3:** Accept the newly created quotas.

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


---

# 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-to-unified-transition/quota-programming.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.
