> For the complete documentation index, see [llms.txt](https://university.mindstudio.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://university.mindstudio.ai/building-ai-agents/blocks-reference/user-context-block.md).

# User Context Block

The User Context block utilizes AI to generate a series of questions to the user based on certain parameters.&#x20;

## Configuration

### Prompt&#x20;

Define the additional data you want to collect from the user. Like the Generate Text block, the prompt serves as a message to the AI, directing it to produce a specific output. In this instance, that output is a set of interview-style questions designed to gather more context from the user.

{% hint style="info" %}
The prompt may include variables.
{% endhint %}

### Interview Depth

Specify the level of context gathered by the AI. This setting will inform how probing the questions are and how comprehensive the final report will be.&#x20;

Three options are provided:

1. Quick (default)
2. Medium&#x20;
3. Thorough

### Max Questions

Set the amount of questions to be asked. By default, the max amount of questions will be set to 5.

{% hint style="info" %}
If the maximum is reached, the workflow will cotinue regardless of whether or not the model thinks the interview is complete.
{% endhint %}

### Variable Name

Save the responses to a variable that can be used in other parts of the workflow. Example: `My_Var`

### Output Format

Select the output format for the response data:

1. Text (Default)
2. JSON


---

# 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, and the optional `goal` query parameter:

```
GET https://university.mindstudio.ai/building-ai-agents/blocks-reference/user-context-block.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
