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

# Text input

> Input a line of text

## What is a Text input

Text input is an input component that allows you to enter a line of text.
The value can be entered by the user or later fetched from an uploaded dataset (bulk-run).

## When to use the Text input component

The Text input component is suitable for short pieces of text. Such as a question, name, topic, etc.

## How to add a Text input to my custom Tool

The Text input component is listed under User inputs. You can add it to your Tool using the main section
or the side-bar.

<img src="https://mintcdn.com/relevanceai/R4_uN_eHr7TJYC-q/images/build-custom-tools/user-input/text-input-1.png?fit=max&auto=format&n=R4_uN_eHr7TJYC-q&q=85&s=8636b093fe4c4639a4d66c9fb4cc5289" alt="Text inputs" width="3052" height="1814" data-path="images/build-custom-tools/user-input/text-input-1.png" />

## Text input setting

<Snippet file="components/inputs/general-input-setting.mdx" />

<Snippet file="components/inputs/default-value-tip.mdx" />

## Access the entered text

To access the entered text use the variable mode `{{}}` and the input step name. Under the default setting it is accessible
via `{{text}}` (or `params.text` in  a JavaScript step).
