# Form

In scenarios, where you are looking to collect multiple inputs like name, email or phone to confirm the appointment, rather than making the conversation lengthy by using multiple collect input blocks to collect each value, you can make use of form that collects everything at once.&#x20;

### When should I use it?&#x20;

* You are collecting multiple inputs&#x20;
* Want to keep the chat short and quick
* Reduce the number of to and fros

### How do I set it up?&#x20;

You can follow the following steps to set up '**Form**' action block;&#x20;

* Add an action block on canvas by clicking on '**+**' <br>
* Choose '**Form**' <br>
* Double click on '**Form**' to configure it on the right panel<br>
  * **Message:** \
    \
    The message configured here will be sent to the visitors when 'Form' action block is triggered along with the form fields<br>
  * **Add fields to capture individual input:**<br>

    1. **Name:** \
       \
       Enter the name of the field. This is what the visitors will see<br>
    2. **Validation Method:** \
       \
       Select the validation method i.e text, name, email, phone or custom<br>
    3. **Define Variable:** \
       \
       Give a name to the variable in which the answers to this field will be stored

    \ <mark style="background-color:yellow;">You can click on '</mark><mark style="background-color:yellow;">**+ Form Field**</mark><mark style="background-color:yellow;">' to add more fields and repeat the above step to configure it.</mark>&#x20;

{% hint style="warning" %}
You can add maximum upto 5 fields\
\
You can have some fields as 'Optional', so that the visitors can still move forward in the conversation if it is not filled
{% 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://help.talkie.se/action-blocks/form.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.
