> For the complete documentation index, see [llms.txt](https://help.webchat.portal.sopro.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.webchat.portal.sopro.io/action-blocks/collect-input.md).

# Collect Input

Collect a response from the visitors to the question asked.

This action block allows you to collect the input or response from the visitors or customers.

Collect Input action block is used for asking questions to which your visitors can respond in the chat.

Collect Input action block is made up of two things – A question and a response.

### Question: <a href="#question" id="question"></a>

In the rich text editor, you can define the question that you want to ask your visitors.

For example, “What is your name?”

{% hint style="info" %}
**Note**: The chat flow will not proceed until this question is answered by the user.
{% endhint %}

### Response: <a href="#response" id="response"></a>

Variables are used to store the input received from the visitor, so you can reference it for later use.

You can either choose an existing variable from the dropdown or create a new one.

{% hint style="info" %}
**Note**: If your variable requires a specific kind of input which the user wrongly submits, the user will show an error message and not be allowed to proceed.
{% endhint %}

#### When should I use Collect Input? <a href="#when-should-i-use-collect-input" id="when-should-i-use-collect-input"></a>

* Collecting information like name, email or phone
* Asking questions
* Collecting Feedback
* Branching the conversation flow based on the input received

#### How do I set it up? <a href="#how-do-i-set-it-up" id="how-do-i-set-it-up"></a>

You can follow the following steps to set up the '**Collect Input**' action block;

* Add the block on canvas by clicking on '**+**'
* Choose '**Collect Input**'
* Configure the following on right panel
  * **Question:** Write down the question you want to ask in the rich text editor under '**Show this question**'
  * **Variable:** Select the variable in which the response from the visitor will be stored

{% hint style="info" %}
This variables can be used later in the conversational flow to give personalization.
{% endhint %}
