Skip to main content
Version: 1.28 (Current)

AI Form Assistant New in 2

caution

This page is preliminary and subject to change as Forms 2.0 continues to be developed.

The AI Form Assistant builds and changes a Forms 2.0 form from a description in plain words. In the Form Builder it's labeled AI Assistant. You type or dictate what you want, for example "a contact form with first name, last name, a required email and a phone number", and the assistant adds and configures the fields while you watch.

The assistant works step by step and leaves you in control:

  • It shows a task list first, then applies one change at a time and highlights each field on the Canvas as it changes.
  • It never saves the form. You review the changes, then click SAVE to keep them or Undo to drop them.
  • It uses your own OpenAI or Azure OpenAI account, through a connector of the OpenAI add-on.

What you need​

  • The OpenAI add-on, installed on the instance, and the AI feature in your Plant an App license. See LLM Integrations.
  • An OpenAI or Microsoft Azure OpenAI connector with a working API key. With Azure, deploy a model in Azure first. To create a connector, see Getting Started in LLM Integrations.
  • Edit permission on the form's module. Only users who can edit the form can use the assistant.

Opening the assistant​

  1. Open a Forms 2.0 form in the Form Builder.
  2. In the header, between BACK and SAVE, click the AI Assistant button (the sparkle icon). The AI Assistant pane opens on the right of the Canvas. Click the button again to close it.

To make the pane wider or narrower, drag the handle on its left edge, or focus the handle and use the left and right arrow keys. The pane is between 300 pixels and half the page wide.

Setting up the assistant​

The first time you open the pane, it says Pick an OpenAI or Azure OpenAI connector to use the AI Assistant.

  1. Click Set up, or the gear icon in the pane header. The Personal AI Assistant settings open inside the pane.
  2. In Provider, pick OpenAI or Azure.
  3. In Connector, pick your OpenAI Connector or Azure OpenAI Connector.
  4. For OpenAI, pick a Model. For Azure, type the name of your deployment in Deployment Id.
  5. Optionally, pick a Reasoning Effort: None, Low, Medium, High or Extra High. Leave it empty (---) to use the model's default.
  6. Click Save. The assistant tests the connector first (Testing the connector…) and shows the provider's error if the test fails.

The settings are personal. They're saved on the server for your user, so they're already picked the next time you open a form, on any browser or computer. Change them at any time from the gear icon.

note

Reasoning Effort is only for reasoning models. Older models, such as gpt-4o, reject it and every request fails, so leave it empty for them. A higher effort works better on large requests, but it's slower and uses more tokens.

The connector test checks the API key only, not the Azure deployment. A wrong deployment name shows the provider's error on your first request.

Describing what you want​

Type your request in the box at the bottom of the pane and press Enter, or click Send. Shift+Enter starts a new line.

Describe the fields and settings you want, as you'd describe them to a colleague. The assistant sees the form as it is at that moment, including unsaved changes you made by hand, so you can also ask it to change fields that are already there. For example:

  • Create a contact form with first name, last name, a required email and a phone number.
  • Make the phone required and add a hint that says we only call during office hours.

Earlier requests stay in the pane above the latest one, collapsed to one line with an icon for how they ended. Click one to expand it.

Dictating a request​

In Chrome, Edge and Safari, a microphone button sits above Send. Tap it to start dictating and tap it again to stop, or hold it down and release it when you're done. The words appear in the box as you speak, after any text already there. Edit the text if needed, then send it as usual. Nothing is sent until you send it.

  • The browser asks for permission to use the microphone the first time.
  • Dictation needs the site to use HTTPS.
  • Dictation uses the page's language, or the browser's language when the page has none.
  • The browser sends the audio to its own speech service (Google for Chrome, Microsoft for Edge, Apple for Safari), not through your instance or your AI provider.
  • Firefox has no speech recognition, so the button doesn't show there.

Watching a run​

Each request starts a run:

  1. The pane shows Planning… while the AI provider prepares a plan.
  2. A task list appears, for example one task per field, plus "Arrange the layout" if needed.
  3. The builder locks. A banner over the Canvas toolbar says The AI Assistant is editing this form. While the builder is locked, the Canvas, the settings panes, SAVE, Ctrl+S, Import and Export don't respond.
  4. The tasks run in order. The running task shows one status line, such as Adding the First Name textbox. As each change is applied, the Canvas scrolls to the field and highlights it, and the settings pane shows the field with the changed setting rows highlighted. A new field glows in the theme color, a changed or moved field glows more softly, and a removed field glows red.
  5. When all tasks are done, the builder unlocks and the pane shows a one-sentence summary and Review the changes and click SAVE to keep them.

The form now has unsaved changes, so SAVE is enabled. Review the fields, adjust anything by hand, and click SAVE.

Task markerMeaning
Empty circlePending.
SpinnerRunning.
Check markDone.
Red exclamation markFailed. The reason is shown under the task.
Amber circling arrowsRefused, then corrected by a later task.
Grey dashStopped.

