> For the complete documentation index, see [llms.txt](https://docs.pixiebrix.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pixiebrix.com/developing-mods/developer-concepts/user-input/prompt-for-input.md).

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