> ## Documentation Index
> Fetch the complete documentation index at: https://docs.typebot.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Text input

The Text input block allows you to ask your user for a text answer.

## Short text input

By default the text input is expecting a short answer:

<Tabs>
  <Tab title="Flow">
    <Frame>
      <img src="https://mintcdn.com/typebot/_A9p16JCEDI2EkLF/images/blocks/inputs/short-text-flow.png?fit=max&auto=format&n=_A9p16JCEDI2EkLF&q=85&s=36425fd95dd9cd57ad218f63ce671130" alt="Text input" className="rounded-lg" width="1290" height="768" data-path="images/blocks/inputs/short-text-flow.png" />
    </Frame>
  </Tab>

  <Tab title="Bot">
    <Frame>
      <img src="https://mintcdn.com/typebot/_A9p16JCEDI2EkLF/images/blocks/inputs/short-text-bot.png?fit=max&auto=format&n=_A9p16JCEDI2EkLF&q=85&s=518f3b4b2ccd02f40fab4cbd3fdd6704" alt="Text input" className="rounded-lg" width="834" height="288" data-path="images/blocks/inputs/short-text-bot.png" />
    </Frame>
  </Tab>
</Tabs>

## Long text input

You can also ask your user for a longer text answer by enabling it in the input options:

<Tabs>
  <Tab title="Flow">
    <Frame>
      <img src="https://mintcdn.com/typebot/_A9p16JCEDI2EkLF/images/blocks/inputs/long-text-flow.png?fit=max&auto=format&n=_A9p16JCEDI2EkLF&q=85&s=bd4bb127ace378e032a2b423c5542f02" alt="Long text input flow" className="rounded-lg" width="1302" height="888" data-path="images/blocks/inputs/long-text-flow.png" />
    </Frame>
  </Tab>

  <Tab title="Bot">
    <img src="https://mintcdn.com/typebot/_A9p16JCEDI2EkLF/images/blocks/inputs/long-text-bot.png?fit=max&auto=format&n=_A9p16JCEDI2EkLF&q=85&s=79bf8f058dba48e06cc8e6795c4f537b" alt="Long text input bot" className="rounded-lg" width="884" height="530" data-path="images/blocks/inputs/long-text-bot.png" />
  </Tab>
</Tabs>

## Input mode

The input mode option allows you to specify the type of virtual keyboard that should be displayed on mobile devices. This provides a better user experience by showing the most appropriate keyboard for the expected input.

Available input modes:

* **text**: Shows a standard keyboard
* **decimal**: Shows a numeric keypad with decimal support
* **numeric**: Shows a numeric keypad for whole numbers
* **tel**: Shows a telephone keypad
* **search**: Shows a keyboard optimized for search inputs
* **email**: Shows a keyboard optimized for email addresses
* **url**: Shows a keyboard optimized for URL entry

<Note>
  Input mode is a hint to the browser and may not be supported on all devices or browsers. It's particularly useful for mobile devices.
</Note>

For more information, see the [MDN documentation](https://developer.mozilla.org/docs/Web/HTML/Reference/Global_attributes/inputmode).

## Allow attachments

This option, when enabled, allows users to attach files to their message. This is useful when you want to ask for a document or a picture attached to the user messages.

The generated URL will be stored in the defined variable.

## Allow audio clips

This option, if enabled, displays a microphone button when the text input is empty. This allows users to record a voice message and send it to the bot.

<Note>
  If supported, the recorded file will be a WebM file. If not, it will be an MP4 file (i.e. Safari).
</Note>
