# Specializations

Before generating code, help the AI understand what kinds of questions and logic your survey includes. **Specializations** act like a blueprint, they guide the AI to use the most relevant structures, tags, and logic patterns for your specific questionnaire.

Not all surveys are the same - some are simple with just multiple-choice questions, while others involve complex skip logic, quotas, or loops. Enabling the right specializations:

* Improves code accuracy
* Reduces post-generation edits
* Helps AI understand the complexity of your project

<figure><img src="https://1402057010-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgtHd8o9ldznZ1hKHiZvc%2Fuploads%2F8N5ERYPTsV3sZTLg3HOm%2FScreenshot%202025-06-20%20at%202.41.02%E2%80%AFPM.png?alt=media&#x26;token=d5097f17-1420-4448-afd8-c17abf6e2eee" alt=""><figcaption></figcaption></figure>

## **Basic Specializations**

These cover the most common question types used in standard surveys:

* **Radio / Checkbox / Select Questions**&#x20;
* **Number / Text Questions**
* **Hidden Questions**&#x20;
* **Pipe Tags**&#x20;

## **Advanced Specializations**

For surveys with more complex requirements, you can enable advanced modules:

* **Answer Validation**&#x20;
* **Loops & Nested Loops**&#x20;
* **Quotas**&#x20;
* **Sample Participant Sources**&#x20;
* **Images / Data Lookup / Scripting**&#x20;

{% hint style="info" %}
Some items (e.g., Segmentation, Hybrid Questions) require advanced access to enable.
{% endhint %}

<figure><img src="https://1402057010-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgtHd8o9ldznZ1hKHiZvc%2Fuploads%2F4HMy5pMdYJ7pEToNW604%2FScreenshot%202025-06-20%20at%202.42.08%E2%80%AFPM.png?alt=media&#x26;token=721ba5e6-04ec-44bf-9474-c85d443284cb" alt=""><figcaption></figcaption></figure>

## What is Used Capacity?

There is a **defined total specialization capacity** for AI, which is visually represented by the **capacity bar** on the right side of the screen.

The total available capacity is dynamically determined based on the **length of the questionnaire**. Shorter surveys allow you to select **multiple specializations** at once, while longer surveys may restrict this to fewer selections.

{% hint style="info" %}
If you need to apply multiple specializations but can’t select them all at once, try this workflow:

1. Start by selecting one specialization (e.g., **Hybrid Questions**) and generate the code.
2. Then, switch to the next specialization (e.g., **Custom Styles and Scripting**).
3. Use **Edit with AI** to enhance or modify the previously generated code based on the new specialization.
   {% endhint %}
