> For the complete documentation index, see [llms.txt](https://docs.rooks.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rooks.ai/build-with-your-ai/questions-and-validation.md). Agents can also search and read this documentation through its [MCP server](https://docs.rooks.ai/~gitbook/mcp).

# Questions and validation

Choose the information to collect and the rules each answer must follow.

Tell your AI what information to collect. Rooks supports these question types through the current form-authoring workflow.

| Information             | Examples                                               |
| ----------------------- | ------------------------------------------------------ |
| Text                    | A name, short answer, or longer description            |
| Contact details         | Email, phone, address, postal code                     |
| Numbers                 | Quantity, amount, or a value within a range            |
| Choices                 | Dropdowns, buttons, single choice, or multiple choices |
| Yes/no and confirmation | A decision or acknowledgment                           |
| Dates                   | A date or date and time                                |
| Ratings                 | A rating scale, including stars                        |
| Files and images        | One or more respondent uploads                         |
| Signatures              | Signer name, date, and drawing                         |
| Groups                  | Related fields, including repeated groups              |

Forms can also display headings, instructions, links, and images.

## Required and optional answers

Questions are required by default. Ask your AI to make a question optional when respondents should be able to skip it.

> Make the phone question optional.

## Validation

Use the question type that matches the information. Renaming a text question to “Email” does not add email validation.

Ask for supported restrictions such as number ranges, past or future dates, text patterns, or upload type and size limits.

> Use an email question for Email address. Restrict the appointment date to future dates.

## Repeated information

Ask for repeated fields or a repeated group when someone needs to provide several entries.

> Let respondents add multiple household members. Collect a name and age for each member.

## Check the respondent experience

Test valid and invalid answers in the preview. Confirm that required fields, formats, and error states behave as intended.

See [Conditional logic and calculations](https://docs.rooks.ai/build-with-your-ai/conditional-logic-and-calculations.md) for questions that apply only in some cases.
