> 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/create-fields-with-ai.md). Agents can also search and read this documentation through its [MCP server](https://guide.form.gov.sg/~gitbook/mcp).

# 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="https://4000418884-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPFgP7DGKSubWBlNdSCQd%2Fuploads%2Fv5EzQr260xrIhxwj9m6o%2FScreenshot%202025-04-28%20at%206.43.41%E2%80%AFPM.png?alt=media&amp;token=07febccb-cd6f-4b0b-af3a-f4387db74e39" alt=""><figcaption></figcaption></figure>

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

<div align="center"><figure><img src="https://4000418884-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPFgP7DGKSubWBlNdSCQd%2Fuploads%2F4rU8HiqBIDaWvEYgmKFd%2FScreenshot%202025-04-28%20at%2010.41.16%E2%80%AFAM.png?alt=media&amp;token=bf19f908-2b15-47eb-8847-d61d8e3ef82a" 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="https://4000418884-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPFgP7DGKSubWBlNdSCQd%2Fuploads%2FfXl2eCWoksrqvbL5jgF4%2FScreenshot%202025-04-28%20at%2010.42.10%E2%80%AFAM.png?alt=media&amp;token=b0f5fbb2-1f6f-4461-a37b-bdde21de91a9" 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="https://4000418884-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPFgP7DGKSubWBlNdSCQd%2Fuploads%2Fy0K7fnyooPnQECOrxgdc%2FScreenshot%202025-04-28%20at%206.09.53%E2%80%AFPM.png?alt=media&amp;token=dc9f47ce-8f71-4d3e-b48f-c342ed7e1545" 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="https://4000418884-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPFgP7DGKSubWBlNdSCQd%2Fuploads%2FLwjiDrzO74moco9Jfop1%2FScreenshot%202025-04-28%20at%205.56.18%E2%80%AFPM.png?alt=media&amp;token=c81e0092-b6cf-461a-9454-8990b15345e2" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://4000418884-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPFgP7DGKSubWBlNdSCQd%2Fuploads%2FuTPOe17530x8d6O4wrig%2FScreenshot%202025-04-28%20at%206.45.10%E2%80%AFPM.png?alt=media&amp;token=d59bcf97-b562-4217-9328-e2a8612c466f" 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="https://4000418884-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPFgP7DGKSubWBlNdSCQd%2Fuploads%2FxSR33AOcCzuhzUa3vjf8%2FScreenshot%202025-04-28%20at%206.01.35%E2%80%AFPM.png?alt=media&amp;token=704b401e-3cbc-4c7a-bfc0-ef1d49fb6024" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://4000418884-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPFgP7DGKSubWBlNdSCQd%2Fuploads%2FheXjQHFXtZBK9AFs2OjH%2FScreenshot%202025-04-28%20at%206.01.41%E2%80%AFPM.png?alt=media&amp;token=82095414-44e6-4da3-b030-a221795936f9" 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="https://4000418884-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPFgP7DGKSubWBlNdSCQd%2Fuploads%2F0bkRyj6gJxENK9vEa6Lg%2FScreenshot%202025-04-28%20at%206.10.56%E2%80%AFPM.png?alt=media&amp;token=40e90c60-6ca0-493a-9f50-c56995ef3452" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://guide.form.gov.sg/user-guides/basic-guide/create-form/create-fields-with-ai.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
