> For the complete documentation index, see [llms.txt](https://support.quizkitapp.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.quizkitapp.com/advanced-settings/personalizing-your-quiz/dynamic-questions-and-answers.md). Agents can also search and read this documentation through its [MCP server](https://support.quizkitapp.com/~gitbook/mcp).

# Dynamic questions & answers

Learn how you can personalize quiz questions or results with user responses collected earlier in the quiz.

You can collect specific customer data during your quiz, such as names, that you use in follow-up questions or results to personalize the experience.

There are two ways to do so depending on the question type.

## In this section

* [Personalizing form question types](#personalizing-form-question-types)
* [Personalizing other question types](#personalizing-other-question-types)

***

## Personalizing form question types

For form and contact form questions, you can use customer data that's entered in to personalize the subsequent questions.&#x20;

The following steps use the example of collecting the customer's name.

**Steps:**

1. From the quiz builder, navigate to the question and field where you want to collect data to personalize follow-up questions.
2. Under **Content**, in the **Name** text field, add a variable name. For example, if you want to collect a customer's first name, then give it a recognizable variable name like `FirstName`**.**
3. Navigate to the question where you want to use the customer's first name. Add the same variable name (`{FirstName}`) wherever you want the first name to show up.&#x20;

For example, in the **Heading** text section, you might write `Hello {FirstName}!` which would display the user's first name instead when they take the quiz.

You can use variables in the next question's **Heading**, **Subheading**, and **Bottom text.** You can also use it in the **Results** page's **Text, Subheading**, and **Heading.**

Additionally, you can use them in the **Email subtitle**, **Email title**, and **Email description** of the **Results email template**. &#x20;

***

## Personalizing with answers

You can use the answers from previous questions to personalize follow-up questions. \
\
Each question in your quiz has a number representing the order it appears in your quiz.&#x20;

For example, question #1 in a quiz is `What's your favorite flavor?`  If you want to reference the flavor choice in question #2, then in question #2 you include the variable `{1}` since it's the answer for question #1.

<figure><img src="https://3560167061-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ff4VSFR6mflh7oo1yyqTT%2Fuploads%2FY5UHsjmtlqbexBCmMa70%2Fimage.png?alt=media&amp;token=78024bde-8326-4d19-8673-dbeb0f7b2913" 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 by asking a question.

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

```
GET https://support.quizkitapp.com/advanced-settings/personalizing-your-quiz/dynamic-questions-and-answers.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.
