AI Form Assistant
The AI form assistant helps create and edit a form by conversation. It can propose schema changes and conditional logic changes, then you decide whether to apply them.
This feature is controlled by the aiChat feature flag and requires the server to have an AI provider credential configured. If either requirement is missing, the page shows a feature unavailable or AI not configured message.
Open the assistant
- Open Forms.
- Open a form.
- Open the form assistant for that form.
The assistant works against the selected form, so start from the form you want to change.
Start or switch conversations
The assistant keeps conversations for a form.
- Use the conversation menu in the chat header to switch conversations.
- Select the plus button to start a new conversation.
- Use the delete action in the conversation menu to remove a conversation.
Choose a model
- Open the model selector in the assistant header.
- Pick one of the configured AI models.
If no models are available, the assistant cannot send prompts.
Ask for form changes
Use plain instructions such as:
- Add a contact form with name, email, and message.
- Add a phone number field.
- Make the email field required.
- Add a dropdown for country selection.
- Show a field only when another field has a specific value.
- Create a section for personal information.
Press Enter to send. Use Shift+Enter to add a new line in the message box.
Preview proposed changes
When the assistant proposes changes, the page enters preview mode. The preview can include:
- New or edited form fields.
- Field settings, labels, placeholders, options, or validation changes.
- Conditional logic changes.
Use Show Preview or Hide Preview to control the side-by-side form preview.
Apply or reject changes
- Review the proposed changes.
- Select the accept action to save them to the form.
- Select the reject action to discard them.
Accepted changes update the form schema and dependency data. Rejected changes leave the form unchanged.
Good prompts
Good prompts describe the desired outcome and constraints:
- "Add a required work email field after the name field."
- "Create a two-step onboarding form with company details first and contact details second."
- "Only show the billing address section when the user selects paid plan."
After applying AI changes, review the form manually before publishing.
