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

# Form

Using the form action block, you can collect multiple inputs in a single view making it easier for the user to submit and saving time. Also, this helps reduce drop-offs, as users tend to exit if the chatbot asks for multiple questions in the chat flow.

Form action block consists of the following:

{% embed url="<https://www.loom.com/share/997f235fa1d74887982c30c07ac40878?sid=37e5a5e3-2756-4fa2-92ce-17f014987f95>" %}
Setting up 'Form' action block
{% endembed %}

## Question

Before showing the form itself, this question helps set the context of why the user is being asked to complete the form.

For example, “Can you please help me with your contact information?”

## Form fields

Form fields are individual inputs that make up the form. Users must fill these fields out to proceed in the chat flow.&#x20;

Each form field is made up of the following;&#x20;

* **Name of the field** – Provide the name of the field that will appear to your visitor.
* **Variable** – Map the variable in which the response provided by the visitors will be stored.
* **Optional flag** – You can choose to keep this form field as optional.

{% hint style="info" %}
You can add a maximum of up to 5 form fields.
{% 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://help.wotnot.io/build/action-blocks/form.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.