When a change is refused​

The builder checks every change before it applies it, with the same rules as when you edit the form by hand. For example, it refuses a name that another field already uses, or a value a setting doesn't allow. A refused change leaves the form exactly as it was. The task is marked failed with a one-line reason, and the run goes on with the next task.

When the plan is done, the assistant sends the reasons back to the AI provider and tries to fix them, in up to two rounds (Fixing what was refused…). The fixes run as more tasks in the same run. If some changes still can't be done, the summary says how many, for example Done. 2 could not be done.

When the assistant asks a question​

The assistant prefers a sensible default to a question. When part of a request needs details it can't guess, it does the rest and shows a question card with choices. The builder stays locked, and the banner says The AI Assistant is waiting for your answer.

  • Click a choice, or type your answer in the box and send it. The request goes on from where it stopped.
  • Or click Cancel on the question card. Everything the request changed is undone, and the request ends.

Stopping a run​

Click Stop, in the banner or in the pane, at any time during a run, including while a question waits. The change in progress finishes, and nothing more is applied. Changes made so far stay on the form, and the remaining tasks show as stopped. Undo is offered for what the run did.

Leaving the page during a run also stops it, with the usual prompt about unsaved changes.

Undo and Redo​

After a run that changed the form, the result card offers Undo. It puts the form back exactly as it was right before the run, including the field order, the settings and removed fields.

  • Only the latest run can be undone.
  • If you changed the form by hand after the run, Undo asks first (Undo the assistant's changes?), because your changes are lost too. Selecting a field or opening its settings doesn't count as a change.
  • If you saved the form after the run, Undo turns the run back as unsaved changes. Click SAVE to keep the undo.
  • After an undo, Redo brings the assistant's changes back, until the form changes again or a new run starts.
  • If a run changed nothing, the previous run stays undoable, and the button reads Undo the previous run.

Undo and Redo cover only the assistant's runs, not your own edits, and they have no keyboard shortcuts.

What the assistant can change​

The assistant changes fields and form settings:

  • Add a field of any field type, at the end of the form, at the top of a container, or after a named field.
  • Change a field: its label, name, hint, its active, enabled and visible states and their conditions, and the settings of its field type. See Common Field Settings.
  • Move a field within its container or into another container. Fields placed in a Horizontal container sit side by side, in the order you asked. See Layouting.
  • Remove a field, the same way the Canvas delete button does, and restore a removed field.
  • Add, change or remove validators, with their settings and condition. A required field gets the Required Field validator.
  • Give a Dropdown its choices as a static list. Each choice is a text, or Text|Value when the stored value differs. The list replaces the dropdown's data source. When you don't list the choices, the assistant picks sensible ones.
  • Change form settings: the form's title, whether it opens inline or as a popup and the popup's name, CSS classes, canvas width, show condition, loading animation, debug mode, localization, and auto-save of drafts. See Settings.

It follows the same rules as the builder. Fields are referred to by their name, ignoring case. A new field without a name gets the name the builder derives from its label, with a number added if that name is taken. A Repeater can't go inside another Repeater, at any depth, and the form's main container can't be moved or removed.

The assistant can't:

  • Add or change actions: form events such as On Page Load, button actions, or workflows. It can add and set up a Button, but not its actions. A request for actions gets a short answer and no task list.
  • Work on listings, entities, APIs, or anything outside the Form Builder.
  • Build a whole application, or several forms at once.
  • Translate field texts into other languages.

Things to keep in mind​

  • What's sent to the AI provider. Your messages and the recent conversation, the current unsaved form (its fields and form settings), and the field types and validators your instance has. No data from your app's tables is sent.
  • Your key stays on the server. The API key is never sent to the browser. Data goes from your instance only to the provider you picked.
  • Cost. The provider bills your account for every request. Each run's token usage is recorded with your instance's other AI usage.
  • Form size. The assistant handles forms of up to about 100 fields. A larger request is refused with This form is too large for the AI Assistant, which handles forms of up to 100 fields. The limit counts the form and the conversation together.
  • Form visitors aren't affected. The assistant runs only in the builder. The live form changes only when you click SAVE.

Messages​

MessageWhat it means
The AI Assistant needs the OpenAI add-on. Ask an administrator to install it.The OpenAI add-on isn't installed. Nothing else in the pane works until it is.
Pick an OpenAI or Azure OpenAI connector to use the AI Assistant.No connector is picked, or the picked connector was deleted. Click Set up.
The AI Assistant needs the AI feature in your Plant an App license.The license doesn't include the AI feature. Nothing was changed.
The AI provider rejected the API key. Check the connector in the AI Assistant settings.Nothing was changed. Click Settings on the result card to check the connector.
The AI provider is busy. Try again in a moment.The provider is overloaded or rate-limited. Changes made so far stay on the form.
The connection to the AI Assistant was lost.Changes made so far stay on the form, and the builder unlocks.
The AI Assistant sent an answer the builder could not read. Try again.Send the request again.