AI in Forms
The Forms module has built-in AI support — the button lets you quickly create and edit forms using AI Agents.
Where to Find the AI Button
- Form list — the AI button in the top bar lets you issue a command to create a new form
- New form — the AI button in breadcrumbs helps configure the form during creation
- Edit form — the AI button lets you modify an existing form
- Form preview (show) — the AI button with full form context (name, token, ID)
How It Works
- Click the button in the top bar
- Copy the generated prompt
- Paste the prompt into an AI Agent (Claude Code, OpenAI Codex, Gemini CLI, or another)
- The agent will automatically create or modify the form via API
Example
Simply paste a prompt like this into the Agent:
Add a form for collecting data at a job fair — it should have first name, last name, phone, and email fields plus a marketing consent checkbox
The agent will:
- Create a form with an appropriate name
- Add text fields with email validation
- Add a consent checkbox
- Set field order and button text
What Can the Agent Do
- Create a contact form with fields: name, email, message
- Add text fields, select, radio, checkbox, attachments
- Set field validation (email, required)
- Change submit button text and post-submission message
- Add CSS styles to the form
- Configure CRM mapping (automatic customer creation)
- Set up post-submission redirect
Prompt Contains
- Form context (ID, name, token) — when editing an existing form
- API token for authorization
- Link to the complete Form API documentation
- Example commands tailored to the context (creating vs. editing)