# Prompt for Input

If you only need to collect one field for input, you might consider using the Prompt for Input brick.&#x20;

### Add the Prompt for Input brick

Search for Prompt for input and add this brick to your mod.

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

### Configure the message

This brick is very simple. You'll configure a message to appear as a window alert, and there will be an open text field below for the user to provide input.

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

### Preview the input prompt

Trigger the mod to view the prompt.

<figure><img src="/files/OHoz5nOAxFmIDI3RRUnA" alt="" width="375"><figcaption></figcaption></figure>

{% hint style="info" %}
You might use a Prompt for Input instead of a form if you only need to collect one field and want to require as few clicks as possible. When the Prompt for Input window opens, the cursor will be set to the field so you won't have to click or tab to set text and submit.
{% endhint %}


---

# Agent Instructions: 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://docs.pixiebrix.com/developing-mods/developer-concepts/user-input/prompt-for-input.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.
