> For the complete documentation index, see [llms.txt](https://guide.form.gov.sg/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guide.form.gov.sg/user-guides/basic-guide/create-form-to-update-to/create-fields-with-ai.md).

# Create fields with AI

{% hint style="info" %}
If you want to generate fields based on an existing form, please upload a PDF file of the form. Other file types (e.g., Word, Excel) are not supported at the moment.
{% endhint %}

**`Create fields with AI`** is a tool that can help generate form fields based on a simple prompt or a PDF file in seconds.&#x20;

This feature can be used to:&#x20;

* Quick-start your forms
* Digitise existing paper forms
* Get inspiration for new form layouts

{% tabs %}
{% tab title="Text Tutorial" %}

## <img src="https://guide.form.gov.sg/~gitbook/image?url=https%3A%2F%2F4000418884-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FPFgP7DGKSubWBlNdSCQd%252Fuploads%252FHvQoMuH9RPvCWZOfX8bW%252FText%2520tutorial.jpeg%3Falt%3Dmedia%26token%3D14ec1731-d8f5-4150-b18a-b90da084dc36&#x26;width=40&#x26;dpr=4&#x26;quality=100&#x26;sign=3d164e68&#x26;sv=2" alt="" data-size="line"> Text Tutorial: Create Fields with AI

### **Accessing the AI tool**

**For existing forms:**&#x20;

* Click "Fields" at the top of the form builder

<figure><img src="/files/B6KM68BWDpf16XFNfum7" alt=""><figcaption></figcaption></figure>

* Then, click the **magic wand** icon located next to the search bar

<div align="center"><figure><img src="/files/VehCByZiRoQ7dPvHFCN0" alt=""><figcaption></figcaption></figure></div>

**For new or blank forms:**&#x20;

* Click the "Create field with AI" button in the center of the form builder

<figure><img src="/files/ybfKlgPXxSvMMPZ1rlvP" alt=""><figcaption></figcaption></figure>

### **Choose how you want to generate your form fields**

After launching the AI tool, you can choose between:

1. **Text Prompt**: Type a description of your form
2. **PDF Upload**: Upload a PDF version of your existing form

<figure><img src="/files/MXrlkRafn5KxHtEZ6bVr" alt=""><figcaption></figcaption></figure>

**Option A: Using a text prompt**&#x20;

**A)** In the "Text" tab, describe what your form should collect. Example: *“I want to create a form that collects employee satisfaction feedback across departments and roles.”*

**B)** You may also choose to click any of the quick-start suggestions

<figure><img src="/files/vWchfm8Foc5dPOjcWLFO" alt=""><figcaption></figcaption></figure>

**C)** Once you are ready, click "Create fields" and wait for the tool to generate the fields

<figure><img src="/files/1lR9OGKIpwAGKou28uiq" alt=""><figcaption></figcaption></figure>

#### **Option B: Upload a PDF**

**A)** Click on the "PDF" tab

**B)** Upload a PDF version of your form. Not&#x65;*: Make sure your PDF file does not exceed 10 pages*

<figure><img src="/files/SKx9kJ4vOUWCvdKnWj5z" alt=""><figcaption></figcaption></figure>

**C)** Click "Create fields" and wait for the tool to generate the fields

<figure><img src="/files/ozTl19EA4BWQYo0giIm2" alt=""><figcaption></figcaption></figure>

**D)**  Review and edit the generated fields directly in the builder. You can confirm the fields by selecting "Yes, keep them" or delete them entirely by selecting "No, delete them"

<figure><img src="/files/J5F6xESyejmD9wFMMMCk" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}


---

# 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://guide.form.gov.sg/user-guides/basic-guide/create-form-to-update-to/create-fields-with-ai.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.
